diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2011-12-13 20:21:56 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-12-13 20:21:56 +0000 |
commit | 825b64d0bf4c4076f5b9d2fb82c087ee3ad72088 (patch) | |
tree | 0ae98ed8c9f37c7c1ff8f8f6a9d10134d934ebc5 | |
parent | 1970a2479364e18619e895455ce8198f6b7bb0f1 (diff) | |
download | klee-825b64d0bf4c4076f5b9d2fb82c087ee3ad72088.tar.gz |
Fix STPBuilder::getShiftBits for non-power-of-2 bitwidths up to 64.
(Yes, we should really be handling more bitwidths here.) git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@146510 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Solver/STPBuilder.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Solver/STPBuilder.h b/lib/Solver/STPBuilder.h index 4353857c..a4d6d0f8 100644 --- a/lib/Solver/STPBuilder.h +++ b/lib/Solver/STPBuilder.h @@ -73,7 +73,7 @@ class STPBuilder { private: unsigned getShiftBits(unsigned amount) { - return (amount == 64) ? 6 : 5; + return (amount > 32) ? 6 : 5; } ExprHandle bvOne(unsigned width); |