Expanded usefulness of (set-info :cvc4-logic ...)
authorMorgan Deters <mdeters@cs.nyu.edu>
Mon, 11 Nov 2013 16:51:07 +0000 (11:51 -0500)
committerMorgan Deters <mdeters@cs.nyu.edu>
Mon, 11 Nov 2013 16:51:07 +0000 (11:51 -0500)
src/parser/smt2/Smt2.g

index c7e088124557cb00d3e1098abb365fe04ae02eaf..f3855e713a36eae859f1371ee2d5f450b6eea769 100644 (file)
@@ -236,6 +236,9 @@ command returns [CVC4::Command* cmd = NULL]
       $cmd = new SetBenchmarkLogicCommand(name); }
   | SET_INFO_TOK KEYWORD symbolicExpr[sexpr]
     { name = AntlrInput::tokenText($KEYWORD);
+      if(name == ":cvc4-logic" || name == ":cvc4_logic") {
+        PARSER_STATE->setLogic(sexpr.getValue());
+      }
       PARSER_STATE->setInfo(name.c_str() + 1, sexpr);
       cmd = new SetInfoCommand(name.c_str() + 1, sexpr); }
   | /* get-info */