From 4fa061a181f05c6c06de0185bee7f322b5ef0db9 Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Thu, 28 May 2009 05:29:24 +0000 Subject: Small changes to silence some gcc warnings. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@72518 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/klee/Solver.h | 4 +++- lib/Core/TimingSolver.h | 2 +- lib/Expr/Parser.cpp | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/klee/Solver.h b/include/klee/Solver.h index 2d4fa044..a053050d 100644 --- a/include/klee/Solver.h +++ b/include/klee/Solver.h @@ -65,7 +65,7 @@ namespace klee { public: Solver(SolverImpl *_impl) : impl(_impl) {}; - ~Solver(); + virtual ~Solver(); /// evaluate - Determine the full validity of an expression in particular /// state. @@ -158,6 +158,8 @@ namespace klee { /// \param useForkedSTP - Whether STP should be run in a separate process /// (required for using timeouts). STPSolver(bool useForkedSTP); + + /// getConstraintLog - Return the constraint log for the given state in CVC /// format. diff --git a/lib/Core/TimingSolver.h b/lib/Core/TimingSolver.h index 875216d9..b92cfc32 100644 --- a/lib/Core/TimingSolver.h +++ b/lib/Core/TimingSolver.h @@ -37,7 +37,7 @@ namespace klee { TimingSolver(Solver *_solver, STPSolver *_stpSolver, bool _simplifyExprs = true) : solver(_solver), stpSolver(_stpSolver), simplifyExprs(_simplifyExprs) {} - ~TimingSolver() { + virtual ~TimingSolver() { delete solver; } diff --git a/lib/Expr/Parser.cpp b/lib/Expr/Parser.cpp index f5708384..dba089a5 100644 --- a/lib/Expr/Parser.cpp +++ b/lib/Expr/Parser.cpp @@ -22,6 +22,7 @@ #include #include #include +#include using namespace llvm; using namespace klee; -- cgit 1.4.1