about summary refs log tree commit diff homepage
path: root/lib/Solver
diff options
context:
space:
mode:
authorHoang M. Le <hle@informatik.uni-bremen.de>2016-06-27 14:12:21 +0200
committerHoang M. Le <hle@informatik.uni-bremen.de>2016-06-27 14:12:21 +0200
commit4f4b930df0306fb57eecd06eea182115f01b94e5 (patch)
tree403abd4bb2137dd71239b374c8f0c95edcde73f7 /lib/Solver
parenta49c6fabebb91718b54489e7c09cb7bddc9795b2 (diff)
downloadklee-4f4b930df0306fb57eecd06eea182115f01b94e5.tar.gz
change bitwidth of expr_shpost in MetaSMTBuilder::constructSDivByConstant to 64, so that the first two arguments of the call bvVarRightShift(extend_npm, expr_shpost, 64) have the same bitwidth of 64.
Diffstat (limited to 'lib/Solver')
-rw-r--r--lib/Solver/MetaSMTBuilder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Solver/MetaSMTBuilder.h b/lib/Solver/MetaSMTBuilder.h
index ba7ea03b..a166db5a 100644
--- a/lib/Solver/MetaSMTBuilder.h
+++ b/lib/Solver/MetaSMTBuilder.h
@@ -450,7 +450,7 @@ MetaSMTBuilder<SolverContext>::constructSDivByConstant(
   int32_t mprime, dsign, shpost;
   ComputeSDivConstants32(d, mprime, dsign, shpost);
   typename SolverContext::result_type expr_dsign = bvConst32(32, dsign);
-  typename SolverContext::result_type expr_shpost = bvConst32(32, shpost);
+  typename SolverContext::result_type expr_shpost = bvConst32(64, shpost);
 
   // q0 = n + MULSH( mprime, n ) = n + (( (int64_t)mprime * (int64_t)n ) >> 32)
   int64_t mprime_64 = (int64_t)mprime;