mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-06 03:05:31 -05:00
Merge branch 'master' into wip-model-th-comb
This commit is contained in:
commit
b16fce6f26
4 changed files with 12 additions and 12 deletions
7
dune
7
dune
|
|
@ -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)))
|
||||||
|
|
|
||||||
|
|
@ -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: [
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
7
src/dune
7
src/dune
|
|
@ -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)))
|
|
||||||
Loading…
Add table
Reference in a new issue