/* Generated from foo.cloog by CLooG 0.14.0-309-g4a19d7b gmp bits in 0.02s. */ /* DON'T FORGET TO USE -lm OPTION TO COMPILE. */ /* Useful headers. */ #include #include #include /* Parameter value. */ /* Useful macros. */ #define floord(n,d) (((n)<0) ? -((-(n)+(d)-1)/(d)) : (n)/(d)) #define ceild(n,d) (((n)<0) ? -((-(n))/(d)) : ((n)+(d)-1)/(d)) #define max(x,y) ((x) > (y) ? (x) : (y)) #define min(x,y) ((x) < (y) ? (x) : (y)) /* Statement macros (please set). */ #define S1(i,j) {total++; printf("S1 %d %d\n",i,j);} #define S2(i,j,k) {total++; printf("S2 %d %d %d\n",i,j,k);} #define S3(i,j) {total++; printf("S3 %d %d\n",i,j);} #define S4(i,j) {total++; printf("S4 %d %d\n",i,j);} int main() { /* Scattering iterators. */ int c2; /* Original iterators. */ int i, j, k; int total=0; S1(0,0); for (c2=0;c2<=9;c2++) { S2(0,0,c2); } for (c2=10;c2<=1320;c2++) { if (c2%121 <= 110) { i = floord(c2,121); if (c2%11 == 0) { S1(i,(c2-121*i)/11); } } i = floord(c2,121); j = floord(c2-121*i,11); S2(i,j,c2-121*i-11*j); if ((c2+111)%121 <= 110) { i = floord(c2-10,121); if ((c2+1)%11 == 0) { S3(i,(c2-121*i-10)/11); S4(i,(c2-121*i-10)/11); } } } for (c2=1321;c2<=1330;c2++) { S2(10,10,c2-1320); } S3(10,10); S4(10,10); printf("Number of integral points: %d.\n",total); return 0; }