Skip to content

Commit

Permalink
- Remove the last expressionsimplify fixpoint iterations reached in t…
Browse files Browse the repository at this point in the history
…he testsuite

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@10610 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Nov 30, 2011
1 parent 363b450 commit 17c7503
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Compiler/FrontEnd/Expression.mo
Expand Up @@ -2074,6 +2074,8 @@ algorithm
local
DAE.Exp e1,e2,e;
ComponentRef cr;
Real r;
Boolean b;
case (DAE.BINARY(exp1 = e1,operator = DAE.MUL(ty = _),exp2 = e2),acc,noFactors,doInverseFactors)
equation
acc = factorsWork(e1,acc,true,doInverseFactors);
Expand All @@ -2092,14 +2094,18 @@ algorithm
equation
e = Debug.bcallret1(doInverseFactors, inverseFactors, e, e);
then e::acc;
case ((e as DAE.ICONST(integer = 1)),acc,noFactors,doInverseFactors)
then acc;
case ((e as DAE.ICONST(integer = _)),acc,noFactors,doInverseFactors)
equation
e = Debug.bcallret1(doInverseFactors, inverseFactors, e, e);
then e::acc;
case ((e as DAE.RCONST(real = _)),acc,noFactors,doInverseFactors)
case ((e as DAE.RCONST(real = r)),acc,noFactors,doInverseFactors)
equation
e = Debug.bcallret1(doInverseFactors, inverseFactors, e, e);
then e::acc;
b = not realEq(r,1.0);
e = Debug.bcallret1(b and doInverseFactors, inverseFactors, e, e);
acc = List.consOnTrue(b, e, acc);
then acc;
case ((e as DAE.SCONST(string = _)),acc,noFactors,doInverseFactors)
equation
e = Debug.bcallret1(doInverseFactors, inverseFactors, e, e);
Expand Down

0 comments on commit 17c7503

Please sign in to comment.