@@ -1429,7 +1429,7 @@ static exprt lower_byte_update_byte_array_vector(
1429
1429
// / \param non_const_update_bound: Constrain updates such
1430
1430
// / as to at most update \p non_const_update_bound elements
1431
1431
// / \param initial_bytes: Number of bytes from \p value_as_byte_array to use to
1432
- // / update the the array/vector element at \p first_index
1432
+ // / update the array/vector element at \p first_index
1433
1433
// / \param first_index: Lowest index into the target array/vector of the update
1434
1434
// / \param first_update_value: Combined value of partially old and updated bytes
1435
1435
// / to use at \p first_index
@@ -1477,14 +1477,15 @@ static exprt lower_byte_update_array_vector_unbounded(
1477
1477
mult_exprt{subtype_size,
1478
1478
minus_exprt{typecast_exprt::conditional_cast (
1479
1479
array_comprehension_index, first_index.type ()),
1480
- first_index}}};
1480
+ plus_exprt{first_index,
1481
+ from_integer (1 , first_index.type ())}}}};
1481
1482
exprt update_value = lower_byte_extract (
1482
1483
byte_extract_exprt{
1483
1484
extract_opcode, value_as_byte_array, std::move (offset_expr), subtype},
1484
1485
ns);
1485
1486
1486
1487
// The number of target array/vector elements being replaced, not including
1487
- // a possible partial update a the end of the updated range, which is handled
1488
+ // a possible partial update at the end of the updated range, which is handled
1488
1489
// below: (non_const_update_bound + (subtype_size - 1)) / subtype_size to
1489
1490
// round up to the nearest multiple of subtype_size.
1490
1491
div_exprt updated_elements{
0 commit comments