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 a885c7e commit 0e9e81cCopy full SHA for 0e9e81c
src/solvers/refinement/string_refinement.cpp
@@ -1106,13 +1106,15 @@ static exprt negation_of_constraint(const string_constraintt &axiom)
1106
/// \return the interpreted expression
1107
exprt concretize_arrays_in_expression(exprt expr, std::size_t string_max_length)
1108
{
1109
- for(auto op=expr.depth_begin(); op!=expr.depth_end(); ++op)
+ for(auto op=expr.depth_begin(); op!=expr.depth_end();)
1110
1111
if(op->id()==ID_with && op->type().id()==ID_array)
1112
1113
op.mutate()=fill_in_array_with_expr(*op, string_max_length);
1114
op.next_sibling_or_parent();
1115
}
1116
+ else
1117
+ ++op;
1118
1119
return expr;
1120
0 commit comments