From 8918399152f1121938c336f90724631b07e2c549 Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Mon, 11 Nov 2013 11:51:07 -0500 Subject: [PATCH] Expanded usefulness of (set-info :cvc4-logic ...) --- src/parser/smt2/Smt2.g | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/parser/smt2/Smt2.g b/src/parser/smt2/Smt2.g index c7e088124..f3855e713 100644 --- a/src/parser/smt2/Smt2.g +++ b/src/parser/smt2/Smt2.g @@ -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 */ -- 2.30.2