-
Notifications
You must be signed in to change notification settings - Fork 112
[kani] Prove some PtrInner methods #2444
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
base: main
Are you sure you want to change the base?
Conversation
// TODO: Assert that `t` and `rest` are contiguous and | ||
// non-overlapping. |
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.
TODO
} | ||
} | ||
Err(CastError::Alignment(_)) => { | ||
// TODO: Prove that there would have been an alignment problem. |
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.
TODO
// TODO: Prove that there would have been an alignment problem. | ||
} | ||
Err(CastError::Size(_)) => { | ||
// TODO: Prove that there would have been a size problem. |
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.
TODO
@jswrenn Not yet ready to merge because of a few TODOs, but mostly ready to review. |
7a5265e
to
a48ef98
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2444 +/- ##
=======================================
Coverage 90.42% 90.42%
=======================================
Files 18 18
Lines 7319 7319
=======================================
Hits 6618 6618
Misses 701 701 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
76f0bfe
to
62b30bf
Compare
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.
Let's pass -Zmem-predicates
in our CI runner; then we can make use of kani::same_allocation
and the other memory predicates.
badfc70
to
de9ff27
Compare
de9ff27
to
52b2eea
Compare
2a3b116
to
f375ace
Compare
52b2eea
to
21799ba
Compare
6529681
to
40f3f1e
Compare
21799ba
to
94d93fd
Compare
gherrit-pr-id: Ide939969b8d0c3bc117aa9f1dba06e6d570f262f
Also add Kani `requires` and `ensures` annotations to some methods and to some functions in `util`. While we're here, roll Kani to 0.60.0 and fix the Kani roller. gherrit-pr-id: Ic1e352d3d92a45ff86d8ca85b8221bccfb07033b
94d93fd
to
2640e7a
Compare
40f3f1e
to
19ae290
Compare
Also add Kani
requires
andensures
annotations to some methods andto some functions in
util
.While we're here, roll Kani to 0.60.0 and fix the Kani roller.
This PR is on branch ptr-kani.