Commit 3980cca
Fix arithmetic overflow in next_match/next_match_back Kani abstractions
Replace `kani::assume(a + w <= finger_back)` with the overflow-safe
form: assume `a <= finger_back` then `w <= finger_back - a`. This
avoids a usize overflow when a and w are both symbolic (kani::any())
and their sum could wrap around before the comparison.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent d3595fc commit 3980cca
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
491 | | - | |
492 | | - | |
| 491 | + | |
| 492 | + | |
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
| |||
627 | 627 | | |
628 | 628 | | |
629 | 629 | | |
630 | | - | |
631 | | - | |
| 630 | + | |
| 631 | + | |
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
| |||
0 commit comments