diff options
author | Cristian Cadar <cristic@cs.stanford.edu> | 2009-06-12 02:38:27 +0000 |
---|---|---|
committer | Cristian Cadar <cristic@cs.stanford.edu> | 2009-06-12 02:38:27 +0000 |
commit | e46452c0c0501a7c4b45ab4d7a50b9bc8bf59e46 (patch) | |
tree | fbcc67f3bdb1b6eef9e6efa19f1bd265147aea14 /lib/SMT/SMTParser.h | |
parent | 1c7da6d62afa3b5b8e83fc8c1cb7301cba70fa16 (diff) | |
download | klee-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/SMTParser.h')
-rw-r--r-- | lib/SMT/SMTParser.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/lib/SMT/SMTParser.h b/lib/SMT/SMTParser.h index 5abbee7b..35a0b00e 100644 --- a/lib/SMT/SMTParser.h +++ b/lib/SMT/SMTParser.h @@ -11,7 +11,6 @@ #ifndef SMT_PARSER_H #define SMT_PARSER_H -#include "parser_temp.h" #include "expr/Parser.h" #include <cassert> @@ -23,12 +22,21 @@ namespace klee { namespace expr { class SMTParser : public klee::expr::Parser { - private: - std::string fname; - void *buf; + private: + void *buf; public: - SMTParser(const std::string filename) : fname(filename) {} + /* For interacting w/ the actual parser, should make this nicer */ + static SMTParser* parserTemp; + std::string fileName; + std::istream* is; + int lineNum; + bool done; + klee::expr::ExprHandle expr; + int bvSize; + bool queryParsed; + + SMTParser(const std::string filename); virtual klee::expr::Decl *ParseTopLevelDecl(); @@ -39,6 +47,8 @@ class SMTParser : public klee::expr::Parser { virtual ~SMTParser() {} void Init(void); + + int Error(const std::string& s); }; } |