File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2264,8 +2264,9 @@ exprt string_refinementt::get(const exprt &expr) const
2264
2264
const exprt length = super_get (arr.length ());
2265
2265
if (const auto n = numeric_cast<std::size_t >(length))
2266
2266
{
2267
- const array_exprt arr_model (array_typet (arr.type ().subtype (), length));
2268
- return fill_in_array_expr (arr_model, generator.max_string_length );
2267
+ const interval_sparse_arrayt sparse_array (
2268
+ from_integer (CHARACTER_FOR_UNKNOWN, arr.type ().subtype ()));
2269
+ return sparse_array.concretize (*n, length.type ());
2269
2270
}
2270
2271
}
2271
2272
return arr;
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ class interval_sparse_arrayt final : public sparse_arrayt
148
148
// / Complexity is linear in the number of entries.
149
149
exprt at (std::size_t index) const override ;
150
150
151
- private:
151
+ // / Array containing the same value at each index.
152
152
explicit interval_sparse_arrayt (exprt default_value)
153
153
: sparse_arrayt(default_value)
154
154
{
You can’t perform that action at this time.
0 commit comments