feat(theory): add name accessor

This commit is contained in:
Simon Cruanes 2022-08-16 21:29:58 -04:00
parent 310d2183c4
commit 5b87ff3e46
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -31,6 +31,11 @@ type 'a p = (module S with type t = 'a)
(** A theory that can be used for this particular solver, with state (** A theory that can be used for this particular solver, with state
of type ['a]. *) of type ['a]. *)
(** Name of the theory *)
let name (th : t) =
let (module T) = th in
T.name
let make (type st) ~name ~create_and_setup ?(push_level = fun _ -> ()) let make (type st) ~name ~create_and_setup ?(push_level = fun _ -> ())
?(pop_levels = fun _ _ -> ()) () : t = ?(pop_levels = fun _ _ -> ()) () : t =
let module Th = struct let module Th = struct