scop.c: extract out expr_collect_access
[pet.git] / tests / ternary.scop
blob24df6adf9a52d5eeeea3966a257b72e8563d67eb
1 start: 47
2 end: 141
3 context: '{  :  }'
4 arrays:
5 - context: '{  :  }'
6   extent: '{ j[] }'
7   element_type: int
8   element_size: 4
9 - context: '{  :  }'
10   extent: '{ a[i0] : i0 >= 0 and i0 <= 99 }'
11   element_type: int
12   element_size: 4
13 statements:
14 - line: 9
15   domain: '{ S_0[i] : i >= 0 and i <= 99 }'
16   schedule: '{ S_0[i] -> [0, i, 0] }'
17   body:
18     type: binary
19     operation: =
20     arguments:
21     - type: access
22       relation: '{ S_0[i] -> j[] }'
23       index: '{ S_0[i] -> j[] }'
24       reference: __pet_ref_0
25       read: 0
26       write: 1
27     - type: call
28       name: f
29 - line: 10
30   domain: '{ S_1[i] : i >= 0 and i <= 99 }'
31   schedule: '{ S_1[i] -> [0, i, 1] }'
32   body:
33     type: binary
34     operation: =
35     arguments:
36     - type: access
37       relation: '{ S_1[i] -> a[i] }'
38       index: '{ S_1[i] -> a[(i)] }'
39       reference: __pet_ref_1
40       read: 0
41       write: 1
42     - type: ternary
43       arguments:
44       - type: access
45         relation: '{ S_1[i] -> j[] }'
46         index: '{ S_1[i] -> j[] }'
47         reference: __pet_ref_2
48         read: 1
49         write: 0
50       - type: access
51         relation: '{ S_1[i] -> [40] }'
52         index: '{ S_1[i] -> [(40)] }'
53         reference: __pet_ref_3
54         read: 1
55         write: 0
56       - type: access
57         relation: '{ S_1[i] -> [90] }'
58         index: '{ S_1[i] -> [(90)] }'
59         reference: __pet_ref_4
60         read: 1
61         write: 0