-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add loop contracts and harness for ptr::swap_nonoverlapping_simple_untyped
#152
base: main
Are you sure you want to change the base?
Add loop contracts and harness for ptr::swap_nonoverlapping_simple_untyped
#152
Conversation
The loop contracts is strong enough to prove the safety of all harness. However, in the failed harnesses |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add a safety contract to swap_nonoverlapping_simple_untyped
and verify that it is enough to guarantee safety?
@@ -230,6 +230,7 @@ | |||
#![feature(unboxed_closures)] | |||
#![feature(unsized_fn_params)] | |||
#![feature(with_negative_coherence)] | |||
#![feature(proc_macro_hygiene)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#![feature(proc_macro_hygiene)] | |
#![cfg_attr(kani, feature(proc_macro_hygiene))] |
Add loop contracts and a proof harness for
swap_nonoverlapping_simple_untyped
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.