pet_codegen.c: optionally take schedule tree as input
[pet.git] / tests / filter3.scop
blob62f7860bed83ca4ed417ac397589d5ec32c10c26
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   body:
26     type: expression
27     expr:
28       type: op
29       operation: =
30       arguments:
31       - type: access
32         index: '{ S_0[] -> index[] }'
33         reference: __pet_ref_0
34         read: 0
35         write: 1
36       - type: call
37         name: f
38 - line: 7
39   domain: '{ S_1[] }'
40   body:
41     type: expression
42     expr:
43       type: op
44       operation: =
45       arguments:
46       - type: access
47         index: '{ S_1[] -> __pet_test_0[] }'
48         reference: __pet_ref_1
49         read: 0
50         write: 1
51       - type: access
52         index: '{ [S_1[] -> [i0]] -> test[((i0) : i0 >= 0)] }'
53         reference: __pet_ref_3
54         read: 1
55         write: 0
56         arguments:
57         - type: access
58           index: '{ S_1[] -> index[] }'
59           reference: __pet_ref_2
60           read: 1
61           write: 0
62 - line: 8
63   domain: '{ [S_2[] -> [1]] }'
64   body:
65     type: expression
66     expr:
67       type: op
68       operation: =
69       arguments:
70       - type: access
71         index: '{ S_2[] -> index[] }'
72         reference: __pet_ref_5
73         read: 0
74         write: 1
75       - type: int
76         value: 5
77   arguments:
78   - type: access
79     index: '{ S_2[] -> __pet_test_0[] }'
80     reference: __pet_ref_4
81     read: 1
82     write: 0