pet_scop_from_pet_tree: create statements directly from expression trees
[pet.git] / tests / filter2.scop
blobf56a67d808cd7d9a901fcd979725226f0efff993
1 start: 37
2 end: 97
3 indent: "\t"
4 context: '{  :  }'
5 arrays:
6 - context: '{  :  }'
7   extent: '{ __pet_test_0[] }'
8   value_bounds: '{ [i0] : i0 >= 0 and i0 <= 1 }'
9   element_type: int
10   element_size: 4
11   uniquely_defined: 1
12 - context: '{  :  }'
13   extent: '{ index[] }'
14   element_type: int
15   element_size: 4
16 - context: '{  :  }'
17   extent: '{ test[i0] : i0 >= 0 }'
18   element_type: int
19   element_size: 4
20 statements:
21 - line: 4
22   domain: '{ S_0[] }'
23   schedule: '{ S_0[] -> [0, 0] }'
24   body:
25     type: expression
26     expr:
27       type: op
28       operation: =
29       arguments:
30       - type: access
31         relation: '{ S_0[] -> __pet_test_0[] }'
32         index: '{ S_0[] -> __pet_test_0[] }'
33         reference: __pet_ref_0
34         read: 0
35         write: 1
36       - type: access
37         relation: '{ [S_0[] -> [i0]] -> test[i0] : i0 >= 0 }'
38         index: '{ [S_0[] -> [i0]] -> test[((i0) : i0 >= 0)] }'
39         reference: __pet_ref_2
40         read: 1
41         write: 0
42         arguments:
43         - type: access
44           relation: '{ S_0[] -> index[] }'
45           index: '{ S_0[] -> index[] }'
46           reference: __pet_ref_1
47           read: 1
48           write: 0
49 - line: 5
50   domain: '{ [S_1[] -> [1]] }'
51   schedule: '{ S_1[] -> [0, 1] }'
52   body:
53     type: expression
54     expr:
55       type: op
56       operation: =
57       arguments:
58       - type: access
59         relation: '{ S_1[] -> index[] }'
60         index: '{ S_1[] -> index[] }'
61         reference: __pet_ref_4
62         read: 0
63         write: 1
64       - type: int
65         value: 5
66   arguments:
67   - type: access
68     relation: '{ S_1[] -> __pet_test_0[] }'
69     index: '{ S_1[] -> __pet_test_0[] }'
70     reference: __pet_ref_3
71     read: 1
72     write: 0