Changes between Initial Version and Version 1 of Ticket #2874


Ignore:
Timestamp:
2014-10-09T11:57:47Z (11 years ago)
Author:
Martin Sjölund
Comment:

The for-loops are currently translated into nested loops, making this require substantial changes to the DAE

model M
  Real r(start=0);
algorithm
  for i in 1:20, j in 1:30 loop
    r := r + i + j;
  end for;
end M;

=>

class M
  Real r(start = 0.0);
algorithm
  for i in 1:20 loop
    for j in 1:30 loop
      r := r + /*Real*/(i) + /*Real*/(j);
    end for;
  end for;
end M;

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2874 – Description

    initial v1  
    55end for;
    66}}}
     7=>
     8{{{#!mo
     9class M
     10  Real r(start = 0.0);
     11algorithm
     12  for i in 1:20 loop
     13    for j in 1:30 loop
     14      r := r + /*Real*/(i) + /*Real*/(j);
     15    end for;
     16  end for;
     17end M;
     18}}}