Skip to content

Commit

Permalink
- added missing cases to ExpressionSimplify for Relations.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18124 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Willi Braun committed Nov 13, 2013
1 parent e588e20 commit 090241e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Compiler/FrontEnd/ExpressionSimplify.mo
Expand Up @@ -3451,6 +3451,12 @@ algorithm
case (DAE.GREATER(ty=_),_,_)
then not simplifyRelationConst(DAE.LESSEQ(DAE.T_REAL_DEFAULT),e1,e2);

case (DAE.GREATEREQ(ty=_),_,_)
then not simplifyRelationConst(DAE.LESS(DAE.T_REAL_DEFAULT),e1,e2);

case(DAE.GREATER(ty=_),DAE.BCONST(false),DAE.BCONST(true))
then not simplifyRelationConst(DAE.LESSEQ(DAE.T_REAL_DEFAULT),e1,e2);

case(DAE.GREATEREQ(ty=_),DAE.BCONST(false),DAE.BCONST(true))
then not simplifyRelationConst(DAE.LESS(DAE.T_REAL_DEFAULT),e1,e2);

Expand Down

0 comments on commit 090241e

Please sign in to comment.