Merge branch 'master' into wip-model-th-comb

This commit is contained in:
Simon Cruanes 2022-07-14 21:46:36 -04:00
commit b16fce6f26
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
4 changed files with 12 additions and 12 deletions

7
dune
View file

@ -1 +1,8 @@
(data_only_dirs tests) (data_only_dirs tests)
(env
(_
(flags :standard -warn-error -a+8+9 -w +a-4-32-40-41-42-44-48-70 -color
always -strict-sequence -safe-string -short-paths)
(ocamlopt_flags :standard -O3 -color always -unbox-closures
-unbox-closures-factor 20)))

View file

@ -21,6 +21,7 @@ depends: [
] ]
depopts: [ depopts: [
"mtime" # for profiling stuff "mtime" # for profiling stuff
"memtrace" # memory profiling
"zarith" # for arithmetic "zarith" # for arithmetic
] ]
conflicts: [ conflicts: [

View file

@ -46,11 +46,10 @@ type term = Term.t
type t = { type t = {
mutable enabled : bool; mutable enabled : bool;
config: Config.t;
buf: Buffer.t; buf: Buffer.t;
out: Proof_ser.Bare.Encode.t; out: Proof_ser.Bare.Encode.t;
mutable storage: Storage.t; mutable storage: Storage.t;
mutable dispose: unit -> unit; dispose: unit -> unit;
mutable steps_writer: CS.Writer.t; mutable steps_writer: CS.Writer.t;
mutable next_id: int; mutable next_id: int;
map_term: term_id Term.Tbl.t; (* term -> proof ID *) map_term: term_id Term.Tbl.t; (* term -> proof ID *)
@ -91,12 +90,12 @@ let create ?(config=Config.default) () : t =
let dispose () = close_out oc in let dispose () = close_out oc in
Storage.On_disk (file, oc), w, dispose Storage.On_disk (file, oc), w, dispose
in in
let buf = Buffer.create 1024 in let buf = Buffer.create 1_024 in
let out = Proof_ser.Bare.Encode.of_buffer buf in
{ enabled=config.Config.enabled; { enabled=config.Config.enabled;
config;
next_id=1; next_id=1;
buf; buf;
out=Proof_ser.Bare.Encode.of_buffer buf; out;
map_term=Term.Tbl.create 32; map_term=Term.Tbl.create 32;
map_fun=Fun.Tbl.create 32; map_fun=Fun.Tbl.create 32;
steps_writer; storage; dispose; steps_writer; storage; dispose;

View file

@ -1,7 +0,0 @@
(env
(_
(flags :standard -warn-error
-a+8+9 -w +a-4-32-40-41-42-44-48
-color always -strict-sequence -safe-string -short-paths)
(ocamlopt_flags :standard -O3 -color always -unbox-closures -unbox-closures-factor 20)))