Skip to content

Commit

Permalink
- Fixed simplification rule |e1| op |e2| => |e1 op e2| (was => |e1 * …
Browse files Browse the repository at this point in the history
…e2|).

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18494 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Dec 16, 2013
1 parent d5bef05 commit f67dc27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/FrontEnd/ExpressionSimplify.mo
Original file line number Diff line number Diff line change
Expand Up @@ -3836,7 +3836,7 @@ algorithm
ty = Expression.typeof(e1);
true = Expression.operatorEqual(op2,DAE.DIV(ty)) or
Expression.operatorEqual(op2,DAE.MUL(ty));
res = DAE.BINARY(e1, DAE.MUL(ty),e2);
res = DAE.BINARY(e1, op2, e2);
then Expression.makeBuiltinCall("abs",{res},ty);

// exp(e1) * exp(e2) => exp(e1 + e2)
Expand Down

0 comments on commit f67dc27

Please sign in to comment.