diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-06-10 06:23:00 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-10 06:23:00 +0000 |
commit | 876a9e45740b09a8518bef438f1e895c9f416be3 (patch) | |
tree | 95f1ec79e942fd302954bc9faed0275650122ab5 /lib/Expr/Expr.cpp | |
parent | 7561acc8b346028bc6eb586ea76b5b2a9400140c (diff) | |
download | klee-876a9e45740b09a8518bef438f1e895c9f416be3.tar.gz |
Move Array construction out of MemoryObject into ObjectState.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@73162 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Expr/Expr.cpp')
-rw-r--r-- | lib/Expr/Expr.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Expr/Expr.cpp b/lib/Expr/Expr.cpp index 2b6f3d96..ce914266 100644 --- a/lib/Expr/Expr.cpp +++ b/lib/Expr/Expr.cpp @@ -353,6 +353,18 @@ ref<Expr> NotOptimizedExpr::create(ref<Expr> src) { return NotOptimizedExpr::alloc(src); } +/***/ + +Array::~Array() { + // FIXME: This shouldn't be necessary. + if (array->stpInitialArray) { + ::vc_DeleteExpr(array->stpInitialArray); + array->stpInitialArray = 0; + } +} + +/***/ + ref<Expr> ReadExpr::create(const UpdateList &ul, ref<Expr> index) { // rollback index when possible... |