shape-search: score an explicit source file through the overlay route (--source/--owner/--span) - #9
Open
wowwheaties wants to merge 1 commit into
Open
Conversation
…verlay route `shape-search <owner-hex>` reads games/gs1/recon/en/main/<owner>.c and scores it with `compiler candidate-show`, so it only reaches main-image owners. The same greedy respelling loop is just as useful on an overlay candidate that a lane or `thumb2c tune` left a few halfwords short. Second form: `shape-search --source FILE --owner <overlay>:<addressHex> --span N [rounds]` scores FILE (edited in place, as before) through `overlay score FILE --owner <owner> --span N`. The mutation engine and the accept-on-improvement loop are untouched; the first form behaves as before. On 33 overlay residuals left at differing_halfwords 1-40 by hand work, six rounds each converted one to exact (resource_383:02002db4, 6 -> 0, by a single s32 -> s16 retype of a table base local). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
Summary
shape-search <owner-hex>only reaches main-image owners: it readsgames/gs1/recon/en/main/<owner>.cand scores throughcompiler candidate-show. The same greedy respelling loop is just as useful on an overlay candidate that a hand pass orthumb2c tuneleft a few halfwords short.Second form, everything else unchanged:
scores FILE (edited in place, as the first form does) through
overlay score FILE --owner <owner> --span N. Mutation engine and accept-on-improvement loop untouched; the first form behaves exactly as before. No new dependencies;rustfmt --checkclean;make verifygreen.Measured
On 33 overlay residuals that hand work had left at
differing_halfwords1–40, six rounds each (a few seconds per owner) converted one to exact:resource_383:02002db4, 6 → 0, by a singles32 → s16retype of a table base local. The other 32 did not move, which matches their scorer class (scheduling and allocation floors that respelling does not reach). Cheap enough to run as a fixed rung before any manual attempt.