From 23b722b93f57bfd8a5865a597b8937ba17f4d434 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Thu, 8 Oct 2026 22:58:22 +0000 Subject: [PATCH] decomp(address): match AddressEdit get_friendinfo and update_friendinfo (IRO level 1) (worker f6d94897) --- src/scene/address/iplAddressEdit.cpp | 15 ++- tools/decomp-assist/sol-y5.attempts.md | 180 +++++++++++++++++++++++++ 2 files changed, 192 insertions(+), 3 deletions(-) create mode 100644 tools/decomp-assist/sol-y5.attempts.md diff --git a/src/scene/address/iplAddressEdit.cpp b/src/scene/address/iplAddressEdit.cpp index 8d3bd6c5..dc5ed73e 100644 --- a/src/scene/address/iplAddressEdit.cpp +++ b/src/scene/address/iplAddressEdit.cpp @@ -2856,11 +2856,14 @@ void ipl::scene::AddressEdit::add_friendinfo() { } } +#pragma push +#pragma ppc_iro_level 1 void ipl::scene::AddressEdit::get_friendinfo() { memcpy(&ipl::scene::sFriendInfo, &mpFriendCache->getInfo(mSelectedFriend), sizeof(ipl::scene::sFriendInfo)); mString.setName(reinterpret_cast(ipl::scene::sFriendInfo.attr.name)); - set_textbox(mpCodeLayout->getNW4RLyt()->GetRootPane()->FindPaneByName("T_name_00", true), mString.mName); + const wchar_t* name = mString.mName; + set_textbox(mpCodeLayout->getNW4RLyt()->GetRootPane()->FindPaneByName("T_name_00", true), name); wchar_t wiiNo[0x100]; wchar_t email[0x102]; @@ -2873,13 +2876,18 @@ void ipl::scene::AddressEdit::get_friendinfo() { ipl::utility::CharacterCode::ANSIToUTF16(email, reinterpret_cast(&ipl::scene::sFriendInfo.addr), 0x102); mString.setEMail(email); } - set_textbox(mpCodeLayout->getNW4RLyt()->GetRootPane()->FindPaneByName("T_frnd_crd_00", true), mString.mDisplayText); + const wchar_t* text = mString.mDisplayText; + set_textbox(mpCodeLayout->getNW4RLyt()->GetRootPane()->FindPaneByName("T_frnd_crd_00", true), text); memcpy(&mCreateID, &ipl::scene::sFriendInfo.attr.fdId, sizeof(mCreateID)); } +#pragma pop +#pragma push +#pragma ppc_iro_level 1 void ipl::scene::AddressEdit::update_friendinfo() { memset(ipl::scene::sFriendInfo.attr.name, 0, sizeof(ipl::scene::sFriendInfo.attr.name)); - wcsncpy(reinterpret_cast(ipl::scene::sFriendInfo.attr.name), mString.mName, 0xa); + const wchar_t* source = mString.mName; + wcsncpy(reinterpret_cast(ipl::scene::sFriendInfo.attr.name), source, 0xa); memcpy(&ipl::scene::sFriendInfo.attr.fdId, &mCreateID, sizeof(mCreateID)); mpFriendCache->update( mSelectedFriend, @@ -2887,6 +2895,7 @@ void ipl::scene::AddressEdit::update_friendinfo() { ipl::scene::sFriendInfo.attr.fdId); static_cast(ipl::System::getScene(ipl::SCENE_ADDRESS))->reset_friend(); } +#pragma pop void ipl::scene::AddressEdit::String::setEMail(const wchar_t* value) { mbHasWiiNo = false; diff --git a/tools/decomp-assist/sol-y5.attempts.md b/tools/decomp-assist/sol-y5.attempts.md new file mode 100644 index 00000000..9cbcd9ea --- /dev/null +++ b/tools/decomp-assist/sol-y5.attempts.md @@ -0,0 +1,180 @@ +# sol-y5 AddressEdit attempts + +Base d558bb14, branch agent/w1009/data-d11, 43U only. Unslop and writing-for-agents applied. + +Pool first: identical 57 strings. Baseline exact 91/94, data 2560/2560. update_friendinfo 2/38, get_friendinfo 68/84 with 82 source instructions, create 331/820 with 818 source instructions. + +History read: sol-common, brief-v2, all levers, effort-policy, scene4, data-d7, a23m/a23h, gk3, f5/f5b, fz16, lv19, agg, register-sweep logs and sol-tiny. Avoid repeating standalone getter, record/name pointer, helper parameter-order, copy-result, named-pane setter, root accessor and margin-only trials. New rounds combine destination provenance with scoped optimization, then replace the prior output-reference formatting helper with a natural pointer return. + +Verified debugger capture update_friendinfo__Q33ipl5scene11AddressEditFv-20261008-195401 against current whole source and object SHA256. In backend-01, destination addi is already before source addi; backend-04 keeps that order. Only this and global-record base survive allocation, so declaration order cannot steer those call arguments. + +- update-scoped-optimization-level-0: update_friendinfo 44 differing, 46/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-scoped-optimization-level-0.cpp, SHA256 07fe1d8a61c5. +- update-scoped-optimization-level-1: update_friendinfo 40 differing, 44/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-scoped-optimization-level-1.cpp, SHA256 a54d23a09a91. +- update-scoped-optimization-level-2: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-scoped-optimization-level-2.cpp, SHA256 45d0437b8220. +- update-scoped-optimization-level-3: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-scoped-optimization-level-3.cpp, SHA256 5a5255458877. +- update-scoped-ppc-iro-level-0: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-scoped-ppc-iro-level-0.cpp, SHA256 3de0470aacc5. +- update-scoped-ppc-iro-level-1: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-scoped-ppc-iro-level-1.cpp, SHA256 d1c3337c6ed9. +- update-sized-attr-pointer: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-sized-attr-pointer.cpp, SHA256 34c895908092. +- update-sized-attr-reference: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-sized-attr-reference.cpp, SHA256 02c58c9cf0af. +- update-sized-record-pointer: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-sized-record-pointer.cpp, SHA256 7d72b00d5b21. +- get-prior-output-reference-seed: get_friendinfo 42 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-prior-output-reference-seed.cpp, SHA256 a86fb6732c7f. +- get-return-display-mutable-ref: get_friendinfo 42 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-return-display-mutable-ref.cpp, SHA256 a032b77713c5. +- get-return-name-display-mutable-ref: get_friendinfo 42 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-return-name-display-mutable-ref.cpp, SHA256 6cae1a05866b. +- get-return-display-mutable-ptr: get_friendinfo 42 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-return-display-mutable-ptr.cpp, SHA256 072404ff5e52. +- get-return-name-display-mutable-ptr: get_friendinfo 42 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-return-name-display-mutable-ptr.cpp, SHA256 143c291689e5. +- get-baseline-scoped-optimization-level-0: get_friendinfo 101 differing, 104/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-baseline-scoped-optimization-level-0.cpp, SHA256 79c78014399f. +- get-baseline-scoped-optimization-level-1: get_friendinfo 77 differing, 88/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-baseline-scoped-optimization-level-1.cpp, SHA256 b409c39bd7ea. +- get-baseline-scoped-optimization-level-2: get_friendinfo 64 differing, 82/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-baseline-scoped-optimization-level-2.cpp, SHA256 ea6745938426. +- get-baseline-scoped-optimization-level-3: get_friendinfo 64 differing, 82/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-baseline-scoped-optimization-level-3.cpp, SHA256 1a01272a4f6e. +- get-baseline-scoped-ppc-iro-level-0: get_friendinfo 64 differing, 82/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-baseline-scoped-ppc-iro-level-0.cpp, SHA256 210f416185a4. +- get-baseline-scoped-ppc-iro-level-1: get_friendinfo 64 differing, 82/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-baseline-scoped-ppc-iro-level-1.cpp, SHA256 93e1154ab4a1. +- get-pointer-return-scoped-optimization-level-0: get_friendinfo 110 differing, 116/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-pointer-return-scoped-optimization-level-0.cpp, SHA256 6e6379f31bef. +- get-pointer-return-scoped-optimization-level-1: get_friendinfo 88 differing, 93/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-pointer-return-scoped-optimization-level-1.cpp, SHA256 5367a1f0ba04. +- get-pointer-return-scoped-optimization-level-2: get_friendinfo 40 differing, 85/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-pointer-return-scoped-optimization-level-2.cpp, SHA256 095e5482d3a1. +- get-pointer-return-scoped-optimization-level-3: get_friendinfo 40 differing, 85/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-pointer-return-scoped-optimization-level-3.cpp, SHA256 2ad26b89fb19. +- get-pointer-return-scoped-ppc-iro-level-0: get_friendinfo 40 differing, 85/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-pointer-return-scoped-ppc-iro-level-0.cpp, SHA256 6bf7041f0645. +- get-pointer-return-scoped-ppc-iro-level-1: get_friendinfo 40 differing, 85/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-pointer-return-scoped-ppc-iro-level-1.cpp, SHA256 235c749516fb. +- get-entry-name-text-string: get_friendinfo 39 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-entry-name-text-string.cpp, SHA256 f75c7fc483f1. +- get-entry-name-string-text: get_friendinfo 39 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-entry-name-string-text.cpp, SHA256 7aa00bc282d7. +- get-entry-text-name-string: get_friendinfo 39 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-entry-text-name-string.cpp, SHA256 26870d51fbf4. +- get-entry-text-string-name: get_friendinfo 39 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-entry-text-string-name.cpp, SHA256 ecd754118ea9. +- get-entry-string-name-text: get_friendinfo 39 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-entry-string-name-text.cpp, SHA256 cba1b7d9761f. +- get-entry-string-text-name: get_friendinfo 39 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-entry-string-text-name.cpp, SHA256 a470cda1b4f8. +- get-name-return-direct-optimization-level-2: get_friendinfo 22 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-direct-optimization-level-2.cpp, SHA256 0344e8566434. +- get-name-return-direct-optimization-level-3: get_friendinfo 22 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-direct-optimization-level-3.cpp, SHA256 0000b43adfa2. +- get-name-return-direct-ppc-iro-level-1: get_friendinfo 22 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-direct-ppc-iro-level-1.cpp, SHA256 2d0a89148d78. +- get-name-return-direct-ppc-iro-level-0: get_friendinfo 22 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-direct-ppc-iro-level-0.cpp, SHA256 7c8a810d72d5. +- get-name-return-local-optimization-level-2: get_friendinfo 22 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-local-optimization-level-2.cpp, SHA256 e38d83fe6ff8. +- get-name-return-local-optimization-level-3: get_friendinfo 22 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-local-optimization-level-3.cpp, SHA256 d38d865a9d36. +- get-name-return-local-ppc-iro-level-1: get_friendinfo 0 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-local-ppc-iro-level-1.cpp, SHA256 a726bf3ae9f4. +- get-name-return-local-ppc-iro-level-0: get_friendinfo 0 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-local-ppc-iro-level-0.cpp, SHA256 97a36d681932. +- get-name-return-reuse-name-optimization-level-2: get_friendinfo 22 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-reuse-name-optimization-level-2.cpp, SHA256 4fd8c5da7885. +- get-name-return-reuse-name-optimization-level-3: get_friendinfo 22 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-reuse-name-optimization-level-3.cpp, SHA256 8aaca28cdbfe. +- get-name-return-reuse-name-ppc-iro-level-1: get_friendinfo 0 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-reuse-name-ppc-iro-level-1.cpp, SHA256 9f4bc33974d8. +- get-name-return-reuse-name-ppc-iro-level-0: get_friendinfo 0 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-reuse-name-ppc-iro-level-0.cpp, SHA256 b7a67b585682. +- get-name-return-helper-optimization-level-2: get_friendinfo 2 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-helper-optimization-level-2.cpp, SHA256 3268ccf99f9e. +- get-name-return-helper-optimization-level-3: get_friendinfo 2 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-helper-optimization-level-3.cpp, SHA256 4ada855d0274. +- get-name-return-helper-ppc-iro-level-1: get_friendinfo 0 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-helper-ppc-iro-level-1.cpp, SHA256 4a107ba8d7c0. +- get-name-return-helper-ppc-iro-level-0: get_friendinfo 0 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-helper-ppc-iro-level-0.cpp, SHA256 d08af78be4d1. +- get-minimal-local-iro1: get_friendinfo 0 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-minimal-local-iro1.cpp, SHA256 557eb73d17f7. +- get-helper-outside-iro1: get_friendinfo 0 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-helper-outside-iro1.cpp, SHA256 8eca69772423. +- get-minimal-local-iro0: get_friendinfo 0 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-minimal-local-iro0.cpp, SHA256 235962f1bb76. +- get-minimal-name-direct-display-iro1: get_friendinfo 22 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-minimal-name-direct-display-iro1.cpp, SHA256 06c917dd6891. +- get-minimal-direct-name-display-iro1: get_friendinfo 65 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-minimal-direct-name-display-iro1.cpp, SHA256 ac9e090c4251. +- update-source-local-ppc-iro-level-1: update_friendinfo 0 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-source-local-ppc-iro-level-1.cpp, SHA256 bef14cfae1ab. +- update-source-local-ppc-iro-level-0: update_friendinfo 0 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-source-local-ppc-iro-level-0.cpp, SHA256 ea2ced8b8bee. +- update-source-local-optimization-level-2: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-source-local-optimization-level-2.cpp, SHA256 8ca0b74672dc. +- update-destination-local-ppc-iro-level-1: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-destination-local-ppc-iro-level-1.cpp, SHA256 e5ed5293388f. +- update-destination-local-ppc-iro-level-0: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-destination-local-ppc-iro-level-0.cpp, SHA256 d70fd6247d8f. +- update-destination-local-optimization-level-2: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-destination-local-optimization-level-2.cpp, SHA256 da2410410231. +- update-source-destination-locals-ppc-iro-level-1: update_friendinfo 0 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-source-destination-locals-ppc-iro-level-1.cpp, SHA256 49337de3c8e0. +- update-source-destination-locals-ppc-iro-level-0: update_friendinfo 0 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-source-destination-locals-ppc-iro-level-0.cpp, SHA256 dcdb92431691. +- update-source-destination-locals-optimization-level-2: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-source-destination-locals-optimization-level-2.cpp, SHA256 254fa6dad102. +- update-destination-source-locals-ppc-iro-level-1: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-destination-source-locals-ppc-iro-level-1.cpp, SHA256 2b384cc9fb5e. +- update-destination-source-locals-ppc-iro-level-0: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-destination-source-locals-ppc-iro-level-0.cpp, SHA256 7d027325c388. +- update-destination-source-locals-optimization-level-2: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-destination-source-locals-optimization-level-2.cpp, SHA256 c9573c5ed13d. +- update-attr-source-locals-ppc-iro-level-1: update_friendinfo 0 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-attr-source-locals-ppc-iro-level-1.cpp, SHA256 a39c81b83928. +- update-attr-source-locals-ppc-iro-level-0: update_friendinfo 0 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-attr-source-locals-ppc-iro-level-0.cpp, SHA256 f0c982596df4. +- update-attr-source-locals-optimization-level-2: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-attr-source-locals-optimization-level-2.cpp, SHA256 3baff148890b. + +get_friendinfo exact handoff: scoped ppc_iro_level 1 plus separate name and display pointer locals preserves both addresses across FindPaneByName. Removed every formatting helper from the candidate. Fresh Ninja rebuild: objdiff 100.0%, ctxdiff 84/84, diffs 0, pool identical 57. Unit exact count 91 -> 92/94, matched code 23344 -> 23680/27112, data unchanged 2560/2560. Full gate pending until the remaining owned trials finish. + +update_friendinfo exact handoff: scoped ppc_iro_level 1 preserves an explicit source-name local after memset. This changes source r4 materialization to precede destination r3, exactly as in the target. Destination-only local and reversed local order remain two differences even under IRO 1. Optimization level 2 still folds the source local and leaves two differences. Fresh Ninja rebuild: objdiff 100.0%, ctxdiff 38/38, diffs 0, pool identical 57. get_friendinfo stays exact 84/84. Unit exact count 92 -> 93/94, matched code 23680 -> 23832/27112, data unchanged 2560/2560. Full gate pending until create trials finish. + +create optsweep completed with the original optsweep logic in a private copy that prefixes temporary paths with sol-y5 and prints every measurement. MEASURE src/scene/address/iplAddressEdit create__Q33ipl5scene11AddressEditFv [base] insns 818/820 diff 331; MEASURE src/scene/address/iplAddressEdit create__Q33ipl5scene11AddressEditFv [optimization_level 0] insns 1271/820 diff 1246; MEASURE src/scene/address/iplAddressEdit create__Q33ipl5scene11AddressEditFv [optimization_level 1] insns 840/820 diff 798; MEASURE src/scene/address/iplAddressEdit create__Q33ipl5scene11AddressEditFv [optimization_level 2] insns 818/820 diff 567; MEASURE src/scene/address/iplAddressEdit create__Q33ipl5scene11AddressEditFv [optimization_level 3] insns 819/820 diff 326; MEASURE src/scene/address/iplAddressEdit create__Q33ipl5scene11AddressEditFv [ppc_iro_level 0] insns 821/820 diff 786; MEASURE src/scene/address/iplAddressEdit create__Q33ipl5scene11AddressEditFv [ppc_iro_level 1] insns 819/820 diff 227; +- create-baseline-ppc-iro-level-1: create 227 differing, 819/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-baseline-ppc-iro-level-1.cpp, SHA256 4d3221707207. +- create-baseline-optimization-level-3: create 326 differing, 819/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-baseline-optimization-level-3.cpp, SHA256 a7405b868f2b. +- create-baseline-ppc-iro-level-0: create 227 differing, 819/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-baseline-ppc-iro-level-0.cpp, SHA256 95b383f766ff. +- create-separate-text-before-lookups-ppc-iro-level-1: create 52 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-separate-text-before-lookups-ppc-iro-level-1.cpp, SHA256 200ac3c219db. +- create-separate-text-before-lookups-optimization-level-3: create 331 differing, 818/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-separate-text-before-lookups-optimization-level-3.cpp, SHA256 aced9c281ecb. +- create-separate-text-before-lookups-ppc-iro-level-0: create 52 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-separate-text-before-lookups-ppc-iro-level-0.cpp, SHA256 77bcc8fbca26. +- create-reuse-text-before-lookups-ppc-iro-level-1: create 52 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-reuse-text-before-lookups-ppc-iro-level-1.cpp, SHA256 c13700d5b923. +- create-reuse-text-before-lookups-optimization-level-3: create 326 differing, 819/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-reuse-text-before-lookups-optimization-level-3.cpp, SHA256 fd7c4b5cc785. +- create-reuse-text-before-lookups-ppc-iro-level-0: create 52 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-reuse-text-before-lookups-ppc-iro-level-0.cpp, SHA256 817c222a74ac. +- create-direct-mode-named-margins: create 46 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-named-margins.cpp, SHA256 fa2c5bd46915. +- create-direct-mode-named-margins-entry-pane-animator-text: create 46 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-named-margins-entry-pane-animator-text.cpp, SHA256 438cf5649216. +- create-direct-mode-named-margins-entry-pane-text-animator: create 42 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-named-margins-entry-pane-text-animator.cpp, SHA256 478d431dc62e. +- create-direct-mode-named-margins-entry-animator-pane-text: create 46 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-named-margins-entry-animator-pane-text.cpp, SHA256 d55bab74cbbd. +- create-direct-mode-named-margins-entry-animator-text-pane: create 46 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-named-margins-entry-animator-text-pane.cpp, SHA256 512ef66957d1. +- create-direct-mode-named-margins-entry-text-pane-animator: create 42 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-named-margins-entry-text-pane-animator.cpp, SHA256 a836cd205311. +- create-direct-mode-named-margins-entry-text-animator-pane: create 42 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-named-margins-entry-text-animator-pane.cpp, SHA256 9381cc2ce1a3. +- create-named-mode-literal-margins: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-named-mode-literal-margins.cpp, SHA256 eca96c52d729. +- create-named-mode-literal-margins-entry-pane-animator-text: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-named-mode-literal-margins-entry-pane-animator-text.cpp, SHA256 f5ae2fdbefc1. +- create-named-mode-literal-margins-entry-pane-text-animator: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-named-mode-literal-margins-entry-pane-text-animator.cpp, SHA256 f2a6b9ac9d74. +- create-named-mode-literal-margins-entry-animator-pane-text: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-named-mode-literal-margins-entry-animator-pane-text.cpp, SHA256 9cb666aa2e12. +- create-named-mode-literal-margins-entry-animator-text-pane: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-named-mode-literal-margins-entry-animator-text-pane.cpp, SHA256 738ebdbb3fb7. +- create-named-mode-literal-margins-entry-text-pane-animator: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-named-mode-literal-margins-entry-text-pane-animator.cpp, SHA256 70c760a416a2. +- create-named-mode-literal-margins-entry-text-animator-pane: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-named-mode-literal-margins-entry-text-animator-pane.cpp, SHA256 265d6d7cad2f. +- create-direct-mode-literal-margins: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-literal-margins.cpp, SHA256 127056268082. +- create-direct-mode-literal-margins-entry-pane-animator-text: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-literal-margins-entry-pane-animator-text.cpp, SHA256 dee301022c71. +- create-direct-mode-literal-margins-entry-pane-text-animator: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-literal-margins-entry-pane-text-animator.cpp, SHA256 776e39bfcca0. +- create-direct-mode-literal-margins-entry-animator-pane-text: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-literal-margins-entry-animator-pane-text.cpp, SHA256 3b76e97f6828. +- create-direct-mode-literal-margins-entry-animator-text-pane: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-literal-margins-entry-animator-text-pane.cpp, SHA256 b76c60c3bc20. +- create-direct-mode-literal-margins-entry-text-pane-animator: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-literal-margins-entry-text-pane-animator.cpp, SHA256 9db1dabf637c. +- create-direct-mode-literal-margins-entry-text-animator-pane: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-literal-margins-entry-text-animator-pane.cpp, SHA256 ce29a16f5304. +- create-balloon-factory-ref-plain: create 800 differing, 812/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-balloon-factory-ref-plain.cpp, SHA256 866de4b8d28f. +- create-balloon-factory-ref-const: create 800 differing, 812/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-balloon-factory-ref-const.cpp, SHA256 b3429cbb6c78. +- create-balloon-factory-ptr-plain: create 800 differing, 812/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-balloon-factory-ptr-plain.cpp, SHA256 8a970850cfb3. +- create-balloon-factory-ptr-const: create 800 differing, 812/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-balloon-factory-ptr-const.cpp, SHA256 74c97b86a7a6. +- create-balloon-aspect-margin-ternary: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-balloon-aspect-margin-ternary.cpp, SHA256 012f5661d66e. +- create-balloon-aspect-margin-branch: create 64 differing, 824/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-balloon-aspect-margin-branch.cpp, SHA256 703cf89aa9f9. +- create-balloon-aspect-margin-local: create 64 differing, 824/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-balloon-aspect-margin-local.cpp, SHA256 0354014c2afb. +- create-margin-type-const-f32: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-margin-type-const-f32.cpp, SHA256 9927bc66db1c. +- create-margin-type-const-f32reference: create 42 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-margin-type-const-f32reference.cpp, SHA256 0f842cf1947c. +- create-margin-type-f64: create 44 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-margin-type-f64.cpp, SHA256 18d584e5df26. +- create-margin-type-const-f64: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-margin-type-const-f64.cpp, SHA256 d7c4c39440eb. +- create-margin-type-u32: create 798 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-margin-type-u32.cpp, SHA256 ba1353836c25. +- create-margin-type-s32: create 802 differing, 822/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-margin-type-s32.cpp, SHA256 de222a671141. +- create-margin-local-factory: create 65 differing, 822/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-margin-local-factory.cpp, SHA256 08dd002edab5. +- create-balloon-own-margins-default: create 65 differing, 822/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-balloon-own-margins-default.cpp, SHA256 cb99ef71c307. +- create-balloon-own-margins-ppc-iro-level-1: create 65 differing, 822/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-balloon-own-margins-ppc-iro-level-1.cpp, SHA256 8660c87cd069. +- create-balloon-own-margins-optimization-level-2: create 65 differing, 822/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-balloon-own-margins-optimization-level-2.cpp, SHA256 4336be629b4b. +- create-balloon-own-margins-optimization-level-3: create 65 differing, 822/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-balloon-own-margins-optimization-level-3.cpp, SHA256 e1dbeacbdbd2. +- create-ui-helpers-messages-default: create 507 differing, 784/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-ui-helpers-messages-default.cpp, SHA256 d7d9ce1cac06. +- create-ui-helpers-messages-caller-iro1: create 507 differing, 784/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-ui-helpers-messages-caller-iro1.cpp, SHA256 3937e7b4ed95. +- create-ui-helpers-animations-default: create 42 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-ui-helpers-animations-default.cpp, SHA256 326900537595. +- create-ui-helpers-animations-caller-iro1: create 42 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-ui-helpers-animations-caller-iro1.cpp, SHA256 21679a93bc3f. +- create-ui-helpers-messages-animations-default: create 507 differing, 784/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-ui-helpers-messages-animations-default.cpp, SHA256 35f5882f028b. +- create-ui-helpers-messages-animations-caller-iro1: create 507 differing, 784/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-ui-helpers-messages-animations-caller-iro1.cpp, SHA256 2a9ff5241d12. +- create-all-entry-creation-ppc-iro-level-1: create 46 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-all-entry-creation-ppc-iro-level-1.cpp, SHA256 1994572ed13a. +- create-all-entry-creation-optimization-level-3: create 326 differing, 819/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-all-entry-creation-optimization-level-3.cpp, SHA256 411bf19c5314. +- create-all-entry-ui-first-ppc-iro-level-1: create 42 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-all-entry-ui-first-ppc-iro-level-1.cpp, SHA256 05dc204f9598. +- create-all-entry-ui-first-optimization-level-3: create 326 differing, 819/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-all-entry-ui-first-optimization-level-3.cpp, SHA256 7d4bbcba7856. +- create-all-entry-reverse-ppc-iro-level-1: create 59 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-all-entry-reverse-ppc-iro-level-1.cpp, SHA256 cdec656df90d. +- create-all-entry-reverse-optimization-level-3: create 337 differing, 819/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-all-entry-reverse-optimization-level-3.cpp, SHA256 0a37ec3856f7. + +Round closure: {'update_friendinfo': 24, 'get_friendinfo': 44, 'create': 60} successfully compiled distinct source trials, plus seven settings in the create optsweep. +Fresh origin/main a65cd4cb73a59ffe343e057c1df93113863417d6. Owned source/header changes since assigned base: none. No rebase or cross-worktree mutation. +create remains open. Best readable private candidate is IRO 1 with direct mode dispatch and text buffers bound before virtual pane lookups. Fresh object: 820/820, diffs 42, objdiff 99.256096%, unit data 2560/2560, all 93 pre-existing/new exact functions preserved. Saved only the create diff against the two exact-function commits at /mnt/drive2/projects/wii-ipl-workers/_luna-runs/best/sol-y5.iplAddressEdit.diff, then restored create to HEAD. No fuzzy source is retained. +create trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/sol-y5-create-iro1 is whole-object byte-identical to its Ninja build. vmap2 identifies pane/animator r23 -> r27 and name/display r24/r23 -> r25, plus mode r4 -> r0. Simulator reproduces 510/510. Unmodified regsim reports 6/6 only by moving @ compiler temps, which cannot be realized through declarations. A private simulator copy excluding @ temps and this reaches only 4/6 over 5000 attempts. Its result is structural for the current shape, not a usable declaration order. C89 entry declarations, typed margins, real message/animation and balloon boundaries did not close it. Target loads margins after the allocation guard; the 42-difference candidate loads them before allocation. +Retained source is only get_friendinfo and update_friendinfo. Both are ordinary pointer locals under scoped IRO 1, with no new helpers, assembly, carrier types, header changes or configure.py change. Unit remains unlinked while create is open. Final gate follows. + +Final retained-source gate, one invocation of gate.py --quick: + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/scene/address/iplAddressEdit] pool: IDENTICAL +[src/scene/address/iplAddressEdit] objdiff: code 23832/27112 data 2560/2560 functions 93/94 fuzzy 99.7043 linked code 0 +[src/scene/address/iplAddressEdit] instruction-exact functions: 93/94 +[src/scene/address/iplAddressEdit] section .bss size 320 match 100.0 +[src/scene/address/iplAddressEdit] section .data size 2152 match 100.0 +[src/scene/address/iplAddressEdit] section .rodata size 40 match 100.0 +[src/scene/address/iplAddressEdit] section .sdata size 24 match 100.0 +[src/scene/address/iplAddressEdit] section .sdata2 size 24 match 100.0 +[src/scene/address/iplAddressEdit] section .text size 27112 match 99.70434 +[src/scene/address/iplAddressEdit] below 100: create__Q33ipl5scene11AddressEditFv 97.5561 +[src/scene/address/iplAddressEdit] baseline: code 23344/27112 data 2560 functions 91 fuzzy 99.5528 +regressions vs baseline: 0 +global matched_code_percent: 97.84948 -> 97.86577 +global fuzzy_match_percent: 99.90586 -> 99.90723 +global complete_code_percent: 89.69850 -> 89.69850 +global matched_data_percent: 100.00000 -> 100.00000 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +review note: src/scene/address/iplAddressEdit.cpp: per-function optimization pragma (levers 26: orchestrator checks the per-use address recompute evidence) (+2 net), e.g. #pragma ppc_iro_level 1 +GATE PASS +``` + +Live build/43U/report.json regenerated after the gate. Final AddressEdit measures {"fuzzy_match_percent": 99.70434, "matched_code": "23832", "matched_code_percent": 87.90203, "matched_data": "2560", "matched_data_percent": 100.0, "matched_functions": 93, "matched_functions_percent": 98.93617, "total_code": "27112", "total_data": "2560", "total_functions": 94, "total_units": 1}. DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Exact gains +2 functions, +488 code bytes; data unchanged. create restored to original 818/820 and 97.5561%, 331 differences; best 42 is external evidence only. +Exact-function commits: 775fb5a1 get_friendinfo, 7888f068 update_friendinfo. Source scope is two function bodies and their scoped IRO settings. No remote writes or unrelated edits. Parent verification/acceptance remains required. -- 2.49.1