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
Contracts & Harnesses for non_null::new and non_null::new_unchecked (model-checking#88)
Towards model-checking#53
### Changes
- added contract and harness for `non_null::new`
- added contract and harness for `non_null::new_unchecked`
The difference between the two APIs is that `non_null::new` can handle
null pointers while `non_null::new_unchecked` does not. Therefore the
contract for `non_null::new` does not require a `nonnull` pointer.
### Re-validation
To re-validate the verification results, run `kani verify-std -Z
unstable-options "path/to/library" -Z function-contracts -Z
mem-predicates --harness ptr::non_null::verify::non_null_check_new`.
This will run both harnesses. All default checks should pass.
---------
Co-authored-by: OwO <[email protected]>
Co-authored-by: Zyad Hassan <[email protected]>
0 commit comments