forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 49
Write contracts + pre/post conditions for all unsafe methods in duration #136
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
tautschnig
merged 22 commits into
model-checking:main
from
sgpthomas:verify_duration_challenge9
Dec 11, 2024
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
ced3509
write contracts + pre/post conditions for all unsafe methods in time
sgpthomas 0294fa6
Merge branch 'main' into verify_duration_challenge9
sgpthomas 6639910
remove redundant checks + reorder harnesses to match fn def order
sgpthomas bc9a6d6
add panic harness for Duration::new
sgpthomas e0abb38
re-add debug_assert
sgpthomas ba86e4f
Merge branch 'verify_duration_challenge9' of github.com:sgpthomas/ver…
sgpthomas e63b29d
Merge branch 'main' into verify_duration_challenge9
sgpthomas fc338af
update TempInvariant to Invariant trait
cvick32 5fe6c11
revert Cargo.lock
cvick32 d4bd7f7
remove useless cfg[kani] and delete comment
cvick32 75a457d
Update library/core/src/time.rs
sgpthomas f42c801
Update library/core/src/time.rs
sgpthomas 8b7113d
add should_panic harness for Duration::new
cvick32 58f7f53
change comments to preconditions, add cfg(not(kani)) to checked_div
cvick32 6bbb5a9
change to true in checked_div post-condition
cvick32 f19b024
remove comment
cvick32 8435e17
add should_panic on contract proofs, remove requires, and add cfg_att…
cvick32 a9131b7
Merge branch 'main' into verify_duration_challenge9
tautschnig f4fd8e0
add non-panicking harnesses and safe_duration
cvick32 dff2db7
Merge branch 'verify_duration_challenge9' of https://github.com/sgpth…
cvick32 8ccd95a
Merge branch 'main' into verify_duration_challenge9
cvick32 bdf9eb9
Merge branch 'main' into verify_duration_challenge9
tautschnig 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
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.