link against isl libraries first
[pet.git] / tests / encapsulate / for_while.scop
blobd194c0490ed5b9e2e2eb9d2730778b3a40a74b5f
1 start: 83
2 end: 231
3 indent: "\t"
4 context: '[n] -> {  : -2147483648 <= n <= 2147483647 }'
5 schedule: '{ domain: "[n] -> { S_7[]; S1[x1] : 0 <= x1 < n; S_4[x1] : 0 <= x1 < n;
6   S_3[x1] : 0 <= x1 < n; S_5[x1] : 0 <= x1 < n; R[x1] : 0 <= x1 < n }", child: { sequence:
7   [ { filter: "[n] -> { S1[x1]; S_4[x1]; S_3[x1]; S_5[x1]; R[x1] }", child: { schedule:
8   "[n] -> L_0[{ S1[x1] -> [(x1)]; S_4[x1] -> [(x1)]; S_3[x1] -> [(x1)]; S_5[x1] ->
9   [(x1)]; R[x1] -> [(x1)] }]", child: { sequence: [ { filter: "[n] -> { S1[x1] }"
10   }, { filter: "[n] -> { S_4[x1] }" }, { filter: "[n] -> { S_3[x1] }" }, { filter:
11   "[n] -> { S_5[x1] }" }, { filter: "[n] -> { R[x1] }" } ] } } }, { filter: "[n] ->
12   { S_7[] }" } ] } }'
13 arrays:
14 - context: '{  :  }'
15   extent: '[n] -> { x2[] }'
16   element_type: int
17   element_size: 4
18   declared: 1
19 - context: '{  :  }'
20   extent: '[n] -> { s[] }'
21   element_type: int
22   element_size: 4
23 statements:
24 - line: 12
25   domain: '[n] -> { S1[x1] : 0 <= x1 < n }'
26   body:
27     type: expression
28     expr:
29       type: op
30       operation: =
31       arguments:
32       - type: access
33         index: '[n] -> { S1[x1] -> s[] }'
34         reference: __pet_ref_0
35         read: 0
36         write: 1
37       - type: call
38         name: f
39 - line: 13
40   domain: '[n] -> { S_4[x1] : 0 <= x1 < n }'
41   body:
42     type: expression
43     expr:
44       type: op
45       operation: kill
46       arguments:
47       - type: access
48         killed: '[n] -> { S_4[x1] -> x2[] }'
49         index: '[n] -> { S_4[x1] -> x2[] }'
50         reference: __pet_ref_1
51         kill: 1
52 - line: 13
53   domain: '[n] -> { S_3[x1] : 0 <= x1 < n }'
54   body:
55     type: for
56     declared: 1
57     variable:
58       type: access
59       index: '[n] -> { S_3[x1] -> x2[] }'
60       reference: __pet_ref_2
61       read: 0
62       write: 1
63     initialization:
64       type: int
65       value: 0
66     condition:
67       type: call
68       name: P
69       arguments:
70       - type: access
71         index: '[n] -> { S_3[x1] -> [(x1)] }'
72         reference: __pet_ref_3
73         read: 1
74         write: 0
75       - type: access
76         index: '[n] -> { S_3[x1] -> x2[] }'
77         reference: __pet_ref_4
78         read: 1
79         write: 0
80     increment:
81       type: int
82       value: 1
83     body:
84       type: block
85       block: 1
86       children:
87       - type: expression
88         expr:
89           type: op
90           operation: =
91           arguments:
92           - type: access
93             index: '[n] -> { S_3[x1] -> s[] }'
94             reference: __pet_ref_5
95             read: 0
96             write: 1
97           - type: call
98             name: g
99             arguments:
100             - type: access
101               index: '[n] -> { S_3[x1] -> s[] }'
102               reference: __pet_ref_6
103               read: 1
104               write: 0
105 - line: 13
106   domain: '[n] -> { S_5[x1] : 0 <= x1 < n }'
107   body:
108     type: expression
109     expr:
110       type: op
111       operation: kill
112       arguments:
113       - type: access
114         killed: '[n] -> { S_5[x1] -> x2[] }'
115         index: '[n] -> { S_5[x1] -> x2[] }'
116         reference: __pet_ref_7
117         kill: 1
118 - line: 16
119   domain: '[n] -> { R[x1] : 0 <= x1 < n }'
120   body:
121     type: expression
122     expr:
123       type: call
124       name: h
125       arguments:
126       - type: access
127         index: '[n] -> { R[x1] -> s[] }'
128         reference: __pet_ref_8
129         read: 1
130         write: 0
131 - line: -1
132   domain: '[n] -> { S_7[] }'
133   body:
134     type: expression
135     expr:
136       type: op
137       operation: kill
138       arguments:
139       - type: access
140         killed: '[n] -> { S_7[] -> s[] }'
141         index: '[n] -> { S_7[] -> s[] }'
142         reference: __pet_ref_9
143         kill: 1