source: extracted/initialisation.mli @ 2601

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

Extraction to ocaml is now working, with a couple of bugs left.
One limitation is that it is not possible to have two files with the
same name in different directories. Therefore this commit renames files
to avoid this situation.

The extracted directory contains:

  1. a snapshot of the .ml(i) files extracted from CerCo? by running ocamlc.opt -extract_ocaml compiler.ma The files have been patched by hand to implement all strings and fix the bugs.
  2. a file PROBLEMS that describes the remaining problems, i.e. bugs and axioms to be implemented

To obtain the compiler, run ocamlbuild compiler.byte.
At the moment it fails because of the three remaining axioms.

File size: 1.8 KB
Line 
1open Preamble
2
3open CostLabel
4
5open FrontEndVal
6
7open Hide
8
9open ByteValues
10
11open GenMem
12
13open FrontEndMem
14
15open Proper
16
17open PositiveMap
18
19open Deqsets
20
21open Extralib
22
23open Lists
24
25open Identifiers
26
27open Floats
28
29open Integers
30
31open AST
32
33open Division
34
35open Arithmetic
36
37open Extranat
38
39open Vector
40
41open FoldStuff
42
43open BitVector
44
45open Z
46
47open BitVectorZ
48
49open Pointers
50
51open Option
52
53open Setoids
54
55open Monad
56
57open Positive
58
59open Char
60
61open String
62
63open PreIdentifiers
64
65open Errors
66
67open Div_and_mod
68
69open Jmeq
70
71open Russell
72
73open Util
74
75open Bool
76
77open Relations
78
79open Nat
80
81open List
82
83open Hints_declaration
84
85open Core_notation
86
87open Pts
88
89open Logic
90
91open Types
92
93open Coqlib
94
95open Values
96
97open FrontEndOps
98
99open Cminor_syntax
100
101open Extra_bool
102
103open Globalenvs
104
105val init_expr :
106  AST.init_data -> (AST.typ, Cminor_syntax.expr) Types.dPair Types.option
107
108val option_jmdiscr : 'a1 Types.option -> 'a1 Types.option -> __
109
110val dPair_jmdiscr : ('a1, 'a2) Types.dPair -> ('a1, 'a2) Types.dPair -> __
111
112val init_datum :
113  AST.ident -> AST.region -> AST.init_data -> Nat.nat -> Cminor_syntax.stmt
114  Types.sig0
115
116val init_var :
117  AST.ident -> AST.region -> AST.init_data List.list -> Cminor_syntax.stmt
118  Types.sig0
119
120val init_vars :
121  ((AST.ident, AST.region) Types.prod, AST.init_data List.list) Types.prod
122  List.list -> Cminor_syntax.stmt Types.sig0
123
124val add_statement :
125  CostLabel.costlabel -> AST.ident -> Cminor_syntax.stmt Types.sig0 ->
126  (AST.ident, Cminor_syntax.internal_function AST.fundef) Types.prod
127  List.list -> (AST.ident, Cminor_syntax.internal_function AST.fundef)
128  Types.prod List.list
129
130val empty_vars :
131  ((AST.ident, AST.region) Types.prod, AST.init_data List.list) Types.prod
132  List.list -> ((AST.ident, AST.region) Types.prod, Nat.nat) Types.prod
133  List.list
134
135val replace_init :
136  CostLabel.costlabel -> Cminor_syntax.cminor_program ->
137  Cminor_syntax.cminor_noinit_program
138
Note: See TracBrowser for help on using the repository browser.