Skip to content

Add a few more contract and harness examples#18

Merged
celinval merged 4 commits into
model-checking:mainfrom
celinval:verify-0000-swap
Jun 12, 2024
Merged

Add a few more contract and harness examples#18
celinval merged 4 commits into
model-checking:mainfrom
celinval:verify-0000-swap

Conversation

@celinval
Copy link
Copy Markdown

Add contracts to core::mem::swap and core::intrinsics::typed_swap.

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

@celinval celinval requested a review from a team as a code owner June 12, 2024 06:34
Comment thread library/core/src/intrinsics.rs Outdated
Comment thread library/core/src/intrinsics.rs Outdated
@celinval celinval enabled auto-merge (squash) June 12, 2024 15:57
@celinval celinval merged commit df8da5a into model-checking:main Jun 12, 2024
szlee118 referenced this pull request in stogaru/verify-rust-std Oct 17, 2024
Add contracts to `core::mem::swap` and `core::intrinsics::typed_swap`.


Co-authored-by: Michael Tautschnig <mt@debian.org>
Samuelsills added a commit to Samuelsills/verify-rust-std that referenced this pull request Mar 26, 2026
Add Kani proof harnesses for slice iterator functions specified in
Challenge model-checking#18, covering safe abstractions and unsafe
__iterator_get_unchecked implementations for Chunks, ChunksMut,
ChunksExact, ChunksExactMut, Windows, ArrayWindows, RChunks,
RChunksMut, RChunksExact, RChunksExactMut, Split, Iter, and IterMut.
Resolves model-checking#282

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.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.

2 participants