pet_expr_access_get_id: avoid using access relation
[pet.git] / tests / independent4.scop
blob0fc840a7199f5f48369e5a819cf867af5e7f73ce
1 start: 44
2 end: 210
3 indent: "\t"
4 context: '[n] -> {  : n >= 0 and n <= 2147483647 }'
5 arrays:
6 - context: '[n] -> {  : n >= 0 }'
7   extent: '[n] -> { A[i0, i1] : i1 >= 0 and i0 >= 0 and i1 <= -1 + n }'
8   element_type: int
9   element_size: 4
10 - context: '[n] -> {  : n >= 0 }'
11   extent: '[n] -> { B[i0, i1] : i1 >= 0 and i0 >= 0 and i1 <= -1 + n }'
12   element_type: int
13   element_size: 4
14 statements:
15 - line: 7
16   domain: '[n] -> { S_0[i, j] : i >= 0 and i <= -1 + n and j <= -1 + n and j >= 0
17     }'
18   schedule: '[n] -> { S_0[i, j] -> [0, i, j] }'
19   body:
20     type: expression
21     expr:
22       type: op
23       operation: =
24       arguments:
25       - type: access
26         relation: '[n] -> { [S_0[i, j] -> [i2]] -> B[i, i2] : i2 >= 0 }'
27         index: '[n] -> { [S_0[i, j] -> [i2]] -> B[(i), ((i2) : i2 >= 0)] }'
28         reference: __pet_ref_1
29         read: 0
30         write: 1
31         arguments:
32         - type: access
33           relation: '[n] -> { S_0[i, j] -> A[i, j] }'
34           index: '[n] -> { S_0[i, j] -> A[(i), (j)] }'
35           reference: __pet_ref_0
36           read: 1
37           write: 0
38       - type: op
39         operation: +
40         arguments:
41         - type: access
42           relation: '[n] -> { S_0[i, j] -> [i] }'
43           index: '[n] -> { S_0[i, j] -> [(i)] }'
44           reference: __pet_ref_2
45           read: 1
46           write: 0
47         - type: access
48           relation: '[n] -> { S_0[i, j] -> [j] }'
49           index: '[n] -> { S_0[i, j] -> [(j)] }'
50           reference: __pet_ref_3
51           read: 1
52           write: 0