Skip to content

Commit

Permalink
Expected result for preservation of for loops
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranke authored and OpenModelica-Hudson committed Oct 1, 2018
1 parent a4010f6 commit 62c7358
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions flattening/modelica/scodeinst/VectorTest.mo
Expand Up @@ -76,16 +76,9 @@ end VT;
// output Real y2;
// equation
// when Clock() then
// x1[1] = previous(x1[1]) + u[1];
// x1[2] = previous(x1[2]) + u[2];
// x1[3] = previous(x1[3]) + u[3];
// x1[4] = previous(x1[4]) + u[4];
// x1[5] = previous(x1[5]) + u[5];
// x1[6] = previous(x1[6]) + u[6];
// x1[7] = previous(x1[7]) + u[7];
// x1[8] = previous(x1[8]) + u[8];
// x1[9] = previous(x1[9]) + u[9];
// x1[10] = previous(x1[10]) + u[10];
// for i in 1:10 loop
// x1[i] = previous(x1[i]) + u[i];
// end for;
// x2 = VectorTest.myfor(u, previous(x2));
// end when;
// y0 = sum(u);
Expand Down

0 comments on commit 62c7358

Please sign in to comment.