diff options
Diffstat (limited to 'lib/SMT/main.cpp')
-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"; + } +} |