CLooG 0.18.4
[cloog.git] / test / durbin_e_s.good.c
blobf96d006b7d55f096f89c433ed71af3cdd16e35b2
1 /* Generated from ../../../git/cloog/test/durbin_e_s.cloog by CLooG 0.14.0-72-gefe2fc2 gmp bits in 0.05s. */
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) { hash(1); hash(i); hash(j); hash(k); }
11 #define S2(i,j,k) { hash(2); hash(i); hash(j); hash(k); }
12 #define S3(i,j,k) { hash(3); hash(i); hash(j); hash(k); }
13 #define S4(i,j,k) { hash(4); hash(i); hash(j); hash(k); }
14 #define S5(i,j,k) { hash(5); hash(i); hash(j); hash(k); }
15 #define S6(i,j,k) { hash(6); hash(i); hash(j); hash(k); }
16 #define S7(i,j,k) { hash(7); hash(i); hash(j); hash(k); }
17 #define S8(i,j,k) { hash(8); hash(i); hash(j); hash(k); }
19 void test()
21 /* Original iterators. */
22 int i, j, k;
23 S4(1,0,0) ;
24 S7(1,0,0) ;
25 S8(1,0,3) ;
26 S2(2,-7,0) ;
27 S3(2,-7,1) ;
28 S6(2,-7,2) ;
29 S8(2,0,3) ;
30 S5(2,1,3) ;
31 S2(3,-7,0) ;
32 S3(3,-7,1) ;
33 S3(3,-6,1) ;
34 S6(3,-6,2) ;
35 S8(3,0,3) ;
36 for (j=1;j<=2;j++) {
37 S5(3,j,3) ;
39 for (i=4;i<=8;i++) {
40 S2(i,-7,0) ;
41 S3(i,-7,1) ;
42 for (j=-6;j<=i-10;j++) {
43 S3(i,j,1) ;
45 j = i-9 ;
46 S3(i,i-9,1) ;
47 S6(i,i-9,2) ;
48 S8(i,0,3) ;
49 for (j=1;j<=i-1;j++) {
50 S5(i,j,3) ;
53 S2(9,-7,0) ;
54 S3(9,-7,1) ;
55 for (j=-6;j<=-1;j++) {
56 S3(9,j,1) ;
58 S3(9,0,1) ;
59 S6(9,0,2) ;
60 S8(9,0,3) ;
61 for (j=1;j<=8;j++) {
62 S5(9,j,3) ;
64 S2(10,-7,0) ;
65 S3(10,-7,1) ;
66 for (j=-6;j<=0;j++) {
67 S3(10,j,1) ;
69 S3(10,1,1) ;
70 S6(10,1,2) ;
71 S5(10,1,3) ;
72 S1(10,1,4) ;
73 for (j=2;j<=9;j++) {
74 S5(10,j,3) ;
75 S1(10,j,4) ;
77 S1(10,10,4) ;