pet_stmt: use pet_tree to represent statement body
[pet.git] / tests / forward_substitution4.scop
blob2859ac01d6821924a8b1707ae59a3a91b153b043
1 start: 36
2 end: 106
3 indent: "\t"
4 context: '[N] -> {  : N <= 2147483647 and N >= -2147483648 }'
5 arrays:
6 - context: '{  :  }'
7   extent: '[N] -> { a[i0] : i0 <= 9 and i0 >= 0 }'
8   element_type: int
9   element_size: 4
10 - context: '{  :  }'
11   extent: '[N] -> { c[] }'
12   element_type: int
13   element_size: 4
14 statements:
15 - line: 5
16   domain: '[N] -> { S_0[] }'
17   schedule: '{ S_0[] -> [0] }'
18   body:
19     type: expression
20     expr:
21       type: op
22       operation: =
23       arguments:
24       - type: access
25         relation: '[N] -> { S_0[] -> c[] }'
26         index: '[N] -> { S_0[] -> c[] }'
27         reference: __pet_ref_0
28         read: 0
29         write: 1
30       - type: int
31         value: 1
32 - line: 7
33   domain: '[N] -> { S_1[] : N = 2 }'
34   schedule: '[N] -> { S_1[] -> [1] }'
35   body:
36     type: expression
37     expr:
38       type: op
39       operation: =
40       arguments:
41       - type: access
42         relation: '[N] -> { S_1[] -> c[] }'
43         index: '[N] -> { S_1[] -> c[] }'
44         reference: __pet_ref_1
45         read: 0
46         write: 1
47       - type: int
48         value: 2
49 - line: 8
50   domain: '[N] -> { S_2[] }'
51   schedule: '{ S_2[] -> [2] }'
52   body:
53     type: expression
54     expr:
55       type: op
56       operation: =
57       arguments:
58       - type: access
59         relation: '[N] -> { [S_2[] -> [i0]] -> a[i0] : i0 >= 0 }'
60         index: '[N] -> { [S_2[] -> [i0]] -> a[((i0) : i0 >= 0)] }'
61         reference: __pet_ref_3
62         read: 0
63         write: 1
64         arguments:
65         - type: access
66           relation: '[N] -> { S_2[] -> c[] }'
67           index: '[N] -> { S_2[] -> c[] }'
68           reference: __pet_ref_2
69           read: 1
70           write: 0
71       - type: int
72         value: 5