source: extracted/compiler.mli @ 2829

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

Semantics files committed.

File size: 7.9 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 syntax_of_pass = __
315
316type observe_pass = pass -> syntax_of_pass -> Types.unit0
317
318val front_end :
319  observe_pass -> Csyntax.clight_program -> ((CostLabel.costlabel,
320  Csyntax.clight_program) Types.prod, RTLabs_syntax.rTLabs_program)
321  Types.prod Errors.res
322
323val compute_fixpoint : Fixpoints.fixpoint_computer
324
325val colour_graph : Interference.coloured_graph_computer
326
327val back_end :
328  observe_pass -> RTLabs_syntax.rTLabs_program ->
329  ((ASM.pseudo_assembly_program, Joint.stack_cost_model) Types.prod, Nat.nat)
330  Types.prod Errors.res
331
332open Assembly
333
334open Status
335
336open Fetch
337
338open PolicyFront
339
340open PolicyStep
341
342open Policy
343
344val assembler :
345  ASM.pseudo_assembly_program -> ASM.labelled_object_code Errors.res
346
347open AbstractStatus
348
349open StatusProofs
350
351open Interpret
352
353open ASMCosts
354
355val lift_cost_map_back_to_front :
356  Csyntax.clight_program -> BitVector.byte BitVectorTrie.bitVectorTrie ->
357  CostLabel.costlabel BitVectorTrie.bitVectorTrie ->
358  StructuredTraces.as_cost_map -> Label.clight_cost_map
359
360open UtilBranch
361
362open ASMCostsSplit
363
364type compiler_output = { c_labelled_object_code : ASM.labelled_object_code;
365                         c_stack_cost : Joint.stack_cost_model;
366                         c_max_stack : Nat.nat;
367                         c_labelled_clight : Csyntax.clight_program;
368                         c_clight_cost_map : Label.clight_cost_map }
369
370val compiler_output_rect_Type4 :
371  (ASM.labelled_object_code -> Joint.stack_cost_model -> Nat.nat ->
372  Csyntax.clight_program -> Label.clight_cost_map -> 'a1) -> compiler_output
373  -> 'a1
374
375val compiler_output_rect_Type5 :
376  (ASM.labelled_object_code -> Joint.stack_cost_model -> Nat.nat ->
377  Csyntax.clight_program -> Label.clight_cost_map -> 'a1) -> compiler_output
378  -> 'a1
379
380val compiler_output_rect_Type3 :
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_Type2 :
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_Type1 :
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_Type0 :
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 c_labelled_object_code : compiler_output -> ASM.labelled_object_code
401
402val c_stack_cost : compiler_output -> Joint.stack_cost_model
403
404val c_max_stack : compiler_output -> Nat.nat
405
406val c_labelled_clight : compiler_output -> Csyntax.clight_program
407
408val c_clight_cost_map : compiler_output -> Label.clight_cost_map
409
410val compiler_output_inv_rect_Type4 :
411  compiler_output -> (ASM.labelled_object_code -> Joint.stack_cost_model ->
412  Nat.nat -> Csyntax.clight_program -> Label.clight_cost_map -> __ -> 'a1) ->
413  'a1
414
415val compiler_output_inv_rect_Type3 :
416  compiler_output -> (ASM.labelled_object_code -> Joint.stack_cost_model ->
417  Nat.nat -> Csyntax.clight_program -> Label.clight_cost_map -> __ -> 'a1) ->
418  'a1
419
420val compiler_output_inv_rect_Type2 :
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_Type1 :
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_Type0 :
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_discr : compiler_output -> compiler_output -> __
436
437val compiler_output_jmdiscr : compiler_output -> compiler_output -> __
438
439val compile :
440  observe_pass -> Csyntax.clight_program -> compiler_output Errors.res
441
Note: See TracBrowser for help on using the repository browser.