about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorCristian Cadar <cristic@cs.stanford.edu>2009-06-08 08:22:23 +0000
committerCristian Cadar <cristic@cs.stanford.edu>2009-06-08 08:22:23 +0000
commitff6e5265662f6756ac827a5a8faaeaf0db99c03d (patch)
treed16f1a3a2528deffff2214c9dd44f4ff54b893e0
parent9e9d2177ebaeba1e14a29b479de8e6465bb2f162 (diff)
downloadklee-ff6e5265662f6756ac827a5a8faaeaf0db99c03d.tar.gz
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
-rw-r--r--lib/SMT/parser.cpp15
-rw-r--r--lib/SMT/parser_temp.h9
2 files changed, 11 insertions, 13 deletions
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 <sstream>
+#include <vector>
 
-  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;