1/* Generated from ../../../git/cloog/test/gesced2.cloog by CLooG 0.14.0-72-gefe2fc2 gmp bits in 0.04s. */ 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) { hash(1); hash(i); hash(j); } 11#define S2(i,j) { hash(2); hash(i); hash(j); } 12 13void test(int M) 14{ 15 /* Scattering iterators. */ 16 int c1, c2; 17 /* Original iterators. */ 18 int i, j; 19 for (c1=1;c1<=4;c1++) { 20 for (c2=5;c2<=M-10;c2++) { 21 S1(c1,c2) ; 22 } 23 } 24 for (c1=5;c1<=min(M-10,9);c1++) { 25 for (c2=-c1+1;c2<=4;c2++) { 26 i = c1+c2 ; 27 S2(c1+c2,c1) ; 28 } 29 for (c2=5;c2<=M-10;c2++) { 30 S1(c1,c2) ; 31 i = c1+c2 ; 32 S2(c1+c2,c1) ; 33 } 34 for (c2=M-9;c2<=-c1+M;c2++) { 35 i = c1+c2 ; 36 S2(c1+c2,c1) ; 37 } 38 } 39 if (M >= 20) { 40 for (c2=-9;c2<=4;c2++) { 41 i = c2+10 ; 42 S2(c2+10,10) ; 43 } 44 for (c2=5;c2<=M-10;c2++) { 45 S1(10,c2) ; 46 i = c2+10 ; 47 S2(c2+10,10) ; 48 } 49 } 50 for (c1=11;c1<=M-10;c1++) { 51 for (c2=-c1+1;c2<=4;c2++) { 52 i = c1+c2 ; 53 S2(c1+c2,c1) ; 54 } 55 for (c2=5;c2<=-c1+M;c2++) { 56 S1(c1,c2) ; 57 i = c1+c2 ; 58 S2(c1+c2,c1) ; 59 } 60 for (c2=-c1+M+1;c2<=M-10;c2++) { 61 S1(c1,c2) ; 62 } 63 } 64 for (c1=M-9;c1<=M;c1++) { 65 for (c2=5;c2<=M-10;c2++) { 66 S1(c1,c2) ; 67 } 68 } 69} 70