Skip to content

Commit

Permalink
avoid useless false equality literals
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Oct 7, 2020
1 parent 1d8d587 commit 546e152
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/smt/smt_theory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ namespace smt {
if (a == b) {
return true_literal;
}
if (m.are_distinct(a, b))
return false_literal;
app_ref eq(ctx.mk_eq_atom(a, b), get_manager());
TRACE("mk_var_bug", tout << "mk_eq: " << eq->get_id() << " " << a->get_id() << " " << b->get_id() << "\n";
tout << mk_ll_pp(a, get_manager()) << "\n" << mk_ll_pp(b, get_manager()););
Expand Down

0 comments on commit 546e152

Please sign in to comment.