Skip to content

Commit

Permalink
remove creation of trivial testers
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Sep 1, 2022
1 parent 46383a0 commit 61f7dc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qe/mbp/mbp_datatypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ namespace mbp {
eqs.push_back(m.mk_eq(access(c, j, acc, b), a->get_arg(j)));
}
}
if (!is_app_of(b, c)) {
if (!is_app_of(b, c) && dt.get_datatype_num_constructors(c->get_range()) != 1) {
eqs.push_back(m.mk_app(rec, b));
}

Expand Down Expand Up @@ -231,7 +231,7 @@ namespace mbp {
}
func_decl* c = to_app(l)->get_decl();
ptr_vector<func_decl> const& acc = *dt.get_constructor_accessors(c);
if (!is_app_of(r, c)) {
if (!is_app_of(r, c) && dt.get_datatype_num_constructors(c->get_range()) != 1) {
lits.push_back(m.mk_app(dt.get_constructor_is(c), r));
}
for (unsigned i = 0; i < acc.size(); ++i) {
Expand Down

0 comments on commit 61f7dc3

Please sign in to comment.