diff options
author | Cristian Cadar <cristic@cs.stanford.edu> | 2009-07-15 03:05:06 +0000 |
---|---|---|
committer | Cristian Cadar <cristic@cs.stanford.edu> | 2009-07-15 03:05:06 +0000 |
commit | 751901a5bb099ed37ce571001b4cad005be80f3d (patch) | |
tree | 9174b5b11cf72265c0994add96922910ddef0482 /lib/SMT/SMTParser.h | |
parent | 0661cf4e1f8f4dabd900d5672b9f6c16f000a9d0 (diff) | |
download | klee-751901a5bb099ed37ce571001b4cad005be80f3d.tar.gz |
Code to answer satisfiability queries.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@75735 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/SMT/SMTParser.h')
-rw-r--r-- | lib/SMT/SMTParser.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/SMT/SMTParser.h b/lib/SMT/SMTParser.h index 798e70b3..fd1ec044 100644 --- a/lib/SMT/SMTParser.h +++ b/lib/SMT/SMTParser.h @@ -38,16 +38,17 @@ class SMTParser : public klee::expr::Parser { bool arraysEnabled; std::vector<ExprHandle> assumptions; - klee::expr::ExprHandle query; + klee::expr::ExprHandle satQuery; int bvSize; bool queryParsed; - + klee::ExprBuilder *builder; SMTParser(const std::string filename, ExprBuilder *builder); virtual klee::expr::Decl *ParseTopLevelDecl(); + bool Solve(); virtual void SetMaxErrors(unsigned N) { } @@ -55,15 +56,15 @@ class SMTParser : public klee::expr::Parser { virtual ~SMTParser() {} - void Init(void); - + void Parse(void); + int Error(const std::string& s); int StringToInt(const std::string& s); ExprHandle GetConstExpr(std::string val, uint8_t base, klee::Expr::Width w); - + void DeclareExpr(std::string name, Expr::Width w); - + ExprHandle CreateAnd(std::vector<ExprHandle>); ExprHandle CreateOr(std::vector<ExprHandle>); ExprHandle CreateXor(std::vector<ExprHandle>); |