repo.or.cz
/
ppcg.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
use isl_union_access_info_set_kill
[ppcg.git]
/
tests
/
struct5.c
blob
8629176bec1299fc89ad4ee8b994480b2439fdf0
1
#include <stdlib.h>
2
3
struct
s
{
4
int
a
;
5
int
b
;
6
};
7
8
int
main
()
9
{
10
int
a
[
10
];
11
12
for
(
int
i
=
0
;
i
<
10
; ++
i
)
13
a
[
i
] =
0
;
14
#pragma scop
15
for
(
int
i
=
0
;
i
<
10
; ++
i
) {
16
struct
s b
[
1
];
17
b
[
0
].
a
=
1
;
18
b
[
0
].
b
=
i
;
19
a
[
i
] =
b
[
0
].
a
+
b
[
0
].
b
;
20
}
21
#pragma endscop
22
for
(
int
i
=
0
;
i
<
10
; ++
i
)
23
if
(
a
[
i
] !=
1
+
i
)
24
return
EXIT_FAILURE
;
25
26
return
EXIT_SUCCESS
;
27
}