diff options
author | Hristina Palikareva <h.palikareva@imperial.ac.uk> | 2013-08-06 17:59:08 +0100 |
---|---|---|
committer | Hristina Palikareva <h.palikareva@imperial.ac.uk> | 2013-08-06 17:59:08 +0100 |
commit | ca83defeab023dbfbbd21d8a497a42af9abdf7fd (patch) | |
tree | b23889c72bf3f743ae09e76eea04880a4822144c /lib/Solver/CachingSolver.cpp | |
parent | 9abe9572e68748002d8bbb789587e2a036ff760d (diff) | |
download | klee-ca83defeab023dbfbbd21d8a497a42af9abdf7fd.tar.gz |
Methods getConstraintLog() and setTimeout() made virtual and moved from STPSolver to base Solver and SolverImpl classes, and consequently redefined in derived classes to call the corresponding methods down the solver chain. Method setTimeout() renamed to setCoreSolverTimeout().
Diffstat (limited to 'lib/Solver/CachingSolver.cpp')
-rw-r--r-- | lib/Solver/CachingSolver.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Solver/CachingSolver.cpp b/lib/Solver/CachingSolver.cpp index 5911bbf3..674d4627 100644 --- a/lib/Solver/CachingSolver.cpp +++ b/lib/Solver/CachingSolver.cpp @@ -85,6 +85,8 @@ public: hasSolution); } SolverRunStatus getOperationStatusCode(); + char *getConstraintLog(const Query&); + void setCoreSolverTimeout(double timeout); }; /** @returns the canonical version of the given query. The reference @@ -244,6 +246,14 @@ SolverImpl::SolverRunStatus CachingSolver::getOperationStatusCode() { return solver->impl->getOperationStatusCode(); } +char *CachingSolver::getConstraintLog(const Query& query) { + return solver->impl->getConstraintLog(query); +} + +void CachingSolver::setCoreSolverTimeout(double timeout) { + solver->impl->setCoreSolverTimeout(timeout); +} + /// Solver *klee::createCachingSolver(Solver *_solver) { |