Open
Description
Often, we want to check that we can read the nth
element of an array. Currently, we need __CPROVER_r_ok(ptr, index * sizeof(*ptr))
, which can lead to overflow issues and weird error messages to users. Instead, we would like
__CPROVER_r_ok_array(ptr, num_elements)
Feel free to bikeshed the name!