Get rid of the warning about ignoring the return value of fgets
[cloog.git] / test / gesced2.good.c
blob669093acec05cbe7905418de9143a21b5f00fd6b
1 /* Generated from ../../../git/cloog/test/gesced2.cloog by CLooG 0.14.0-72-gefe2fc2 gmp bits in 0.04s. */
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(int M)
15 /* Scattering iterators. */
16 int c1, c2;
17 /* Original iterators. */
18 int i, j;
19 for (c1=1;c1<=4;c1++) {
20 for (c2=5;c2<=M-10;c2++) {
21 S1(c1,c2) ;
24 for (c1=5;c1<=min(M-10,9);c1++) {
25 for (c2=-c1+1;c2<=4;c2++) {
26 i = c1+c2 ;
27 S2(c1+c2,c1) ;
29 for (c2=5;c2<=M-10;c2++) {
30 S1(c1,c2) ;
31 i = c1+c2 ;
32 S2(c1+c2,c1) ;
34 for (c2=M-9;c2<=-c1+M;c2++) {
35 i = c1+c2 ;
36 S2(c1+c2,c1) ;
39 if (M >= 20) {
40 for (c2=-9;c2<=4;c2++) {
41 i = c2+10 ;
42 S2(c2+10,10) ;
44 for (c2=5;c2<=M-10;c2++) {
45 S1(10,c2) ;
46 i = c2+10 ;
47 S2(c2+10,10) ;
50 for (c1=11;c1<=M-10;c1++) {
51 for (c2=-c1+1;c2<=4;c2++) {
52 i = c1+c2 ;
53 S2(c1+c2,c1) ;
55 for (c2=5;c2<=-c1+M;c2++) {
56 S1(c1,c2) ;
57 i = c1+c2 ;
58 S2(c1+c2,c1) ;
60 for (c2=-c1+M+1;c2<=M-10;c2++) {
61 S1(c1,c2) ;
64 for (c1=M-9;c1<=M;c1++) {
65 for (c2=5;c2<=M-10;c2++) {
66 S1(c1,c2) ;