Skip to content

Commit

Permalink
- Exp.mo
Browse files Browse the repository at this point in the history
  - try to simplify exp in ASUB in simplifyAsub if all other cases not true

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5834 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Jul 8, 2010
1 parent f48be22 commit c95244d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Compiler/Exp.mo
Expand Up @@ -4029,8 +4029,11 @@ algorithm
e1_1 = simplifyAsub(e1, indx);
e2_1 = simplifyAsub(e2, indx);
then DAE.IFEXP(cond,e1_1,e2_1);

case(e,indx) then DAE.ASUB(e, {DAE.ICONST(indx)});

case(e,indx)
equation
e1 = simplify1(e);
then DAE.ASUB(e1, {DAE.ICONST(indx)});
end matchcontinue;
end simplifyAsub;

Expand Down

0 comments on commit c95244d

Please sign in to comment.