From c7db4230beef3b81542edb5d7ae6ca606d0567dd Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Wed, 2 Jan 2013 14:33:58 +0000 Subject: 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 --- lib/Solver/CachingSolver.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/Solver/CachingSolver.cpp') diff --git a/lib/Solver/CachingSolver.cpp b/lib/Solver/CachingSolver.cpp index c0b77429..f7b88855 100644 --- a/lib/Solver/CachingSolver.cpp +++ b/lib/Solver/CachingSolver.cpp @@ -82,6 +82,7 @@ public: return solver->impl->computeInitialValues(query, objects, values, hasSolution); } + bool hasTimeoutOccurred(); }; /** @returns the canonical version of the given query. The reference @@ -234,6 +235,10 @@ bool CachingSolver::computeTruth(const Query& query, return true; } +bool CachingSolver::hasTimeoutOccurred() { + return solver->impl->hasTimeoutOccurred(); +} + /// Solver *klee::createCachingSolver(Solver *_solver) { -- cgit 1.4.1