Skip to content

Commit

Permalink
- add case if-expr = cref in Exp.solve as is a mirror of cref = if-expr.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5469 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed May 7, 2010
1 parent 4c25a04 commit a666545
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Compiler/Exp.mo
Expand Up @@ -9254,8 +9254,16 @@ algorithm
rhs = solve(lhs,e2,cr);
res = solve(lhs,e3,cr);
res_1 = simplify1(DAE.IFEXP(e1,rhs,res));
then
res_1;
then
res_1;

case (DAE.IFEXP(e1,e2,e3),rhs,(cr as DAE.CREF(componentRef = _)))
equation
lhs = solve(rhs,e2,cr);
res = solve(rhs,e3,cr);
res_1 = simplify1(DAE.IFEXP(e1,rhs,res));
then
res_1;

case (e1,e2,e3)
equation
Expand Down

0 comments on commit a666545

Please sign in to comment.