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.
1 parent beff419 commit c58ac60Copy full SHA for c58ac60
src/solvers/refinement/string_refinement.cpp
@@ -482,15 +482,15 @@ union_find_replacet string_identifiers_resolution_from_equations(
482
equations_to_treat.push(i);
483
484
std::vector<exprt> rhs_strings = extract_strings(eq.rhs());
485
- for(const auto expr : rhs_strings)
+ for(const auto &expr : rhs_strings)
486
equation_map.add(i, expr);
487
}
488
else if(eq.lhs().type().id() != ID_pointer &&
489
has_string_subtype(eq.lhs().type()))
490
{
491
std::vector<exprt> lhs_strings = extract_strings_from_lhs(eq.lhs());
492
493
- for(const auto expr : lhs_strings)
+ for(const auto &expr : lhs_strings)
494
495
496
if(lhs_strings.empty())
0 commit comments