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