1 /* Generated from ../../../git/cloog/test/./reservoir/mg-psinv.cloog by CLooG 0.14.0-72-gefe2fc2 gmp bits in 0.05s. */
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); }
12 #define S3(i,j,k) { hash(3); hash(i); hash(j); hash(k); }
14 void test(int M
, int N
, int O
)
16 /* Scattering iterators. */
18 /* Original iterators. */
20 if ((M
>= 3) && (N
>= 4)) {
21 for (c2
=2;c2
<=O
-1;c2
++) {
22 for (c6
=1;c6
<=M
;c6
++) {
26 for (c4
=4;c4
<=2*N
-3;c4
++) {
27 for (c6
=1;c6
<=M
;c6
++) {
34 for (c6
=2;c6
<=M
-1;c6
++) {
41 for (c6
=2;c6
<=M
-1;c6
++) {
47 if ((M
>= 3) && (N
== 3)) {
48 for (c2
=2;c2
<=O
-1;c2
++) {
49 for (c6
=1;c6
<=M
;c6
++) {
53 for (c6
=2;c6
<=M
-1;c6
++) {
58 if ((M
>= 1) && (M
<= 2) && (N
>= 3)) {
59 for (c2
=2;c2
<=O
-1;c2
++) {
60 for (c4
=3;c4
<=2*N
-3;c4
++) {
61 for (c6
=1;c6
<=M
;c6
++) {