From 553e2871ba937a91da303190631daf627f83eabb Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Thu, 25 Jun 2009 07:13:24 +0000 Subject: Recognizing more SMTLIB expressions (bitwise, etc.). Some of them still need to actually be constructed. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@74169 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/SMT/SMTParser.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'lib/SMT/SMTParser.cpp') diff --git a/lib/SMT/SMTParser.cpp b/lib/SMT/SMTParser.cpp index dee3801c..32e453f0 100644 --- a/lib/SMT/SMTParser.cpp +++ b/lib/SMT/SMTParser.cpp @@ -12,7 +12,8 @@ #include #include -#include +#include +#include #include #include @@ -66,6 +67,16 @@ int SMTParser::Error(const string& s) { return 0; } + +int SMTParser::StringToInt(const std::string& s) { + std::stringstream str(s); + int x; + str >> x; + assert(str); + return x; +} + + void SMTParser::PushVarEnv() { cout << "Pushing new var env\n"; varEnvs.push(VarEnv(varEnvs.top())); -- cgit 1.4.1