1/* Generated from ../../../git/cloog/test/gauss.cloog by CLooG 0.14.0-72-gefe2fc2 gmp bits in 0.01s. */
2extern void hash(int);
3
4/* Useful macros. */
5#define floord(n,d) (((n)<0) ? -((-(n)+(d)-1)/(d)) : (n)/(d))
6#define ceild(n,d)  (((n)<0) ? -((-(n))/(d)) : ((n)+(d)-1)/(d))
7#define max(x,y)    ((x) > (y) ? (x) : (y))
8#define min(x,y)    ((x) < (y) ? (x) : (y))
9
10#define S1(i,j,k) { hash(1); hash(i); hash(j); hash(k); }
11#define S2(i,j,k) { hash(2); hash(i); hash(j); hash(k); }
12
13void test(int M)
14{
15  /* Scattering iterators. */
16  int c1, c2;
17  /* Original iterators. */
18  int i, j, k;
19  if (M >= 2) {
20    for (c2=2;c2<=M;c2++) {
21      for (j=2;j<=M;j++) {
22        S2(1,j,c2) ;
23      }
24    }
25  }
26  for (c1=2;c1<=M-1;c1++) {
27    for (c2=c1+1;c2<=M;c2++) {
28      for (j=1;j<=c1-1;j++) {
29        S1(c1,j,c2) ;
30      }
31      for (j=c1+1;j<=M;j++) {
32        S2(c1,j,c2) ;
33      }
34    }
35  }
36}
37