diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-28 07:59:09 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-28 07:59:09 +0000 |
commit | f5e6b462646f5a20dd0e5f6c4befaa7b72d1e1ff (patch) | |
tree | 8c3a622ce7955e304134b2175813721b30a99005 /lib/Core/ImpliedValue.cpp | |
parent | 4fcf6a3c9b87b02d73b6a2f55c17573ca7fc5bbc (diff) | |
download | klee-f5e6b462646f5a20dd0e5f6c4befaa7b72d1e1ff.tar.gz |
Move Machine constants into Context object, initialized based on the target
data. - This is the first step towards having KLEE be fully target independent, its not particularly beautiful but its expedient. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@77306 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Core/ImpliedValue.cpp')
-rw-r--r-- | lib/Core/ImpliedValue.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Core/ImpliedValue.cpp b/lib/Core/ImpliedValue.cpp index 8fb84edd..a3d30f76 100644 --- a/lib/Core/ImpliedValue.cpp +++ b/lib/Core/ImpliedValue.cpp @@ -9,6 +9,7 @@ #include "ImpliedValue.h" +#include "Context.h" #include "klee/Constraints.h" #include "klee/Expr.h" #include "klee/Solver.h" @@ -223,7 +224,7 @@ void ImpliedValue::checkForImpliedValues(Solver *S, ref<Expr> e, ReadExpr *re = i->get(); assumption.push_back(UltExpr::create(re->index, ConstantExpr::alloc(re->updates.root->size, - kMachinePointerType))); + Context::get().getPointerWidth()))); } ConstraintManager assume(assumption); |