-
Notifications
You must be signed in to change notification settings - Fork 19
/
types.mli
47 lines (29 loc) · 1.02 KB
/
types.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
open Variance
open Typector
(* Type automata and biunification *)
type state
val cons : polarity -> state Typector.Components.t -> state
val compile_type :
context -> polarity -> typeterm -> state
val compile_type_pair :
context -> typeterm -> state * state
val print_automaton :
context -> (* FIXME should not need this *)
string ->
Format.formatter -> ((string -> state -> unit) -> unit) -> unit
val garbage_collect : state -> unit
val decompile_automaton : state list -> typeterm list
val flow_pair : unit -> state * state
val zero : polarity -> state
val constrain : Location.t -> state -> state -> Error.t list
type dstate
val clone : ((Location.set -> dstate -> state) -> 'a) -> 'a
val determinise :
state list -> (state -> dstate) * dstate list
val minimise : dstate list -> dstate -> dstate
val entailed : dstate -> dstate -> bool
val subsumed :
((Variance.polarity -> state -> dstate -> bool) -> bool) ->
bool
val find_reachable_dstates : dstate list -> dstate list
val optimise_flow : dstate list -> unit