Skip to content

Commit

Permalink
- fixed a + a = 2*a
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19723 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Vitalij Ruge committed Mar 24, 2014
1 parent ed42237 commit 281b5e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/FrontEnd/ExpressionSimplify.mo
Expand Up @@ -3968,7 +3968,7 @@ algorithm
then Expression.makeConstZero(ty);

// a + a = 2*a
case (_,DAE.SUB(ty = ty),e1,e2,_,_)
case (_,DAE.ADD(ty = ty),e1,e2,_,_)
equation
true = Expression.expEqual(e1,e2);
e = DAE.RCONST(2.0);
Expand Down

0 comments on commit 281b5e6

Please sign in to comment.