3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 01:24:08 +00:00
This commit is contained in:
Nikolaj Bjorner 2021-07-22 13:35:54 -07:00
parent 2589f2bad4
commit 848a8ebb98
2 changed files with 3 additions and 2 deletions

View file

@ -177,6 +177,8 @@ namespace array {
auto set_index = [&](euf::enode* arg) { if (arg->get_root() == r) is_index = true; };
auto set_value = [&](euf::enode* arg) { if (arg->get_root() == r) is_value = true; };
if (a.is_ext(n->get_expr()))
return true;
for (euf::enode* parent : euf::enode_parents(r)) {
app* p = parent->get_app();
unsigned num_args = parent->num_args();
@ -193,7 +195,7 @@ namespace array {
}
else if (a.is_const(p)) {
set_value(parent->get_arg(0));
}
}
if (is_array + is_index + is_value > 1)
return true;
}

View file

@ -44,7 +44,6 @@ namespace q {
unsigned lim = m_indirect_nodes.size();
lit l = c[i];
lbool cmp = compare(n, binding, l.lhs, l.rhs, evidence);
std::cout << l.sign << ": " << l.lhs << " ~~ " << l.rhs << " " << cmp << "\n";
switch (cmp) {
case l_false:
m_indirect_nodes.shrink(lim);