Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Jun 16, 2021
1 parent 589f99e commit fbc3aa9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/sat/smt/euf_internalize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,13 @@ namespace euf {
void solver::add_not_distinct_axiom(app* e, enode* const* args) {
SASSERT(m.is_distinct(e));
unsigned sz = e->get_num_args();
if (sz <= 1)
sat::status st = sat::status::th(m_is_redundant, m.get_basic_family_id());

if (sz <= 1) {
s().mk_clause(0, nullptr, st);
return;
}

sat::status st = sat::status::th(m_is_redundant, m.get_basic_family_id());
static const unsigned distinct_max_args = 32;
if (sz <= distinct_max_args) {
sat::literal_vector lits;
Expand Down Expand Up @@ -230,10 +233,8 @@ namespace euf {
static const unsigned distinct_max_args = 32;
unsigned sz = e->get_num_args();
sat::status st = sat::status::th(m_is_redundant, m.get_basic_family_id());
if (sz <= 1) {
s().mk_clause(0, nullptr, st);
if (sz <= 1)
return;
}
if (sz <= distinct_max_args) {
for (unsigned i = 0; i < sz; ++i) {
for (unsigned j = i + 1; j < sz; ++j) {
Expand Down

0 comments on commit fbc3aa9

Please sign in to comment.