forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 49
Contracts and Harnesses for unchecked_neg
#102
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
Merged
zhassan-aws
merged 32 commits into
model-checking:main
from
rajathkotyal:c-0011-core-nums-yenyunw-unchecked-neg
Oct 8, 2024
Merged
Changes from 31 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
1ae4c6d
Add Kani proofs of unchecked_add for all integer types
b553678
Format proof files & Add verification function templates
daaaf7e
Experiment with two verification approaches in mod.rs of core::num
7bd0e3c
Merge branch 'model-checking:main' into c-0011-core-nums-yenyunw-unsa…
Yenyun035 1c9dbde
Add contracts to unchecked_add && Add i8::unchecked_add proof
894231f
Format core::num mod.rs
2bc4faf
Add comment for unchecked_add proofs
d9d4b5f
Add harnesses for i16,i32,i64,i128 unchecked_add
07c8b4a
Add harnesses for u8,u16,u32,u64,u128 unchecked_add
1fd4c6a
Cleanup misplaced proofs
b360311
Clean up comment
8cbca87
Format comment
0eef858
Remove before contracts. Fix import in
4858a53
Fix comment
483bdf5
Merge branch 'main' into c-0011-core-nums-yenyunw-unsafe-ints
Yenyun035 ce35002
Merge branch 'model-checking:main' into c-0011-core-nums-yenyunw-unsa…
Yenyun035 d99844d
Remove ensures contracts && Undo formatting on existing code
fbcf49e
Add {isize, usize}::unchecked_add harnesses
457a2b5
Merge branch 'model-checking:main' into c-0011-core-nums-yenyunw-unsa…
Yenyun035 54a03ef
Add harness generation macros for unchecked methods && Update uncheck…
8ee5682
Remove unused import safety::ensures
02d706a
unchecked_mul and unchecked_shr proofs (#7)
rajathkotyal dce9e83
Add comments. Fix spacing
3880fc7
Revert "Add comments. Fix spacing"
rajathkotyal 781cb87
Revert "unchecked_mul and unchecked_shr proofs (#7)"
rajathkotyal 715e940
Merge branch 'main' into c-0011-core-nums-yenyunw-unsafe-ints
Yenyun035 1f0f583
Add unchecked_neg contracts & harnesses
a45a676
Merge branch 'main' of github.com:rajathkotyal/verify-rust-std into c…
Yenyun035 57c72f0
Merge branch 'main' into c-0011-core-nums-yenyunw-unchecked-neg
rajathkotyal ef61321
fixed comments
rajathkotyal 5e1c45f
Fix unchecked_neg precondition && Fix comments
Yenyun035 cb99f76
Add ensures for unchecked_neg && Fix import
Yenyun035 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.