scop.c: extract out expr_collect_access
[pet.git] / tests / inf2.scop
blob20f6315c0db9b387f01ebb2c037ac6bf60873d3b
1 start: 74
2 end: 208
3 context: '[N] -> {  : N >= 8 and N <= 16 }'
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 - context: '[N] -> {  : N >= 0 }'
10   extent: '[N] -> { b[i0] : i0 <= -1 + N and i0 >= 0 }'
11   element_type: int
12   element_size: 4
13 statements:
14 - line: 12
15   domain: '[N] -> { S_0[t, j] : j >= 0 and t >= 0 and j <= -1 + N }'
16   schedule: '[N] -> { S_0[t, j] -> [0, t, 0, j] }'
17   body:
18     type: binary
19     operation: =
20     arguments:
21     - type: access
22       relation: '[N] -> { S_0[t, j] -> a[j] }'
23       index: '[N] -> { S_0[t, j] -> a[(j)] }'
24       reference: __pet_ref_0
25       read: 0
26       write: 1
27     - type: access
28       relation: '[N] -> { S_0[t, j] -> [0] }'
29       index: '[N] -> { S_0[t, j] -> [(0)] }'
30       reference: __pet_ref_1
31       read: 1
32       write: 0
33 - line: 14
34   domain: '[N] -> { S_1[t, j] : j >= 0 and t >= 0 and j <= -1 + N }'
35   schedule: '[N] -> { S_1[t, j] -> [0, t, 1, j] }'
36   body:
37     type: binary
38     operation: =
39     arguments:
40     - type: access
41       relation: '[N] -> { S_1[t, j] -> b[j] }'
42       index: '[N] -> { S_1[t, j] -> b[(j)] }'
43       reference: __pet_ref_2
44       read: 0
45       write: 1
46     - type: access
47       relation: '[N] -> { S_1[t, j] -> a[j] }'
48       index: '[N] -> { S_1[t, j] -> a[(j)] }'
49       reference: __pet_ref_3
50       read: 1
51       write: 0