Commit 7b4f645
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 prevents usize
overflow when a and w are both symbolic values (kani::any()).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 49b81b8 commit 7b4f645
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