Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ajreynol committed Jan 31, 2024
1 parent 70d37fa commit 3ea1dc9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/expr_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ Expr ExprParser::parseExpr()
// will parse a tuple term that stands for a symbolic bound
// variable list. We do this because there are no terms that
// begin ((... currently allowed in this parser.
if (d_lex.peekToken()==Token::LPAREN && d_lex.peekToken()==Token::LPAREN)
if (d_lex.peekToken()==Token::LPAREN &&
d_lex.peekToken()==Token::LPAREN)
{
nscopes = 1;
bool isLookup = !d_state.getOptions().d_binderFresh;
Expand Down
5 changes: 2 additions & 3 deletions src/lexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,10 @@ Token Lexer::nextToken()
{
if (d_peeked.empty())
{
// Call the derived yylex() and convert it to a token
return nextTokenInternal();
}
Token t = d_peeked.back();
d_peeked.pop_back();
Token t = d_peeked[0];
d_peeked.erase(d_peeked.begin());
return t;
}

Expand Down
6 changes: 6 additions & 0 deletions tests/binder-ex.smt3
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@
:conclusion false)

(step @p3 false :rule q-rule :premises (@p2))


(declare-const f_list (-> Int @List))
(declare-const a Int)

(assume @pf (forall (f_list a) false))

0 comments on commit 3ea1dc9

Please sign in to comment.