3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-12 12:08:18 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-03-05 11:22:13 +01:00
parent 7d73069798
commit 6b0e599b88
2 changed files with 3 additions and 2 deletions

View file

@ -581,7 +581,6 @@ namespace sat {
m_vars[m_units[i]].m_unit = false;
}
m_units.shrink(num_units);
m_vars.pop_back(); // remove sentinel variable
TRACE("sat", display(tout););
@ -597,6 +596,7 @@ namespace sat {
else {
result = l_undef;
}
m_vars.pop_back(); // remove sentinel variable
IF_VERBOSE(1, verbose_stream() << "(sat.local-search " << result << ")\n";);
IF_VERBOSE(20, display(verbose_stream()););
return result;
@ -638,7 +638,7 @@ namespace sat {
propagate(~best);
}
else {
std::cout << "no best\n";
IF_VERBOSE(1, verbose_stream() << "(sat.local-search no best)\n");
}
}

View file

@ -1288,6 +1288,7 @@ namespace sat {
lbool r = srch.check(num_lits, lits, nullptr);
if (r == l_true) {
m_model = srch.get_model();
m_model_is_current = true;
}
m_local_search = nullptr;
dealloc(&srch);