diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-06-14 08:16:07 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-14 08:16:07 +0000 |
commit | a162859920beccf91af1a3a5038c9cf15700d53b (patch) | |
tree | 7495ee6365b30f83b9412bc69b4a5b59ec83096a /lib/Core/AddressSpace.cpp | |
parent | 4177a3239de9ba23f29717bd2d13c57ffea0ead8 (diff) | |
download | klee-a162859920beccf91af1a3a5038c9cf15700d53b.tar.gz |
More ConstantExpr cleanup.
- Change Executor::evalConstant to return ConstantExpr. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@73337 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Core/AddressSpace.cpp')
-rw-r--r-- | lib/Core/AddressSpace.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Core/AddressSpace.cpp b/lib/Core/AddressSpace.cpp index 1e683e34..25418c13 100644 --- a/lib/Core/AddressSpace.cpp +++ b/lib/Core/AddressSpace.cpp @@ -84,7 +84,7 @@ bool AddressSpace::resolveOne(ExecutionState &state, ref<ConstantExpr> cex; if (!solver->getValue(state, address, cex)) return false; - unsigned example = (unsigned) cex->getConstantValue(); + uint64_t example = cex->getZExtValue(); MemoryObject hack(example); const MemoryMap::value_type *res = objects.lookup_previous(&hack); @@ -191,7 +191,7 @@ bool AddressSpace::resolve(ExecutionState &state, ref<ConstantExpr> cex; if (!solver->getValue(state, p, cex)) return true; - unsigned example = (unsigned) cex->getConstantValue(); + uint64_t example = cex->getZExtValue(); MemoryObject hack(example); MemoryMap::iterator oi = objects.upper_bound(&hack); |