Debian Codegraph @

kernel/retroknowledge.ml

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 (* Created by Arnaud Spiwack, May 2007 *)
12 (* Addition of native Head (nb of heading 0) and Tail (nb of trailing 0) by
13 Benjamin Grégoire, Jun 2007 *)
14
15 (* This file defines the knowledge that the kernel is able to optimize. *)
16
17 open Names
18
19 type retroknowledge = {
20 retro_int63 : Constant.t option;
21 retro_float64 : Constant.t option;
22 retro_string : Constant.t option;
23 retro_array : Constant.t option;
24 retro_bool : (constructor * constructor) option; (* true, false *)
25 retro_carry : (constructor * constructor) option; (* C0, C1 *)
26 retro_pair : constructor option;
27 retro_cmp : (constructor * constructor * constructor) option;
28 (* Eq, Lt, Gt *)
29 retro_f_cmp : (constructor * constructor * constructor * constructor)
30 option;
31 (* FEq, FLt, FGt, FNotComparable *)
32 retro_f_class : (constructor * constructor * constructor * constructor
33 * constructor * constructor * constructor * constructor
34 * constructor)
35 option;
36 (* PNormal, NNormal, PSubn, NSubn,
37 PZero, NZero, PInf, NInf,
38 NaN *)
39 }
40
41 let empty = {
42 retro_int63 = None;
43 retro_float64 = None;
44 retro_string = None;
45 retro_array = None;
46 retro_bool = None;
47 retro_carry = None;
48 retro_pair = None;
49 retro_cmp = None;
50 retro_f_cmp = None;
51 retro_f_class = None;
52 }
53
54 type action =
55 | Register_ind : 'a CPrimitives.prim_ind * inductive -> action
56 | Register_type : 'a CPrimitives.prim_type * Constant.t -> action