scop.c: extract out expr_collect_access
[pet.git] / tests / filter.scop
bloba7b11145fd6c3b398f5f45c3ab28e3e24d235881
1 start: 46
2 end: 102
3 context: '{  :  }'
4 arrays:
5 - context: '{  :  }'
6   extent: '{ test[i0] : i0 >= 0 }'
7   element_type: int
8   element_size: 4
9 - context: '{  :  }'
10   extent: '{ a[] }'
11   element_type: int
12   element_size: 4
13 statements:
14 - line: 7
15   domain: '{ [S_1[] -> [test]] : test <= -1 or test >= 1 }'
16   schedule: '{ S_1[] -> [0] }'
17   body:
18     type: binary
19     operation: =
20     arguments:
21     - type: access
22       relation: '{ S_1[] -> a[] }'
23       index: '{ S_1[] -> a[] }'
24       reference: __pet_ref_1
25       read: 0
26       write: 1
27     - type: access
28       relation: '{ S_1[] -> [5] }'
29       index: '{ S_1[] -> [(5)] }'
30       reference: __pet_ref_2
31       read: 1
32       write: 0
33   arguments:
34   - type: access
35     relation: '[index] -> { S_1[] -> test[index] : index >= 0 }'
36     index: '[index] -> { S_1[] -> test[((index) : index >= 0)] }'
37     reference: __pet_ref_0
38     read: 1
39     write: 0