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
#[kani::proof]pubfncheck_invalid_ptr(){let raw_ptr = {let var = 10;&var as*const_};// This should fail since it is de-referencing a dead object.assert_eq!(unsafe{*raw_ptr},10);}
using the following command line invocation:
kani invalid_ptr.rs
with Kani version: 0.47
I expected to see this happen: Verification should fail since the de-referenced pointer is pointing to a dead object.
Instead, this happened: Verification succeeds