From 876a9e45740b09a8518bef438f1e895c9f416be3 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 10 Jun 2009 06:23:00 +0000 Subject: 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 --- lib/Expr/Expr.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/Expr') 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 NotOptimizedExpr::create(ref src) { return NotOptimizedExpr::alloc(src); } +/***/ + +Array::~Array() { + // FIXME: This shouldn't be necessary. + if (array->stpInitialArray) { + ::vc_DeleteExpr(array->stpInitialArray); + array->stpInitialArray = 0; + } +} + +/***/ + ref ReadExpr::create(const UpdateList &ul, ref index) { // rollback index when possible... -- cgit 1.4.1