derive access relations of call expressions from function summary
[pet.git] / tests / call2.scop
blob6c256b18518258fccdc9ea1c2e2acfbe595aaa39
1 start: 169
2 end: 250
3 indent: "\t"
4 context: '[n] -> {  : n <= 2147483647 and n >= 0 }'
5 arrays:
6 - context: '[n] -> {  : n >= 0 }'
7   extent: '[n] -> { B[i0, i1] : i0 >= 0 and i0 <= -1 + n and i1 <= -1 + n and i1 >=
8     0 }'
9   element_type: int
10   element_size: 4
11 statements:
12 - line: 15
13   domain: '[n] -> { S_0[i] : i <= -1 + n and i >= 0 }'
14   schedule: '[n] -> { S_0[i] -> [0, i] }'
15   body:
16     type: expression
17     expr:
18       type: call
19       name: foo
20       arguments:
21       - type: access
22         index: '[n] -> { S_0[i] -> [(1 + i)] }'
23         reference: __pet_ref_0
24         read: 1
25         write: 0
26       - type: access
27         index: '[n] -> { S_0[i] -> [(n)] }'
28         reference: __pet_ref_1
29         read: 1
30         write: 0
31       - type: access
32         may_read: '[n] -> { S_0[i] -> B[i, 1 + i] : i <= -2 + n }'
33         may_write: '[n] -> { S_0[i] -> B[i, 1 + i] : i <= -2 + n; S_0[i] -> B[i, i]
34           }'
35         must_write: '[n] -> { S_0[i] -> B[i, i] }'
36         index: '[n] -> { S_0[i] -> B[(i)] }'
37         depth: 2
38         reference: __pet_ref_2
39         read: 1
40         write: 1