Skip to content

Challenge 10: Verify memory safety of String functions#571

Open
Samuelsills wants to merge 2 commits intomodel-checking:mainfrom
Samuelsills:challenge-10-string
Open

Challenge 10: Verify memory safety of String functions#571
Samuelsills wants to merge 2 commits intomodel-checking:mainfrom
Samuelsills:challenge-10-string

Conversation

@Samuelsills
Copy link

Summary

Add Kani proof harnesses for all 15 String functions specified in Challenge #10:

  • Bounded: pop, remove, insert, drain, into_boxed_str, leak
  • Unbounded: from_utf16le, from_utf16le_lossy, from_utf16be, from_utf16be_lossy, remove_matches, retain, insert_str, split_off, replace_range

All harnesses verified locally with Kani.

Resolves #61

Samuelsills and others added 2 commits March 26, 2026 22:14
Add Kani proof harnesses for all 15 String functions specified in
Challenge model-checking#10: pop, remove, insert, insert_str, split_off, drain,
replace_range, into_boxed_str, leak, from_utf16le, from_utf16le_lossy,
from_utf16be, from_utf16be_lossy, retain, remove_matches.
Resolves model-checking#61

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

1 participant