source: extracted/compiler.mli @ 2842

Last change on this file since 2842 was 2842, checked in by sacerdot, 7 years ago

The compiler can now show all back-end traces too (assembly and object code
are excluded ATM).

File size: 8.1 KB
Line 
1open Preamble
2
3open CostLabel
4
5open Coqlib
6
7open Proper
8
9open PositiveMap
10
11open Deqsets
12
13open ErrorMessages
14
15open PreIdentifiers
16
17open Errors
18
19open Extralib
20
21open Lists
22
23open Positive
24
25open Identifiers
26
27open Exp
28
29open Arithmetic
30
31open Vector
32
33open Div_and_mod
34
35open Util
36
37open FoldStuff
38
39open BitVector
40
41open Jmeq
42
43open Russell
44
45open List
46
47open Setoids
48
49open Monad
50
51open Option
52
53open Extranat
54
55open Bool
56
57open Relations
58
59open Nat
60
61open Integers
62
63open Hints_declaration
64
65open Core_notation
66
67open Pts
68
69open Logic
70
71open Types
72
73open AST
74
75open Csyntax
76
77open Label
78
79open Sets
80
81open Listb
82
83open Star
84
85open Frontend_misc
86
87open CexecInd
88
89open CexecSound
90
91open Casts
92
93open ClassifyOp
94
95open Smallstep
96
97open Extra_bool
98
99open FrontEndVal
100
101open Hide
102
103open ByteValues
104
105open GenMem
106
107open FrontEndMem
108
109open Globalenvs
110
111open Csem
112
113open SmallstepExec
114
115open Division
116
117open Z
118
119open BitVectorZ
120
121open Pointers
122
123open Values
124
125open Events
126
127open IOMonad
128
129open IO
130
131open Cexec
132
133open TypeComparison
134
135open SimplifyCasts
136
137open MemProperties
138
139open MemoryInjections
140
141open Fresh
142
143open SwitchRemoval
144
145open FrontEndOps
146
147open Cminor_syntax
148
149open ToCminor
150
151open Initialisation
152
153open BitVectorTrie
154
155open Graphs
156
157open Order
158
159open Registers
160
161open RTLabs_syntax
162
163open ToRTLabs
164
165open Deqsets_extra
166
167open CostMisc
168
169open Listb_extra
170
171open CostSpec
172
173open CostCheck
174
175open Executions
176
177open StructuredTraces
178
179open RTLabs_semantics
180
181open RTLabs_abstract
182
183open RTLabs_traces
184
185open CostInj
186
187open State
188
189open Bind_new
190
191open BindLists
192
193open Blocks
194
195open TranslateUtils
196
197open String
198
199open LabelledObjects
200
201open I8051
202
203open BackEndOps
204
205open Joint
206
207open RTL
208
209open RTLabsToRTL
210
211open ERTL
212
213open RegisterSet
214
215open RTLToERTL
216
217open ERTLptr
218
219open ERTLToERTLptr
220
221open Fixpoints
222
223open Set_adt
224
225open Liveness
226
227open Interference
228
229open Joint_LTL_LIN
230
231open LTL
232
233open ERTLptrToLTL
234
235open LIN
236
237open Linearise
238
239open LTLToLIN
240
241open ASM
242
243open BitVectorTrieSet
244
245open LINToASM
246
247type pass =
248| Clight_pass
249| Clight_switch_removed_pass
250| Clight_label_pass
251| Clight_simplified_pass
252| Cminor_pass
253| Rtlabs_pass
254| Rtl_separate_pass
255| Rtl_uniq_pass
256| Ertl_pass
257| Ertlptr_pass
258| Ltl_pass
259| Lin_pass
260
261val pass_rect_Type4 :
262  'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1
263  -> 'a1 -> pass -> 'a1
264
265val pass_rect_Type5 :
266  'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1
267  -> 'a1 -> pass -> 'a1
268
269val pass_rect_Type3 :
270  'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1
271  -> 'a1 -> pass -> 'a1
272
273val pass_rect_Type2 :
274  'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1
275  -> 'a1 -> pass -> 'a1
276
277val pass_rect_Type1 :
278  'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1
279  -> 'a1 -> pass -> 'a1
280
281val pass_rect_Type0 :
282  'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1 -> 'a1
283  -> 'a1 -> pass -> 'a1
284
285val pass_inv_rect_Type4 :
286  pass -> (__ -> 'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ ->
287  'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ ->
288  'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> 'a1
289
290val pass_inv_rect_Type3 :
291  pass -> (__ -> 'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ ->
292  'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ ->
293  'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> 'a1
294
295val pass_inv_rect_Type2 :
296  pass -> (__ -> 'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ ->
297  'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ ->
298  'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> 'a1
299
300val pass_inv_rect_Type1 :
301  pass -> (__ -> 'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ ->
302  'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ ->
303  'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> 'a1
304
305val pass_inv_rect_Type0 :
306  pass -> (__ -> 'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ ->
307  'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> (__ ->
308  'a1) -> (__ -> 'a1) -> (__ -> 'a1) -> 'a1
309
310val pass_discr : pass -> pass -> __
311
312val pass_jmdiscr : pass -> pass -> __
313
314type 'x with_stack_model = ('x, AST.ident -> Nat.nat Types.option) Types.prod
315
316type syntax_of_pass = __
317
318type observe_pass = pass -> syntax_of_pass -> Types.unit0
319
320val front_end :
321  observe_pass -> Csyntax.clight_program -> ((CostLabel.costlabel,
322  Csyntax.clight_program) Types.prod, RTLabs_syntax.rTLabs_program)
323  Types.prod Errors.res
324
325open Uses
326
327val compute_fixpoint : Fixpoints.fixpoint_computer
328
329val colour_graph : Interference.coloured_graph_computer
330
331open AssocList
332
333val lookup_stack_cost :
334  Joint.params -> Joint.joint_program -> PreIdentifiers.identifier -> Nat.nat
335  Types.option
336
337val back_end :
338  observe_pass -> RTLabs_syntax.rTLabs_program ->
339  ((ASM.pseudo_assembly_program, Joint.stack_cost_model) Types.prod, Nat.nat)
340  Types.prod Errors.res
341
342open Assembly
343
344open Status
345
346open Fetch
347
348open PolicyFront
349
350open PolicyStep
351
352open Policy
353
354val assembler :
355  ASM.pseudo_assembly_program -> ASM.labelled_object_code Errors.res
356
357open AbstractStatus
358
359open StatusProofs
360
361open Interpret
362
363open ASMCosts
364
365val lift_cost_map_back_to_front :
366  Csyntax.clight_program -> BitVector.byte BitVectorTrie.bitVectorTrie ->
367  CostLabel.costlabel BitVectorTrie.bitVectorTrie ->
368  StructuredTraces.as_cost_map -> Label.clight_cost_map
369
370open UtilBranch
371
372open ASMCostsSplit
373
374type compiler_output = { c_labelled_object_code : ASM.labelled_object_code;
375                         c_stack_cost : Joint.stack_cost_model;
376                         c_max_stack : Nat.nat;
377                         c_labelled_clight : Csyntax.clight_program;
378                         c_clight_cost_map : Label.clight_cost_map }
379
380val compiler_output_rect_Type4 :
381  (ASM.labelled_object_code -> Joint.stack_cost_model -> Nat.nat ->
382  Csyntax.clight_program -> Label.clight_cost_map -> 'a1) -> compiler_output
383  -> 'a1
384
385val compiler_output_rect_Type5 :
386  (ASM.labelled_object_code -> Joint.stack_cost_model -> Nat.nat ->
387  Csyntax.clight_program -> Label.clight_cost_map -> 'a1) -> compiler_output
388  -> 'a1
389
390val compiler_output_rect_Type3 :
391  (ASM.labelled_object_code -> Joint.stack_cost_model -> Nat.nat ->
392  Csyntax.clight_program -> Label.clight_cost_map -> 'a1) -> compiler_output
393  -> 'a1
394
395val compiler_output_rect_Type2 :
396  (ASM.labelled_object_code -> Joint.stack_cost_model -> Nat.nat ->
397  Csyntax.clight_program -> Label.clight_cost_map -> 'a1) -> compiler_output
398  -> 'a1
399
400val compiler_output_rect_Type1 :
401  (ASM.labelled_object_code -> Joint.stack_cost_model -> Nat.nat ->
402  Csyntax.clight_program -> Label.clight_cost_map -> 'a1) -> compiler_output
403  -> 'a1
404
405val compiler_output_rect_Type0 :
406  (ASM.labelled_object_code -> Joint.stack_cost_model -> Nat.nat ->
407  Csyntax.clight_program -> Label.clight_cost_map -> 'a1) -> compiler_output
408  -> 'a1
409
410val c_labelled_object_code : compiler_output -> ASM.labelled_object_code
411
412val c_stack_cost : compiler_output -> Joint.stack_cost_model
413
414val c_max_stack : compiler_output -> Nat.nat
415
416val c_labelled_clight : compiler_output -> Csyntax.clight_program
417
418val c_clight_cost_map : compiler_output -> Label.clight_cost_map
419
420val compiler_output_inv_rect_Type4 :
421  compiler_output -> (ASM.labelled_object_code -> Joint.stack_cost_model ->
422  Nat.nat -> Csyntax.clight_program -> Label.clight_cost_map -> __ -> 'a1) ->
423  'a1
424
425val compiler_output_inv_rect_Type3 :
426  compiler_output -> (ASM.labelled_object_code -> Joint.stack_cost_model ->
427  Nat.nat -> Csyntax.clight_program -> Label.clight_cost_map -> __ -> 'a1) ->
428  'a1
429
430val compiler_output_inv_rect_Type2 :
431  compiler_output -> (ASM.labelled_object_code -> Joint.stack_cost_model ->
432  Nat.nat -> Csyntax.clight_program -> Label.clight_cost_map -> __ -> 'a1) ->
433  'a1
434
435val compiler_output_inv_rect_Type1 :
436  compiler_output -> (ASM.labelled_object_code -> Joint.stack_cost_model ->
437  Nat.nat -> Csyntax.clight_program -> Label.clight_cost_map -> __ -> 'a1) ->
438  'a1
439
440val compiler_output_inv_rect_Type0 :
441  compiler_output -> (ASM.labelled_object_code -> Joint.stack_cost_model ->
442  Nat.nat -> Csyntax.clight_program -> Label.clight_cost_map -> __ -> 'a1) ->
443  'a1
444
445val compiler_output_discr : compiler_output -> compiler_output -> __
446
447val compiler_output_jmdiscr : compiler_output -> compiler_output -> __
448
449val compile :
450  observe_pass -> Csyntax.clight_program -> compiler_output Errors.res
451
Note: See TracBrowser for help on using the repository browser.