encapsulate loop containing continue/break when encapsulating dynamic control
[pet.git] / tests / encapsulate / continue6.c
blob33d609bac9b7b6a860b8d26e832d8e6bd8682bc4
1 int f();
3 void foo(int A[100])
5 int x;
6 #pragma scop
7 for (int i = 0; i < 100; ++i) {
8 for (int j = 0; j < 100; ++j) {
9 if (A[j]) {
10 x += 0;
11 continue;
13 x = 1;
15 for (int j = 0; j < 100; ++j) {
16 if (j % 2 == 0) {
17 x += 0;
18 continue;
20 x = 1;
22 for (int j = 0; j < 100; ++j) {
23 if (A[j])
24 x += 0;
25 else
26 x = 1;
29 #pragma endscop