scop.c: expr_extract_context: avoid using access relation
[pet.git] / tests / max.scop
blob5f2e95d017fb679a20dfa8a70b11b13ba4dd35e0
1 start: 38
2 end: 117
3 indent: "\t"
4 context: '[N] -> {  : N >= 0 and N <= 2147483647 }'
5 arrays:
6 - context: '[N] -> {  : N >= 0 }'
7   extent: '[N] -> { a[i0] : i0 <= -1 + N and i0 >= 0 }'
8   element_type: int
9   element_size: 4
10 statements:
11 - line: 8
12   domain: '[N] -> { S_0[i] : i >= 0 and i >= -10 + N and i <= -1 + N }'
13   schedule: '[N] -> { S_0[i] -> [0, i] }'
14   body:
15     type: expression
16     expr:
17       type: op
18       operation: =
19       arguments:
20       - type: access
21         relation: '[N] -> { S_0[i] -> a[i] }'
22         index: '[N] -> { S_0[i] -> a[(i)] }'
23         reference: __pet_ref_0
24         read: 0
25         write: 1
26       - type: access
27         relation: '[N] -> { S_0[i] -> [i] }'
28         index: '[N] -> { S_0[i] -> [(i)] }'
29         reference: __pet_ref_1
30         read: 1
31         write: 0