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