diff options
author | Cristian Cadar <cristic@cs.stanford.edu> | 2009-07-15 03:05:06 +0000 |
---|---|---|
committer | Cristian Cadar <cristic@cs.stanford.edu> | 2009-07-15 03:05:06 +0000 |
commit | 751901a5bb099ed37ce571001b4cad005be80f3d (patch) | |
tree | 9174b5b11cf72265c0994add96922910ddef0482 /lib/SMT/main.cpp | |
parent | 0661cf4e1f8f4dabd900d5672b9f6c16f000a9d0 (diff) | |
download | klee-751901a5bb099ed37ce571001b4cad005be80f3d.tar.gz |
Code to answer satisfiability queries.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@75735 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/SMT/main.cpp')
-rw-r--r-- | lib/SMT/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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"; } |