Repository navigation
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
Conversation
2 tasks done
Mekdou23
force-pushed
the
stage-crit-4-multihop-loop-backedge
branch
4 times, most recently
from
November 12, 2026 07:24
ba91df0 to
16a11a2
Compare
Author
|
Hey maintainers, these PRs are ready and have passed all CI. Could you merge them to trigger the bounty payout? Thanks! |
…op-carried state (fixes limitlessprojects#4375)
Mekdou23
force-pushed
the
stage-crit-4-multihop-loop-backedge
branch
from
November 14, 2026 16:48
16a11a2 to
be44fc5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4375
Summary
compiler/crates/hy-check/src/freeze.rs,compiler/crates/hy-check/src/lib.rs: iteratecheck_loop_backedge_replayacross 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 intoiter_standstso both in-loop multi-hop (k >= 2) alias/origin/borrow chains and post-loop uses are checked underHYB-E3003,HYB-E3004, andHYB-E3104.compiler/crates/hy-check/tests/freeze_loop_backedge_replay_calls.rs: add regression tests covering 2-hop loop-carriedcopy(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).cargo test(184/184lib tests + integration suites green) and full Tier-0 corpus (139/139verdict agreement, zero corpus flips).Payout wallet (Base USDC):
0x8E85C5d9a31198B71DA5cB59cE968363685e3eB7