mirror of
https://github.com/Z3Prover/z3
synced 2025-05-12 02:04:43 +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
|
@ -75,7 +75,7 @@ namespace opt {
|
|||
|
||||
|
||||
public:
|
||||
maxhs(context& c, weights_t& ws, expr_ref_vector const& soft):
|
||||
maxhs(maxsat_context& c, weights_t& ws, expr_ref_vector const& soft):
|
||||
maxsmt_solver_base(c, ws, soft),
|
||||
m_aux(m),
|
||||
m_at_lower_bound(false) {
|
||||
|
@ -554,7 +554,7 @@ namespace opt {
|
|||
};
|
||||
|
||||
maxsmt_solver_base* mk_maxhs(
|
||||
context& c, weights_t& ws, expr_ref_vector const& soft) {
|
||||
maxsat_context& c, weights_t& ws, expr_ref_vector const& soft) {
|
||||
return alloc(maxhs, c, ws, soft);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue