Repository navigation
Commit b3e5938
Name the advance_by fold model and the SplitInternal harness after what they actually do
Two verification-only renames, no semantic change to any proof:
- array/iter/iter_inner.rs: kani_fold_bounded32 -> kani_fold_arity32, and
check_kani_fold_bounded32_soundness -> check_kani_fold_arity32_soundness. The
32 is the chunk ARITY of as_chunks::<32>(), not a bound on the input string;
Chars::advance_by still runs on a str of symbolic length up to
MAX_ALLOCATION_BYTES. The doc comment now says so, and says the model is an
over-approximation of the per-chunk reduction whose output range 0..=32 is
still exact (soundness + range surjectivity in the same harness).
- str/iter.rs: check_split_internal_next_match_back ->
check_split_internal_next_back_via_matcher, with a comment naming the arm it
covers (self.matcher.next_match_back() inside SplitInternal::next_back).
SplitInternal has no method of that name; issue #279 notes the page's wording.
Re-verified on the new bytes at the pinned tools (nightly-2026-10-23, Kani
c5e65fdfc3e1, CI flags, --object-bits 12, 8 GiB per CBMC process): 26/26
SUCCESSFUL (25 str::iter::verify + array::iter), 7m13s wall, 6.68 GB peak RSS.1 parent c2cf113 commit b3e5938
2 files changed
Lines changed: 19 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | | - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
332 | 340 | | |
333 | | - | |
334 | | - | |
335 | | - | |
| 341 | + | |
336 | 342 | | |
337 | 343 | | |
338 | | - | |
| 344 | + | |
339 | 345 | | |
340 | 346 | | |
341 | 347 | | |
| |||
357 | 363 | | |
358 | 364 | | |
359 | 365 | | |
360 | | - | |
| 366 | + | |
361 | 367 | | |
362 | 368 | | |
363 | 369 | | |
| |||
405 | 411 | | |
406 | 412 | | |
407 | 413 | | |
408 | | - | |
| 414 | + | |
409 | 415 | | |
410 | 416 | | |
411 | 417 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2636 | 2636 | | |
2637 | 2637 | | |
2638 | 2638 | | |
| 2639 | + | |
| 2640 | + | |
| 2641 | + | |
| 2642 | + | |
2639 | 2643 | | |
2640 | | - | |
| 2644 | + | |
2641 | 2645 | | |
2642 | 2646 | | |
2643 | 2647 | | |
| |||
2903 | 2907 | | |
2904 | 2908 | | |
2905 | 2909 | | |
2906 | | - | |
| 2910 | + | |
2907 | 2911 | | |
2908 | 2912 | | |
2909 | 2913 | | |
| |||
0 commit comments