Opened 6 years ago
Closed 6 years ago
#4847 closed defect (fixed)
Possible ExpressionSimplify error
Reported by: | johti139@… | Owned by: | perost |
---|---|---|---|
Priority: | normal | Milestone: | Future |
Component: | Frontend | Version: | |
Keywords: | DAE, ExpressionSimplify | Cc: | sjoelund.se |
Description
DAE seem to optimise
function integerArithmeticTest2 input Integer x; output Integer y; algorithm y := x + x +x; end integerArithmeticTest2;
To
function simpleTest.integerArithmeticTest2 input Integer x; output Integer y; algorithm y := 3.0 * x; end simpleTest.integerArithmeticTest2;
Leading to an implicit cast when converted into C-code.
Change History (3)
comment:1 Changed 6 years ago by perost
- Owner changed from somebody to perost
- Status changed from new to assigned
comment:2 Changed 6 years ago by perost
comment:3 Changed 6 years ago by perost
- Resolution set to fixed
- Status changed from assigned to closed
Note: See
TracTickets for help on using
tickets.
Fixed in d4bea6d, along with several similar issues.