3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-10 19:27:06 +00:00

optimize propagation to only blocked literals

This commit is contained in:
Nikolaj Bjorner 2021-12-28 18:53:37 -08:00
parent 8ff8252e89
commit 1706f77b9e
2 changed files with 4 additions and 1 deletions

View file

@ -479,7 +479,7 @@ namespace euf {
return sat::check_result::CR_CONTINUE;
if (!init_relevancy())
give_up = true;
give_up = true;
unsigned num_nodes = m_egraph.num_nodes();
auto apply_solver = [&](th_solver* e) {

View file

@ -215,6 +215,9 @@ namespace smt {
void relevancy::propagate_relevant(sat::literal lit) {
relevant_eh(lit);
euf::enode* n = ctx.bool_var2enode(lit.var());
if (n && !ctx.get_si().is_bool_op(n->get_expr()))
return;
for (auto idx : occurs(~lit)) {
if (m_roots[idx])
continue;