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