mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
This commit is contained in:
parent
0a671f2f44
commit
f87e187b62
2 changed files with 6 additions and 3 deletions
|
@ -158,6 +158,8 @@ namespace euf {
|
|||
}
|
||||
|
||||
void egraph::add_literal(enode* n, enode* ante) {
|
||||
if (n->bool_var() == sat::null_bool_var)
|
||||
return;
|
||||
TRACE("euf_verbose", tout << "lit: " << n->get_expr_id() << "\n";);
|
||||
m_new_lits.push_back(enode_pair(n, ante));
|
||||
m_updates.push_back(update_record(update_record::new_lit()));
|
||||
|
@ -272,9 +274,8 @@ namespace euf {
|
|||
if (enable_merge_tf && n->value() != l_undef && !m.is_value(n->get_root()->get_expr())) {
|
||||
expr* b = n->value() == l_true ? m.mk_true() : m.mk_false();
|
||||
enode* tf = find(b);
|
||||
if (!tf)
|
||||
tf = mk(b, 0, 0, nullptr);
|
||||
add_literal(n, tf);
|
||||
if (tf)
|
||||
add_literal(n, tf);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue