We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dbb6a4d + 3008132 commit d42839dCopy full SHA for d42839d
src/solvers/lowering/byte_operators.cpp
@@ -405,6 +405,10 @@ static exprt::operandst instantiate_byte_array(
405
src.operands().begin() + narrow_cast<std::ptrdiff_t>(upper_bound)};
406
}
407
408
+ PRECONDITION(src.type().id() == ID_array || src.type().id() == ID_vector);
409
+ PRECONDITION(
410
+ can_cast_type<bitvector_typet>(src.type().subtype()) &&
411
+ to_bitvector_type(src.type().subtype()).get_width() == 8);
412
exprt::operandst bytes;
413
bytes.reserve(upper_bound - lower_bound);
414
for(std::size_t i = lower_bound; i < upper_bound; ++i)
0 commit comments