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