From e568f34e1f4713c678336fbef1006e585128d466 Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Thu, 7 Jun 2012 20:45:13 +0000 Subject: LogicInfo locking implemented, and some initialization-order issues in SmtEngine resolved. ALL_SUPPORTED and QF_ALL_SUPPORTED logics now supported by SMT-LIB parsers. In SMT-LIBv2, if a (set-logic..) command is missing, ALL_SUPPORTED is assumed, and a warning is issued, as discussed on the cvc4-devel mailing list. --- src/parser/antlr_input.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/parser/antlr_input.cpp') diff --git a/src/parser/antlr_input.cpp b/src/parser/antlr_input.cpp index 67d873a48..52d98435e 100644 --- a/src/parser/antlr_input.cpp +++ b/src/parser/antlr_input.cpp @@ -270,6 +270,10 @@ void AntlrInput::lexerError(pANTLR3_BASE_RECOGNIZER recognizer) { } } +void AntlrInput::warning(const std::string& message) { + Warning() << getInputStream()->getName() << ':' << d_lexer->getLine(d_lexer) << '.' << d_lexer->getCharPositionInLine(d_lexer) << ": " << message << endl; +} + void AntlrInput::parseError(const std::string& message) throw (ParserException, AssertionException) { Debug("parser") << "Throwing exception: " -- cgit v1.2.3