mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
setting roots breaks relevancy propagation
This commit is contained in:
parent
bd8de964f7
commit
d7c7fbb8f1
4 changed files with 24 additions and 6 deletions
|
@ -73,6 +73,7 @@ namespace euf {
|
|||
if (!m_enabled)
|
||||
return;
|
||||
flush();
|
||||
TRACE("relevancy", tout << "root " << sat::literal_vector(n, lits) << "\n");
|
||||
sat::literal true_lit = sat::null_literal;
|
||||
for (unsigned i = 0; i < n; ++i) {
|
||||
if (ctx.s().value(lits[i]) == l_true) {
|
||||
|
|
|
@ -806,6 +806,8 @@ 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue