diff options
author | Cristian Cadar <c.cadar@imperial.ac.uk> | 2017-07-25 11:50:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-25 11:50:24 +0100 |
commit | 7b53061d746e39a04b1a2d79dcced3f4b5f74fdb (patch) | |
tree | ed92b7f7f558e2f7fadaa5c3f2145453d66d874c /lib/Core/Executor.h | |
parent | d40f29066ab9d5cb998a3bb38d2082a231c50d60 (diff) | |
parent | c77b0052785a7ead9cb80a37a53de2229e2f0726 (diff) | |
download | klee-7b53061d746e39a04b1a2d79dcced3f4b5f74fdb.tar.gz |
Merge pull request #725 from ccadar/fold
Refactored some code related to constant evaluation
Diffstat (limited to 'lib/Core/Executor.h')
-rw-r--r-- | lib/Core/Executor.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Core/Executor.h b/lib/Core/Executor.h index b8411a20..c9d715ad 100644 --- a/lib/Core/Executor.h +++ b/lib/Core/Executor.h @@ -351,6 +351,8 @@ private: ref<klee::ConstantExpr> evalConstantExpr(const llvm::ConstantExpr *ce); + ref<klee::ConstantExpr> evalConstant(const llvm::Constant *c); + /// Return a unique constant value for the given expression in the /// given state, if it has one (i.e. it provably only has a single /// value). Otherwise return the original expression. @@ -440,9 +442,6 @@ public: return *interpreterHandler; } - // XXX should just be moved out to utility module - ref<klee::ConstantExpr> evalConstant(const llvm::Constant *c); - virtual void setPathWriter(TreeStreamWriter *tsw) { pathWriter = tsw; } |