Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit d4e9036

Browse files
rfrankeOpenModelica-Hudson
authored andcommitted
Apply inline to for-equations as well
Belonging to [master]: - #2768 - OpenModelica/OpenModelica-testsuite#1070
1 parent 2b8ffc9 commit d4e9036

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Compiler/BackEnd/BackendInline.mo

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ algorithm
195195
Boolean b1,b2,b3;
196196
DAE.Expand crefExpand;
197197
BackendDAE.EquationAttributes attr;
198+
BackendDAE.Equation eqn;
198199

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

216+
case(BackendDAE.FOR_EQUATION(e, e1, e2, eqn, source, attr), _)
217+
equation
218+
(eqn, true) = inlineEq(eqn, fns);
219+
then
220+
(BackendDAE.FOR_EQUATION(e, e1, e2, eqn, source, attr), true);
221+
215222
case(BackendDAE.SOLVED_EQUATION(cref,e,source,attr),_)
216223
equation
217224
(e_1,source,true,_) = Inline.inlineExp(e,fns,source);

0 commit comments

Comments
 (0)