about summary refs log tree commit diff homepage
path: root/lib/SMT/smtlib.y
diff options
context:
space:
mode:
authorCristian Cadar <cristic@cs.stanford.edu>2009-06-12 02:38:27 +0000
committerCristian Cadar <cristic@cs.stanford.edu>2009-06-12 02:38:27 +0000
commite46452c0c0501a7c4b45ab4d7a50b9bc8bf59e46 (patch)
treefbcc67f3bdb1b6eef9e6efa19f1bd265147aea14 /lib/SMT/smtlib.y
parent1c7da6d62afa3b5b8e83fc8c1cb7301cba70fa16 (diff)
downloadklee-e46452c0c0501a7c4b45ab4d7a50b9bc8bf59e46.tar.gz
Removed parser_temp.h. Adapted the code to use SMTParser directly.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@73215 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/SMT/smtlib.y')
-rw-r--r--lib/SMT/smtlib.y24
1 files changed, 10 insertions, 14 deletions
diff --git a/lib/SMT/smtlib.y b/lib/SMT/smtlib.y
index 40413345..422c28ad 100644
--- a/lib/SMT/smtlib.y
+++ b/lib/SMT/smtlib.y
@@ -23,25 +23,21 @@
    commands in SMT-LIB language.
 */
 
-#include "parser_temp.h"
 #include "SMTParser.h"
 #include "klee/Expr.h"
 
+#include <sstream>
+
 using namespace klee;
 using namespace klee::expr;
 
-// Exported shared data
-namespace CVC3 {
-  extern ParserTemp* parserTemp;
-}
 // Define shortcuts for various things
-#define TMP CVC3::parserTemp
-#define EXPR CVC3::parserTemp->expr
-//#define VC (CVC3::parserTemp->vc)
-#define ARRAYSENABLED (CVC3::parserTemp->arrFlag)
-#define BVENABLED (CVC3::parserTemp->bvFlag)
-#define BVSIZE (CVC3::parserTemp->bvSize)
-#define QUERYPARSED CVC3::parserTemp->queryParsed
+#define TMP SMTParser::parserTemp
+#define EXPR SMTParser::parserTemp->expr
+#define ARRAYSENABLED (SMTParser::parserTemp->arrFlag)
+#define BVENABLED (SMTParser::parserTemp->bvFlag)
+#define BVSIZE (SMTParser::parserTemp->bvSize)
+#define QUERYPARSED SMTParser::parserTemp->queryParsed
 
 // Suppress the bogus warning suppression in bison (it generates
 // compile error)
@@ -53,9 +49,9 @@ extern int smtliblex(void);
 int smtliberror(const char *s)
 {
   std::ostringstream ss;
-  ss << CVC3::parserTemp->fileName << ":" << CVC3::parserTemp->lineNum
+  ss << SMTParser::parserTemp->fileName << ":" << SMTParser::parserTemp->lineNum
      << ": " << s;
-  return CVC3::parserTemp->error(ss.str());
+  return SMTParser::parserTemp->Error(ss.str());
 }