diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-06-14 06:16:49 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-14 06:16:49 +0000 |
commit | 171810d97c206c090ff588729f1ee16f9d47cbfb (patch) | |
tree | c3d9bafcd329cfca3293bc71cb4d5ead2512f043 /lib/Core/SpecialFunctionHandler.cpp | |
parent | 7c27c8a6a7c233c3c6162d9b86942351fe5f42b3 (diff) | |
download | klee-171810d97c206c090ff588729f1ee16f9d47cbfb.tar.gz |
Change AddressSpace::resolveOne to take a ConstantExpr directly (and to allow
64-bit addresses). git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@73327 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Core/SpecialFunctionHandler.cpp')
-rw-r--r-- | lib/Core/SpecialFunctionHandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Core/SpecialFunctionHandler.cpp b/lib/Core/SpecialFunctionHandler.cpp index d2c68b77..11705722 100644 --- a/lib/Core/SpecialFunctionHandler.cpp +++ b/lib/Core/SpecialFunctionHandler.cpp @@ -178,7 +178,7 @@ SpecialFunctionHandler::readStringAtAddress(ExecutionState &state, ObjectPair op; addressExpr = executor.toUnique(state, addressExpr); ref<ConstantExpr> address = cast<ConstantExpr>(addressExpr); - if (!state.addressSpace.resolveOne(address->getConstantValue(), op)) + if (!state.addressSpace.resolveOne(address, op)) assert(0 && "XXX out of bounds / multiple resolution unhandled"); bool res; assert(executor.solver->mustBeTrue(state, @@ -599,7 +599,7 @@ void SpecialFunctionHandler::handleCheckMemoryAccess(ExecutionState &state, } else { ObjectPair op; - if (!state.addressSpace.resolveOne(cast<ConstantExpr>(address)->getConstantValue(), op)) { + if (!state.addressSpace.resolveOne(cast<ConstantExpr>(address), op)) { executor.terminateStateOnError(state, "check_memory_access: memory error", "ptr.err", |