From 129b483eac716eef7c9de110a8600db417077ad2 Mon Sep 17 00:00:00 2001 From: Kshitij Bansal Date: Wed, 17 Sep 2014 12:21:39 -0400 Subject: Fix (push) and (pop). Thanks to Christoph Sticksel for the bug report. --- src/parser/smt2/Smt2.g | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/parser') diff --git a/src/parser/smt2/Smt2.g b/src/parser/smt2/Smt2.g index e05ffaebe..6e046444d 100644 --- a/src/parser/smt2/Smt2.g +++ b/src/parser/smt2/Smt2.g @@ -420,6 +420,8 @@ command returns [CVC4::Command* cmd = NULL] | { if(PARSER_STATE->strictModeEnabled()) { PARSER_STATE->parseError("Strict compliance mode demands an integer to be provided to PUSH. Maybe you want (push 1)?"); } else { + PARSER_STATE->pushScope(); + PARSER_STATE->pushUnsatCoreNameScope(); cmd = new PushCommand(); } } ) @@ -448,6 +450,8 @@ command returns [CVC4::Command* cmd = NULL] | { if(PARSER_STATE->strictModeEnabled()) { PARSER_STATE->parseError("Strict compliance mode demands an integer to be provided to POP. Maybe you want (pop 1)?"); } else { + PARSER_STATE->popUnsatCoreNameScope(); + PARSER_STATE->popScope(); cmd = new PopCommand(); } } ) -- cgit v1.2.3