From ff6e5265662f6756ac827a5a8faaeaf0db99c03d Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Mon, 8 Jun 2009 08:22:23 +0000 Subject: Removed ValidityChecker field from ParserTemp. Temporarily replaced Expr with void* to quickly get some compilable parser. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@73062 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/SMT/parser.cpp | 15 ++++++--------- lib/SMT/parser_temp.h | 9 +++++---- 2 files changed, 11 insertions(+), 13 deletions(-) (limited to 'lib/SMT') diff --git a/lib/SMT/parser.cpp b/lib/SMT/parser.cpp index c960c16d..8981179e 100644 --- a/lib/SMT/parser.cpp +++ b/lib/SMT/parser.cpp @@ -29,6 +29,7 @@ using namespace std; // The communication entry points of the actual parsers + // for smtlib language (smtlib.y and smtlib.lex) extern int smtlibparse(); extern void *smtlib_createBuffer(int); @@ -67,11 +68,9 @@ namespace CVC3 { }; // Constructors - Parser::Parser(ValidityChecker* vc, InputLanguage lang, - bool interactive, + Parser::Parser(InputLanguage lang, bool interactive, const std::string& fileName) : d_data(new ParserData) { - d_data->temp.vc = vc; d_data->lang = lang; if(fileName == "") { // Use std::cin @@ -92,10 +91,8 @@ namespace CVC3 { initParser(); } - Parser::Parser(ValidityChecker* vc, InputLanguage lang, std::istream& is, - bool interactive) + Parser::Parser(InputLanguage lang, std::istream& is, bool interactive) : d_data(new ParserData) { - d_data->temp.vc = vc; d_data->lang = lang; d_data->useName = false; d_data->temp.is = &is; @@ -136,7 +133,7 @@ namespace CVC3 { Expr Parser::next() { // If no more commands are available, return a Null Expr - if(d_data->temp.done) return Expr(); + if(d_data->temp.done) return NULL;//Expr(); // Set the global var so the parser uses the right stream and EM parserTemp = &(d_data->temp); // Switch to our buffer, in case there are multiple instances of @@ -159,7 +156,7 @@ namespace CVC3 { } catch(Exception* e) { cerr << d_data->temp.fileName << ":" << d_data->temp.lineNum << ": " << e << endl; - return Expr(); + return NULL;//Expr(); } return d_data->temp.expr; } @@ -173,7 +170,7 @@ namespace CVC3 { void Parser::reset() { - d_data->temp.expr = Expr(); + d_data->temp.expr = NULL;//Expr(); } diff --git a/lib/SMT/parser_temp.h b/lib/SMT/parser_temp.h index 2c6f6b38..ad6bf5f1 100644 --- a/lib/SMT/parser_temp.h +++ b/lib/SMT/parser_temp.h @@ -23,12 +23,14 @@ #ifndef _cvc3__parser_temp_h_ #define _cvc3__parser_temp_h_ -#include "expr.h" +//#include "expr.h" +#define Expr void* #include "exception.h" -namespace CVC3 { +#include +#include - class ValidityChecker; +namespace CVC3 { class ParserTemp { private: @@ -41,7 +43,6 @@ namespace CVC3 { // The currently used prompt std::string prompt; public: - ValidityChecker* vc; std::istream* is; // The current input line int lineNum; -- cgit 1.4.1