expr.c: access_add_ref_id: avoid using access relation
[pet.git] / tests / struct6.scop
blob7111708e6eb5a041598c6ed99a0d85a2f6759d62
1 start: 51
2 end: 91
3 indent: "\t"
4 context: '{  :  }'
5 types:
6 - name: s
7   definition: "struct s {\n    int a;\n}"
8 arrays:
9 - context: '{  :  }'
10   extent: '{ s[i0] : i0 >= 0 }'
11   element_type: struct s
12   element_size: 4
13   element_is_record: 1
14 - context: '{  :  }'
15   extent: '{ s_a[s[i0] -> a[]] : i0 >= 0 }'
16   element_type: int
17   element_size: 4
18 statements:
19 - line: 10
20   domain: '{ S_0[] }'
21   schedule: '{ S_0[] -> [0] }'
22   body:
23     type: expression
24     expr:
25       type: op
26       operation: =
27       arguments:
28       - type: access
29         relation: '{ S_0[] -> s_a[s[0] -> a[]] }'
30         index: '{ S_0[] -> s_a[s[(0)] -> a[]] }'
31         reference: __pet_ref_0
32         read: 0
33         write: 1
34       - type: int
35         value: 5