@@ -431,6 +431,13 @@ algorithm
431431 (stmts,_) = DAEUtil . traverseDAEEquationsStmts(stmts,Expression . traverseSubexpressionsHelper,(Expression . replaceCref,(cr,e)));
432432 ht = List . fold(stmts,statementOutputs,iht);
433433 then ht;
434+ case (DAE . STMT_PARFOR (type_= tp, iter = iteratorName, range = e, statementLst = stmts),_)
435+ equation
436+ // replace the iterator variable with the range expression
437+ cr = ComponentReference . makeCrefIdent(iteratorName, tp, {});
438+ (stmts,_) = DAEUtil . traverseDAEEquationsStmts(stmts,Expression . traverseSubexpressionsHelper,(Expression . replaceCref,(cr,e)));
439+ ht = List . fold(stmts,statementOutputs,iht);
440+ then ht;
434441 case (DAE . STMT_WHILE (statementLst = stmts),_)
435442 equation
436443 ht = List . fold(stmts,statementOutputs,iht);
@@ -452,6 +459,7 @@ algorithm
452459 case (DAE . STMT_NORETCALL (exp = _),_) then iht;
453460 case (DAE . STMT_RETURN (_),_) then iht;
454461 case (DAE . STMT_BREAK (_),_) then iht;
462+ case (DAE . STMT_ARRAY_INIT (name= _),_) then iht;
455463 // MetaModelica extension. KS
456464 case (DAE . STMT_FAILURE (body = stmts),_)
457465 equation
0 commit comments