1 (** {1 General functions related to OCaml extraction} *)
8 val constant max_array_length : int63
9 axiom non_neg_max_array_length : 0 <= max_array_length
17 exception Invalid_argument string
28 val succ (x: int63) : int63
29 requires { [@expl:integer overflow] in_bounds (to_int x + 1) }
30 ensures { to_int result = to_int x + 1 }
32 val pred (x: int63) : int63
33 requires { [@expl:integer overflow] in_bounds (to_int x - 1) }
34 ensures { to_int result = to_int x - 1 }
36 exception AssertFailure
38 val ocaml_assert (_b: bool) : unit
39 raises { AssertFailure }
46 use mach.int.Int63 as Int63
48 use export option.Option
52 use mach.array.Array63 as Array
53 type array 'a = Array.array 'a
55 type int63 = Int63.int63
57 let function to_int (n: Int63.int63) : int = Int63.to_int n