mirror of
https://github.com/Z3Prover/z3
synced 2025-08-26 13:06:05 +00:00
na
This commit is contained in:
parent
9c3489ba4b
commit
83efb1413a
10 changed files with 99 additions and 57 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue