From 7ba75c1726a81d343e54bc718742541b9d884a13 Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Wed, 10 Jun 2009 09:15:33 +0000 Subject: Updated the SMT test driver. Other small changes to parser_temp.h and smtlib.y. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@73167 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/SMT/main.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'lib/SMT/main.cpp') 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 using namespace std; -using namespace klee; -using namespace klee::expr; - int main(int argc, char** argv) { if (argc != 2) { cout << "Usage: " << argv[0] << " \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(); } -- cgit 1.4.1