aboutsummaryrefslogtreecommitdiff
path: root/checker/values.mli
blob: ced7de4719a8c0cfdcbb0a9c8de5a0e88d80dfd8 (plain)
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
48
49
50
51
(************************************************************************)
(*         *   The Coq Proof Assistant / The Coq Development Team       *)
(*  v      *         Copyright INRIA, CNRS and contributors             *)
(* <O___,, * (see version control and CREDITS file for authors & dates) *)
(*   \VV/  **************************************************************)
(*    //   *    This file is distributed under the terms of the         *)
(*         *     GNU Lesser General Public License Version 2.1          *)
(*         *     (see LICENSE file for the text of the license)         *)
(************************************************************************)

type value =
  | Any
  (** A value that we won't check, *)

  | Fail of string
  (** A value that shouldn't be there at all, *)

  | Tuple of string * value array
  (** A debug name and sub-values in this block *)

  | Sum of string * int * value array array
  (** A debug name, a number of constant constructors, and sub-values
     at each position of each possible constructed variant *)

  | Array of value
  | List of value
  | Opt of value
  | Int
  | String
  (** Builtin Ocaml types. *)

  | Annot of string * value
  (** Adds a debug note to the inner value *)

  | Dyn
  (** Coq's Dyn.t *)

  | Proxy of value ref
  (** Same as the inner value, used to define recursive types *)

  | Int64
  | Float64

(** NB: List and Opt have their own constructors to make it easy to
   define eg [let rec foo = List foo]. *)

val v_univopaques : value
val v_libsum : value
val v_lib : value
val v_opaquetable : value
val v_stm_seg : value