scop.c: extract out expr_collect_access
[pet.git] / tests / piecewise2.scop
blobcd46d70346978f961b5caa7db9a81219b3aaeb1c
1 start: 56
2 end: 168
3 context: '[N] -> {  : N <= 2147483647 and N >= 0 }'
4 arrays:
5 - context: '[N] -> {  : N >= 0 }'
6   extent: '[N] -> { a[i0, i1] : i1 >= 0 and i0 >= 0 and i1 <= -1 + N }'
7   element_type: int
8   element_size: 4
9 statements:
10 - line: 8
11   domain: '[N] -> { S_0[i, j] : j >= i and i >= 0 and j <= -1 + N }'
12   schedule: '[N] -> { S_0[i, j] -> [0, i, j] }'
13   body:
14     type: binary
15     operation: =
16     arguments:
17     - type: access
18       relation: '[N] -> { S_0[i, j] -> a[i, j] }'
19       index: '[N] -> { S_0[i, j] -> a[(i), (j)] }'
20       reference: __pet_ref_0
21       read: 0
22       write: 1
23     - type: access
24       relation: '[N] -> { S_0[i, j] -> a[-1 + i, 0] : i >= 1; S_0[0, j] -> a[0, 0]
25         }'
26       index: '[N] -> { S_0[i, j] -> a[((-1 + i) : i >= 1; (0) : i = 0), (0)] }'
27       reference: __pet_ref_1
28       read: 1
29       write: 0