Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ajreynol committed Feb 1, 2024
1 parent 949f277 commit b51d495
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
13 changes: 1 addition & 12 deletions src/state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,18 +484,7 @@ Expr State::mkBuiltinType(Kind k)

Expr State::mkAnnotatedType(const Expr& t, Attr ck, const Expr& cons)
{
if (ck==Attr::BINDER)
{
// prepend to argument types the return type of the constructor
Expr c = cons;
const Expr& ct = d_tc.getType(c);
if (ct.getKind()!=Kind::FUNCTION_TYPE || ct[1].getKind()!=Kind::FUNCTION_TYPE)
{
return d_null;
}
return mkFunctionType({ct[1][1]}, t);
}
else if (ck!=Attr::RIGHT_ASSOC_NIL && ck!=Attr::LEFT_ASSOC_NIL)
if (ck!=Attr::RIGHT_ASSOC_NIL && ck!=Attr::LEFT_ASSOC_NIL)
{
return t;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/binder-ex.smt3
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
(declare-sort Int 0)

(declare-const P (-> Int Bool))
(declare-const forall (-> Bool Bool) :binder @list.cons)
(declare-const forall (-> @List Bool Bool) :binder @list.cons)

(declare-rule id ((y Bool)) :premises (y) :conclusion y)

Expand Down
2 changes: 1 addition & 1 deletion tests/binder-subterm-share.smt3
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

(declare-sort Int 0)
(declare-const P (-> Int Bool))
(declare-const forall (-> Bool Bool) :binder @list.cons)
(declare-const forall (-> @List Bool Bool) :binder @list.cons)
(declare-rule id ((y Bool)) :premises (y) :conclusion y)

(declare-var x Int)
Expand Down

0 comments on commit b51d495

Please sign in to comment.