3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-26 13:06:05 +00:00
This commit is contained in:
Nikolaj Bjorner 2021-12-11 08:41:04 -08:00
parent 9c3489ba4b
commit 83efb1413a
10 changed files with 99 additions and 57 deletions

View file

@ -308,9 +308,8 @@ namespace polysat {
for (auto const& c : s.m_viable.get_constraints(v))
insert(c);
for (auto* engine : ex_engines)
if (engine->try_explain(v, *this))
return true;
if (try_explain(v))
return true;
// No value resolution method was successful => fall back to saturation and variable elimination
while (s.inc()) {
@ -345,6 +344,13 @@ namespace polysat {
return false;
}
bool conflict::try_explain(pvar v) {
for (auto* engine : ex_engines)
if (engine->try_explain(v, *this))
return true;
return false;
}
void conflict::set_mark(signed_constraint c) {
if (c->is_marked())
return;