Add a source-2-source compiler example to the documentation
[cloog.git] / test / block.good.c
blobb2f280f9cf96fe6086a83e3ded3fa85858fa7294
1 /* Generated from /home/skimo/git/cloog/test/block.cloog by CLooG 0.14.0-170-g72daac3 gmp bits in 0.00s. */
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() { hash(1); }
11 #define S2() { hash(2); }
12 #define S3(i) { hash(3); hash(i); }
14 void test()
16 /* Scattering iterators. */
17 int c1;
18 /* Original iterators. */
19 int i;
20 S1();
21 S3(0);
22 S2();
23 S3(1);