Skip to content

Commit 5392645

Browse files
Reserve size of array in concretize
1 parent 8277e92 commit 5392645

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/solvers/refinement/string_refinement_util.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ array_exprt interval_sparse_arrayt::concretize(
208208
const array_typet array_type(
209209
default_value.type(), from_integer(size, index_type));
210210
array_exprt array(array_type);
211+
array.operands().reserve(size);
211212

212213
std::size_t current_index = 0;
213214
for(const auto &pair : entries)

0 commit comments

Comments
 (0)