scop.c: extract out expr_collect_access
[pet.git] / tests / inc2.scop
blob1e5edc471fe886da568a50033e245cd2aec55c2c
1 start: 38
2 end: 107
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((i)/3): 3e0 = i and i <= -1 + N and
12     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