about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
-rw-r--r--include/klee/Expr/Assignment.h4
-rw-r--r--lib/Core/Executor.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/klee/Expr/Assignment.h b/include/klee/Expr/Assignment.h
index 7384e0cc..ba0c2a6c 100644
--- a/include/klee/Expr/Assignment.h
+++ b/include/klee/Expr/Assignment.h
@@ -44,7 +44,7 @@ namespace klee {
     }
     
     ref<Expr> evaluate(const Array *mo, unsigned index) const;
-    ref<Expr> evaluate(ref<Expr> e);
+    ref<Expr> evaluate(ref<Expr> e) const;
     ConstraintSet createConstraintsFromAssignment() const;
 
     template<typename InputIterator>
@@ -82,7 +82,7 @@ namespace klee {
     }
   }
 
-  inline ref<Expr> Assignment::evaluate(ref<Expr> e) { 
+  inline ref<Expr> Assignment::evaluate(ref<Expr> e) const { 
     AssignmentEvaluator v(*this);
     return v.visit(e); 
   }
diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp
index c07fa18e..73f994ce 100644
--- a/lib/Core/Executor.cpp
+++ b/lib/Core/Executor.cpp
@@ -1351,7 +1351,7 @@ Executor::toConstant(ExecutionState &state,
 ref<klee::Expr>
 Executor::getValueFromSeeds(std::vector<SeedInfo> &seeds, ref<Expr> e) {
   assert(!seeds.empty());
-  for (auto seed:seeds) {
+  for (auto const &seed : seeds) {
     auto value = seed.assignment.evaluate(e);
     if (isa<ConstantExpr>(value))
       return value;