Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit ce3522c

Browse files
hkielOpenModelica-Hudson
authored andcommitted
workaround for PNLib
in PNlib the LBINARY expression "{} and not {}" must be handled and should not be simplified to "false" by ExpressionSimplify.simplifyLBinary Belonging to [master]: - #2034
1 parent 6f71dc5 commit ce3522c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Compiler/FrontEnd/ExpressionSimplify.mo

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4777,6 +4777,11 @@ algorithm
47774777
Real r;
47784778
Option<DAE.Exp> oexp;
47794779

4780+
// fix for PNLib where "{} and not {}" is evaluated
4781+
case (_,_,DAE.ARRAY(array={}),_)
4782+
then origExp;
4783+
case (_,_,_,DAE.ARRAY(array={}))
4784+
then origExp;
47804785
// a AND not a -> false
47814786
case (_,DAE.AND(_),e1,DAE.LUNARY(DAE.NOT(_),e2))
47824787
guard Expression.expEqual(e1, e2)

0 commit comments

Comments
 (0)