Skip to content
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

Add harnesses for all public functions of Layout #43

Merged
merged 23 commits into from
Oct 2, 2024

Conversation

tautschnig
Copy link
Member

Exercise all public member functions of Layout and assert properties over the result. Some of those should, perhaps, become ensures clauses.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

Exercise all public member functions of `Layout` and assert properties
over the result. Some of those should, perhaps, become `ensures`
clauses.
@tautschnig tautschnig requested a review from a team as a code owner July 23, 2024 12:42
library/core/src/alloc/layout.rs Show resolved Hide resolved
library/core/src/alloc/layout.rs Outdated Show resolved Hide resolved
library/core/src/alloc/layout.rs Outdated Show resolved Hide resolved
@feliperodri feliperodri self-requested a review July 30, 2024 19:09
Copy link

@feliperodri feliperodri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments from #42 also apply here. So I think maybe we should merge that previous PR first and implement some of the cleanups requested there in this one (e.g., using kani::Arbitrary and moving assertions to ensures clauses).

@tautschnig tautschnig assigned celinval and unassigned tautschnig Aug 13, 2024
Copy link

@celinval celinval left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't finished yet

library/core/src/alloc/layout.rs Outdated Show resolved Hide resolved
library/core/src/alloc/layout.rs Show resolved Hide resolved
library/core/src/alloc/layout.rs Show resolved Hide resolved
library/core/src/alloc/layout.rs Outdated Show resolved Hide resolved
library/core/src/alloc/layout.rs Outdated Show resolved Hide resolved
@rahulku
Copy link

rahulku commented Sep 13, 2024

is this blocked on something?

Copy link

@celinval celinval left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I was hoping the other stuff would be in by now. So let's unblock this PR and we can go back and improve this once the Invariant PR merges.

@carolynzech carolynzech enabled auto-merge (squash) October 2, 2024 21:20
@carolynzech carolynzech merged commit 024d84b into model-checking:main Oct 2, 2024
7 checks passed
@tautschnig tautschnig deleted the layout-harnesses branch October 8, 2024 09:16
szlee118 pushed a commit to stogaru/verify-rust-std that referenced this pull request Oct 17, 2024
Exercise all public member functions of `Layout` and assert properties
over the result. Some of those should, perhaps, become `ensures`
clauses.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

---------

Co-authored-by: Celina G. Val <celinval@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants