mirror of
https://github.com/Z3Prover/z3
synced 2025-07-15 17:06:39 +00:00
add check for root literal assignment
This commit is contained in:
parent
fe5d17d515
commit
3379155a63
1 changed files with 4 additions and 0 deletions
|
@ -142,6 +142,10 @@ namespace sls {
|
||||||
if (m_new_constraint || !unsat().empty())
|
if (m_new_constraint || !unsat().empty())
|
||||||
return l_undef;
|
return l_undef;
|
||||||
|
|
||||||
|
// check if root literals got flipped. is-sat assumes root literals are true
|
||||||
|
if (any_of(root_literals(), [&](sat::literal lit) { return !is_true(lit); }))
|
||||||
|
continue;
|
||||||
|
|
||||||
if (all_of(m_plugins, [&](auto* p) { return !p || p->is_sat(); })) {
|
if (all_of(m_plugins, [&](auto* p) { return !p || p->is_sat(); })) {
|
||||||
VERIFY(unsat().empty() || !m_new_constraint);
|
VERIFY(unsat().empty() || !m_new_constraint);
|
||||||
values2model();
|
values2model();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue