1/* Generated from ../../../git/cloog/test/yosr2.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) { hash(1); hash(i); hash(j); } 11#define S2(i) { hash(2); hash(i); } 12#define S3(i,j,k) { hash(3); hash(i); hash(j); hash(k); } 13#define S4(i,j) { hash(4); hash(i); hash(j); } 14 15void test(int M) 16{ 17 /* Scattering iterators. */ 18 int proc; 19 /* Original iterators. */ 20 int i, j, k; 21 for (i=1;i<=M;i++) { 22 S2(i) ; 23 } 24 for (proc=2;proc<=M-1;proc++) { 25 for (i=1;i<=proc-1;i++) { 26 S4(i,proc) ; 27 } 28 for (j=1;j<=proc-1;j++) { 29 S1(proc,j) ; 30 } 31 for (j=proc+1;j<=M;j++) { 32 for (k=1;k<=proc-1;k++) { 33 S3(proc,j,k) ; 34 } 35 } 36 } 37 for (i=1;i<=M-1;i++) { 38 S4(i,M) ; 39 } 40 for (j=1;j<=M-1;j++) { 41 S1(M,j) ; 42 } 43} 44