Conversation
ef83849 to
c7d6c40
Compare
This is an automated PR to update Kani metrics. The metrics have been updated by running `./scripts/run-kani.sh --run metrics`. Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
1edc482 to
078f424
Compare
2 tasks
74 harnesses proving safety of all 10 unsafe functions and 17 safe abstractions listed in Challenge 16, across 13 iterator adapter files. Unbounded verification via large symbolic arrays, loop contracts, and inductive decomposition. 4 representative types (u8, (), char, (char,u8)) cover all behavioral axes of the generic code.
- Remove unused `loop_invariant` import in take.rs and zip.rs (#[cfg_attr(kani, kani::loop_invariant(...))] does not require it) - Rewrite `Zip::get_unchecked` `#[requires(...)]` to avoid `self.index + idx` overflow, using subtraction-based bounds - Clarify "vacuous loop invariant" comments in take.rs and zip.rs — note that `true` is intentional and only enables loop-contract mode - Reword "Loop invariant:" to "Safety argument:" in array_chunks.rs to avoid implying a verified invariant where there is none (bounded harness)
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Testing CI for updated Challenge 16 harnesses before submitting to upstream PR model-checking#549.