-
Notifications
You must be signed in to change notification settings - Fork 31
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
Contracts and Harnesses for unchecked_neg
#102
Contracts and Harnesses for unchecked_neg
#102
Conversation
* Added harnesses for unchecked multiplication (`unchecked_mul`) and shift right (`unchecked_shr`) * Added a macro and input limits for multiplication proofs * Reduced duplicity in code by using macros to generate proof harnesses
This reverts commit dce9e83.
This reverts commit 02d706a.
…-0011-core-nums-yenyunw-unchecked-neg
@zhassan-aws Thank you for your reviews! I have fixed the precondition for |
@feliperodri @celinval @carolynzech May I request the second approval to merge this PR? Thank you very much :) |
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.
Thanks!
@celinval @zhassan-aws Thank you! This PR can get merged now :) |
Resolves #59
Changes
unchecked_neg
(located inlibrary/core/src/num/int_macros.rs
)unchecked_neg
of each signed integer typei8
,i16
,i32
,i64
,i128
,isize
--- 6 harnesses in total.Revalidation
feature/verify-rust-std
branch.<harness_to_run>
can be eithernum::verify
to run all harnesses ornum::verify::<harness_name>
(e.g.check_unchecked_neg_i8
) to run a specific harness.All default harnesses should pass.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.