diff options
author | Cristian Cadar <cristic@cs.stanford.edu> | 2011-03-30 11:08:09 +0000 |
---|---|---|
committer | Cristian Cadar <cristic@cs.stanford.edu> | 2011-03-30 11:08:09 +0000 |
commit | cf8e311e1255b2515c50ab5043551498703acce3 (patch) | |
tree | 1655fe134f433d3bc272aa5dffbe4c0f1b488d84 /lib | |
parent | 38bd464676c7bcc95d1207531b2a278b796c9866 (diff) | |
download | klee-cf8e311e1255b2515c50ab5043551498703acce3.tar.gz |
Bug fix in STPBuilder. Patch submitted by David Ramos, thanks!
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@128532 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-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 de53816c..f150d2a5 100644 --- a/lib/Solver/STPBuilder.cpp +++ b/lib/Solver/STPBuilder.cpp @@ -528,7 +528,7 @@ ExprHandle STPBuilder::constructActual(ref<Expr> e, int *width_out) { ExprHandle src = construct(ee->expr, width_out); *width_out = ee->getWidth(); if (*width_out==1) { - return bvBoolExtract(src, 0); + return bvBoolExtract(src, ee->offset); } else { return vc_bvExtract(vc, src, ee->offset + *width_out - 1, ee->offset); } |