Skip to content

Commit

Permalink
- fixed for loop evaluation for ASUBs
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@20578 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Volker Waurich committed May 13, 2014
1 parent c093568 commit 74f94a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Compiler/BackEnd/EvaluateFunctions.mo
Expand Up @@ -1509,8 +1509,9 @@ algorithm
// at least remove the replacements for the lhs
lhsExps = List.fold1(stmts1,getStatementLHSScalar,funcTree,{});
lhsExps = List.unique(lhsExps);
lhsExpLst = List.map(lhsExps,Expression.getComplexContents); //consider arrays
lhsExpLst = List.map(lhsExps,Expression.getComplexContents); //consider arrays etc.
lhsExps = listAppend(List.flatten(lhsExpLst),lhsExps);
lhsExps = List.filterOnTrue(lhsExps,Expression.isCref); //remove e.g. ASUBs and consider only the scalar subs
outputs = List.map(lhsExps,Expression.expCref);
repl = Debug.bcallret3(true, BackendVarTransform.removeReplacements,replIn,outputs,NONE(),replIn);

Expand Down

0 comments on commit 74f94a2

Please sign in to comment.