Skip to content

Challenge 13: Kani contracts for CStr - #648

Open
sankalpsthakur wants to merge 3 commits into
model-checking:mainfrom
sankalpsthakur:challenge/13-cstr
Open

Challenge 13: Kani contracts for CStr#648
sankalpsthakur wants to merge 3 commits into
model-checking:mainfrom
sankalpsthakur:challenge/13-cstr

Conversation

@sankalpsthakur

Copy link
Copy Markdown

Summary

Kani safety contracts and proof harnesses for this challenge. Runtime stdlib logic is unchanged; annotations are cfg(kani) / contract attributes.

CStr construction and view safety.

Validation

  • Local worktree on challenge/13-cstr
  • Kani CI on this PR is the authoritative run (scripts/run-kani.sh)

Fixes #150

AI/LLM disclosure

  • AI coding tools (including Grok and/or Codex agent-assisted editing) were used to help draft or modify code and this PR description.
  • I reviewed the complete change, understand the reasoning, and take responsibility for the contracts and harnesses.
  • This submission is original work of authorship under the project contributor terms; AI output was not pasted unreviewed.

Kani contracts and harnesses for verify-rust-std challenge.

Fixes rust-lang#150
@sankalpsthakur
sankalpsthakur requested a review from a team as a code owner August 20, 2026 12:08
Keep Invariant, unsafe contracts, Index, and CloneToUninit coverage.
Safe-method proofs again check is_safe without proof_for_contract.

Fixes rust-lang#150
@feliperodri feliperodri added the Challenge Used to tag a challenge label Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Challenge Used to tag a challenge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Challenge 13: Safety of CStr

2 participants