Skip to content

Commit cd0e4f2

Browse files
author
kroening
committed
fix for non-byte operands
git-svn-id: svn+ssh://svn.cprover.org/srv/svn/cbmc/trunk@3908 6afb6bc1-c8e4-404c-8f48-9ae832c5b171
1 parent eefb340 commit cd0e4f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/solvers/flattening/boolbv_byte_extract.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ Function: map_bv
2929

3030
bvt map_bv(const endianness_mapt &map, const bvt &src)
3131
{
32+
// don't do anything for a byte or less
33+
if(src.size()<=8) return src;
34+
3235
assert(map.size()*8==src.size());
3336

3437
bvt result;

0 commit comments

Comments
 (0)