Last change
on this file since 2717 was
2717,
checked in by sacerdot, 8 years ago
|
Extracted code for the whole compiler.
The space cost model is not there yet.
I have fixed by hand the few extraction problems
(i.e. composed coercions not extracted and type
definitions with wrong syntax).
I have also changed all axioms to be implemented
so that they do not fail at initialization time.
|
File size:
761 bytes
|
Rev | Line | |
---|
[2717] | 1 | open Preamble |
---|
| 2 | |
---|
| 3 | open State |
---|
| 4 | |
---|
| 5 | open Jmeq |
---|
| 6 | |
---|
| 7 | open Russell |
---|
| 8 | |
---|
| 9 | open Bool |
---|
| 10 | |
---|
| 11 | open Nat |
---|
| 12 | |
---|
| 13 | open List |
---|
| 14 | |
---|
| 15 | open Setoids |
---|
| 16 | |
---|
| 17 | open Relations |
---|
| 18 | |
---|
| 19 | open Hints_declaration |
---|
| 20 | |
---|
| 21 | open Core_notation |
---|
| 22 | |
---|
| 23 | open Pts |
---|
| 24 | |
---|
| 25 | open Logic |
---|
| 26 | |
---|
| 27 | open Types |
---|
| 28 | |
---|
| 29 | open Monad |
---|
| 30 | |
---|
| 31 | open Bind_new |
---|
| 32 | |
---|
| 33 | type ('b, 'e) bind_list = ('b, 'e List.list) Bind_new.bind_new |
---|
| 34 | |
---|
| 35 | (** val bappend : |
---|
| 36 | ('a1, 'a2) bind_list -> ('a1, 'a2) bind_list -> ('a1, 'a2) bind_list **) |
---|
| 37 | let bappend x = |
---|
| 38 | Obj.magic |
---|
| 39 | (Monad.m_bin_op (Monad.max_def Bind_new.bindNew) List.append |
---|
| 40 | (Obj.magic x)) |
---|
| 41 | |
---|
| 42 | open Extranat |
---|
| 43 | |
---|
| 44 | open Div_and_mod |
---|
| 45 | |
---|
| 46 | open Util |
---|
| 47 | |
---|
| 48 | open Vector |
---|
| 49 | |
---|
| 50 | (** val bcons : 'a2 -> ('a1, 'a2) bind_list -> ('a1, 'a2) bind_list **) |
---|
| 51 | let bcons e0 = |
---|
| 52 | Obj.magic |
---|
| 53 | (Monad.m_map (Monad.max_def Bind_new.bindNew) (fun x -> List.Cons (e0, |
---|
| 54 | x))) |
---|
| 55 | |
---|
| 56 | open Option |
---|
| 57 | |
---|
| 58 | open Lists |
---|
| 59 | |
---|
Note: See
TracBrowser
for help on using the repository browser.