Opened 12 months ago

Last modified 12 months ago

#5701 assigned defect

Common subexpression elimination in if branches

Reported by: Jonathan Kämpe Owned by: Jonathan Kämpe
Priority: major Milestone:
Component: Modelica/FrontEnd Version: trunk
Keywords: Cc:


Common subexpression elimination should not be performed in if expression branches. Extracting the expressions into new equations causes them to be evaluated outside of the branch conditions which is wrong in some cases.

Change History (1)

comment:1 Changed 12 months ago by Jonathan Kämpe

r11943 Fixed bug in common subexpression elimination.

Note: See TracTickets for help on using tickets.