1 | open Preamble |
---|
2 | |
---|
3 | open Fixpoints |
---|
4 | |
---|
5 | open Set_adt |
---|
6 | |
---|
7 | open String |
---|
8 | |
---|
9 | open Sets |
---|
10 | |
---|
11 | open Listb |
---|
12 | |
---|
13 | open LabelledObjects |
---|
14 | |
---|
15 | open BitVectorTrie |
---|
16 | |
---|
17 | open Graphs |
---|
18 | |
---|
19 | open I8051 |
---|
20 | |
---|
21 | open Order |
---|
22 | |
---|
23 | open Registers |
---|
24 | |
---|
25 | open CostLabel |
---|
26 | |
---|
27 | open Hide |
---|
28 | |
---|
29 | open Proper |
---|
30 | |
---|
31 | open PositiveMap |
---|
32 | |
---|
33 | open Deqsets |
---|
34 | |
---|
35 | open ErrorMessages |
---|
36 | |
---|
37 | open PreIdentifiers |
---|
38 | |
---|
39 | open Errors |
---|
40 | |
---|
41 | open Extralib |
---|
42 | |
---|
43 | open Lists |
---|
44 | |
---|
45 | open Identifiers |
---|
46 | |
---|
47 | open Integers |
---|
48 | |
---|
49 | open AST |
---|
50 | |
---|
51 | open Division |
---|
52 | |
---|
53 | open Exp |
---|
54 | |
---|
55 | open Arithmetic |
---|
56 | |
---|
57 | open Setoids |
---|
58 | |
---|
59 | open Monad |
---|
60 | |
---|
61 | open Option |
---|
62 | |
---|
63 | open Extranat |
---|
64 | |
---|
65 | open Vector |
---|
66 | |
---|
67 | open FoldStuff |
---|
68 | |
---|
69 | open BitVector |
---|
70 | |
---|
71 | open Positive |
---|
72 | |
---|
73 | open Z |
---|
74 | |
---|
75 | open BitVectorZ |
---|
76 | |
---|
77 | open Pointers |
---|
78 | |
---|
79 | open ByteValues |
---|
80 | |
---|
81 | open BackEndOps |
---|
82 | |
---|
83 | open Joint |
---|
84 | |
---|
85 | open ERTL |
---|
86 | |
---|
87 | open ERTLptr |
---|
88 | |
---|
89 | open Div_and_mod |
---|
90 | |
---|
91 | open Jmeq |
---|
92 | |
---|
93 | open Russell |
---|
94 | |
---|
95 | open Bool |
---|
96 | |
---|
97 | open Relations |
---|
98 | |
---|
99 | open Nat |
---|
100 | |
---|
101 | open Hints_declaration |
---|
102 | |
---|
103 | open Core_notation |
---|
104 | |
---|
105 | open Pts |
---|
106 | |
---|
107 | open Logic |
---|
108 | |
---|
109 | open Types |
---|
110 | |
---|
111 | open List |
---|
112 | |
---|
113 | open Util |
---|
114 | |
---|
115 | open Liveness |
---|
116 | |
---|
117 | type decision = |
---|
118 | | Decision_spill of Nat.nat |
---|
119 | | Decision_colour of I8051.register |
---|
120 | |
---|
121 | (** val decision_rect_Type4 : |
---|
122 | (Nat.nat -> 'a1) -> (I8051.register -> 'a1) -> decision -> 'a1 **) |
---|
123 | let rec decision_rect_Type4 h_decision_spill h_decision_colour = function |
---|
124 | | Decision_spill x_21838 -> h_decision_spill x_21838 |
---|
125 | | Decision_colour x_21839 -> h_decision_colour x_21839 |
---|
126 | |
---|
127 | (** val decision_rect_Type5 : |
---|
128 | (Nat.nat -> 'a1) -> (I8051.register -> 'a1) -> decision -> 'a1 **) |
---|
129 | let rec decision_rect_Type5 h_decision_spill h_decision_colour = function |
---|
130 | | Decision_spill x_21843 -> h_decision_spill x_21843 |
---|
131 | | Decision_colour x_21844 -> h_decision_colour x_21844 |
---|
132 | |
---|
133 | (** val decision_rect_Type3 : |
---|
134 | (Nat.nat -> 'a1) -> (I8051.register -> 'a1) -> decision -> 'a1 **) |
---|
135 | let rec decision_rect_Type3 h_decision_spill h_decision_colour = function |
---|
136 | | Decision_spill x_21848 -> h_decision_spill x_21848 |
---|
137 | | Decision_colour x_21849 -> h_decision_colour x_21849 |
---|
138 | |
---|
139 | (** val decision_rect_Type2 : |
---|
140 | (Nat.nat -> 'a1) -> (I8051.register -> 'a1) -> decision -> 'a1 **) |
---|
141 | let rec decision_rect_Type2 h_decision_spill h_decision_colour = function |
---|
142 | | Decision_spill x_21853 -> h_decision_spill x_21853 |
---|
143 | | Decision_colour x_21854 -> h_decision_colour x_21854 |
---|
144 | |
---|
145 | (** val decision_rect_Type1 : |
---|
146 | (Nat.nat -> 'a1) -> (I8051.register -> 'a1) -> decision -> 'a1 **) |
---|
147 | let rec decision_rect_Type1 h_decision_spill h_decision_colour = function |
---|
148 | | Decision_spill x_21858 -> h_decision_spill x_21858 |
---|
149 | | Decision_colour x_21859 -> h_decision_colour x_21859 |
---|
150 | |
---|
151 | (** val decision_rect_Type0 : |
---|
152 | (Nat.nat -> 'a1) -> (I8051.register -> 'a1) -> decision -> 'a1 **) |
---|
153 | let rec decision_rect_Type0 h_decision_spill h_decision_colour = function |
---|
154 | | Decision_spill x_21863 -> h_decision_spill x_21863 |
---|
155 | | Decision_colour x_21864 -> h_decision_colour x_21864 |
---|
156 | |
---|
157 | (** val decision_inv_rect_Type4 : |
---|
158 | decision -> (Nat.nat -> __ -> 'a1) -> (I8051.register -> __ -> 'a1) -> |
---|
159 | 'a1 **) |
---|
160 | let decision_inv_rect_Type4 hterm h1 h2 = |
---|
161 | let hcut = decision_rect_Type4 h1 h2 hterm in hcut __ |
---|
162 | |
---|
163 | (** val decision_inv_rect_Type3 : |
---|
164 | decision -> (Nat.nat -> __ -> 'a1) -> (I8051.register -> __ -> 'a1) -> |
---|
165 | 'a1 **) |
---|
166 | let decision_inv_rect_Type3 hterm h1 h2 = |
---|
167 | let hcut = decision_rect_Type3 h1 h2 hterm in hcut __ |
---|
168 | |
---|
169 | (** val decision_inv_rect_Type2 : |
---|
170 | decision -> (Nat.nat -> __ -> 'a1) -> (I8051.register -> __ -> 'a1) -> |
---|
171 | 'a1 **) |
---|
172 | let decision_inv_rect_Type2 hterm h1 h2 = |
---|
173 | let hcut = decision_rect_Type2 h1 h2 hterm in hcut __ |
---|
174 | |
---|
175 | (** val decision_inv_rect_Type1 : |
---|
176 | decision -> (Nat.nat -> __ -> 'a1) -> (I8051.register -> __ -> 'a1) -> |
---|
177 | 'a1 **) |
---|
178 | let decision_inv_rect_Type1 hterm h1 h2 = |
---|
179 | let hcut = decision_rect_Type1 h1 h2 hterm in hcut __ |
---|
180 | |
---|
181 | (** val decision_inv_rect_Type0 : |
---|
182 | decision -> (Nat.nat -> __ -> 'a1) -> (I8051.register -> __ -> 'a1) -> |
---|
183 | 'a1 **) |
---|
184 | let decision_inv_rect_Type0 hterm h1 h2 = |
---|
185 | let hcut = decision_rect_Type0 h1 h2 hterm in hcut __ |
---|
186 | |
---|
187 | (** val decision_discr : decision -> decision -> __ **) |
---|
188 | let decision_discr x y = |
---|
189 | Logic.eq_rect_Type2 x |
---|
190 | (match x with |
---|
191 | | Decision_spill a0 -> Obj.magic (fun _ dH -> dH __) |
---|
192 | | Decision_colour a0 -> Obj.magic (fun _ dH -> dH __)) y |
---|
193 | |
---|
194 | (** val decision_jmdiscr : decision -> decision -> __ **) |
---|
195 | let decision_jmdiscr x y = |
---|
196 | Logic.eq_rect_Type2 x |
---|
197 | (match x with |
---|
198 | | Decision_spill a0 -> Obj.magic (fun _ dH -> dH __) |
---|
199 | | Decision_colour a0 -> Obj.magic (fun _ dH -> dH __)) y |
---|
200 | |
---|
201 | type coloured_graph = { colouring : (Liveness.vertex -> decision); |
---|
202 | spilled_no : Nat.nat } |
---|
203 | |
---|
204 | (** val coloured_graph_rect_Type4 : |
---|
205 | Fixpoints.valuation -> ((Liveness.vertex -> decision) -> Nat.nat -> __ -> |
---|
206 | __ -> 'a1) -> coloured_graph -> 'a1 **) |
---|
207 | let rec coloured_graph_rect_Type4 after h_mk_coloured_graph x_21899 = |
---|
208 | let { colouring = colouring0; spilled_no = spilled_no0 } = x_21899 in |
---|
209 | h_mk_coloured_graph colouring0 spilled_no0 __ __ |
---|
210 | |
---|
211 | (** val coloured_graph_rect_Type5 : |
---|
212 | Fixpoints.valuation -> ((Liveness.vertex -> decision) -> Nat.nat -> __ -> |
---|
213 | __ -> 'a1) -> coloured_graph -> 'a1 **) |
---|
214 | let rec coloured_graph_rect_Type5 after h_mk_coloured_graph x_21901 = |
---|
215 | let { colouring = colouring0; spilled_no = spilled_no0 } = x_21901 in |
---|
216 | h_mk_coloured_graph colouring0 spilled_no0 __ __ |
---|
217 | |
---|
218 | (** val coloured_graph_rect_Type3 : |
---|
219 | Fixpoints.valuation -> ((Liveness.vertex -> decision) -> Nat.nat -> __ -> |
---|
220 | __ -> 'a1) -> coloured_graph -> 'a1 **) |
---|
221 | let rec coloured_graph_rect_Type3 after h_mk_coloured_graph x_21903 = |
---|
222 | let { colouring = colouring0; spilled_no = spilled_no0 } = x_21903 in |
---|
223 | h_mk_coloured_graph colouring0 spilled_no0 __ __ |
---|
224 | |
---|
225 | (** val coloured_graph_rect_Type2 : |
---|
226 | Fixpoints.valuation -> ((Liveness.vertex -> decision) -> Nat.nat -> __ -> |
---|
227 | __ -> 'a1) -> coloured_graph -> 'a1 **) |
---|
228 | let rec coloured_graph_rect_Type2 after h_mk_coloured_graph x_21905 = |
---|
229 | let { colouring = colouring0; spilled_no = spilled_no0 } = x_21905 in |
---|
230 | h_mk_coloured_graph colouring0 spilled_no0 __ __ |
---|
231 | |
---|
232 | (** val coloured_graph_rect_Type1 : |
---|
233 | Fixpoints.valuation -> ((Liveness.vertex -> decision) -> Nat.nat -> __ -> |
---|
234 | __ -> 'a1) -> coloured_graph -> 'a1 **) |
---|
235 | let rec coloured_graph_rect_Type1 after h_mk_coloured_graph x_21907 = |
---|
236 | let { colouring = colouring0; spilled_no = spilled_no0 } = x_21907 in |
---|
237 | h_mk_coloured_graph colouring0 spilled_no0 __ __ |
---|
238 | |
---|
239 | (** val coloured_graph_rect_Type0 : |
---|
240 | Fixpoints.valuation -> ((Liveness.vertex -> decision) -> Nat.nat -> __ -> |
---|
241 | __ -> 'a1) -> coloured_graph -> 'a1 **) |
---|
242 | let rec coloured_graph_rect_Type0 after h_mk_coloured_graph x_21909 = |
---|
243 | let { colouring = colouring0; spilled_no = spilled_no0 } = x_21909 in |
---|
244 | h_mk_coloured_graph colouring0 spilled_no0 __ __ |
---|
245 | |
---|
246 | (** val colouring : |
---|
247 | Fixpoints.valuation -> coloured_graph -> Liveness.vertex -> decision **) |
---|
248 | let rec colouring after xxx = |
---|
249 | xxx.colouring |
---|
250 | |
---|
251 | (** val spilled_no : Fixpoints.valuation -> coloured_graph -> Nat.nat **) |
---|
252 | let rec spilled_no after xxx = |
---|
253 | xxx.spilled_no |
---|
254 | |
---|
255 | (** val coloured_graph_inv_rect_Type4 : |
---|
256 | Fixpoints.valuation -> coloured_graph -> ((Liveness.vertex -> decision) |
---|
257 | -> Nat.nat -> __ -> __ -> __ -> 'a1) -> 'a1 **) |
---|
258 | let coloured_graph_inv_rect_Type4 x1 hterm h1 = |
---|
259 | let hcut = coloured_graph_rect_Type4 x1 h1 hterm in hcut __ |
---|
260 | |
---|
261 | (** val coloured_graph_inv_rect_Type3 : |
---|
262 | Fixpoints.valuation -> coloured_graph -> ((Liveness.vertex -> decision) |
---|
263 | -> Nat.nat -> __ -> __ -> __ -> 'a1) -> 'a1 **) |
---|
264 | let coloured_graph_inv_rect_Type3 x1 hterm h1 = |
---|
265 | let hcut = coloured_graph_rect_Type3 x1 h1 hterm in hcut __ |
---|
266 | |
---|
267 | (** val coloured_graph_inv_rect_Type2 : |
---|
268 | Fixpoints.valuation -> coloured_graph -> ((Liveness.vertex -> decision) |
---|
269 | -> Nat.nat -> __ -> __ -> __ -> 'a1) -> 'a1 **) |
---|
270 | let coloured_graph_inv_rect_Type2 x1 hterm h1 = |
---|
271 | let hcut = coloured_graph_rect_Type2 x1 h1 hterm in hcut __ |
---|
272 | |
---|
273 | (** val coloured_graph_inv_rect_Type1 : |
---|
274 | Fixpoints.valuation -> coloured_graph -> ((Liveness.vertex -> decision) |
---|
275 | -> Nat.nat -> __ -> __ -> __ -> 'a1) -> 'a1 **) |
---|
276 | let coloured_graph_inv_rect_Type1 x1 hterm h1 = |
---|
277 | let hcut = coloured_graph_rect_Type1 x1 h1 hterm in hcut __ |
---|
278 | |
---|
279 | (** val coloured_graph_inv_rect_Type0 : |
---|
280 | Fixpoints.valuation -> coloured_graph -> ((Liveness.vertex -> decision) |
---|
281 | -> Nat.nat -> __ -> __ -> __ -> 'a1) -> 'a1 **) |
---|
282 | let coloured_graph_inv_rect_Type0 x1 hterm h1 = |
---|
283 | let hcut = coloured_graph_rect_Type0 x1 h1 hterm in hcut __ |
---|
284 | |
---|
285 | (** val coloured_graph_discr : |
---|
286 | Fixpoints.valuation -> coloured_graph -> coloured_graph -> __ **) |
---|
287 | let coloured_graph_discr a1 x y = |
---|
288 | Logic.eq_rect_Type2 x |
---|
289 | (let { colouring = a0; spilled_no = a10 } = x in |
---|
290 | Obj.magic (fun _ dH -> dH __ __ __ __)) y |
---|
291 | |
---|
292 | (** val coloured_graph_jmdiscr : |
---|
293 | Fixpoints.valuation -> coloured_graph -> coloured_graph -> __ **) |
---|
294 | let coloured_graph_jmdiscr a1 x y = |
---|
295 | Logic.eq_rect_Type2 x |
---|
296 | (let { colouring = a0; spilled_no = a10 } = x in |
---|
297 | Obj.magic (fun _ dH -> dH __ __ __ __)) y |
---|
298 | |
---|
299 | type coloured_graph_computer = |
---|
300 | AST.ident List.list -> Joint.joint_internal_function -> Fixpoints.valuation |
---|
301 | -> coloured_graph |
---|
302 | |
---|