7 int i = 0, j = 0, k = ~0, l;
9 #pragma omp parallel num_threads(4)
18 #pragma omp for reduction(+:i) reduction(*:d) reduction(&:k) nowait
19 for (l = 0; l < 4; l++)
21 if (omp_get_num_threads () == 4 && (i != 0 || d != 1.0 || k != ~0))
25 if (l == omp_get_thread_num ())
27 i = omp_get_thread_num ();
33 if (omp_get_num_threads () == 4)
36 if (i != (16 + 0 + 1 + 2 + 3))
39 if (d != (33.0 * 1.0 * 2.0 * 3.0 * 4.0))
42 if (k != (~0 ^ 0x55 ^ (1 << 16)))