about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorCristian Cadar <cristic@cs.stanford.edu>2009-05-28 05:29:24 +0000
committerCristian Cadar <cristic@cs.stanford.edu>2009-05-28 05:29:24 +0000
commit4fa061a181f05c6c06de0185bee7f322b5ef0db9 (patch)
tree45d45791f77b599429e91dee5cdf56e7ba331f3b
parentd5e3206198cb3c7489a2ba817dfdd4fe6587e143 (diff)
downloadklee-4fa061a181f05c6c06de0185bee7f322b5ef0db9.tar.gz
Small changes to silence some gcc warnings.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@72518 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/klee/Solver.h4
-rw-r--r--lib/Core/TimingSolver.h2
-rw-r--r--lib/Expr/Parser.cpp1
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 <cassert>
 #include <iostream>
 #include <map>
+#include <cstring>
 
 using namespace llvm;
 using namespace klee;