Fix include directory for libcloog-isl
[cloog/bastoul.git] / test / reservoir / tang-xue1.good.c
blob1c4215cb46b969c1fd72e58ddd2942f8719620da
1 /* Generated from ../../../git/cloog/test/./reservoir/tang-xue1.cloog by CLooG 0.14.0-72-gefe2fc2 gmp bits in 0.02s. */
2 extern void hash(int);
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))
10 #define S1(i,j,k,l) { hash(1); hash(i); hash(j); hash(k); hash(l); }
12 void test()
14 /* Scattering iterators. */
15 int c2, c4, c6, c8;
16 /* Original iterators. */
17 int i, j, k, l;
18 for (c2=0;c2<=9;c2++) {
19 for (c4=max(-1,c2-9);c4<=min(4,c2+3);c4++) {
20 for (c6=max(max(c2,1),c2-c4);c6<=min(min(c2+1,9),c2-c4+4);c6++) {
21 for (c8=max(1,-c2+c4+c6);c8<=min(4,-c2+c4+c6+1);c8++) {
22 if (c2%2 == 0) {
23 if ((c2+c4)%2 == 0) {
24 j = (-c2+c4)/2 ;
25 k = -c2+c6 ;
26 l = -c4+c8 ;
27 S1(c2/2,(-c2+c4)/2,-c2+c6,-c4+c8) ;