Skip to content

Commit

Permalink
#5454 again
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Aug 18, 2021
1 parent 2492278 commit adcdd11
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/sat/smt/array_axioms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,15 @@ namespace array {
app* select = r.select->get_app();
SASSERT(a.is_select(select));
SASSERT(can_beta_reduce(r.n));
TRACE("array", display(tout << "select-axiom: ", r) << "\n";);

if (get_config().m_array_delay_exp_axiom && r.select->get_arg(0)->get_root() != r.n->get_root() && !r.is_delayed() && m_enable_delay) {
bool should_delay =
get_config().m_array_delay_exp_axiom &&
r.select->get_arg(0)->get_root() != r.n->get_root() &&
!r.is_delayed() && m_enable_delay;

TRACE("array", display(tout << "select-axiom: " << (should_delay ? "delay " : ""), r) << "\n";);

if (should_delay) {
IF_VERBOSE(11, verbose_stream() << "delay: " << mk_bounded_pp(child, m) << " " << mk_bounded_pp(select, m) << "\n");
ctx.push(reset_new(*this, idx));
r.set_delayed();
Expand Down Expand Up @@ -176,8 +182,6 @@ namespace array {
unsigned num_args = select->get_num_args();

expr* arg = select->get_arg(0);
if (false && arg != store && !can_beta_reduce(arg) && expr2enode(arg)->get_root() == expr2enode(store)->get_root())
return false;
bool has_diff = false;
for (unsigned i = 1; i < num_args; i++)
has_diff |= expr2enode(select->get_arg(i))->get_root() != expr2enode(store->get_arg(i))->get_root();
Expand Down Expand Up @@ -209,9 +213,6 @@ namespace array {
tout << "select-store " << ctx.bpp(s2) << " " << ctx.bpp(s2->get_root()) << "\n";);


if (s1->get_root() == s2->get_root())
return new_prop;

sat::literal sel_eq = sat::null_literal;
auto init_sel_eq = [&]() {
if (sel_eq != sat::null_literal)
Expand Down

0 comments on commit adcdd11

Please sign in to comment.