pet_stmt: use pet_tree to represent statement body
[pet.git] / tests / filter.scop
blob481fa35b242f1f44aab86286c021494d1ec72566
1 start: 46
2 end: 102
3 indent: "\t"
4 context: '{  :  }'
5 arrays:
6 - context: '{  :  }'
7   extent: '{ a[] }'
8   element_type: int
9   element_size: 4
10 - context: '{  :  }'
11   extent: '{ test[i0] : i0 >= 0 }'
12   element_type: int
13   element_size: 4
14 statements:
15 - line: 7
16   domain: '{ [S_0[] -> [test]] : test <= -1 or test >= 1 }'
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[] -> a[] }'
26         index: '{ S_0[] -> a[] }'
27         reference: __pet_ref_1
28         read: 0
29         write: 1
30       - type: int
31         value: 5
32   arguments:
33   - type: access
34     relation: '[index] -> { S_0[] -> test[index] : index >= 0 }'
35     index: '[index] -> { S_0[] -> test[((index) : index >= 0)] }'
36     reference: __pet_ref_0
37     read: 1
38     write: 0