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