summaryrefslogtreecommitdiff
path: root/test/reservoir/mg-resid.c.ppl
blob: 9c9dd4e1b29a55db4c104eb721b12c679d491d86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* Generated from ././reservoir/mg-resid.cloog by CLooG 0.15 64 bits in 0.07s. */
if ((M >= 3) && (N >= 4)) {
  for (c2=2;c2<=O-1;c2++) {
    for (c6=1;c6<=M;c6++) {
      S1(i = c2,j = 2,k = c6) ;
      S2(i = c2,j = 2,k = c6) ;
    }
    for (c4=4;c4<=2*N-3;c4++) {
      for (c6=1;c6<=M;c6++) {
        if ((c4+1)%2 == 0) {
          j = (c4+1)/2 ;
          S1(i = c2,k = c6) ;
          S2(i = c2,k = c6) ;
        }
      }
      for (c6=2;c6<=M-1;c6++) {
        if (c4%2 == 0) {
          S3(i = c2,j = c4/2,k = c6) ;
        }
      }
    }
    c4 = 2*N-2 ;
    for (c6=2;c6<=M-1;c6++) {
      j = N-1 ;
      S3(i = c2,k = c6) ;
    }
  }
}
if ((M >= 3) && (N == 3)) {
  for (c2=2;c2<=O-1;c2++) {
    for (c6=1;c6<=M;c6++) {
      S1(i = c2,j = 2,k = c6) ;
      S2(i = c2,j = 2,k = c6) ;
    }
    for (c6=2;c6<=M-1;c6++) {
      S3(i = c2,j = 2,k = c6) ;
    }
  }
}
if ((M >= 1) && (M <= 2) && (N >= 3)) {
  for (c2=2;c2<=O-1;c2++) {
    for (c4=3;c4<=2*N-3;c4++) {
      for (c6=1;c6<=M;c6++) {
        if ((c4+1)%2 == 0) {
          j = (c4+1)/2 ;
          S1(i = c2,k = c6) ;
          S2(i = c2,k = c6) ;
        }
      }
    }
  }
}