Fix include directory for libcloog-isl
[cloog/bastoul.git] / test / reservoir / lim-lam1.good.c
blobcd6faf722ac6806bb8b580fceceda1d55bec0a43
1 /* Generated from ../../../git/cloog/test/./reservoir/lim-lam1.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) { hash(1); hash(i); hash(j); }
11 #define S2(i,j) { hash(2); hash(i); hash(j); }
13 void test()
15 /* Scattering iterators. */
16 int c2, c4;
17 /* Original iterators. */
18 int i, j;
19 S1(1,100) ;
20 for (c2=-98;c2<=0;c2++) {
21 c4 = -2*c2+2 ;
22 j = -c2+1 ;
23 S1(1,-c2+1) ;
24 for (c4=-2*c2+3;c4<=199;c4++) {
25 if (c4%2 == 0) {
26 i = (2*c2+c4)/2 ;
27 S1((2*c2+c4)/2,c4/2) ;
29 if ((c4+1)%2 == 0) {
30 i = (2*c2+c4-1)/2 ;
31 j = (c4+1)/2 ;
32 S2((2*c2+c4-1)/2,(c4+1)/2) ;
35 i = c2+100 ;
36 S1(c2+100,100) ;
38 for (c2=1;c2<=99;c2++) {
39 S2(c2,1) ;
40 for (c4=2;c4<=-2*c2+200;c4++) {
41 if (c4%2 == 0) {
42 i = (2*c2+c4)/2 ;
43 S1((2*c2+c4)/2,c4/2) ;
45 if ((c4+1)%2 == 0) {
46 i = (2*c2+c4-1)/2 ;
47 j = (c4+1)/2 ;
48 S2((2*c2+c4-1)/2,(c4+1)/2) ;
51 c4 = -2*c2+201 ;
52 j = -c2+101 ;
53 S2(100,-c2+101) ;
55 S2(100,1) ;