scop.c: extract out expr_collect_access
[pet.git] / tests / break5.scop
blob7c332792a8e9a71007f6a78f30ae169c1c777172
1 start: 33
2 end: 269
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 <= 150 - i and j <= 99 and j <=
12     i and j >= 1) or (i >= 0 and i <= 89 and j >= 1 and j <= 99 and j <= i and j >=
13     151 - i) or (i >= 0 and i <= 9 and j >= 0 and j <= 99 and j >= 1 + i); S_0[i,
14     0] : i >= 0 and i <= 99 }'
15   schedule: '{ S_0[i, j] -> [0, i, j, 0] }'
16   body:
17     type: binary
18     operation: =
19     arguments:
20     - type: access
21       relation: '{ S_0[i, j] -> a[i] }'
22       index: '{ S_0[i, j] -> a[(i)] }'
23       reference: __pet_ref_0
24       read: 0
25       write: 1
26     - type: access
27       relation: '{ S_0[i, j] -> [0] }'
28       index: '{ S_0[i, j] -> [(0)] }'
29       reference: __pet_ref_1
30       read: 1
31       write: 0
32 - line: 17
33   domain: '{ S_1[i, j] : i >= 10 and i <= 99 and j <= 149 - i and j <= 60 and j <=
34     -1 + i and j >= 1; S_1[i, 0] : i >= 10 and i <= 99 }'
35   schedule: '{ S_1[i, j] -> [0, i, j, 5] }'
36   body:
37     type: binary
38     operation: =
39     arguments:
40     - type: access
41       relation: '{ S_1[i, j] -> a[i] }'
42       index: '{ S_1[i, j] -> a[(i)] }'
43       reference: __pet_ref_2
44       read: 0
45       write: 1
46     - type: binary
47       operation: +
48       arguments:
49       - type: access
50         relation: '{ S_1[i, j] -> [i] }'
51         index: '{ S_1[i, j] -> [(i)] }'
52         reference: __pet_ref_3
53         read: 1
54         write: 0
55       - type: access
56         relation: '{ S_1[i, j] -> [j] }'
57         index: '{ S_1[i, j] -> [(j)] }'
58         reference: __pet_ref_4
59         read: 1
60         write: 0