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