diff options
author | Cristian Cadar <c.cadar@imperial.ac.uk> | 2014-12-09 09:37:33 +0000 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2014-12-09 09:37:33 +0000 |
commit | 3ab04308ff9bf756284a773137254fe0240d2cab (patch) | |
tree | 53ea8655ebbe556103c532f40698369a9c87e24e /lib/Solver/STPBuilder.cpp | |
parent | 3c042be7a340972c41165a2394702a4f613ef1f9 (diff) | |
parent | bc7ddafc93f1b30fa39e7f47f62b41ae3ed6a07b (diff) | |
download | klee-3ab04308ff9bf756284a773137254fe0240d2cab.tar.gz |
Merge pull request #186 from paulmar/fixshift
Fix overshift check
Diffstat (limited to 'lib/Solver/STPBuilder.cpp')
-rw-r--r-- | lib/Solver/STPBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Solver/STPBuilder.cpp b/lib/Solver/STPBuilder.cpp index 34ce0ede..6d7dd8b7 100644 --- a/lib/Solver/STPBuilder.cpp +++ b/lib/Solver/STPBuilder.cpp @@ -283,7 +283,7 @@ ExprHandle STPBuilder::constructAShrByConstant(ExprHandle expr, if (shift==0) { return expr; - } else if (shift>=width-1) { + } else if (shift>=width) { return bvZero(width); // Overshift to zero } else { return vc_iteExpr(vc, |