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
update isl for change in isl_map_subtract
[pet.git]
/
tests
/
dynamic_bound.c
blob
2ba7db6757b0b8b42f94d4f2f1b1b6275b30257b
1
int
f
();
2
int
g
();
3
void
h
(
int
,
int
,
int
);
4
5
void
foo
()
6
{
7
int
N
,
M
;
8
int
a
[
100
][
100
];
9
#pragma value_bounds N 0 100
10
#pragma value_bounds M 0 100
11
12
#pragma scop
13
N
=
f
();
14
M
=
g
();
15
for
(
int
i
=
0
;
i
<
N
; ++
i
)
16
for
(
int
j
=
0
;
j
<
M
; ++
j
)
17
a
[
i
][
j
] =
i
+
j
;
18
for
(
int
i
=
0
;
i
<
N
; ++
i
)
19
for
(
int
j
=
0
;
j
<
M
; ++
j
)
20
h
(
i
,
j
,
a
[
i
][
j
]);
21
#pragma endscop
22
}