message: wip expandPatternAssignment
diff: @@ -3069,18 +3069,24 @@ UHDM::expr* CompileHelper::expandPatternAssignment(UHDM::expr* lhs,
  if (lhs->UhdmType() == uhdmparameter) {
  parameter* param = (parameter*)lhs;
  const typespec* tps = param->Typespec();
  - if (tps == nullptr)
  - return result;
  + if (tps == nullptr) return result;
  if (tps->UhdmType() == uhdmpacked_array_typespec) {
  vars = s.MakeAnyVec();
  const packed_array_typespec* atps = (const packed_array_typespec*)tps;
  if (atps->Ranges()) {
  for (auto range : *atps->Ranges()) {
  bool invalidValue = false;
  - uint64_t r1 = get_value(invalidValue, reduceExpr((any*) range->Left_expr(), invalidValue, component, compileDesign,
  - instance, range->Left_expr()->VpiFile(), range->Left_expr()->VpiLineNo(), nullptr));
  - uint64_t r2 = get_value(invalidValue, reduceExpr((any*) range->Right_expr(), invalidValue, component, compileDesign,
  - instance, range->Right_expr()->VpiFile(), range->Right_expr()->VpiLineNo(), nullptr));
  + uint64_t r1 = get_value(
  + invalidValue,
  + reduceExpr((any*)range->Left_expr(), invalidValue, component,
  + compileDesign, instance, range->Left_expr()->VpiFile(),
  + range->Left_expr()->VpiLineNo(), nullptr));
  + uint64_t r2 =
  + get_value(invalidValue,
  + reduceExpr((any*)range->Right_expr(), invalidValue,
  + component, compileDesign, instance,
  + range->Right_expr()->VpiFile(),
  + range->Right_expr()->VpiLineNo(), nullptr));
  size *= (r1 > r2) ? (r1 - r2 + 1) : (r2 - r1 + 1);
  }
  }
  @@ -3117,8 +3123,11 @@ UHDM::expr* CompileHelper::expandPatternAssignment(UHDM::expr* lhs,
  const typespec* tps = tp->Typespec();
  if (tps->VpiName() == "default") {
  bool invalidValue = false;
  - int val = get_value(invalidValue, reduceExpr((any*) tp->Pattern(), invalidValue, component, compileDesign,
  - instance, tp->Pattern()->VpiFile(), tp->Pattern()->VpiLineNo(), nullptr));
  + int val = get_value(
  + invalidValue,
  + reduceExpr((any*)tp->Pattern(), invalidValue, component,
  + compileDesign, instance, tp->Pattern()->VpiFile(),
  + tp->Pattern()->VpiLineNo(), nullptr));
  for (unsigned int i = 0; i < size; i++) {
  values[i] = val;
  }
  