pet_stmt: use pet_tree to represent statement body
[pet.git] / tests / mod2.scop
blobc44889d514504b530f2f9a968db729cc0226db50
1 start: 38
2 end: 127
3 indent: "\t"
4 context: '[N] -> {  : N >= 0 and N <= 2147483647 }'
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 statements:
11 - line: 9
12   domain: '[N] -> { S_0[i] : exists (e0 = floor((i)/2): 2e0 = i and i <= -1 + N and
13     i >= 0) }'
14   schedule: '[N] -> { S_0[i] -> [0, i] }'
15   body:
16     type: expression
17     expr:
18       type: op
19       operation: =
20       arguments:
21       - type: access
22         relation: '[N] -> { S_0[i] -> a[i] }'
23         index: '[N] -> { S_0[i] -> a[(i)] }'
24         reference: __pet_ref_0
25         read: 0
26         write: 1
27       - type: op
28         operation: '%'
29         arguments:
30         - type: access
31           relation: '[N] -> { S_0[i] -> [i] }'
32           index: '[N] -> { S_0[i] -> [(i)] }'
33           reference: __pet_ref_1
34           read: 1
35           write: 0
36         - type: int
37           value: 3