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