detail in core_logic

This commit is contained in:
Simon Cruanes 2022-08-10 22:08:33 -04:00
parent 81f159d25d
commit 8777682e07
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
2 changed files with 3 additions and 3 deletions

View file

@ -157,10 +157,10 @@ module Store = struct
(* TODO: use atomic? CCAtomic? *)
let n = ref 0
let create () : t =
let create ?(size = 256) () : t =
let s_uid = !n in
incr n;
{ s_uid; s_exprs = Hcons.create ~size:256 () }
{ s_uid; s_exprs = Hcons.create ~size () }
(* check that [e] belongs in this store *)
let[@inline] check_e_uid (self : t) (e : term) =

View file

@ -99,7 +99,7 @@ val ty : t -> t
module Store : sig
type t = store
val create : unit -> t
val create : ?size:int -> unit -> t
end
val type_ : store -> t