diff options
author | Cristian Cadar <c.cadar@imperial.ac.uk> | 2015-02-27 19:03:46 +0000 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2015-02-27 19:03:46 +0000 |
commit | 1c10b2b52a4f91f62bc9ef632032d7f0ade0307c (patch) | |
tree | 6ba801b9e1aa4c24fd87fa830674881ffe7802e6 /lib/Core | |
parent | 35117b9f9273d2465abe56ef11f89ca7477e3d91 (diff) | |
download | klee-1c10b2b52a4f91f62bc9ef632032d7f0ade0307c.tar.gz |
Improved some comments and fixed some formatting issues in the Array factory patch.
Diffstat (limited to 'lib/Core')
-rw-r--r-- | lib/Core/Executor.cpp | 2 | ||||
-rw-r--r-- | lib/Core/Memory.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index 8631061f..c78c9f8a 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -2925,7 +2925,7 @@ ref<Expr> Executor::replaceReadWithSymbolic(ExecutionState &state, static unsigned id; const Array *array = Array::CreateArray("rrws_arr" + llvm::utostr(++id), - Expr::getMinBytesForWidth(e->getWidth())); + Expr::getMinBytesForWidth(e->getWidth())); ref<Expr> res = Expr::createTempRead(array, e->getWidth()); ref<Expr> eq = NotOptimizedExpr::create(EqExpr::create(e, res)); llvm::errs() << "Making symbolic: " << eq << "\n"; diff --git a/lib/Core/Memory.cpp b/lib/Core/Memory.cpp index b9f6afd0..1dd1e1fd 100644 --- a/lib/Core/Memory.cpp +++ b/lib/Core/Memory.cpp @@ -223,8 +223,8 @@ const UpdateList &ObjectState::getUpdates() const { // FIXME: Leaked. static unsigned id = 0; const Array *array = Array::CreateArray("const_arr" + llvm::utostr(++id), size, - &Contents[0], - &Contents[0] + Contents.size()); + &Contents[0], + &Contents[0] + Contents.size()); updates = UpdateList(array, 0); // Apply the remaining (non-constant) writes. |