3 extern void abort (void);
6 volatile int a
, b
, c
, d
, e
, f
, g
, h
;
13 for (i
= 1; i
<= 10; i
++)
14 for (j
= 1; j
<= 10 * i
; j
++)
16 a
= 1; b
= 11; c
= 1; d
= 0; e
= 1; f
= 10; g
= 1; h
= 1;
17 niters
= 0; i
= -100; j
= -100; x
= -100;
18 #pragma omp parallel for collapse(2) lastprivate (i, j, x) reduction(+:niters)
19 for (i
= 1; i
<= 10; i
++)
20 for (j
= 1; j
<= 10 * i
; j
++)
22 if (i
< 1 || i
> 10 || j
< 1 || j
> 10 * i
|| k
[i
][j
] != 1)
25 x
= i
* 1024 + (j
& 1023);
28 if (i
!= 11 || j
!= 101 || x
!= 10340 || niters
!= 550)
30 niters
= 0; i
= -100; j
= -100; x
= -100;
31 #pragma omp parallel for collapse(2) lastprivate (i, j, x) reduction(+:niters)
32 for (i
= a
; i
< b
; i
+= c
)
33 for (j
= d
* i
+ e
; j
< g
+ i
* f
; j
+= h
)
35 if (i
< 1 || i
> 10 || j
< 1 || j
> 10 * i
|| k
[i
][j
] != 2)
38 x
= i
* 1024 + (j
& 1023);
41 if (i
!= 11 || j
!= 101 || x
!= 10340 || niters
!= 550)
43 for (i
= 1; i
<= 10; i
++)
44 for (j
= 1; j
<= 10 * i
; j
++)
49 for (i
= 0; i
< 11; i
++)
50 for (j
= 0; j
< 101; j
++)
53 for (i
= 0; i
< 10; i
++)
54 for (j
= 0; j
< 10 * i
; j
++)
56 a
= 0; b
= 10; c
= 1; d
= 0; e
= 0; f
= 10; g
= 0; h
= 1;
57 niters
= 0; i
= -100; j
= -100; x
= -100;
58 #pragma omp parallel for collapse(2) lastprivate (i, j, x) reduction(+:niters)
59 for (i
= 0; i
< 10; i
++)
60 for (j
= 0; j
< 10 * i
; j
++)
62 if (i
< 0 || i
>= 10 || j
< 0 || j
>= 10 * i
|| k
[i
][j
] != 1)
65 x
= i
* 1024 + (j
& 1023);
68 if (i
!= 10 || j
!= 90 || x
!= 9305 || niters
!= 450)
70 niters
= 0; i
= -100; j
= -100; x
= -100;
71 #pragma omp parallel for collapse(2) lastprivate (i, j, x) reduction(+:niters)
72 for (i
= a
; i
< b
; i
+= c
)
73 for (j
= d
* i
+ e
; j
< g
+ i
* f
; j
+= h
)
75 if (i
< 0 || i
>= 10 || j
< 0 || j
>= 10 * i
|| k
[i
][j
] != 2)
78 x
= i
* 1024 + (j
& 1023);
81 if (i
!= 10 || j
!= 90 || x
!= 9305 || niters
!= 450)
83 for (i
= 0; i
< 10; i
++)
84 for (j
= 0; j
< 10 * i
; j
++)
89 for (i
= 0; i
< 11; i
++)
90 for (j
= 0; j
< 101; j
++)
93 for (i
= 4; i
< 10; i
++)
94 for (j
= -9 + 2 * i
; j
< i
; j
++)
96 a
= 4; b
= 10; c
= 1; d
= 2; e
= -9; f
= 1; g
= 0; h
= 1;
97 niters
= 0; i
= -100; j
= -100; x
= -100;
98 #pragma omp parallel for collapse(2) lastprivate (i, j, x) reduction(+:niters)
99 for (i
= 4; i
< 10; i
++)
100 for (j
= -9 + 2 * i
; j
< i
; j
++)
102 if (i
< 4 || i
>= 10 || j
< -9 + 2 * i
|| j
>= i
|| k
[i
][j
+ 1] != 1)
105 x
= i
* 1024 + (j
& 1023);
108 if (/*i != 10 || j != 9 || */x
!= 8199 || niters
!= 15)
110 niters
= 0; i
= -100; j
= -100; x
= -100;
111 #pragma omp parallel for collapse(2) lastprivate (i, j, x) reduction(+:niters)
112 for (i
= a
; i
< b
; i
+= c
)
113 for (j
= d
* i
+ e
; j
< g
+ i
* f
; j
+= h
)
115 if (i
< 4 || i
>= 10 || j
< -9 + 2 * i
|| j
>= i
|| k
[i
][j
+ 1] != 2)
118 x
= i
* 1024 + (j
& 1023);
121 if (/*i != 10 || j != 9 || */x
!= 8199 || niters
!= 15)
123 for (i
= 4; i
< 10; i
++)
124 for (j
= -9 + 2 * i
; j
< i
; j
++)
125 if (k
[i
][j
+ 1] == 3)
129 for (i
= 0; i
< 11; i
++)
130 for (j
= 0; j
< 101; j
++)
133 for (i
= 1; i
< 10; i
+= 2)
134 for (j
= 1; j
< i
+ 1; j
++)
136 a
= 1; b
= 10; c
= 2; d
= 0; e
= 1; f
= 1; g
= 1; h
= 1;
137 niters
= 0; i
= -100; j
= -100; x
= -100;
138 #pragma omp parallel for collapse(2) lastprivate (i, j, x) reduction(+:niters)
139 for (i
= 1; i
< 10; i
+= 2)
140 for (j
= 1; j
< i
+ 1; j
++)
142 if (i
< 1 || i
>= 10 || j
< 1 || j
>= i
+ 1 || k
[i
][j
] != 1)
145 x
= i
* 1024 + (j
& 1023);
148 if (i
!= 11 || j
!= 10 || x
!= 9225 || niters
!= 25)
150 niters
= 0; i
= -100; j
= -100; x
= -100;
151 #pragma omp parallel for collapse(2) lastprivate (i, j, x) reduction(+:niters)
152 for (i
= a
; i
< b
; i
+= c
)
153 for (j
= d
* i
+ e
; j
< g
+ i
* f
; j
+= h
)
155 if (i
< 1 || i
>= 10 || j
< 1 || j
>= i
+ 1 || k
[i
][j
] != 2)
158 x
= i
* 1024 + (j
& 1023);
161 if (i
!= 11 || j
!= 10 || x
!= 9225 || niters
!= 25)
163 for (i
= 1; i
< 10; i
+= 2)
164 for (j
= 1; j
< i
+ 1; j
++)
169 for (i
= 0; i
< 11; i
++)
170 for (j
= 0; j
< 101; j
++)
173 for (j
= -11; j
>= -41; j
-= 15)
175 a
= 4; b
= 8; c
= 12; d
= -8; e
= -9; f
= -3; g
= 6; h
= 15;
176 niters
= 0; i
= -100; j
= -100; x
= -100;
177 #pragma omp parallel for collapse(2) lastprivate (i, j, x) reduction(+:niters)
178 for (i
= 4; i
< 8; i
+= 12)
179 for (j
= -8 * i
- 9; j
< i
* -3 + 6; j
+= 15)
181 if (i
!= 4 || j
< -41 || j
> -11 || k
[0][-j
] != 1)
184 x
= i
* 1024 + (j
& 1023);
187 if (i
!= 16 || j
!= 4 || x
!= 5109 || niters
!= 3)
189 niters
= 0; i
= -100; j
= -100; x
= -100;
190 #pragma omp parallel for collapse(2) lastprivate (i, j, x) reduction(+:niters)
191 for (i
= a
; i
< b
; i
+= c
)
192 for (j
= d
* i
+ e
; j
< g
+ i
* f
; j
+= h
)
194 if (i
!= 4 || j
< -41 || j
> -11 || k
[0][-j
] != 2)
197 x
= i
* 1024 + (j
& 1023);
200 if (i
!= 16 || j
!= 4 || x
!= 5109 || niters
!= 3)
202 for (j
= -11; j
>= -41; j
-= 15)
207 for (j
= -11; j
>= -41; j
--)
210 for (j
= -34; j
<= -7; j
++)
212 a
= -13; b
= 7; c
= 12; d
= 3; e
= 5; f
= 0; g
= -6; h
= 1;
213 niters
= 0; i
= -100; j
= -100; x
= -100;
214 #pragma omp parallel for collapse(2) lastprivate (i, j, x) reduction(+:niters)
215 for (i
= -13; i
< 7; i
+= 12)
216 for (j
= 3 * i
+ 5; j
< -6; j
++)
218 if (i
!= -13 || j
< -34 || j
> -7 || k
[0][-j
] != 1)
221 x
= i
* 1024 + (j
& 1023);
224 if (/*i != 11 || j != 2 || */x
!= -12295 || niters
!= 28)
226 niters
= 0; i
= -100; j
= -100; x
= -100;
227 #pragma omp parallel for collapse(2) lastprivate (i, j, x) reduction(+:niters)
228 for (i
= a
; i
< b
; i
+= c
)
229 for (j
= d
* i
+ e
; j
< g
+ i
* f
; j
+= h
)
231 if (i
!= -13 || j
< -34 || j
> -7 || k
[0][-j
] != 2)
234 x
= i
* 1024 + (j
& 1023);
237 if (/*i != 11 || j != 2 || */x
!= -12295 || niters
!= 28)
239 for (j
= -34; j
<= -7; j
++)