You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the first three ifs should ensure that the following array accesses are in range (in this case between 0 and 1, as we have size 2).
Also CBMC is able to prove that the result of the access cannot be different from 0, which it could be if the access were out of bounds.
Or am I overlooking something?
CBMC version: Built from commit 13a452d
Operating system: Linux (Ubuntu 20.04)
Exact command line resulting in the issue: cbmc --pointer-check --bounds-check test.c
What behaviour did you expect: VERIFICATION SUCCESSFUL
What happened instead:
[main.pointer_dereference.8] line13dereferencefailure: pointeroutsideobjectboundsin ((signed long int*)result)[((signed long int*)array+ (signed long int)((unsigned long int)2*index1))[(signed long int)index2]]: FAILURE
The text was updated successfully, but these errors were encountered:
Hi,
I was looking into the following program (let's call it test.c) and I believe that CBMC is giving an imprecise pointer error.
the first three ifs should ensure that the following array accesses are in range (in this case between 0 and 1, as we have size 2).
Also CBMC is able to prove that the result of the access cannot be different from 0, which it could be if the access were out of bounds.
Or am I overlooking something?
CBMC version: Built from commit 13a452d
Operating system: Linux (Ubuntu 20.04)
Exact command line resulting in the issue:
cbmc --pointer-check --bounds-check test.c
What behaviour did you expect:
VERIFICATION SUCCESSFUL
What happened instead:
The text was updated successfully, but these errors were encountered: