about summary refs log tree commit diff homepage
path: root/lib/SMT/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/SMT/main.cpp')
-rw-r--r--lib/SMT/main.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/lib/SMT/main.cpp b/lib/SMT/main.cpp
index 4643d50a..4d2b8e0a 100644
--- a/lib/SMT/main.cpp
+++ b/lib/SMT/main.cpp
@@ -1,23 +1,16 @@
-#include "parser_temp.h"
-#include "parser.h"
+#include "SMTParser.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;
   }
+  
+  klee::expr::SMTParser smtParser(argv[1]);
 
-  CVC3::Parser* parser = new CVC3::Parser(false, argv[1]);
-  while (!parser->done()) {
-    ExprHandle e = parser->next();
-    if (!e.isNull())
-      cout << "e: " << e << "\n";
-  }
+  smtParser.Init();
 }