mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 20:05:51 +00:00
Handle bailouts in conflict_core
This commit is contained in:
parent
79d7ae5417
commit
f1ce0e233a
2 changed files with 16 additions and 22 deletions
|
@ -262,18 +262,23 @@ namespace polysat {
|
|||
for (auto c : cjust_v)
|
||||
insert(c);
|
||||
|
||||
for (auto* engine : ex_engines)
|
||||
if (engine->try_explain(v, *this))
|
||||
return true;
|
||||
if (!is_bailout()) {
|
||||
for (auto* engine : ex_engines)
|
||||
if (engine->try_explain(v, *this))
|
||||
return true;
|
||||
|
||||
// No value resolution method was successful => fall back to saturation and variable elimination
|
||||
while (s().inc()) {
|
||||
// TODO: as a last resort, substitute v by m_value[v]?
|
||||
if (try_eliminate(v))
|
||||
return true;
|
||||
if (!try_saturate(v))
|
||||
break;
|
||||
// No value resolution method was successful => fall back to saturation and variable elimination
|
||||
while (s().inc()) {
|
||||
// TODO: as a last resort, substitute v by m_value[v]?
|
||||
if (try_eliminate(v))
|
||||
return true;
|
||||
if (!try_saturate(v))
|
||||
break;
|
||||
}
|
||||
|
||||
set_bailout();
|
||||
}
|
||||
|
||||
m_vars.insert(v);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue