pet_stmt: use pet_tree to represent statement body
[pet.git] / tests / inf.scop
bloba2a2898570b4f8900797981daebfe4541b71ad7a
1 start: 74
2 end: 207
3 indent: '    '
4 context: '[N] -> {  : N >= 8 and N <= 16 }'
5 arrays:
6 - context: '[N] -> {  : N >= 0 }'
7   extent: '[N] -> { a[i0] : i0 <= -1 + N and i0 >= 0 }'
8   element_type: int
9   element_size: 4
10 - context: '[N] -> {  : N >= 0 }'
11   extent: '[N] -> { b[i0] : i0 <= -1 + N and i0 >= 0 }'
12   element_type: int
13   element_size: 4
14 statements:
15 - line: 12
16   domain: '[N] -> { S_0[t, j] : j >= 0 and t >= 0 and j <= -1 + N }'
17   schedule: '[N] -> { S_0[t, j] -> [0, t, 0, j] }'
18   body:
19     type: expression
20     expr:
21       type: op
22       operation: =
23       arguments:
24       - type: access
25         relation: '[N] -> { S_0[t, j] -> a[j] }'
26         index: '[N] -> { S_0[t, j] -> a[(j)] }'
27         reference: __pet_ref_0
28         read: 0
29         write: 1
30       - type: int
31         value: 0
32 - line: 14
33   domain: '[N] -> { S_1[t, j] : j >= 0 and t >= 0 and j <= -1 + N }'
34   schedule: '[N] -> { S_1[t, j] -> [0, t, 1, j] }'
35   body:
36     type: expression
37     expr:
38       type: op
39       operation: =
40       arguments:
41       - type: access
42         relation: '[N] -> { S_1[t, j] -> b[j] }'
43         index: '[N] -> { S_1[t, j] -> b[(j)] }'
44         reference: __pet_ref_1
45         read: 0
46         write: 1
47       - type: access
48         relation: '[N] -> { S_1[t, j] -> a[j] }'
49         index: '[N] -> { S_1[t, j] -> a[(j)] }'
50         reference: __pet_ref_2
51         read: 1
52         write: 0