pet_scop: keep track of schedule tree
[pet.git] / tests / filter3.scop
blob23af823881fba939da21de9f1599e4fad896b231
1 start: 51
2 end: 125
3 indent: "\t"
4 context: '{  :  }'
5 schedule: '{ domain: "{ S_0[]; S_2[]; S_1[] }", child: { sequence: [ { filter: "{
6   S_0[] }" }, { filter: "{ S_1[] }" }, { filter: "{ S_2[] }" } ] } }'
7 arrays:
8 - context: '{  :  }'
9   extent: '{ __pet_test_0[] }'
10   value_bounds: '{ [i0] : i0 >= 0 and i0 <= 1 }'
11   element_type: int
12   element_size: 4
13   uniquely_defined: 1
14 - context: '{  :  }'
15   extent: '{ index[] }'
16   element_type: int
17   element_size: 4
18 - context: '{  :  }'
19   extent: '{ test[i0] : i0 >= 0 }'
20   element_type: int
21   element_size: 4
22 statements:
23 - line: 6
24   domain: '{ S_0[] }'
25   schedule: '{ S_0[] -> [0] }'
26   body:
27     type: expression
28     expr:
29       type: op
30       operation: =
31       arguments:
32       - type: access
33         index: '{ S_0[] -> index[] }'
34         reference: __pet_ref_0
35         read: 0
36         write: 1
37       - type: call
38         name: f
39 - line: 7
40   domain: '{ S_1[] }'
41   schedule: '{ S_1[] -> [1, 0] }'
42   body:
43     type: expression
44     expr:
45       type: op
46       operation: =
47       arguments:
48       - type: access
49         index: '{ S_1[] -> __pet_test_0[] }'
50         reference: __pet_ref_1
51         read: 0
52         write: 1
53       - type: access
54         index: '{ [S_1[] -> [i0]] -> test[((i0) : i0 >= 0)] }'
55         reference: __pet_ref_3
56         read: 1
57         write: 0
58         arguments:
59         - type: access
60           index: '{ S_1[] -> index[] }'
61           reference: __pet_ref_2
62           read: 1
63           write: 0
64 - line: 8
65   domain: '{ [S_2[] -> [1]] }'
66   schedule: '{ S_2[] -> [1, 1] }'
67   body:
68     type: expression
69     expr:
70       type: op
71       operation: =
72       arguments:
73       - type: access
74         index: '{ S_2[] -> index[] }'
75         reference: __pet_ref_5
76         read: 0
77         write: 1
78       - type: int
79         value: 5
80   arguments:
81   - type: access
82     index: '{ S_2[] -> __pet_test_0[] }'
83     reference: __pet_ref_4
84     read: 1
85     write: 0