Debian Codegraph @

checker/values.mli

raw symbols SCIP
1 (************************************************************************)
2 (* * The Rocq Prover / The Rocq Development Team *)
3 (* v * Copyright INRIA, CNRS and contributors *)
4 (* <O___,, * (see version control and CREDITS file for authors & dates) *)
5 (* \VV/ **************************************************************)
6 (* // * This file is distributed under the terms of the *)
7 (* * GNU Lesser General Public License Version 2.1 *)
8 (* * (see LICENSE file for the text of the license) *)
9 (************************************************************************)
10
11 type 'v kind = private
12 | Any
13 (** A value that we won't check, *)
14
15 | Fail of string
16 (** A value that shouldn't be there at all, *)
17
18 | Tuple of string * 'v array
19 (** A debug name and sub-values in this block *)
20
21 | Sum of string * int * 'v array array
22 (** A debug name, a number of constant constructors, and sub-values
23 at each position of each possible constructed variant *)
24
25 | Array of 'v
26 | List of 'v
27 | Opt of 'v
28 | Int
29 | String
30 (** Builtin Ocaml types. *)
31
32 | Annot of string * 'v
33 (** Adds a debug note to the inner value *)
34
35 | Int64
36 | Float64
37
38 type value
39
40 val equal : value -> value -> bool
41
42 val kind : value -> value kind
43
44 val v_any : value
45 val v_fail : string -> value
46 val v_tuple : string -> value array -> value
47 val v_sum : string -> int -> value array array -> value
48 val v_array : value -> value
49 val v_list : value -> value
50 val v_opt : value -> value
51 val v_int : value
52 val v_string : value
53 val v_annot : string -> value -> value
54 val v_int64 : value
55 val v_float64 : value
56
57 (** Define a recursive value. [fix (fun v -> v)] is invalid. *)
58 val fix : (value -> value) -> value
59
60 val v_libsum : value
61 val v_lib : value
62 val v_opaquetable : value
63 val v_vmlib : value