Get rid of the warning about ignoring the return value of fgets
[cloog.git] / test / constant.good.c
blobc94fc44de141b2efa618796f8cac4b9c79def5f8
1 /* Generated from ../../../git/cloog/test/constant.cloog by CLooG 0.14.0-333-g4442dac 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) { hash(1); hash(i); }
11 #define S2(i) { hash(2); hash(i); }
12 #define S3(i) { hash(3); hash(i); }
13 #define S4(i) { hash(4); hash(i); }
14 #define S5(i) { hash(5); hash(i); }
15 #define S6(i) { hash(6); hash(i); }
17 void test(int M)
19 /* Scattering iterators. */
20 int c1, c2;
21 /* Original iterators. */
22 int i;
23 for (c2=0;c2<=min(1023,M+1024);c2++) {
24 S1(c2);
25 S3(c2);
27 for (c2=max(0,M+1025);c2<=1023;c2++) {
28 S2(c2);
29 S3(c2);
31 for (c1=0;c1<=min(1023,M+1024);c1++) {
32 S4(c1);
33 S6(c1);
35 for (c1=max(0,M+1025);c1<=1023;c1++) {
36 S5(c1);
37 S6(c1);