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