From 751901a5bb099ed37ce571001b4cad005be80f3d Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Wed, 15 Jul 2009 03:05:06 +0000 Subject: Code to answer satisfiability queries. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@75735 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/SMT/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/SMT/main.cpp') diff --git a/lib/SMT/main.cpp b/lib/SMT/main.cpp index 934f0702..034c4ce4 100644 --- a/lib/SMT/main.cpp +++ b/lib/SMT/main.cpp @@ -36,8 +36,8 @@ int main(int argc, char** argv) { } klee::expr::SMTParser smtParser(argv[1], Builder); - - smtParser.Init(); + smtParser.Parse(); + int result = smtParser.Solve(); - cout << smtParser.query << "\n"; + cout << (result ? "UNSAT":"SAT") << "\n"; } -- cgit 1.4.1