Skip to content

Challenge 22: Verify safety of str iter functions#572

Open
Samuelsills wants to merge 1 commit intomodel-checking:mainfrom
Samuelsills:challenge-22-str-iter
Open

Challenge 22: Verify safety of str iter functions#572
Samuelsills wants to merge 1 commit intomodel-checking:mainfrom
Samuelsills:challenge-22-str-iter

Conversation

@Samuelsills
Copy link

Summary

Add Kani proof harnesses for all 16 str iterator functions specified in Challenge #22:

  • Chars: next, advance_by, next_back, as_str
  • SplitInternal: get_end, next, next_inclusive, next_match_back, next_back_inclusive, remainder
  • MatchIndicesInternal: next, next_back
  • MatchesInternal: next, next_back
  • SplitAsciiWhitespace: remainder
  • Unsafe: __iterator_get_unchecked (Bytes)

All harnesses verified locally with Kani.

Resolves #279

Add Kani proof harnesses for all 16 str iterator functions specified
in Challenge model-checking#22: Chars (next, advance_by, next_back, as_str),
SplitInternal (get_end, next, next_inclusive, next_match_back,
next_back_inclusive, remainder), MatchIndicesInternal (next, next_back),
MatchesInternal (next, next_back), SplitAsciiWhitespace (remainder),
and __iterator_get_unchecked (Bytes). Resolves model-checking#279

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Samuelsills Samuelsills marked this pull request as ready for review March 27, 2026 07:15
@Samuelsills Samuelsills requested a review from a team as a code owner March 27, 2026 07:15
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.

Challenge 22: Verify the safety of str iter functions

1 participant