pet_scop: keep track of schedule tree
[pet.git] / tests / struct12.scop
blob0eb26fe088f950e290f048ab071b94205cacc65b
1 start: 74
2 end: 113
3 indent: "\t"
4 context: '{  :  }'
5 schedule: '{ domain: "{ S_0[] }" }'
6 types:
7 - name: field
8   definition: typedef int field
9 - name: a
10   definition: "typedef struct s {\n    field a;\n} a"
11 arrays:
12 - context: '{  :  }'
13   extent: '{ s[] }'
14   element_type: a
15   element_size: 4
16   element_is_record: 1
17 - context: '{  :  }'
18   extent: '{ s_a[s[] -> a[]] }'
19   element_type: field
20   element_size: 4
21 statements:
22 - line: 11
23   domain: '{ S_0[] }'
24   schedule: '{ S_0[] -> [0] }'
25   body:
26     type: expression
27     expr:
28       type: op
29       operation: =
30       arguments:
31       - type: access
32         index: '{ S_0[] -> s_a[s[] -> a[]] }'
33         reference: __pet_ref_0
34         read: 0
35         write: 1
36       - type: int
37         value: 5