diff options
author | Martin Nowack <m.nowack@imperial.ac.uk> | 2018-10-17 22:39:06 +0100 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2018-10-23 18:53:46 +0300 |
commit | 713c1a3744aa8c0bfadf85a76377dd2c7dd63519 (patch) | |
tree | 6083e195f3d27791598bbf7a1976ef2a2379c84c /include | |
parent | ca1a1083a8a9cce249dd46511072c00676a4c3d5 (diff) | |
download | klee-713c1a3744aa8c0bfadf85a76377dd2c7dd63519.tar.gz |
optimizeExpr: return the result as return value instead as function argument
simplifies code a lot.
Diffstat (limited to 'include')
-rw-r--r-- | include/klee/ArrayExprOptimizer.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/klee/ArrayExprOptimizer.h b/include/klee/ArrayExprOptimizer.h index 36c26484..5c02e44b 100644 --- a/include/klee/ArrayExprOptimizer.h +++ b/include/klee/ArrayExprOptimizer.h @@ -72,7 +72,11 @@ private: unordered_map<unsigned, ref<Expr>> cacheReadExprOptimized; public: - void optimizeExpr(const ref<Expr> &e, ref<Expr> &result, bool valueOnly); + /// Returns the optimised version of e. + /// @param e expression to optimise + /// @param valueOnly XXX document + /// @return optimised expression + ref<Expr> optimizeExpr(const ref<Expr> &e, bool valueOnly); private: bool |