mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-10 05:03:59 -05:00
detail in core_logic
This commit is contained in:
parent
81f159d25d
commit
8777682e07
2 changed files with 3 additions and 3 deletions
|
|
@ -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) =
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue