Opened 15 years ago

Last modified 15 years ago

#1209 closed defect (fixed)

Backend: pre() does not work for aliased variables

Reported by: Martin Sjölund Owned by: Martin Sjölund
Priority: high Milestone:
Component: Simulation Code Generation Version: 1.6.0
Keywords: Cc: Martin Sjölund, Martin Sjölund

Description

Should be simple enough to fix.

The C-code generated is: tmp1 = pre((-time));
But should be: tmp1 = -pre(time);

{{{class A

Real a = time;
Real b = -a;
Real c;

equation

when sample(0.1,0.1) then

c = a+pre(b);

end when;

end A;}}}

Change History (0)

Note: See TracTickets for help on using tickets.