mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 20:05:51 +00:00
fix bug in root setting exposed by incremental mode pb_solver
This commit is contained in:
parent
36cfb88f5f
commit
06feb71eb1
3 changed files with 18 additions and 12 deletions
|
@ -808,13 +808,16 @@ namespace euf {
|
|||
bool solver::set_root(literal l, literal r) {
|
||||
if (m_relevancy.enabled())
|
||||
return false;
|
||||
expr* e = bool_var2expr(l.var());
|
||||
if (!e)
|
||||
return true;
|
||||
bool ok = true;
|
||||
for (auto* s : m_solvers)
|
||||
if (!s->set_root(l, r))
|
||||
ok = false;
|
||||
|
||||
if (!ok)
|
||||
return false;
|
||||
expr* e = bool_var2expr(l.var());
|
||||
if (!e)
|
||||
return true;
|
||||
if (m.is_eq(e) && !m.is_iff(e))
|
||||
ok = false;
|
||||
euf::enode* n = get_enode(e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue