Commit 8173e28
feat(cse): pass all 3 reproducer tests (pure, branching, reference)
All CSE tests pass with correct structure preservation:
- cse-simple-callee.rs: double(x), 1 rule, baseline=reuse structure
- cse-branching-callee.rs: classify(x) with if/else, 2 rules from
2 cover paths, reuse produces correct splits
- cse-reference-args.rs: add_to(&x, y) with reference argument,
slotStore-based reference handling works correctly
Fix: sanitize module/rule names for Kore identifier requirements
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 7961500 commit 8173e28
3 files changed
Lines changed: 32 additions & 2 deletions
File tree
- kmir/src
- kmir
- tests/integration/data/prove-rs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
360 | | - | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
361 | 368 | | |
362 | 369 | | |
363 | 370 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments