diff options
author | Cristian Cadar <cristic@cs.stanford.edu> | 2009-06-10 02:46:41 +0000 |
---|---|---|
committer | Cristian Cadar <cristic@cs.stanford.edu> | 2009-06-10 02:46:41 +0000 |
commit | 91099032ed67a46c257d1a538a5474fad90abb21 (patch) | |
tree | f6e18495195508843d433b73759b216b82790975 | |
parent | 8581353bdd7266a5b4e92bc8a9149447cdf42647 (diff) | |
download | klee-91099032ed67a46c257d1a538a5474fad90abb21.tar.gz |
Added a temporary driver to test the parser.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@73155 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/SMT/main.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/SMT/main.cpp b/lib/SMT/main.cpp new file mode 100644 index 00000000..4643d50a --- /dev/null +++ b/lib/SMT/main.cpp @@ -0,0 +1,23 @@ +#include "parser_temp.h" +#include "parser.h" + +#include <iostream> + +using namespace std; +using namespace klee; +using namespace klee::expr; + + +int main(int argc, char** argv) { + if (argc != 2) { + cout << "Usage: " << argv[0] << " <smt-filename>\n"; + return 1; + } + + CVC3::Parser* parser = new CVC3::Parser(false, argv[1]); + while (!parser->done()) { + ExprHandle e = parser->next(); + if (!e.isNull()) + cout << "e: " << e << "\n"; + } +} |