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
|
@ -107,7 +107,7 @@ private:
|
|||
typedef ptr_vector<expr> exprs;
|
||||
|
||||
public:
|
||||
maxres(context& c,
|
||||
maxres(maxsat_context& c,
|
||||
weights_t& ws, expr_ref_vector const& soft,
|
||||
strategy_t st):
|
||||
maxsmt_solver_base(c, ws, soft),
|
||||
|
@ -788,12 +788,12 @@ public:
|
|||
};
|
||||
|
||||
opt::maxsmt_solver_base* opt::mk_maxres(
|
||||
context& c, weights_t& ws, expr_ref_vector const& soft) {
|
||||
maxsat_context& c, weights_t& ws, expr_ref_vector const& soft) {
|
||||
return alloc(maxres, c, ws, soft, maxres::s_primal);
|
||||
}
|
||||
|
||||
opt::maxsmt_solver_base* opt::mk_primal_dual_maxres(
|
||||
context& c, weights_t& ws, expr_ref_vector const& soft) {
|
||||
maxsat_context& c, weights_t& ws, expr_ref_vector const& soft) {
|
||||
return alloc(maxres, c, ws, soft, maxres::s_primal_dual);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue