summaryrefslogtreecommitdiff
path: root/omega/examples/old_test/m9.oc-rt
blob: c331a0c82eced1f4bf30c07580dbe93fc4a56dd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
>>> IS:={[i,j]: 1 <= i,j <= 9};
>>> T1:={[i,j]->[2j,i,0]};
>>> T2:={[i,j]->[2j,i,1]};
>>> codegen T1:IS,T2:IS;
for(t1 = 2; t1 <= 18; t1 += 2) {
  for(t2 = 1; t2 <= 9; t2++) {
    s1(t2,intDiv(t1,2));
    s2(t2,intDiv(t1,2));
  }
}

>>> codegen 2 T1:IS,T2:IS;
for(t1 = 2; t1 <= 18; t1 += 2) {
  for(t2 = 1; t2 <= 9; t2++) {
    s1(t2,intDiv(t1,2));
    s2(t2,intDiv(t1,2));
  }
}