Skip to content

Commit 4e3f0dc

Browse files
Joel Allredromainbrenguier
authored andcommitted
Correct array index in get_array
Correct a bad array access that caused a segmentation fault on the java_delete test.
1 parent 47c8e15 commit 4e3f0dc

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
@@ -538,6 +538,7 @@ exprt string_refinementt::get_array(const exprt &arr, const exprt &size)
538538
{
539539
exprt value=arr_val.operands()[i*2+1];
540540
to_unsigned_integer(to_constant_expr(value), concrete_array[i]);
541+
to_unsigned_integer(to_constant_expr(value), concrete_array[idx]);
541542
}
542543
}
543544
}

0 commit comments

Comments
 (0)