-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinitialization.ml
15 lines (13 loc) · 920 Bytes
/
initialization.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(* ========================================================================= *)
(* Tweak OCaml default state ready for theorem proving code. *)
(* *)
(* Copyright (c) 2003-2007, John Harrison. (See "LICENSE.txt" for details.) *)
(* ========================================================================= *)
Gc.set { (Gc.get()) with Gc.stack_limit = 16777216 };; (* Up the stack size *)
Format.set_margin 72;; (* Reduce margins *)
include Format;; (* Open formatting *)
include Num;; (* Open bignums *)
let print_num n = print_string(string_of_num n);; (* Avoid range limit *)
START_INTERACTIVE;;
#install_printer print_num;; (* when printing nums *)
END_INTERACTIVE;;