Opened 14 years ago

Last modified 9 years ago

#1552 assigned defect

Optimize algorithm sections whenever possible — at Version 1

Reported by: Martin Sjölund Owned by: Martin Sjölund
Priority: high Milestone: Future
Component: Backend Version:
Keywords: Cc: Martin Sjölund, Lennart Ochel

Description (last modified by Martin Sjölund)

This should generate an alias-equation x = y

model M
  Real x;
  Real y = sqrt(time);
algorithm
  x := y;
end M;

The only thing we really need to think about is that the causality of the algorithm outputs should never change. It does not mean we cannot optimize them (we inline functions after all).

Change History (1)

comment:1 by Martin Sjölund, 11 years ago

Cc: Frenkel TUD added; Jens Frenkel removed
Description: modified (diff)
Note: See TracTickets for help on using tickets.