1/* Generated from ../../../git/cloog/test/constant.cloog by CLooG 0.14.0-333-g4442dac 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) { hash(1); hash(i); }
11#define S2(i) { hash(2); hash(i); }
12#define S3(i) { hash(3); hash(i); }
13#define S4(i) { hash(4); hash(i); }
14#define S5(i) { hash(5); hash(i); }
15#define S6(i) { hash(6); hash(i); }
16
17void test(int M)
18{
19  /* Scattering iterators. */
20  int c1, c2;
21  /* Original iterators. */
22  int i;
23  for (c2=0;c2<=min(1023,M+1024);c2++) {
24    S1(c2);
25    S3(c2);
26  }
27  for (c2=max(0,M+1025);c2<=1023;c2++) {
28    S2(c2);
29    S3(c2);
30  }
31  for (c1=0;c1<=min(1023,M+1024);c1++) {
32    S4(c1);
33    S6(c1);
34  }
35  for (c1=max(0,M+1025);c1<=1023;c1++) {
36    S5(c1);
37    S6(c1);
38  }
39}
40