aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/Core/TimingSolver.h
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2013-08-07 17:10:10 +0100
committerCristian Cadar <c.cadar@imperial.ac.uk>2013-08-07 17:10:10 +0100
commit39616bca565f1d3f958dc7e0e071ac5dc64f5439 (patch)
treefe7172fe6df50be65ae5317a82ed1d5b16d821ec /lib/Core/TimingSolver.h
parent363e7ab2d7bfa790b666eac1b48b7b7daf02e5e3 (diff)
parent6eae8c62e620c86ef5c95839e899d39e003c13eb (diff)
downloadklee-39616bca565f1d3f958dc7e0e071ac5dc64f5439.tar.gz
Merge branch 'master' of https://github.com/hpalikareva/klee into hpalikareva-master
Diffstat (limited to 'lib/Core/TimingSolver.h')
-rw-r--r--lib/Core/TimingSolver.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/Core/TimingSolver.h b/lib/Core/TimingSolver.h
index b13879df..c98dd881 100644
--- a/lib/Core/TimingSolver.h
+++ b/lib/Core/TimingSolver.h
@@ -17,15 +17,13 @@
namespace klee {
class ExecutionState;
- class Solver;
- class STPSolver;
+ class Solver;
/// TimingSolver - A simple class which wraps a solver and handles
/// tracking the statistics that we care about.
class TimingSolver {
public:
Solver *solver;
- STPSolver *stpSolver;
bool simplifyExprs;
public:
@@ -34,15 +32,18 @@ namespace klee {
/// \param _simplifyExprs - Whether expressions should be
/// simplified (via the constraint manager interface) prior to
/// querying.
- TimingSolver(Solver *_solver, STPSolver *_stpSolver,
- bool _simplifyExprs = true)
- : solver(_solver), stpSolver(_stpSolver), simplifyExprs(_simplifyExprs) {}
+ TimingSolver(Solver *_solver, bool _simplifyExprs = true)
+ : solver(_solver), simplifyExprs(_simplifyExprs) {}
~TimingSolver() {
delete solver;
}
void setTimeout(double t) {
- stpSolver->setTimeout(t);
+ solver->setCoreSolverTimeout(t);
+ }
+
+ char *getConstraintLog(const Query& query) {
+ return solver->getConstraintLog(query);
}
bool evaluate(const ExecutionState&, ref<Expr>, Solver::Validity &result);