3 extern void abort (void);
6 volatile int a
, b
, c
, d
, e
, f
, g
, h
;
13 for (i
= 0; i
< 16; i
++)
14 for (j
= i
* 2 + 1; j
< 4 * i
+ 3; j
++)
16 a
= 0; b
= 16; c
= 1; d
= 2; e
= 1; f
= 4; g
= 3; 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
= 0; i
< 16; i
++)
20 for (j
= i
* 2 + 1; j
< 4 * i
+ 3; j
++)
22 if (i
< 0 || i
>= 16 || j
< 2 * i
+ 1 || j
>= 3 + i
* 4 || k
[i
][j
] != 1)
25 x
= i
* 1024 + (j
& 1023);
28 if (i
!= 16 || j
!= 63 || x
!= 15422 || niters
!= 272)
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
< 0 || i
>= 16 || j
< 2 * i
+ 1 || j
>= 3 + i
* 4 || k
[i
][j
] != 2)
38 x
= i
* 1024 + (j
& 1023);
41 if (i
!= 16 || j
!= 63 || x
!= 15422 || niters
!= 272)
43 for (i
= 0; i
< 16; i
++)
44 for (j
= i
* 2 + 1; j
< 4 * i
+ 3; j
++)
49 for (i
= 0; i
< 16; i
++)
50 for (j
= i
* 2 + 1; j
< 2 * i
+ 7; j
++)
52 a
= 0; b
= 16; c
= 1; d
= 2; e
= 1; f
= 2; g
= 7; h
= 1;
53 niters
= 0; i
= -100; j
= -100; x
= -100;
54 #pragma omp parallel for collapse(2) lastprivate (i, j, x) reduction(+:niters)
55 for (i
= 0; i
< 16; i
++)
56 for (j
= i
* 2 + 1; j
< 2 * i
+ 7; j
++)
58 if (i
< 0 || i
>= 16 || j
< 2 * i
+ 1 || j
>= 7 + i
* 2 || k
[i
][j
] != 1)
61 x
= i
* 1024 + (j
& 1023);
64 if (i
!= 16 || j
!= 37 || x
!= 15396 || niters
!= 96)
66 niters
= 0; i
= -100; j
= -100; x
= -100;
67 #pragma omp parallel for collapse(2) lastprivate (i, j, x) reduction(+:niters)
68 for (i
= a
; i
< b
; i
+= c
)
69 for (j
= d
* i
+ e
; j
< g
+ i
* f
; j
+= h
)
71 if (i
< 0 || i
>= 16 || j
< 2 * i
+ 1 || j
>= 7 + i
* 2 || k
[i
][j
] != 2)
74 x
= i
* 1024 + (j
& 1023);
77 if (i
!= 16 || j
!= 37 || x
!= 15396 || niters
!= 96)
79 for (i
= 0; i
< 16; i
++)
80 for (j
= i
* 2 + 1; j
< 2 * i
+ 7; j
++)