break up access relations into may_read/may_write/must_write
[pet.git] / tests / decl3.scop
bloba24b4f7c5fdbe788fbb6b92e7ba7bc5e08453476
1 start: 18
2 end: 77
3 indent: "\t"
4 context: '{  :  }'
5 arrays:
6 - context: '{  :  }'
7   extent: '{ A[i0] : i0 >= 0 and i0 <= 4 }'
8   element_type: int
9   element_size: 4
10   declared: 1
11   exposed: 1
12 - context: '{  :  }'
13   extent: '{ N[] }'
14   element_type: int
15   element_size: 4
16 statements:
17 - line: 4
18   domain: '{ S_0[] }'
19   schedule: '{ S_0[] -> [0] }'
20   body:
21     type: expression
22     expr:
23       type: op
24       operation: =
25       arguments:
26       - type: access
27         index: '{ S_0[] -> N[] }'
28         reference: __pet_ref_0
29         read: 0
30         write: 1
31       - type: int
32         value: 5
33 - line: 5
34   domain: '{ S_1[] }'
35   schedule: '{ S_1[] -> [1] }'
36   body:
37     type: expression
38     expr:
39       type: op
40       operation: kill
41       arguments:
42       - type: access
43         killed: '{ S_1[] -> A[o0] : o0 >= 0 and o0 <= 4 }'
44         index: '{ S_1[] -> A[] }'
45         depth: 1
46         reference: __pet_ref_1
47         kill: 1
48 - line: 6
49   domain: '{ S_2[] }'
50   schedule: '{ S_2[] -> [2] }'
51   body:
52     type: expression
53     expr:
54       type: op
55       operation: =
56       arguments:
57       - type: access
58         index: '{ S_2[] -> A[(0)] }'
59         reference: __pet_ref_2
60         read: 0
61         write: 1
62       - type: int
63         value: 1