mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-06 03:05:31 -05:00
feat(theory): add name accessor
This commit is contained in:
parent
310d2183c4
commit
5b87ff3e46
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
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 _ -> ())
|
||||
?(pop_levels = fun _ _ -> ()) () : t =
|
||||
let module Th = struct
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue