Skip to content

Commit

Permalink
more #4932
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Jan 8, 2021
1 parent 43eb862 commit bb56443
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 6 additions & 3 deletions src/sat/tactic/goal2sat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,7 @@ void sat2goal::mc::flush_gmc() {
sat::literal_vector clause;
expr_ref_vector tail(m);
expr_ref def(m);
auto is_literal = [&](expr* e) { expr* r; return is_uninterp_const(e) || (m.is_not(e, r) && is_uninterp_const(r)); };
for (unsigned i = 0; i < updates.size(); ++i) {
sat::literal l = updates[i];
if (l == sat::null_literal) {
Expand All @@ -1032,8 +1033,7 @@ void sat2goal::mc::flush_gmc() {
def = m.mk_not(def);
}
expr_ref e = lit2expr(lit0);
expr* r = nullptr;
if (is_uninterp_const(e) || (m.is_not(e, r) && is_uninterp_const(r)))
if (is_literal(e))
m_gmc->add(e, def);
clause.reset();
tail.reset();
Expand All @@ -1050,7 +1050,10 @@ void sat2goal::mc::flush_gmc() {
l.neg();
r.neg();
}
m_gmc->add(lit2expr(l), lit2expr(r));

expr* a = lit2expr(l);
if (is_literal(a))
m_gmc->add(a, lit2expr(r));
i += 5;
}
else {
Expand Down
3 changes: 0 additions & 3 deletions src/tactic/core/reduce_invertible_tactic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,6 @@ class reduce_invertible_tactic : public tactic {
switch (f->get_decl_kind()) {
case OP_BADD:
case OP_BSUB:
case OP_BSHL:
case OP_BASHR:
case OP_BLSHR:
model = rational::zero();
return true;

Expand Down

0 comments on commit bb56443

Please sign in to comment.