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
add pet_expr_map_top_down
[pet.git]
/
tests
/
decl7.c
blob
4ef66b1296ee0e43666a80bdd5b028d0f2a024bd
1
void
f
(
int
n
,
float
c
[
n
])
2
{
3
#pragma scop
4
float
a
[
n
];
5
6
for
(
int
i
=
0
;
i
<
n
;
i
++)
7
a
[
i
] =
c
[
i
];
8
9
for
(
int
i
=
0
;
i
<
n
;
i
++) {
10
float
b
[
n
][
n
];
11
b
[
i
][
i
] =
a
[
i
] +
1
;
12
a
[
i
] =
b
[
i
][
i
];
13
}
14
for
(
int
i
=
0
;
i
<
n
;
i
++) {
15
float
b
[
n
][
n
];
16
b
[
i
][
i
] =
a
[
i
] +
1
;
17
a
[
i
] =
b
[
i
][
i
];
18
}
19
20
for
(
int
i
=
0
;
i
<
n
;
i
++)
21
c
[
i
] =
a
[
i
];
22
#pragma endscop
23
}