repo.or.cz
/
pet.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
encapsulate loop containing continue/break when encapsulating dynamic control
[pet.git]
/
tests
/
encapsulate
/
continue6.c
blob
33d609bac9b7b6a860b8d26e832d8e6bd8682bc4
1
int
f
();
2
3
void
foo
(
int
A
[
100
])
4
{
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
;
12
}
13
x
=
1
;
14
}
15
for
(
int
j
=
0
;
j
<
100
; ++
j
) {
16
if
(
j
%
2
==
0
) {
17
x
+=
0
;
18
continue
;
19
}
20
x
=
1
;
21
}
22
for
(
int
j
=
0
;
j
<
100
; ++
j
) {
23
if
(
A
[
j
])
24
x
+=
0
;
25
else
26
x
=
1
;
27
}
28
}
29
#pragma endscop
30
}