3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-30 04:15:51 +00:00

change registration mode for relevant_eh

This commit is contained in:
Nikolaj Bjorner 2021-12-29 13:03:43 -08:00
parent 1706f77b9e
commit f215b18e0e
8 changed files with 55 additions and 33 deletions

View file

@ -539,6 +539,8 @@ namespace array {
if (!d.m_prop_upward)
continue;
euf::enode* n = var2enode(v);
if (!ctx.is_relevant(n))
continue;
if (add_as_array_eqs(n))
change = true;
bool has_default = false;
@ -567,6 +569,8 @@ namespace array {
return false;
for (unsigned i = 0; i < ctx.get_egraph().enodes_of(f).size(); ++i) {
euf::enode* p = ctx.get_egraph().enodes_of(f)[i];
if (!ctx.is_relevant(p))
continue;
expr_ref_vector select(m);
select.push_back(n->get_expr());
for (expr* arg : *to_app(p->get_expr()))
@ -615,7 +619,9 @@ namespace array {
euf::enode * n = var2enode(i);
if (!is_array(n))
continue;
continue;
if (!ctx.is_relevant(n))
continue;
euf::enode * r = n->get_root();
if (r->is_marked1())
continue;