Skip to content

fix(hy-check): replay loop back-edges to fixed point and propagate loop-carried state (fixes #4375) - #4376

Open
Mekdou23 wants to merge 1 commit into
limitlessprojects:mainfrom
Mekdou23:stage-crit-4-multihop-loop-backedge
Open

Mekdou23 wants to merge 1 commit into
limitlessprojects:mainfrom
Mekdou23:stage-crit-4-multihop-loop-backedge

Conversation

@Mekdou23

Copy link
Copy Markdown

Fixes #4375

Summary

  • compiler/crates/hy-check/src/freeze.rs, compiler/crates/hy-check/src/lib.rs: iterate check_loop_backedge_replay across bounded multi-hop back-edge steps until the outer-scope loop-carried signature (aliases, may_share, borrow_bindings, slot_loan, non_owned_origin) reaches a fixed point, and merge the converged outer-scope loop-carried state back into iter_st and st so both in-loop multi-hop (k >= 2) alias/origin/borrow chains and post-loop uses are checked under HYB-E3003, HYB-E3004, and HYB-E3104.
  • compiler/crates/hy-check/tests/freeze_loop_backedge_replay_calls.rs: add regression tests covering 2-hop loop-carried copy(dst, q) freeze (HYB-E3003), 2-hop non-owned parameter sharing (HYB-E3004), 2-hop borrow return escape (HYB-E3104), post-loop 2-hop alias/parameter moves (HYB-E3003 / HYB-E3004), and positive controls with fresh slice rebinds (Verdict::Accept).
  • Verified with cargo test (184/184 lib tests + integration suites green) and full Tier-0 corpus (139/139 verdict agreement, zero corpus flips).

Payout wallet (Base USDC): 0x8E85C5d9a31198B71DA5cB59cE968363685e3eB7

@Mekdou23

Copy link
Copy Markdown
Author

Hey maintainers, these PRs are ready and have passed all CI. Could you merge them to trigger the bounty payout? Thanks!

@Mekdou23
Mekdou23 force-pushed the stage-crit-4-multihop-loop-backedge branch from 16a11a2 to be44fc5 Compare November 14, 2026 16:48
@github-actions github-actions Bot added the bot:stale-base Shepherd: behind main beyond threshold label Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:land-candidate Shepherd: fresh, gate-clean, verifiable (set from classify()) bot:stale-base Shepherd: behind main beyond threshold

Projects

None yet

1 participant