Skip to content

Commit df36583

Browse files
Adding a precondition to fill_in_array_with_expr
1 parent 76974ce commit df36583

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/solvers/refinement/string_refinement.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,7 @@ exprt string_refinementt::substitute_array_with_expr(
880880
exprt fill_in_array_with_expr(const exprt &expr, std::size_t string_max_length)
881881
{
882882
PRECONDITION(expr.type().id()==ID_array);
883+
PRECONDITION(expr.id()==ID_with || expr.id()==ID_array_of);
883884

884885
// Nothing to do for empty array
885886
if(expr.id()==ID_array_of)

0 commit comments

Comments
 (0)