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