about summary refs log tree commit diff homepage
path: root/include
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2023-11-22 22:59:32 +0000
committerMartinNowack <2443641+MartinNowack@users.noreply.github.com>2024-01-30 17:30:11 +0000
commit42662b71a53d2e72481bc46994f44e47c7528a34 (patch)
tree6165c24d2b9659dff71dc2655c19934b11ecc50d /include
parent3e006dbfacd06e12818d97ae5aab1960324b27f9 (diff)
downloadklee-42662b71a53d2e72481bc46994f44e47c7528a34.tar.gz
Make Assignment::evaluate be const
Diffstat (limited to 'include')
-rw-r--r--include/klee/Expr/Assignment.h4
1 files changed, 2 insertions, 2 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); 
   }