File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -256,11 +256,11 @@ static void add_unknown_dependency_to_string_subexprs(
256
256
{
257
257
std::for_each (
258
258
expr.depth_begin (), expr.depth_end (), [&](const exprt &e) { // NOLINT
259
- const auto &string_struct = expr_try_dynamic_cast<struct_exprt>(e);
260
- if (string_struct && string_struct->operands ().size () == 2 )
259
+ if (is_refined_string_type (e.type ()))
261
260
{
261
+ const auto &string_struct = expr_checked_cast<struct_exprt>(e);
262
262
const array_string_exprt string =
263
- array_pool.find (string_struct-> op1 (), string_struct-> op0 ());
263
+ array_pool.find (string_struct. op1 (), string_struct. op0 ());
264
264
dependencies.add_unknown_dependency (string);
265
265
}
266
266
});
@@ -290,9 +290,10 @@ static void add_dependency_to_string_subexprs(
290
290
expr.depth_begin (),
291
291
expr.depth_end (),
292
292
[&](const exprt &e) { // NOLINT
293
- if (const auto structure = expr_try_dynamic_cast<struct_exprt>(e ))
293
+ if (is_refined_string_type (e. type () ))
294
294
{
295
- const array_string_exprt string = array_pool.of_argument (*structure);
295
+ const auto string_struct = expr_checked_cast<struct_exprt>(e);
296
+ const auto string = array_pool.of_argument (string_struct);
296
297
dependencies.add_dependency (string, builtin_function_node);
297
298
}
298
299
});
You can’t perform that action at this time.
0 commit comments