Skip to content

Commit

Permalink
- Fixing bug in VarTransform when using DAE.ASUB
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@16594 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Leonardo Laguna committed Jul 15, 2013
1 parent e1ae03f commit 69aa46d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Compiler/Util/VarTransform.mo
Expand Up @@ -1566,8 +1566,9 @@ algorithm
case ((e as DAE.ASUB(exp = e1,sub = expl)),repl,cond)
equation
true = replaceExpCond(cond, e);
(e1_1,true) = replaceExp(e1, repl, cond);
(expl_1,true) = replaceExpList(expl, repl, cond, {}, false);
(e1_1,c1) = replaceExp(e1, repl, cond);
(expl_1,c2) = replaceExpList(expl, repl, cond, {}, false);
true = c1 or c2;
then
(Expression.makeASUB(e1_1,expl_1),true);
case ((e as DAE.SIZE(exp = e1,sz = NONE())),repl,cond)
Expand Down

0 comments on commit 69aa46d

Please sign in to comment.