pet_scop: keep track of schedule tree
[pet.git] / tests / dynamic_condition.scop
blob13a51472b47028a1592304c445ab0101e50ec354
1 start: 50
2 end: 174
3 indent: '    '
4 context: '{  :  }'
5 schedule: '{ domain: "{ S_0[i] : i >= 0 and i <= 99; S_1[i] : i >= 0 and i <= 99 }",
6   child: { schedule: "L_0[{ S_1[i] -> [(i)]; S_0[i] -> [(i)] }]", child: { sequence:
7   [ { filter: "{ S_0[i] }" }, { filter: "{ S_1[i] }" } ] } } }'
8 arrays:
9 - context: '{  :  }'
10   extent: '{ a[i0] : i0 >= 0 and i0 <= 99 }'
11   element_type: int
12   element_size: 4
13 - context: '{  :  }'
14   extent: '{ j[] }'
15   element_type: int
16   element_size: 4
17 statements:
18 - line: 9
19   domain: '{ S_0[i] : i >= 0 and i <= 99 }'
20   schedule: '{ S_0[i] -> [0, i, 0] }'
21   body:
22     type: expression
23     expr:
24       type: op
25       operation: =
26       arguments:
27       - type: access
28         index: '{ S_0[i] -> j[] }'
29         reference: __pet_ref_0
30         read: 0
31         write: 1
32       - type: call
33         name: f
34 - line: 12
35   domain: '{ [S_1[i] -> [j]] : i >= 0 and i <= 99 and j <= 1 and j >= 0 }'
36   schedule: '{ S_1[i] -> [0, i, 1, 0] }'
37   body:
38     type: expression
39     expr:
40       type: op
41       operation: =
42       arguments:
43       - type: access
44         index: '{ S_1[i] -> a[(i)] }'
45         reference: __pet_ref_2
46         read: 0
47         write: 1
48       - type: access
49         index: '{ S_1[i] -> [(i)] }'
50         reference: __pet_ref_3
51         read: 1
52         write: 0
53   arguments:
54   - type: access
55     index: '{ S_1[i] -> j[] }'
56     reference: __pet_ref_1
57     read: 1
58     write: 0