From e6158285f826a33c4134def3e32b53e40483a173 Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Fri, 22 Aug 2014 15:02:43 -0400 Subject: [PATCH] Fix SMT1 parser :extrasorts/:extrapreds. --- src/parser/smt1/Smt1.g | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/parser/smt1/Smt1.g b/src/parser/smt1/Smt1.g index ae06ddc01..a885fe990 100644 --- a/src/parser/smt1/Smt1.g +++ b/src/parser/smt1/Smt1.g @@ -205,13 +205,13 @@ benchAttribute returns [CVC4::Command* smt_command = NULL] { ((CommandSequence*) smt_command)->addCommand(c); } )+ RPAREN_TOK | EXTRAPREDS_TOK LPAREN_TOK - ( { smt_command = new CommandSequence(); } - predicateDeclaration[c] + { smt_command = new CommandSequence(); } + ( predicateDeclaration[c] { ((CommandSequence*) smt_command)->addCommand(c); } )+ RPAREN_TOK | EXTRASORTS_TOK LPAREN_TOK - ( { smt_command = new CommandSequence(); } - sortDeclaration[c] + { smt_command = new CommandSequence(); } + ( sortDeclaration[c] { ((CommandSequence*) smt_command)->addCommand(c); } )+ RPAREN_TOK | NOTES_TOK STRING_LITERAL -- 2.30.2