scop.c: extract out expr_collect_access
[pet.git] / tests / forward_substitution2.scop
blob79abd23db2322421969846b351267bc39ee79178
1 start: 36
2 end: 92
3 context: '{  :  }'
4 arrays:
5 - context: '{  :  }'
6   extent: '{ N[] }'
7   element_type: int
8   element_size: 4
9 - context: '{  :  }'
10   extent: '{ a[i0] : i0 >= 0 and i0 <= 9 }'
11   element_type: int
12   element_size: 4
13 - context: '{  :  }'
14   extent: '{ c[] }'
15   element_type: int
16   element_size: 4
17 statements:
18 - line: 5
19   domain: '{ S_0[] }'
20   schedule: '{ S_0[] -> [0] }'
21   body:
22     type: binary
23     operation: =
24     arguments:
25     - type: access
26       relation: '{ S_0[] -> c[] }'
27       index: '{ S_0[] -> c[] }'
28       reference: __pet_ref_0
29       read: 0
30       write: 1
31     - type: access
32       relation: '{ S_0[] -> N[] }'
33       index: '{ S_0[] -> N[] }'
34       reference: __pet_ref_1
35       read: 1
36       write: 0
37 - line: 6
38   domain: '{ S_1[] }'
39   schedule: '{ S_1[] -> [1] }'
40   body:
41     type: binary
42     operation: =
43     arguments:
44     - type: access
45       relation: '{ S_1[] -> N[] }'
46       index: '{ S_1[] -> N[] }'
47       reference: __pet_ref_2
48       read: 0
49       write: 1
50     - type: access
51       relation: '{ S_1[] -> [2] }'
52       index: '{ S_1[] -> [(2)] }'
53       reference: __pet_ref_3
54       read: 1
55       write: 0
56 - line: 7
57   domain: '{ S_2[] }'
58   schedule: '{ S_2[] -> [2] }'
59   body:
60     type: binary
61     operation: =
62     arguments:
63     - type: access
64       relation: '{ [S_2[] -> [i0]] -> a[i0] : i0 >= 0 }'
65       index: '{ [S_2[] -> [i0]] -> a[((i0) : i0 >= 0)] }'
66       reference: __pet_ref_5
67       read: 0
68       write: 1
69       arguments:
70       - type: access
71         relation: '{ S_2[] -> c[] }'
72         index: '{ S_2[] -> c[] }'
73         reference: __pet_ref_4
74         read: 1
75         write: 0
76     - type: access
77       relation: '{ S_2[] -> [5] }'
78       index: '{ S_2[] -> [(5)] }'
79       reference: __pet_ref_6
80       read: 1
81       write: 0