3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-23 06:13:40 +00:00

working on maxres

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2014-08-30 12:40:37 -07:00
parent 83a7d1a658
commit afe7fc367b
4 changed files with 2 additions and 4 deletions

View file

@ -504,6 +504,7 @@ public:
remove_core(corr_set); remove_core(corr_set);
rational w = split_core(corr_set); rational w = split_core(corr_set);
cs_max_resolve(corr_set, w); cs_max_resolve(corr_set, w);
IF_VERBOSE(2, verbose_stream() << "(opt.maxres.correction-set " << corr_set.size() << ")\n";);
} }
lbool process_unsat() { lbool process_unsat() {

View file

@ -136,7 +136,6 @@ namespace opt {
m_wth = s.ensure_wmax_theory(); m_wth = s.ensure_wmax_theory();
} }
maxsmt_solver_base::scoped_ensure_theory::~scoped_ensure_theory() { maxsmt_solver_base::scoped_ensure_theory::~scoped_ensure_theory() {
//m_wth->reset();
} }
smt::theory_wmaxsat& maxsmt_solver_base::scoped_ensure_theory::operator()() { return *m_wth; } smt::theory_wmaxsat& maxsmt_solver_base::scoped_ensure_theory::operator()() { return *m_wth; }

View file

@ -40,7 +40,6 @@ namespace opt {
lbool operator()() { lbool operator()() {
TRACE("opt", tout << "weighted maxsat\n";); TRACE("opt", tout << "weighted maxsat\n";);
scoped_ensure_theory wth(*this); scoped_ensure_theory wth(*this);
solver::scoped_push _s1(s());
lbool is_sat = l_true; lbool is_sat = l_true;
bool was_sat = false; bool was_sat = false;
for (unsigned i = 0; i < m_soft.size(); ++i) { for (unsigned i = 0; i < m_soft.size(); ++i) {

View file

@ -171,7 +171,6 @@ void theory_wmaxsat::reset_local() {
m_vars.reset(); m_vars.reset();
m_fmls.reset(); m_fmls.reset();
m_rweights.reset(); m_rweights.reset();
m_costs.reset();
m_rmin_cost.reset(); m_rmin_cost.reset();
m_rcost.reset(); m_rcost.reset();
m_zweights.reset(); m_zweights.reset();