-
Notifications
You must be signed in to change notification settings - Fork 41
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
[Challenge 6 Safety of NonNull] Verify contracts and proofs within the library source file #84
Comments
Hi @QinyuanWu. Thanks for opening this issue. The contract for From looking at the log, it seems that the harness you wrote was not run. You can specify the
You might also want to use the fully-qualified name for the harness to avoid running other harnesses with the same name, e.g. |
Thank you for the response @zhassan-aws. I found that without supplying the A second question is if the contract has specified a pre-condition(e.g. |
Hi, @QinyuanWu! We should keep all communication about this challenge in the specific GitHub issue referenced in the book. #53 is the corresponding issue for challenge 6. I'll close this one and we can continue the discussion there. |
We are AWS team 4 from CMU(@QinyuanWu @danielhumanmod @Jimmycreative @Dhvani-Kapadia) working on Challenge 6: Safety of Nonnull. We have written the contract and proof for the
new_unchecked
function inlibrary/core/src/ptr/non_null.rs
. We followed a similar structure as contracts and proofs inlibrary/core/src/ptr/unique.rs
.Target function with contract:
Kani proof for new_unchecked:
We followed the instructions on this page with the command
kani verify-std -Z unstable-options "path/to/library/" -Z function-contracts -Z mem-predicates
, and we have two issues:check_new_unchecked
proof innon_null.rs
. Are we writing proofs in the correct location?verify-std -Z unstable-options
?Thank you and we appreciate your guidance^_^ @feliperodri @rahulku
The text was updated successfully, but these errors were encountered: