setup dyn-trans in main solver

This commit is contained in:
Simon Cruanes 2021-09-09 08:57:14 -04:00
parent 804759f873
commit d1db53f002
No known key found for this signature in database
GPG key ID: 4AC01D0849AA62B6
5 changed files with 10 additions and 1 deletions

View file

@ -3,7 +3,7 @@
(public_name sidekick-base.solver)
(synopsis "Instantiation of solver and theories for Sidekick_base")
(libraries sidekick-base sidekick.core sidekick.smt-solver
sidekick.th-bool-static
sidekick.th-bool-static sidekick.th-dyn-trans
sidekick.mini-cc sidekick.th-data
sidekick.arith-lra sidekick.zarith)
(flags :standard -warn-error -a+8 -safe-string -color always -open Sidekick_util))

View file

@ -116,6 +116,11 @@ module Th_lra = Sidekick_arith_lra.Make(struct
end
end)
module Th_dyn_trans = Sidekick_th_dyn_trans.Make(struct
module Solver = Solver
end)
let th_bool : Solver.theory = Th_bool.theory
let th_data : Solver.theory = Th_data.theory
let th_lra : Solver.theory = Th_lra.theory
let th_dyn_trans : Solver.theory = Th_dyn_trans.theory

View file

@ -107,6 +107,7 @@ let main_smt () : _ result =
Process.th_bool;
Process.th_data;
Process.th_lra;
Process.th_dyn_trans;
]
in
Process.Solver.create ~proof ~theories tst () ()

View file

@ -282,7 +282,9 @@ let process_stmt
module Th_data = SBS.Th_data
module Th_bool = SBS.Th_bool
module Th_lra = SBS.Th_lra
module Th_dyn_trans = SBS.Th_dyn_trans
let th_bool : Solver.theory = Th_bool.theory
let th_data : Solver.theory = Th_data.theory
let th_lra : Solver.theory = Th_lra.theory
let th_dyn_trans : Solver.theory = Th_dyn_trans.theory

View file

@ -12,6 +12,7 @@ module Solver
val th_bool : Solver.theory
val th_data : Solver.theory
val th_lra : Solver.theory
val th_dyn_trans : Solver.theory
type 'a or_error = ('a, string) CCResult.t