Fix (push) and (pop). Thanks to Christoph Sticksel for the bug report.
authorKshitij Bansal <kshitij@cs.nyu.edu>
Wed, 17 Sep 2014 16:21:39 +0000 (12:21 -0400)
committerKshitij Bansal <kshitij@cs.nyu.edu>
Wed, 17 Sep 2014 16:24:15 +0000 (12:24 -0400)
src/parser/smt2/Smt2.g

index e05ffaebebbbb84174d4d3e1e71edb120ee0a9ba..6e046444d708ab6fb72e03fcdd423cdb114771e2 100644 (file)
@@ -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();
         }
       } )