Get rid of the warning about ignoring the return value of fgets
[cloog.git] / test / gauss.good.c
blobfb1939d93478dac236be94c93fdf29666d70c66f
1 /* Generated from ../../../git/cloog/test/gauss.cloog by CLooG 0.14.0-72-gefe2fc2 gmp bits in 0.01s. */
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); }
13 void test(int M)
15 /* Scattering iterators. */
16 int c1, c2;
17 /* Original iterators. */
18 int i, j, k;
19 if (M >= 2) {
20 for (c2=2;c2<=M;c2++) {
21 for (j=2;j<=M;j++) {
22 S2(1,j,c2) ;
26 for (c1=2;c1<=M-1;c1++) {
27 for (c2=c1+1;c2<=M;c2++) {
28 for (j=1;j<=c1-1;j++) {
29 S1(c1,j,c2) ;
31 for (j=c1+1;j<=M;j++) {
32 S2(c1,j,c2) ;