mirror of
https://github.com/Z3Prover/z3
synced 2025-06-24 23:03:41 +00:00
parent
7d73069798
commit
6b0e599b88
2 changed files with 3 additions and 2 deletions
|
@ -581,7 +581,6 @@ namespace sat {
|
||||||
m_vars[m_units[i]].m_unit = false;
|
m_vars[m_units[i]].m_unit = false;
|
||||||
}
|
}
|
||||||
m_units.shrink(num_units);
|
m_units.shrink(num_units);
|
||||||
m_vars.pop_back(); // remove sentinel variable
|
|
||||||
|
|
||||||
TRACE("sat", display(tout););
|
TRACE("sat", display(tout););
|
||||||
|
|
||||||
|
@ -597,6 +596,7 @@ namespace sat {
|
||||||
else {
|
else {
|
||||||
result = l_undef;
|
result = l_undef;
|
||||||
}
|
}
|
||||||
|
m_vars.pop_back(); // remove sentinel variable
|
||||||
IF_VERBOSE(1, verbose_stream() << "(sat.local-search " << result << ")\n";);
|
IF_VERBOSE(1, verbose_stream() << "(sat.local-search " << result << ")\n";);
|
||||||
IF_VERBOSE(20, display(verbose_stream()););
|
IF_VERBOSE(20, display(verbose_stream()););
|
||||||
return result;
|
return result;
|
||||||
|
@ -638,7 +638,7 @@ namespace sat {
|
||||||
propagate(~best);
|
propagate(~best);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
std::cout << "no best\n";
|
IF_VERBOSE(1, verbose_stream() << "(sat.local-search no best)\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1288,6 +1288,7 @@ namespace sat {
|
||||||
lbool r = srch.check(num_lits, lits, nullptr);
|
lbool r = srch.check(num_lits, lits, nullptr);
|
||||||
if (r == l_true) {
|
if (r == l_true) {
|
||||||
m_model = srch.get_model();
|
m_model = srch.get_model();
|
||||||
|
m_model_is_current = true;
|
||||||
}
|
}
|
||||||
m_local_search = nullptr;
|
m_local_search = nullptr;
|
||||||
dealloc(&srch);
|
dealloc(&srch);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue