summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2012-03-09 21:00:51 +0000
committerMorgan Deters <mdeters@gmail.com>2012-03-09 21:00:51 +0000
commitf29ea80fb3e238278a721d79077c9087bccbac0b (patch)
tree18eeb5b610238c607c80f10e633eaf44cfce50a3 /src
parentcc5fab5a3e726fefb5cd40335a4ecf210881f0e0 (diff)
fix a "lost command" bug and associated memory leak in SMT-LIBv1 parser due to an out-of-place parenthesis
Diffstat (limited to 'src')
-rw-r--r--src/parser/smt/Smt.g4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser/smt/Smt.g b/src/parser/smt/Smt.g
index 083bdf3b5..932d9be78 100644
--- a/src/parser/smt/Smt.g
+++ b/src/parser/smt/Smt.g
@@ -193,8 +193,8 @@ benchAttribute returns [CVC4::Command* smt_command = NULL]
| STATUS_TOK status[b_status]
{ smt_command = new SetBenchmarkStatusCommand(b_status); }
| EXTRAFUNS_TOK LPAREN_TOK
- ( { smt_command = new CommandSequence(); }
- functionDeclaration[c]
+ { smt_command = new CommandSequence(); }
+ ( functionDeclaration[c]
{ ((CommandSequence*) smt_command)->addCommand(c); }
)+ RPAREN_TOK
| EXTRAPREDS_TOK LPAREN_TOK
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback