Skip to content

Commit

Permalink
Better
Browse files Browse the repository at this point in the history
  • Loading branch information
ajreynol committed Jan 24, 2024
1 parent c75e4dc commit e58abe9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/expr_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,10 @@ std::vector<Expr> ExprParser::parseAndBindSortedVarList(bool isLookup)
// lookup and type check
v = getVar(name);
typeCheck(v, t);
if (v.getKind()!=Kind::VARIABLE)
{
d_lex.parseError("Expected a variable in binder");
}
}
else
{
Expand Down
4 changes: 2 additions & 2 deletions tests/binder-ex.smt3
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

(declare-const P (-> Int Bool))
(declare-const forall (-> Bool Bool) :binder)
(declare-const x Int)
(declare-const z Int)
(declare-var x Int)
(declare-var z Int)

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

Expand Down

0 comments on commit e58abe9

Please sign in to comment.