Opened 7 years ago

Closed 7 years ago

#4847 closed defect (fixed)

Possible ExpressionSimplify error

Reported by: johti139@… Owned by: Per Östlund
Priority: normal Milestone: Future
Component: Frontend Version:
Keywords: DAE, ExpressionSimplify Cc: Martin Sjölund

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 by Per Östlund, 7 years ago

Owner: changed from somebody to Per Östlund
Status: newassigned

comment:2 by Per Östlund, 7 years ago

Fixed in d4bea6d, along with several similar issues.

comment:3 by Per Östlund, 7 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.