ub_checks::can_dereference does not support reasoning about pointer to unallocated memory #117
-
|
@zhassan-aws As part of the attempt to constrain Harness: Note Is this expected and is it true that we cannot use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi @QinyuanWu. Yes, unfortunately, this is currently a limitation with The PR that adds an API to check if two pointers are within the same allocation has been merged: model-checking/kani#3583 Once this is available in this repo, you can start using it. |
Beta Was this translation helpful? Give feedback.
Hi @QinyuanWu. Yes, unfortunately, this is currently a limitation with
can_dereference. Unless the offset is restricted in the harness (but it shouldn't be), the new pointer can go out-of-bounds, and Kani will fail.The PR that adds an API to check if two pointers are within the same allocation has been merged: model-checking/kani#3583
Once this is available in this repo, you can start using it.