1 /* Generated from ../../../git/cloog/test/./reservoir/QR.cloog by CLooG 0.14.0-72-gefe2fc2 gmp bits in 0.27s. */
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,j) { hash(2); hash(i); hash(j); }
12 #define S3(i) { hash(3); hash(i); }
13 #define S4(i,j) { hash(4); hash(i); hash(j); }
14 #define S5(i) { hash(5); hash(i); }
15 #define S6(i,j) { hash(6); hash(i); hash(j); }
16 #define S7(i,j,k) { hash(7); hash(i); hash(j); hash(k); }
17 #define S8(i,j) { hash(8); hash(i); hash(j); }
18 #define S9(i,j,k) { hash(9); hash(i); hash(j); hash(k); }
19 #define S10(i) { hash(10); hash(i); }
21 void test(int M
, int N
)
23 /* Scattering iterators. */
25 /* Original iterators. */
27 if ((M
<= -1) && (N
>= 1)) {
30 if ((M
>= 0) && (N
>= 1)) {
33 if ((M
>= 1) && (N
>= 2)) {
34 for (c4
=0;c4
<=M
-1;c4
++) {
38 for (c4
=0;c4
<=M
-1;c4
++) {
45 if ((M
<= 0) && (N
>= 2)) {
51 if ((M
>= 1) && (N
== 1)) {
52 for (c4
=0;c4
<=M
-1;c4
++) {
56 for (c4
=0;c4
<=M
-1;c4
++) {
62 if ((M
<= 0) && (N
== 1)) {
67 for (c2
=2;c2
<=min(N
-1,M
);c2
++) {
68 for (c4
=c2
-1;c4
<=N
-1;c4
++) {
71 for (c6
=c2
-2;c6
<=M
-1;c6
++) {
77 for (c6
=c2
-2;c6
<=M
-1;c6
++) {
82 for (c4
=c2
-1;c4
<=M
-1;c4
++) {
88 for (c4
=c2
-1;c4
<=M
-1;c4
++) {
98 if ((M
>= 1) && (M
<= N
-2)) {
100 for (c4
=M
;c4
<=N
-1;c4
++) {
120 if ((M
>= N
) && (N
>= 2)) {
125 for (c6
=N
-2;c6
<=M
-1;c6
++) {
133 for (c6
=N
-2;c6
<=M
-1;c6
++) {
138 for (c4
=N
-1;c4
<=M
-1;c4
++) {
144 for (c4
=N
-1;c4
<=M
-1;c4
++) {
153 if ((M
== N
-1) && (N
>= 2)) {
178 for (c2
=max(M
+2,2);c2
<=N
-1;c2
++) {
179 for (c4
=c2
-1;c4
<=N
-1;c4
++) {
193 if ((M
<= N
-2) && (N
>= 2)) {