diff options
author | Cristian Cadar <cristic@cs.stanford.edu> | 2013-01-02 14:33:58 +0000 |
---|---|---|
committer | Cristian Cadar <cristic@cs.stanford.edu> | 2013-01-02 14:33:58 +0000 |
commit | c7db4230beef3b81542edb5d7ae6ca606d0567dd (patch) | |
tree | f3913e6ea23e0bffbbeff0fc8f5810159c1517f9 /lib/Solver/CexCachingSolver.cpp | |
parent | 26bf73bf80369a24467fcf1f53165824cbcd5679 (diff) | |
download | klee-c7db4230beef3b81542edb5d7ae6ca606d0567dd.tar.gz |
Patch by Tomasz Kuchta adding a new option (min-query-time-to-log) that enables KLEE to log only the queries exceeding a certain duration, or only those that time out.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@171385 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Solver/CexCachingSolver.cpp')
-rw-r--r-- | lib/Solver/CexCachingSolver.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Solver/CexCachingSolver.cpp b/lib/Solver/CexCachingSolver.cpp index 19f16821..c84ae409 100644 --- a/lib/Solver/CexCachingSolver.cpp +++ b/lib/Solver/CexCachingSolver.cpp @@ -82,6 +82,7 @@ public: const std::vector<const Array*> &objects, std::vector< std::vector<unsigned char> > &values, bool &hasSolution); + bool hasTimeoutOccurred(); }; /// @@ -339,6 +340,10 @@ CexCachingSolver::computeInitialValues(const Query& query, return true; } +bool CexCachingSolver::hasTimeoutOccurred() { + return solver->impl->hasTimeoutOccurred(); +} + /// Solver *klee::createCexCachingSolver(Solver *_solver) { |