Changeset f67dc27f in OpenModelica


Ignore:
Timestamp:
2013-12-16T15:03:22+01:00 (10 years ago)
Author:
Per Östlund <per.ostlund@…>
Branches:
Added-citation-metadata, maintenance/v1.14, maintenance/v1.15, maintenance/v1.16, maintenance/v1.17, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, maintenance/v1.23, master, omlib-staging
Children:
b212460
Parents:
d5bef05
Message:
  • Fixed simplification rule |e1| op |e2| => |e1 op e2| (was => |e1 * e2|).

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18494 f25d12d1-65f4-0310-ae8a-bbce733d8d8e

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Compiler/FrontEnd/ExpressionSimplify.mo

    r9b6274ac rf67dc27f  
    38373837        true = Expression.operatorEqual(op2,DAE.DIV(ty)) or
    38383838        Expression.operatorEqual(op2,DAE.MUL(ty));
    3839         res = DAE.BINARY(e1, DAE.MUL(ty),e2);
     3839        res = DAE.BINARY(e1, op2, e2);
    38403840      then Expression.makeBuiltinCall("abs",{res},ty);
    38413841
Note: See TracChangeset for help on using the changeset viewer.