Repository navigation
returndup: default-ON (DIV-18) — recover O0 early-return shapes by default - #127
Merged
Merged
Conversation
Per user directive, ship returndup (angr ReturnDuplicatorHigh, decbench F4) default-on: duplicate a shared bare-epilogue RETURN into each predecessor so O0 early-return guard shapes recover (coreutils factor GED 12->0; closes ghidra-beats-kuna compspec_dispose). Corpus impact (unlike the 0/675 flags, returndup changes broad O0 early-return rendering): - 16 datatest files carry a per-test <com>option returndup off</com> opt-out keeping docs/baseline.json byte-identical (bitfields, bitfields2, boolless, ccmp, condconst, condconst2, condexesub, condmulti, copytrim, multiret, orcompare, partialunion, pointerrel, skipnext2, statuscmp, union_datatype). - 8 stage tests get the same opt-out in their DIV-flags-off baseline preamble. - 4 golden Rust byte-tests (print_b5_boolless, verify_w10_merge_casts, verify_w10_implied_vars_adversarial, verify_w10_condexe_structure_adversarial) pin arch.duplicate_shared_returns=false in their render harness — they assert upstream-parity output, orthogonal to return duplication. stages.toml default off->on + use_when updated; stage_catalog.json regenerated (default on); DIV-18. --option returndup off reverts to the upstream merged short-circuit form. Gates: make test 675/675 PARITY OK, make test-stages 254/254 PARITY OK. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_018DV2MXxQAAWK7xLPBmsq9J
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.
Per user directive, flip
returndup(angrReturnDuplicatorHigh, decbench F4, merged default-off in #124) to default-ON (DIV-18).Duplicates a shared bare-epilogue RETURN block into each predecessor so the classic O0 guard shape
if (cond) { body; return X; } return Y;recovers as per-predecessor early returns instead of one merged comma-folded short-circuit exit (coreutilsfactorGED 12→0; closes the ghidra-beats-kunacompspec_disposeshape).Corpus impact — broad but correct, kept byte-identical via opt-outs
Unlike the 0/675 flags, returndup changes broad O0 early-return rendering, so parity is preserved by per-test opt-outs (no baseline re-pin):
<com>option returndup off</com>→docs/baseline.jsonbyte-identical (bitfields, bitfields2, boolless, ccmp, condconst, condconst2, condexesub, condmulti, copytrim, multiret, orcompare, partialunion, pointerrel, skipnext2, statuscmp, union_datatype).arch.duplicate_shared_returns = falsein their render harness — they assert upstream-parity output, orthogonal to return duplication.stages.tomldefault off→on +use_whenupdated;stage_catalog.jsonregenerated (default "on"); DIV-18 entry.--option returndup offreverts to the upstream merged short-circuit form per function.Gates (verified by the coordinator)
make test— 675/675 PARITY OK (byte-identical via opt-outs)make test-stages— 254/254 PARITY OKmake rust-test— green🤖 Generated with Claude Code
https://claude.ai/code/session_018DV2MXxQAAWK7xLPBmsq9J