summaryrefslogtreecommitdiff
path: root/cloog-core/test/reservoir/mg-resid.c
blob: 89a3cdaf1a65d39c1db3b0c76895dda179dd8af1 (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
/* Generated from /home/skimo/git/cloog/test/./reservoir/mg-resid.cloog by CLooG 0.14.0-284-ga90f184 gmp bits in 0.03s. */
if ((M >= 1) && (N >= 3) && (O >= 3)) {
  if (M >= 3) {
    for (c2=2;c2<=O-1;c2++) {
      for (c6=1;c6<=M;c6++) {
        S1(c2,2,c6);
        S2(c2,2,c6);
      }
      for (c4=4;c4<=2*N-3;c4++) {
        for (c6=1;c6<=M;c6++) {
          if ((c4+1)%2 == 0) {
            S1(c2,(c4+1)/2,c6);
            S2(c2,(c4+1)/2,c6);
          }
        }
        for (c6=2;c6<=M-1;c6++) {
          if (c4%2 == 0) {
            S3(c2,c4/2,c6);
          }
        }
      }
      for (c6=2;c6<=M-1;c6++) {
        S3(c2,N-1,c6);
      }
    }
  }
  if (M <= 2) {
    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) {
            S1(c2,(c4+1)/2,c6);
            S2(c2,(c4+1)/2,c6);
          }
        }
      }
    }
  }
}