mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 03:45:51 +00:00
separate MaxSMT functionality to enable using this independently (and incrementally) of overall context
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
ded635cd06
commit
911ffc370a
16 changed files with 72 additions and 40 deletions
|
@ -36,7 +36,7 @@ Notes:
|
|||
namespace opt {
|
||||
|
||||
maxsmt_solver_base::maxsmt_solver_base(
|
||||
context& c, vector<rational> const& ws, expr_ref_vector const& soft):
|
||||
maxsat_context& c, vector<rational> const& ws, expr_ref_vector const& soft):
|
||||
m(c.get_manager()),
|
||||
m_c(c),
|
||||
m_cancel(false),
|
||||
|
@ -156,7 +156,7 @@ namespace opt {
|
|||
|
||||
|
||||
|
||||
maxsmt::maxsmt(context& c):
|
||||
maxsmt::maxsmt(maxsat_context& c):
|
||||
m(c.get_manager()), m_c(c), m_cancel(false),
|
||||
m_soft_constraints(m), m_answer(m) {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue