Skip to content

Commit

Permalink
Apply inline to for-equations as well
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranke authored and OpenModelica-Hudson committed Nov 7, 2018
1 parent 2b8ffc9 commit d4e9036
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Compiler/BackEnd/BackendInline.mo
Expand Up @@ -195,6 +195,7 @@ algorithm
Boolean b1,b2,b3;
DAE.Expand crefExpand;
BackendDAE.EquationAttributes attr;
BackendDAE.Equation eqn;

case(BackendDAE.EQUATION(e1,e2,source,attr),_)
equation
Expand All @@ -212,6 +213,12 @@ algorithm
then
(BackendDAE.ARRAY_EQUATION(dimSize,e1_1,e2_1,source,attr),true);

case(BackendDAE.FOR_EQUATION(e, e1, e2, eqn, source, attr), _)
equation
(eqn, true) = inlineEq(eqn, fns);
then
(BackendDAE.FOR_EQUATION(e, e1, e2, eqn, source, attr), true);

case(BackendDAE.SOLVED_EQUATION(cref,e,source,attr),_)
equation
(e_1,source,true,_) = Inline.inlineExp(e,fns,source);
Expand Down

0 comments on commit d4e9036

Please sign in to comment.