Compare commits
28 Commits
agent/w092
...
agent/bitt
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c6fbcbe532 | ||
|
|
b84b3c0d57 | ||
|
|
950bb0dda6 | ||
|
|
de05797e19 | ||
|
|
c70816c7e1 | ||
|
|
1d290fa12a | ||
|
|
6547b1fa10 | ||
|
|
3bdb663f09 | ||
|
|
8120309670 | ||
|
|
a4c84cbf53 | ||
|
|
6ebe56bc04 | ||
|
|
69c235ffc2 | ||
|
|
767f393bf9 | ||
|
|
6368cc44e9 | ||
|
|
7deffd048c | ||
|
|
4aaa362c5e | ||
|
|
5fe0a61af7 | ||
|
|
dbf6a1256e | ||
|
|
c6c0b145f8 | ||
|
|
b38c5653df | ||
|
|
d9cf3598fc | ||
|
|
c44fbd7209 | ||
|
|
f78a686e32 | ||
|
|
c9fb0697ca | ||
|
|
11df09974b | ||
|
|
a3b27c9ed0 | ||
|
|
91fd1dcb69 | ||
|
|
b02273897c |
@@ -78,6 +78,12 @@ Helper tools live in `tools/decomp-assist/`:
|
||||
between your object and the original. This is the main iteration loop.
|
||||
- `disasm_fn.py <object> <symbol>` — disassembly with relocation-resolved call
|
||||
names, so you can see which real functions are being called.
|
||||
- `literal_reference_diff.py [unit ...]` — advisory check of actual narrow-string
|
||||
bytes passed at corresponding calls, including addresses derived from a shared
|
||||
data base. Defaults to functions scored 100% in the live report; use
|
||||
`--all-functions` to include other equal-sized functions. Inspect every
|
||||
candidate against the assembly. This does not follow mutable pointer globals,
|
||||
infer compiler aliases, or prove complete data matching; skips are reported.
|
||||
- `pool_diff.py` — diffs the string pool in `.data` between your object and the
|
||||
original, string by string. See below; this is the highest-signal tool.
|
||||
- `export_pyghidra.py` — regenerates `ghidra_decomp.txt`, decompiled C for the
|
||||
|
||||
@@ -53,9 +53,9 @@ Progress
|
||||
<!-- progress:start -->
|
||||
| Decompiled | Matched | Linked | Data |
|
||||
|:---:|:---:|:---:|:---:|
|
||||
| 99.46% | 88.63% | 63.16% | 98.51% |
|
||||
| 99.48% | 88.74% | 64.70% | 98.77% |
|
||||
|
||||
units 927/1027 complete, functions 12267/12563 matched.
|
||||
units 932/1027 complete, functions 12274/12563 matched.
|
||||
|
||||
decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data
|
||||
<!-- progress:end -->
|
||||
|
||||
@@ -104,15 +104,24 @@ Voices = .bss:0x810C0C80; // type:object size:0x1800 data:4byte
|
||||
sZeroMem = .bss:0x810C2480; // type:object size:0x100 data:byte
|
||||
s_player_thread_stack = .bss:0x810C2580; // type:object size:0x4000 scope:local
|
||||
lbl_810C6580 = .bss:0x810C6580; // type:object size:0x10
|
||||
lbl_810C6590 = .bss:0x810C6590; // type:object size:0x60
|
||||
layoutGatherDestructorRecord = .bss:0x810C6590; // type:object size:0xC data:4byte
|
||||
unInputedWCharColorDestructorRecord = .bss:0x810C659C; // type:object size:0xC data:4byte
|
||||
charColorDestructorRecord = .bss:0x810C65A8; // type:object size:0xC data:4byte
|
||||
ziStringColorLeftDestructorRecord = .bss:0x810C65B4; // type:object size:0xC data:4byte
|
||||
ziStringNonSelectColorRightDestructorRecord = .bss:0x810C65C0; // type:object size:0xC data:4byte
|
||||
ziStringColorRightDestructorRecord = .bss:0x810C65CC; // type:object size:0xC data:4byte
|
||||
underlateColorDestructorRecord = .bss:0x810C65D8; // type:object size:0xC data:4byte
|
||||
unInputedWCharColorSpaceDestructorRecord = .bss:0x810C65E4; // type:object size:0xC data:4byte
|
||||
ElementBuffer__Q39textinput8tistring6WithZi = .bss:0x810C65F0; // type:object size:0x200 data:2byte
|
||||
CandidatesBuffer__Q39textinput8tistring6WithZi = .bss:0x810C67F0; // type:object size:0x600 data:2byte
|
||||
CandidatedWord__Q39textinput8tistring6WithZi = .bss:0x810C6DF0; // type:object size:0x1400 data:2byte
|
||||
LatestWord__Q39textinput8tistring6WithZi = .bss:0x810C81F0; // type:object size:0x80 data:2byte
|
||||
snWidthTable__Q29textinput10textdrawer = .bss:0x810C8270; // type:object size:0x580 data:4byte
|
||||
lbl_810C87F0 = .bss:0x810C87F0; // type:object size:0x24
|
||||
dispMemoStateDestructorRecord = .bss:0x810C87F0; // type:object size:0xC data:4byte
|
||||
editMemoStateDestructorRecord = .bss:0x810C87FC; // type:object size:0xC data:4byte
|
||||
appearMemoStateDestructorRecord = .bss:0x810C8808; // type:object size:0xC data:4byte
|
||||
sAppearMemoState__Q39textinput6extend4memo = .bss:0x810C8814; // type:object size:0xC data:4byte
|
||||
lbl_810C8820 = .bss:0x810C8820; // type:object size:0xC data:4byte
|
||||
disappearMemoStateDestructorRecord = .bss:0x810C8820; // type:object size:0xC data:4byte
|
||||
sDisappearMemoState__Q39textinput6extend4memo = .bss:0x810C882C; // type:object size:0xC data:4byte
|
||||
lbl_810C8838 = .bss:0x810C8838; // type:object size:0xC data:4byte
|
||||
sInstance__Q39textinput5input10HKBManager = .bss:0x810C8844; // type:object size:0xFC
|
||||
@@ -5129,8 +5138,8 @@ __ct__Q33ipl5scene10AOSSThreadFPQ23EGG4Heap = .text:0x813FCA0C; // type:function
|
||||
destroy__Q33ipl5scene10AOSSThreadFi = .text:0x813FCAA0; // type:function size:0x84
|
||||
__dt__Q33ipl5scene10AOSSThreadFv = .text:0x813FCB24; // type:function size:0x70
|
||||
start__Q33ipl5scene10AOSSThreadFv = .text:0x813FCB94; // type:function size:0xF8
|
||||
aossAlloc__Q33ipl5scene10AOSSThreadFv = .text:0x813FCC8C; // type:function size:0x58
|
||||
aossFree__Q33ipl5scene10AOSSThreadFv = .text:0x813FCCE4; // type:function size:0x50
|
||||
aossAlloc__Q33ipl5scene10AOSSThreadFUll = .text:0x813FCC8C; // type:function size:0x58
|
||||
aossFree__Q33ipl5scene10AOSSThreadFUlPvl = .text:0x813FCCE4; // type:function size:0x50
|
||||
Run__Q33ipl5scene10AOSSThreadFv = .text:0x813FCD34; // type:function size:0xEC
|
||||
cancel__Q33ipl5scene10AOSSThreadFv = .text:0x813FCE20; // type:function size:0x50
|
||||
finish__Q33ipl5scene10AOSSThreadFP13NCDAossConfigPi = .text:0x813FCE70; // type:function size:0x2FC
|
||||
@@ -12945,7 +12954,7 @@ PFPATH_GetNextTokenOfPath = .text:0x815DD874; // type:function size:0x384
|
||||
PFPATH_SplitPath = .text:0x815DDBF8; // type:function size:0x8
|
||||
PFPATH_SplitPathPattern = .text:0x815DDC00; // type:function size:0x8
|
||||
PFPATH_GetVolumeFromPath = .text:0x815DDC08; // type:function size:0x80
|
||||
PFPATH_MatchFileNameWithPattern = .text:0x815DDC88; // type:function size:0x31C
|
||||
PFPATH_MatchFileNameWithPattern = .text:0x815DDC88; // type:function size:0x310
|
||||
PFPATH_putShortName = .text:0x815DDF98; // type:function size:0x17C
|
||||
PFPATH_getShortName = .text:0x815DE114; // type:function size:0x250
|
||||
PFPATH_getLongNameformShortName = .text:0x815DE364; // type:function size:0x1B0
|
||||
@@ -13892,7 +13901,7 @@ lbl_816105C8 = .rodata:0x816105C8; // type:object size:0x10
|
||||
lbl_816105D8 = .rodata:0x816105D8; // type:object size:0x30
|
||||
lbl_81610608 = .rodata:0x81610608; // type:object size:0x300
|
||||
lbl_81610908 = .rodata:0x81610908; // type:object size:0x10
|
||||
lbl_81610918 = .rodata:0x81610918; // type:object size:0x10
|
||||
sCaptureSizes__Q23ipl5scene = .rodata:0x81610918; // type:object size:0x10
|
||||
lbl_81610928 = .rodata:0x81610928; // type:object size:0x20 data:4byte
|
||||
scAnmTable__Q23ipl5scene = .rodata:0x81610948; // type:object size:0x1A8 scope:local
|
||||
lbl_81610AF0 = .rodata:0x81610AF0; // type:object size:0x30 data:4byte
|
||||
@@ -13939,7 +13948,7 @@ csLanguageDependencyDataKOR__Q29textinput9inputform = .rodata:0x81615288; // typ
|
||||
csLanguageDependencyDataCHN__Q29textinput9inputform = .rodata:0x81615298; // type:object size:0x10 scope:local
|
||||
pppURLCheck = .rodata:0x816152A8; // type:object size:0x28 scope:local
|
||||
lbl_816152D0 = .rodata:0x816152D0; // type:object size:0x10 scope:local data:4byte
|
||||
csAninationFile__Q29textinput12candidatebox = .rodata:0x816152E0; // type:object size:0x378 scope:local
|
||||
csAninationFile__Q29textinput12candidatebox = .rodata:0x816152E0; // type:object size:0x374 scope:local
|
||||
lbl_81615658 = .rodata:0x81615658; // type:object size:0xA0 scope:local data:4byte
|
||||
csAninationFile__Q29textinput7toolbar = .rodata:0x816156F8; // type:object size:0x1DC scope:local data:4byte
|
||||
csAninationFile__Q29textinput11predictlang = .rodata:0x816158D8; // type:object size:0x268 scope:local
|
||||
@@ -14058,7 +14067,7 @@ AESiRoundKeyRcon0 = .rodata:0x81618410; // type:object size:0x1E scope:local
|
||||
AESiEncryptTable = .rodata:0x81618430; // type:object size:0x400 scope:local
|
||||
AESiDecryptTable = .rodata:0x81618830; // type:object size:0x400 scope:local
|
||||
NHTTPi_strMultipartBound = .rodata:0x81618C30; // type:object size:0x18
|
||||
lbl_81618C48 = .rodata:0x81618C48; // type:object size:0x28 scope:local data:4byte
|
||||
@237 = .rodata:0x81618C48; // type:object size:0x24 scope:local data:4byte
|
||||
STR_POST_DISPOS = .rodata:0x81618C70; // type:object size:0x27 scope:local data:string
|
||||
STR_POST_TYPE_BIN = .rodata:0x81618C98; // type:object size:0x4C scope:local data:string
|
||||
STR_POST_TYPE_URLENCODE = .rodata:0x81618CE4; // type:object size:0x32 scope:local data:string
|
||||
@@ -14792,18 +14801,18 @@ __vt__Q33ipl4math14HermiteIntp<f> = .data:0x81641268; // type:object size:0x10
|
||||
__vt__Q33ipl7utility14YoungBScroller = .data:0x81641278; // type:object size:0xC
|
||||
__vt__Q33ipl7utility9BScroller = .data:0x81641284; // type:object size:0xC
|
||||
__vt__Q33ipl7utility9ut_thread = .data:0x81641290; // type:object size:0x2C
|
||||
lbl_816412C0 = .data:0x816412C0; // type:object size:0x2B data:string
|
||||
lbl_816412EB = .data:0x816412EB; // type:object size:0x2B data:string
|
||||
lbl_81641316 = .data:0x81641316; // type:object size:0x36 data:string
|
||||
lbl_8164134C = .data:0x8164134C; // type:object size:0x36 data:string
|
||||
lbl_81641382 = .data:0x81641382; // type:object size:0x29 data:string
|
||||
lbl_816413AB = .data:0x816413AB; // type:object size:0x19 data:string
|
||||
lbl_816413C4 = .data:0x816413C4; // type:object size:0x26 data:string
|
||||
lbl_816413EA = .data:0x816413EA; // type:object size:0x3A data:string
|
||||
lbl_81641424 = .data:0x81641424; // type:object size:0x491
|
||||
lbl_816418B5 = .data:0x816418B5; // type:object size:0xF0
|
||||
lbl_816419A5 = .data:0x816419A5; // type:object size:0x268
|
||||
lbl_81641C0D = .data:0x81641C0D; // type:object size:0x7CD
|
||||
@17577 = .data:0x816412C0; // type:object size:0x2B scope:local data:string
|
||||
@17578 = .data:0x816412EB; // type:object size:0x2B scope:local data:string
|
||||
@17592 = .data:0x81641316; // type:object size:0x36 scope:local data:string
|
||||
@17593 = .data:0x8164134C; // type:object size:0x36 scope:local data:string
|
||||
@17606 = .data:0x81641382; // type:object size:0x29 scope:local data:string
|
||||
@17613 = .data:0x816413AB; // type:object size:0x19 scope:local data:string
|
||||
@17614 = .data:0x816413C4; // type:object size:0x26 scope:local data:string
|
||||
@17630 = .data:0x816413EA; // type:object size:0x3A scope:local data:string
|
||||
@17631 = .data:0x81641424; // type:object size:0x3A scope:local data:string
|
||||
@17730 = .data:0x816418B5; // type:object size:0x11 scope:local data:string
|
||||
@17780 = .data:0x816419A5; // type:object size:0x21 scope:local data:string
|
||||
@17857 = .data:0x81641C0D; // type:object size:0x1A scope:local data:string
|
||||
@2386 = .data:0x816423E0; // type:object size:0x17 scope:local data:string
|
||||
...data.0 = .data:0x816423E0; // type:label scope:local
|
||||
@2387 = .data:0x816423F7; // type:object size:0x3B scope:local data:string
|
||||
@@ -17009,9 +17018,9 @@ lbl_8165542D = .data:0x8165542D; // type:object size:0x14 data:string
|
||||
lbl_81655441 = .data:0x81655441; // type:object size:0x12 data:string
|
||||
lbl_81655453 = .data:0x81655453; // type:object size:0xF data:string
|
||||
lbl_81655462 = .data:0x81655462; // type:object size:0x62
|
||||
lbl_816554C4 = .data:0x816554C4; // type:object size:0x1C
|
||||
lbl_816554E0 = .data:0x816554E0; // type:object size:0x18
|
||||
lbl_816554F8 = .data:0x816554F8; // type:object size:0x140
|
||||
__vt__Q33ipl5scene25SDTitleButtonEventHandler = .data:0x816554C4; // type:object size:0x1C
|
||||
__vt__Q33ipl5scene23SDTitlePaneEventHandler = .data:0x816554E0; // type:object size:0x18
|
||||
__vt__Q33ipl5scene14SDChannelTitle = .data:0x816554F8; // type:object size:0x68
|
||||
@10016 = .data:0x81655638; // type:object size:0xA scope:local data:string
|
||||
...data.0 = .data:0x81655638; // type:label scope:local
|
||||
smButtonName__Q33ipl5scene8SDButton = .data:0x81655644; // type:object size:0x10 data:4byte
|
||||
@@ -17673,17 +17682,17 @@ lbl_8165DCD4 = .data:0x8165DCD4; // type:object size:0xF data:string
|
||||
__vt__Q39textinput12candidatebox13PredictWindow = .data:0x8165DCE4; // type:object size:0x2C
|
||||
__vt__Q39textinput12candidatebox12OnOffAnmPane = .data:0x8165DD10; // type:object size:0x2C
|
||||
__vt__Q39textinput12candidatebox22CandidateScrollAnmPane = .data:0x8165DD3C; // type:object size:0x2C
|
||||
__vt__Q39textinput12candidatebox20CandidateTextAnmPane = .data:0x8165DD68; // type:object size:0x30
|
||||
__vt__Q39textinput12candidatebox20CandidateTextAnmPane = .data:0x8165DD68; // type:object size:0x2C
|
||||
__vt__Q39textinput12candidatebox12LayoutByNW4R = .data:0x8165DD98; // type:object size:0x130
|
||||
__vt__Q39textinput12candidatebox12UITextWindow = .data:0x8165DEC8; // type:object size:0x2C
|
||||
__vt__Q39textinput12candidatebox13UIOnOffButton = .data:0x8165DEF4; // type:object size:0x2C
|
||||
__vt__Q39textinput12candidatebox8UIButton = .data:0x8165DF20; // type:object size:0x1C
|
||||
__vt__Q39textinput12candidatebox10UITextArea = .data:0x8165DF3C; // type:object size:0x2C
|
||||
__vt__Q39textinput12candidatebox5UIObj = .data:0x8165DF68; // type:object size:0x20
|
||||
__vt__Q39textinput12candidatebox5UIObj = .data:0x8165DF68; // type:object size:0x1C
|
||||
__vt__Q39textinput12candidatebox12EventHandler = .data:0x8165DF88; // type:object size:0x20
|
||||
__vt__Q39textinput12candidatebox4Base = .data:0x8165DFA8; // type:object size:0x54
|
||||
__vt__Q39textinput12candidatebox18CandidateBoxCaller = .data:0x8165DFFC; // type:object size:0x1C
|
||||
__vt__Q39textinput11nw4rmanager11AnmObserver = .data:0x8165E018; // type:object size:0x4C
|
||||
__vt__Q39textinput11nw4rmanager11AnmObserver = .data:0x8165E018; // type:object size:0xC
|
||||
__vt__Q39textinput4util12AnimObserver = .data:0x8165E064; // type:object size:0xC
|
||||
@6142 = .data:0x8165E070; // type:object size:0xC scope:local data:string
|
||||
@6143 = .data:0x8165E080; // type:object size:0x10 scope:local data:string
|
||||
@@ -20715,7 +20724,7 @@ lbl_81694B48 = .sdata2:0x81694B48; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694B4C = .sdata2:0x81694B4C; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694B50 = .sdata2:0x81694B50; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694B58 = .sdata2:0x81694B58; // type:object size:0x8 align:8 data:double
|
||||
lbl_81694B60 = .sdata2:0x81694B60; // type:object size:0x8 data:wstring
|
||||
sMissingTitle__Q23ipl5scene = .sdata2:0x81694B60; // type:object size:0x8 data:wstring
|
||||
lbl_81694B68 = .sdata2:0x81694B68; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694B6C = .sdata2:0x81694B6C; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694B70 = .sdata2:0x81694B70; // type:object size:0x4 align:4 data:float
|
||||
@@ -21783,11 +21792,11 @@ lbl_8169628C = .sdata:0x8169628C; // type:object size:0x4
|
||||
lbl_81696290 = .sdata:0x81696290; // type:object size:0x4
|
||||
lbl_81696294 = .sdata:0x81696294; // type:object size:0x4
|
||||
lbl_81696298 = .sdata:0x81696298; // type:object size:0x4
|
||||
lbl_816962A0 = .sdata:0x816962A0; // type:object size:0x5 data:string
|
||||
lbl_816962A5 = .sdata:0x816962A5; // type:object size:0x5 data:string
|
||||
lbl_816962AA = .sdata:0x816962AA; // type:object size:0x6 data:string
|
||||
lbl_816962B0 = .sdata:0x816962B0; // type:object size:0x7 data:string
|
||||
lbl_816962B7 = .sdata:0x816962B7; // type:object size:0x9 data:string
|
||||
@17940 = .sdata:0x816962A0; // type:object size:0x5 scope:local data:string
|
||||
__FUNCTION__$16810 = .sdata:0x816962A5; // type:object size:0x5 scope:local data:string
|
||||
__FUNCTION__$16845 = .sdata:0x816962AA; // type:object size:0x6 scope:local data:string
|
||||
__FUNCTION__$16875 = .sdata:0x816962B0; // type:object size:0x7 scope:local data:string
|
||||
__FUNCTION__$16927 = .sdata:0x816962B7; // type:object size:0x8 scope:local data:string
|
||||
@11572 = .sdata:0x816962C0; // type:object size:0x4 scope:local data:string
|
||||
lbl_816962C8 = .sdata:0x816962C8; // type:object size:0x5 data:string
|
||||
sProtocolName__Q23www9arcreader = .sdata:0x816962D0; // type:object size:0x4 data:4byte
|
||||
@@ -22258,7 +22267,7 @@ lbl_81696E20 = .sdata:0x81696E20; // type:object size:0x4 data:string
|
||||
lbl_81696E24 = .sdata:0x81696E24; // type:object size:0x7 data:string
|
||||
lbl_81696E30 = .sdata:0x81696E30; // type:object size:0x7 data:string
|
||||
lbl_81696E37 = .sdata:0x81696E37; // type:object size:0x7 data:string
|
||||
lbl_81696E40 = .sdata:0x81696E40; // type:object size:0x8 data:4byte
|
||||
sButtonNames__Q23ipl5scene = .sdata:0x81696E40; // type:object size:0x8 data:4byte
|
||||
lbl_81696E48 = .sdata:0x81696E48; // type:object size:0x6 data:string
|
||||
lbl_81696E4E = .sdata:0x81696E4E; // type:object size:0x6 data:string
|
||||
lbl_81696E54 = .sdata:0x81696E54; // type:object size:0x6 data:string
|
||||
@@ -22273,7 +22282,7 @@ lbl_81696E84 = .sdata:0x81696E84; // type:object size:0x6 data:string
|
||||
lbl_81696E8A = .sdata:0x81696E8A; // type:object size:0x6 data:string
|
||||
lbl_81696E90 = .sdata:0x81696E90; // type:object size:0x7 data:string
|
||||
lbl_81696E97 = .sdata:0x81696E97; // type:object size:0x7 data:string
|
||||
lbl_81696EA0 = .sdata:0x81696EA0; // type:object size:0x8 data:4byte
|
||||
sTextNames__Q23ipl5scene = .sdata:0x81696EA0; // type:object size:0x8 data:4byte
|
||||
lbl_81696EA8 = .sdata:0x81696EA8; // type:object size:0x4
|
||||
lbl_81696EAC = .sdata:0x81696EAC; // type:object size:0x4
|
||||
lbl_81696EB0 = .sdata:0x81696EB0; // type:object size:0x4 data:string
|
||||
@@ -23724,14 +23733,14 @@ sCallback__19AxAdpcmSimplePlayer = .sbss:0x81698CE8; // type:object size:0x4 dat
|
||||
pBSWaveBuffer = .sbss:0x81698CF0; // type:object size:0x4 data:4byte
|
||||
@GUARD@getInstance__Q39textinput12LayoutGather9SingletonFv@sGather = .sbss:0x81698CF8; // type:object size:0x1 data:byte
|
||||
@LOCAL@getInstance__Q39textinput12LayoutGather9SingletonFv@sGather = .sbss:0x81698CFC; // type:object size:0x1 data:byte
|
||||
csUnInputedWCharColor__Q29textinput9inputform = .sbss:0x81698D00; // type:object size:0x1 data:byte
|
||||
csCharColor__Q29textinput9inputform = .sbss:0x81698D04; // type:object size:0x1 data:byte
|
||||
csZiStringColorLeft__Q29textinput9inputform = .sbss:0x81698D08; // type:object size:0x1 data:byte
|
||||
csZiStringNonSelectColorRight__Q29textinput9inputform = .sbss:0x81698D0C; // type:object size:0x1 data:byte
|
||||
csZiStringColorRight__Q29textinput9inputform = .sbss:0x81698D10; // type:object size:0x1 data:byte
|
||||
csUnderlateColor__Q29textinput9inputform = .sbss:0x81698D14; // type:object size:0x1 data:byte
|
||||
csUnInputedWCharColorSpace__Q29textinput9inputform = .sbss:0x81698D18; // type:object size:0x1 data:byte
|
||||
lbl_81698D1C = .sbss:0x81698D1C; // type:object size:0x4 align:4 data:float
|
||||
csUnInputedWCharColor__Q29textinput9inputform = .sbss:0x81698D00; // type:object size:0x4 data:4byte
|
||||
csCharColor__Q29textinput9inputform = .sbss:0x81698D04; // type:object size:0x4 data:4byte
|
||||
csZiStringColorLeft__Q29textinput9inputform = .sbss:0x81698D08; // type:object size:0x4 data:4byte
|
||||
csZiStringNonSelectColorRight__Q29textinput9inputform = .sbss:0x81698D0C; // type:object size:0x4 data:4byte
|
||||
csZiStringColorRight__Q29textinput9inputform = .sbss:0x81698D10; // type:object size:0x4 data:4byte
|
||||
csUnderlateColor__Q29textinput9inputform = .sbss:0x81698D14; // type:object size:0x4 data:4byte
|
||||
csUnInputedWCharColorSpace__Q29textinput9inputform = .sbss:0x81698D18; // type:object size:0x4 data:4byte
|
||||
sfColorPhase__Q29textinput9inputform = .sbss:0x81698D1C; // type:object size:0x4 align:4 data:float
|
||||
lbl_81698D20 = .sbss:0x81698D20; // type:object size:0x4 data:4byte
|
||||
s_dakuten_map__Q29textinput4util = .sbss:0x81698D28; // type:object size:0x8 scope:local data:4byte
|
||||
s_handaku_map__Q29textinput4util = .sbss:0x81698D30; // type:object size:0x8 scope:local data:4byte
|
||||
|
||||
10
configure.py
10
configure.py
@@ -816,7 +816,7 @@ config.libs = [
|
||||
Object(Matching, "scene/memoryCard/iplMemoryCardBase.cpp"),
|
||||
Object(NonMatching, "scene/memoryCard/iplMemoryCardManager.cpp"),
|
||||
Object(Matching, "scene/memoryCard/iplGCSaveData.cpp"),
|
||||
Object(NonMatching, "scene/memoryCard/iplGCWindow.cpp"),
|
||||
Object(Matching, "scene/memoryCard/iplGCWindow.cpp"),
|
||||
]
|
||||
),
|
||||
IPLSection("textBalloon", [
|
||||
@@ -928,7 +928,7 @@ config.libs = [
|
||||
Object(Matching, "keyboard/tiLanguageIndependentData.cpp", extra_cflags=["-O4,p"], shift_jis=False),
|
||||
Object(Matching, "keyboard/tiTextInputBase.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(NonMatching, "keyboard/MyTiManager.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(NonMatching, "keyboard/MyTiInputForm.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(Matching, "keyboard/MyTiInputForm.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(Matching, "keyboard/MyTiLetterForm.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(Matching, "keyboard/MyTiBg.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(Matching, "keyboard/tiDebug.cpp", extra_cflags=["-O4,p"]),
|
||||
@@ -1697,11 +1697,11 @@ config.libs = [
|
||||
Object(Matching, "fa/pf_entry.c"),
|
||||
Object(NonMatching, "fa/pf_entry_iterator.c"),
|
||||
Object(NonMatching, "fa/pf_fat.c"),
|
||||
Object(NonMatching, "fa/pf_fat12.c"),
|
||||
Object(Matching, "fa/pf_fat12.c"),
|
||||
Object(Matching, "fa/pf_fat16.c"),
|
||||
Object(Matching, "fa/pf_fat32.c"),
|
||||
Object(Matching, "fa/pf_fatfs.c"),
|
||||
Object(NonMatching, "fa/pf_file.c"),
|
||||
Object(Matching, "fa/pf_file.c"),
|
||||
Object(NonMatching, "fa/pf_path.c"),
|
||||
Object(Matching, "fa/pf_sector.c"),
|
||||
Object(NonMatching, "fa/pf_volume.c"),
|
||||
@@ -1892,7 +1892,7 @@ config.libs = [
|
||||
]
|
||||
),
|
||||
RVLSDKLib("kpr", [
|
||||
Object(NonMatching, "kpr/kpr_lib.c"),
|
||||
Object(Matching, "kpr/kpr_lib.c"),
|
||||
]
|
||||
),
|
||||
RVLSDKLib("usbkbd", [
|
||||
|
||||
@@ -37,7 +37,11 @@ namespace ipl {
|
||||
u8 unk_0x06; // 0x06
|
||||
u8 unk_0x07; // 0x07
|
||||
u8 iconFmt[8]; // 0x08
|
||||
u16 anmFrameBits; // 0x10
|
||||
#ifdef IPL_MEMORY_CARD_MANAGER_CPP
|
||||
volatile u16 anmFrameBits;
|
||||
#else
|
||||
u16 anmFrameBits;
|
||||
#endif
|
||||
#ifdef IPL_MEMORY_CARD_MANAGER_CPP
|
||||
volatile s16 anmMax;
|
||||
#else
|
||||
|
||||
@@ -197,6 +197,7 @@ namespace textinput {
|
||||
bool mbMaintainCursorCache;
|
||||
#elif defined(MYTIINPUTFORM_IMPLEMENTATION)
|
||||
protected:
|
||||
void setDrawScrollY(const f32& scroll) { mfDrawScrollY = scroll; }
|
||||
u8 mDrawState[0x27];
|
||||
f32 mfDrawScrollY;
|
||||
u8 mDrawCacheState[0x14];
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace ipl {
|
||||
template <>
|
||||
class LinearIntp<VEC3> : public Interporation<VEC3> {
|
||||
public:
|
||||
LinearIntp() {}
|
||||
LinearIntp();
|
||||
virtual ~LinearIntp();
|
||||
VEC3 get() const;
|
||||
};
|
||||
|
||||
@@ -106,21 +106,21 @@ static inline s32 decodeACHuffman(s32 bitCount, const TMCHuffmanEntry* entry, co
|
||||
|
||||
s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_ptr, TMCCJPEGDecWork* work) {
|
||||
TMCHuffmanEntry dcEntry;
|
||||
TMCHuffmanEntry acEntry;
|
||||
const TMCHuffmanEntry* ac_fast;
|
||||
u8* huff_sym;
|
||||
const TMCHuffmanEntry* ac_fast;
|
||||
s32 idx;
|
||||
u32* huff_tbl;
|
||||
s32 bit_pos;
|
||||
u32 bit_data;
|
||||
const TMCHuffmanEntry* dc_fast;
|
||||
u32 tmp;
|
||||
s32 r;
|
||||
s32 blk0;
|
||||
s32 idx;
|
||||
TMCHuffmanEntry acEntry;
|
||||
s32 extra;
|
||||
s32 t;
|
||||
s32 zz;
|
||||
s32 q;
|
||||
u32 tmp;
|
||||
const TMCHuffmanEntry* dc_fast;
|
||||
const u8* zztbl;
|
||||
|
||||
bit_pos = work->bitCount;
|
||||
@@ -135,17 +135,14 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p
|
||||
|
||||
bit_pos = work->bitCount;
|
||||
bit_data = work->bitBuf;
|
||||
tmp = bit_pos - 8;
|
||||
tmp = ((bit_data >> tmp) & 0xFF) << 2;
|
||||
{
|
||||
dcEntry = readHuffmanEntry(dc_fast, tmp >> 2);
|
||||
dcEntry = readHuffmanEntry(dc_fast, (bit_data >> (bit_pos - 8)) & 0xFF);
|
||||
r = dcEntry.bitLength;
|
||||
extra = dcEntry.symbol;
|
||||
}
|
||||
|
||||
if (r != 0) {
|
||||
bit_pos -= r;
|
||||
work->bitCount = bit_pos;
|
||||
work->bitCount = bit_pos - r;
|
||||
r = extra;
|
||||
} else {
|
||||
huff_sym = work->pDCHuffSym;
|
||||
|
||||
@@ -58,8 +58,8 @@ ziU8 ZADP_Zi8SetPDremoveOpt(ziU8 option ZI_NEED_WORK) {
|
||||
}
|
||||
ziU32 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* output, ziU16 capacity, ziWChar* spelling, ziU16 spellingCapacity, ziU8 complete, ziU8 continuation ZI_NEED_WORK) {
|
||||
ziWChar folded;
|
||||
ziU32 entrySize, wordSize, copied;
|
||||
ziU8* entry;
|
||||
ziU32 entrySize;
|
||||
int wordSize, copied;
|
||||
ziU8* word;
|
||||
int index;
|
||||
int fallback = 0;
|
||||
@@ -70,18 +70,18 @@ ziU32 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar*
|
||||
return 0;
|
||||
}
|
||||
if (language == 1) {
|
||||
length &= 0x7F;
|
||||
length *= 2;
|
||||
}
|
||||
if (continuation == 0) {
|
||||
table = (ziPudHeader*)ZI_WORK->pudTable[ZI_WORK->pudCount - 1];
|
||||
index = 0;
|
||||
section = table->sections;
|
||||
while (index < table->languageCount && section->language != language) {
|
||||
index = 0;
|
||||
while (index < table->languageCount) {
|
||||
if (section->language == language) break;
|
||||
index++;
|
||||
section++;
|
||||
}
|
||||
if (table->languageCount <= index) {
|
||||
if (index >= table->languageCount) {
|
||||
Zi8LogError(0x4F6, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
@@ -90,78 +90,82 @@ ziU32 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar*
|
||||
ZI_WORK->unk_0x318 = 0;
|
||||
}
|
||||
for (;;) {
|
||||
entry = (ziU8*)ZI_WORK->unk_0x310;
|
||||
if (entry == 0) {
|
||||
word = (ziU8*)ZI_WORK->unk_0x310;
|
||||
if (word == 0) {
|
||||
Zi8LogError(0x4B3, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
while ((ziS32)ZI_WORK->unk_0x318 < (ziS32)ZI_WORK->unk_0x314) {
|
||||
word = entry + 1;
|
||||
wordSize = *entry;
|
||||
wordSize = *word++;
|
||||
entrySize = wordSize;
|
||||
if (language == 1) {
|
||||
if (*word < ZI_WORK->unk_0x17) goto next;
|
||||
if (ZI_WORK->unk_0x17 > *word) goto next;
|
||||
entrySize = wordSize - 1;
|
||||
word = entry + 2;
|
||||
word++;
|
||||
wordSize = ZiGetZHWordSize((ziWChar*)word, entrySize);
|
||||
} else if (ZI_WORK->unk_0x31E != 0 && complete != 0 && wordSize > length && word[length] == 0x20) goto matchText;
|
||||
if ((ziS32)length > (ziS32)wordSize || (complete != 0 && wordSize != length) || (complete == 0 && wordSize == length)) goto next;
|
||||
if (language == 1) {
|
||||
for (index = 0; index < length; index++) {
|
||||
if (word[index] != ((ziU8*)pattern)[index]) goto next;
|
||||
}
|
||||
goto matched;
|
||||
}
|
||||
matchText:
|
||||
for (index = 0; index < length; index++) {
|
||||
if (pattern[index] < 0xEFF1 || pattern[index] > 0xF37F) {
|
||||
folded = Zi8ConvertUC2WC(word[index], language, __zi8_work_data);
|
||||
if (folded != pattern[index] && (!ZI_WORK->unk_0x1F || !Zi8ChangeCharCase(0, &folded, language, __zi8_work_data) || folded != pattern[index])) goto next;
|
||||
} else if (pattern[index] != Zi8ConvertUC2Key(word[index], language, __zi8_work_data)) goto next;
|
||||
}
|
||||
matched:
|
||||
if (fallback) {
|
||||
ZI_WORK->unk_0x310 = 0;
|
||||
ZI_WORK->unk_0x318 = 0;
|
||||
ZI_WORK->unk_0x314 = 0;
|
||||
if (*pattern < 0xEFF1) *output = Zi8ConvertWC2Key(*pattern, language, __zi8_work_data);
|
||||
else *output = *pattern;
|
||||
return 1;
|
||||
}
|
||||
if (language == 1) {
|
||||
index = 0;
|
||||
for (copied = 0; index < (ziS32)wordSize && copied < capacity; copied++) {
|
||||
((ziU8*)output)[index] = word[index];
|
||||
((ziU8*)output)[index + 1] = word[index + 1];
|
||||
index += 2;
|
||||
}
|
||||
Zi8CopyZHSpelling(word, spelling, spellingCapacity, entrySize, wordSize);
|
||||
if ((ziS32)length > (ziS32)wordSize || (complete != 0 && wordSize != length) || (complete == 0 && wordSize == length)) {
|
||||
next:
|
||||
ZI_WORK->unk_0x318++;
|
||||
word += entrySize;
|
||||
} else {
|
||||
for (copied = 0; copied < wordSize && copied < capacity; copied++) {
|
||||
output[copied] = Zi8ConvertUC2WC(word[copied], language, __zi8_work_data);
|
||||
if (ZI_WORK->unk_0x31E != 0 && copied >= length && output[copied] == 0x20) {
|
||||
if (complete != 0 || copied >= length) break;
|
||||
goto next;
|
||||
if (language == 1) {
|
||||
for (index = 0; index < length; index++) {
|
||||
if (word[index] != ((ziU8*)pattern)[index]) goto next;
|
||||
}
|
||||
goto matched;
|
||||
}
|
||||
matchText:
|
||||
for (index = 0; index < length; index++) {
|
||||
if (pattern[index] >= 0xEFF1 && pattern[index] <= 0xF37F) {
|
||||
if (pattern[index] != Zi8ConvertUC2Key(word[index], language, __zi8_work_data)) goto next;
|
||||
} else {
|
||||
folded = Zi8ConvertUC2WC(word[index], language, __zi8_work_data);
|
||||
if (folded != pattern[index] && (!ZI_WORK->unk_0x1F || !Zi8ChangeCharCase(0, &folded, language, __zi8_work_data) || folded != pattern[index])) goto next;
|
||||
}
|
||||
}
|
||||
matched:
|
||||
if (fallback) {
|
||||
ZI_WORK->unk_0x310 = 0;
|
||||
ZI_WORK->unk_0x318 = 0;
|
||||
ZI_WORK->unk_0x314 = 0;
|
||||
if (*pattern >= 0xEFF1) *output = *pattern;
|
||||
else *output = Zi8ConvertWC2Key(*pattern, language, __zi8_work_data);
|
||||
return 1;
|
||||
}
|
||||
if (language == 1) {
|
||||
index = 0;
|
||||
for (copied = 0; index < (ziS32)wordSize && copied < capacity; copied++) {
|
||||
((ziU8*)output)[index] = word[index];
|
||||
((ziU8*)output)[index + 1] = word[index + 1];
|
||||
index += 2;
|
||||
}
|
||||
Zi8CopyZHSpelling(word, spelling, spellingCapacity, entrySize, wordSize);
|
||||
} else {
|
||||
for (copied = 0; copied < wordSize && copied < capacity; copied++) {
|
||||
output[copied] = Zi8ConvertUC2WC(word[copied], language, __zi8_work_data);
|
||||
if (ZI_WORK->unk_0x31E != 0 && copied >= length && output[copied] == 0x20) {
|
||||
if (complete != 0 || copied >= length) break;
|
||||
goto next;
|
||||
}
|
||||
}
|
||||
}
|
||||
ZI_WORK->unk_0x318++;
|
||||
ZI_WORK->unk_0x310 = (ziU32)(word + entrySize);
|
||||
Zi8LogError(100, __zi8_work_data);
|
||||
return (ziU8)copied;
|
||||
}
|
||||
ZI_WORK->unk_0x318++;
|
||||
ZI_WORK->unk_0x310 = (ziU32)(word + entrySize);
|
||||
Zi8LogError(100, __zi8_work_data);
|
||||
return (ziU8)copied;
|
||||
next:
|
||||
ZI_WORK->unk_0x318++;
|
||||
entry = word + entrySize;
|
||||
}
|
||||
if (length != 1 || complete == 0 || continuation != 0) {
|
||||
if (length == 1 && complete != 0 && continuation == 0) {
|
||||
complete = 0;
|
||||
fallback = 1;
|
||||
ZI_WORK->unk_0x318 = 0;
|
||||
} else {
|
||||
ZI_WORK->unk_0x310 = 0;
|
||||
ZI_WORK->unk_0x318 = 0;
|
||||
ZI_WORK->unk_0x314 = 0;
|
||||
return 0;
|
||||
}
|
||||
complete = 0;
|
||||
fallback = 1;
|
||||
ZI_WORK->unk_0x318 = 0;
|
||||
}
|
||||
}
|
||||
ziU32 Zi8MatchPUDdata(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* output, ziU16 capacity, ziU8 complete, ziU8 continuation ZI_NEED_WORK) {
|
||||
|
||||
@@ -42,39 +42,41 @@ ziU32 ZiDAWGGetChild(ziU32 node) {
|
||||
return node;
|
||||
}
|
||||
|
||||
ziU8* ZiDAWGGetSibling(ziU8* node) {
|
||||
ziU8* ZiDAWGGetSibling(ziU8* cursor) {
|
||||
ziU16 header;
|
||||
ziU8* cursor = node;
|
||||
ziU8* node;
|
||||
ziS32 depth;
|
||||
ziS32 offset;
|
||||
|
||||
depth = 0;
|
||||
node = cursor;
|
||||
offset = 0;
|
||||
header = nodeHeaderTable[node[0] >> 4];
|
||||
header = nodeHeaderTable[cursor[0] >> 4];
|
||||
if ((header & 4) == 0) {
|
||||
node = 0;
|
||||
return 0;
|
||||
} else {
|
||||
if ((header & 8) != 0) {
|
||||
if ((node[0] & 0xf) == 0xf) {
|
||||
node += 2;
|
||||
if ((cursor[0] & 0xf) == 0xf) {
|
||||
cursor += 2;
|
||||
} else {
|
||||
node += 1;
|
||||
cursor += 1;
|
||||
}
|
||||
|
||||
if ((header & 2) != 0) {
|
||||
if ((*node & 0x80) == 0) {
|
||||
node += 2;
|
||||
if ((*cursor & 0x80) != 0) {
|
||||
cursor += 3;
|
||||
} else {
|
||||
node += 3;
|
||||
cursor += 2;
|
||||
}
|
||||
}
|
||||
|
||||
if ((*node & 0x80) != 0) {
|
||||
node += (*node & 0x7f) * 0x10000 + (ziU32)node[1] * 0x100 +
|
||||
(ziU32)node[2] + 0x8000;
|
||||
if ((*cursor & 0x80) != 0) {
|
||||
node += (*cursor & 0x7f) * 0x10000 + (ziU32)cursor[1] * 0x100 +
|
||||
(ziU32)cursor[2] + 0x8000;
|
||||
} else {
|
||||
node += (ziU16)*node * 0x100 + (ziU32)node[1];
|
||||
node = cursor[1] + (node + (ziU16)*cursor * 0x100);
|
||||
}
|
||||
return node;
|
||||
} else {
|
||||
cursor = node;
|
||||
do {
|
||||
@@ -88,14 +90,16 @@ ziU8* ZiDAWGGetSibling(ziU8* node) {
|
||||
}
|
||||
|
||||
if ((header & 1) != 0) {
|
||||
if ((header & 2) == 0) {
|
||||
depth++;
|
||||
} else if ((*cursor & 0x80) != 0) {
|
||||
cursor += 3;
|
||||
offset += 3;
|
||||
if ((header & 2) != 0) {
|
||||
if ((*cursor & 0x80) != 0) {
|
||||
cursor += 3;
|
||||
offset += 3;
|
||||
} else {
|
||||
cursor += 2;
|
||||
offset += 2;
|
||||
}
|
||||
} else {
|
||||
cursor += 2;
|
||||
offset += 2;
|
||||
depth++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -113,11 +117,10 @@ ziU8* ZiDAWGGetSibling(ziU8* node) {
|
||||
}
|
||||
} while (0 < depth);
|
||||
|
||||
node += offset;
|
||||
return node + offset;
|
||||
}
|
||||
}
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
ziU8 ZiDAWGgetEOWattribute(ziU32 node) {
|
||||
@@ -158,57 +161,52 @@ ziU32 ZiDAWGGetGraphInfo(zi8DawgCtx* context, ziU8* entry, ziU16* keys) {
|
||||
ziS32 result;
|
||||
ziU32 end;
|
||||
ziU8 depth;
|
||||
ziU32 pair;
|
||||
|
||||
graph = ZiDAWGGetGraph(context);
|
||||
result = 0;
|
||||
pair = (((ziU16)entry[0] << 8) + entry[1]);
|
||||
if (pair != 0) {
|
||||
if ((((ziU16)entry[0] << 8) + entry[1]) != 0 || (((ziU16)entry[2] << 8) + entry[3]) != 0) {
|
||||
return 0;
|
||||
}
|
||||
pair = (((ziU16)entry[2] << 8) + entry[3]);
|
||||
if (pair == 0) {
|
||||
end = (ziU32)(entry + (((ziU16)entry[4] << 8) + entry[5] + 1) * 10);
|
||||
entry += 10;
|
||||
depth = 0;
|
||||
while ((depth < 2) && (*keys != 0)) {
|
||||
if ((*keys < 0xeff1) || (0xf010 < *keys)) {
|
||||
break;
|
||||
}
|
||||
|
||||
end = (ziU32)(entry + (((ziU16)entry[4] << 8) + entry[5] + 1) * 10);
|
||||
entry += 10;
|
||||
depth = 0;
|
||||
while ((depth < 2) && (*keys != 0)) {
|
||||
if (*keys >= 0xeff1 && *keys <= 0xf010) {
|
||||
goto checkEntry;
|
||||
while (1) {
|
||||
if (*keys == (ziS32)(entry[3] + ((ziU16)entry[2] << 8))) {
|
||||
if (*keys == (ziS32)(((ziU16)entry[2] << 8) + entry[3])) {
|
||||
break;
|
||||
}
|
||||
entry += (entry[1] + ((ziU16)entry[0] << 8)) * 10 + 10;
|
||||
entry += (((ziU16)entry[0] << 8) + entry[1]) * 10 + 10;
|
||||
checkEntry:
|
||||
if (((ziU32)entry >= end) ||
|
||||
(*keys == (ziS32)(entry[3] + ((ziU16)entry[2] << 8)))) {
|
||||
(*keys == (ziS32)(((ziU16)entry[2] << 8) + entry[3]))) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ((ziU32)entry >= end) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
result = graph + (ziU32)entry[4] * 0x10000 + ((ziU16)entry[5] << 8) +
|
||||
entry[6];
|
||||
((zi8DawgCtx*)context)->unk_0x338 =
|
||||
graph + (ziU32)entry[7] * 0x10000 + ((ziU16)entry[8] << 8) +
|
||||
entry[9];
|
||||
if (((zi8DawgCtx*)context)->unk_0x338 == graph) {
|
||||
((zi8DawgCtx*)context)->unk_0x338 = 0;
|
||||
}
|
||||
|
||||
if ((entry[1] + ((ziU16)entry[0] << 8)) == 0) {
|
||||
break;
|
||||
}
|
||||
|
||||
end = (ziU32)(entry + (entry[1] + ((ziU16)entry[0] << 8)) * 10 + 10);
|
||||
entry += 10;
|
||||
depth++;
|
||||
keys++;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if ((ziU32)entry >= end) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
result = graph + (ziU32)entry[4] * 0x10000 + (((ziU16)entry[5] << 8) + entry[6]);
|
||||
((zi8DawgCtx*)context)->unk_0x338 =
|
||||
graph + (ziU32)entry[7] * 0x10000 + (((ziU16)entry[8] << 8) + entry[9]);
|
||||
if (((zi8DawgCtx*)context)->unk_0x338 == graph) {
|
||||
((zi8DawgCtx*)context)->unk_0x338 = 0;
|
||||
}
|
||||
|
||||
if ((((ziU16)entry[0] << 8) + entry[1]) == 0) {
|
||||
break;
|
||||
}
|
||||
|
||||
end = (ziU32)(entry + (((ziU16)entry[0] << 8) + entry[1]) * 10 + 10);
|
||||
entry += 10;
|
||||
depth++;
|
||||
keys++;
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
@@ -20,13 +20,12 @@ typedef struct ziChineseEntry {
|
||||
ziU8 offsetLow[2];
|
||||
} ziChineseEntry;
|
||||
|
||||
ziU8 Zi8GetCandidatesOrCount(ziGetParam*, ziSearchState* ZI_NEED_WORK);
|
||||
ziU32 Zi8GetCandidatesOrCount(ziGetParam*, ziSearchState* ZI_NEED_WORK);
|
||||
ziU8 Zi8GetFormatVersion(ziU8 ZI_NEED_WORK);
|
||||
ziPtr Zi8GetTableAddress(ziU8, ziU8 ZI_NEED_WORK);
|
||||
ziU16 Zi8Uni2Ord(ziWChar ZI_NEED_WORK);
|
||||
|
||||
ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
|
||||
int count;
|
||||
int offset;
|
||||
ziU8 group;
|
||||
ziU8 remaining;
|
||||
@@ -35,9 +34,10 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
|
||||
ziSearchState search;
|
||||
ziGetParam request;
|
||||
ziWChar ordinals[65];
|
||||
int length;
|
||||
int count;
|
||||
int unmatched;
|
||||
ziChineseEntry* entry;
|
||||
ziChineseEntry* table;
|
||||
ziU8* data;
|
||||
ziU8 formats[8] = {1, 5, 0, 0, 0, 0, 0, 0};
|
||||
ziU32 savedFormats = ZI_WORK->unk_0x1410;
|
||||
@@ -54,10 +54,10 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
|
||||
return 0;
|
||||
}
|
||||
if (language != 1) {
|
||||
for (length = 0; word[length] != 0; length++) {
|
||||
if (word[length] >= 0xEFF1 || length == 64) return 0;
|
||||
for (count = 0; word[count] != 0; count++) {
|
||||
if (word[count] >= 0xEFF1 || count == 64) return 0;
|
||||
}
|
||||
((ziU8*)&search.length)[0] = length;
|
||||
((ziU8*)&search.length)[0] = count;
|
||||
((ziU8*)&search.flags)[2] = 1;
|
||||
((ziU16*)&search.capacity)[0] = 64;
|
||||
search.word = word;
|
||||
@@ -67,7 +67,7 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
|
||||
request.context = 1;
|
||||
request.getOptions = 0x81;
|
||||
request.elements = word;
|
||||
request.elementCount = length;
|
||||
request.elementCount = count;
|
||||
request.currentWord = 0;
|
||||
request.wordCharCount = 0;
|
||||
request.candidates = ordinals;
|
||||
@@ -92,20 +92,22 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
|
||||
if (count != 0) return 1;
|
||||
}
|
||||
if (language == 1) {
|
||||
length = 0;
|
||||
count = 0;
|
||||
do {
|
||||
ordinals[length] = Zi8Uni2Ord(word[length], __zi8_work_data);
|
||||
if (ordinals[length] == 0xFFFF) return 0;
|
||||
length++;
|
||||
if (length == 64) return 0;
|
||||
} while (word[length] != 0);
|
||||
ordinals[count] = Zi8Uni2Ord(word[count], __zi8_work_data);
|
||||
if (ordinals[count] == 0xFFFF) return 0;
|
||||
count++;
|
||||
if (count == 64) return 0;
|
||||
} while (word[count] != 0);
|
||||
{
|
||||
if (length == 1) return 1;
|
||||
count = --length;
|
||||
if (count == 1) return 1;
|
||||
count--;
|
||||
ordinals[count] |= 0x8000;
|
||||
ZI_WORK->cangjieEnabled = Zi8GetFormatVersion(1, __zi8_work_data) & 2;
|
||||
entry = (ziChineseEntry*)Zi8GetTableAddress(1, 0, __zi8_work_data) + ordinals[0];
|
||||
data = (ziU8*)Zi8GetTableAddress(1, 1, __zi8_work_data) + ((entry->offsetHigh & 15) << 16 | ((entry->offsetLow[0] << 8) | entry->offsetLow[1]));
|
||||
table = (ziChineseEntry*)Zi8GetTableAddress(1, 0, __zi8_work_data);
|
||||
entry = table + ordinals[0];
|
||||
data = (ziU8*)Zi8GetTableAddress(1, 1, __zi8_work_data);
|
||||
data += ((entry->offsetHigh & 15) << 16 | ((entry->offsetLow[0] << 8) | entry->offsetLow[1]));
|
||||
if (ZI_WORK->cangjieEnabled != 0) {
|
||||
switch (*data & 7) {
|
||||
case 2:
|
||||
|
||||
@@ -87,8 +87,9 @@ s32 uhf_msc_blk_mount(FADisk* disk) {
|
||||
}
|
||||
|
||||
s32 uhf_msc_blk_pread(FADisk* disk, u8* buffer, u32 sector, u32 blocks, u32* completed) {
|
||||
s32 error;
|
||||
UHF_MSC_DEVICE* device;
|
||||
u16 transfer_blocks;
|
||||
s32 error;
|
||||
u32 block_size;
|
||||
u8* transfer_buffer;
|
||||
u32 transfer_limit;
|
||||
@@ -102,7 +103,17 @@ s32 uhf_msc_blk_pread(FADisk* disk, u8* buffer, u32 sector, u32 blocks, u32* com
|
||||
if (blocks == 0) {
|
||||
return 0;
|
||||
}
|
||||
device = uhf_msc_blk_find_device(disk);
|
||||
device = NULL;
|
||||
{
|
||||
u32 index;
|
||||
UHF_MSC_DEVICE* candidate;
|
||||
for (candidate = uhg_msc_blk_device_tbl, index = 0; index < 8; candidate++, index++) {
|
||||
if (candidate->disk == disk) {
|
||||
device = &uhg_msc_blk_device_tbl[index];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (device == NULL) {
|
||||
return -1;
|
||||
}
|
||||
@@ -127,7 +138,7 @@ s32 uhf_msc_blk_pread(FADisk* disk, u8* buffer, u32 sector, u32 blocks, u32* com
|
||||
transfer_buffer = buffer;
|
||||
}
|
||||
do {
|
||||
u16 transfer_blocks = transfer_limit;
|
||||
transfer_blocks = transfer_limit;
|
||||
if (blocks <= transfer_limit) {
|
||||
transfer_blocks = blocks;
|
||||
}
|
||||
@@ -186,7 +197,17 @@ s32 uhf_msc_blk_pwrite(FADisk* disk, u8* buffer, u32 sector, u32 blocks, u32* co
|
||||
if (blocks == 0) {
|
||||
return 0;
|
||||
}
|
||||
device = uhf_msc_blk_find_device(disk);
|
||||
device = NULL;
|
||||
{
|
||||
u32 index;
|
||||
UHF_MSC_DEVICE* candidate;
|
||||
for (candidate = uhg_msc_blk_device_tbl, index = 0; index < 8; candidate++, index++) {
|
||||
if (candidate->disk == disk) {
|
||||
device = &uhg_msc_blk_device_tbl[index];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (device == NULL) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -175,68 +175,70 @@ pf_s32 PFFAT12_WriteFATEntryWithBuf(PF_VOLUME* p_vol, pf_s16 cluster, pf_u16 val
|
||||
|
||||
pf_s32 PFFAT12_ReadFATEntryWithBuf(PF_VOLUME* p_vol , pf_u16 cluster , pf_u32* p_value ,
|
||||
PF_CACHE_PAGE* p_page ) {
|
||||
pf_s32 err;
|
||||
pf_u32 current_fat;
|
||||
pf_u32 sector;
|
||||
pf_u32 offset;
|
||||
struct {
|
||||
pf_u32 sector;
|
||||
pf_u32 current_fat;
|
||||
pf_s32 err;
|
||||
pf_u32 offset;
|
||||
} state;
|
||||
pf_s32 result;
|
||||
|
||||
#define LOAD_FAT_SECTOR(next_sector) \
|
||||
if (p_page->sector != sector + (next_sector)) { \
|
||||
if (p_page->sector != state.sector + (next_sector)) { \
|
||||
if (p_page->option == 1) { \
|
||||
for (err = 0; (pf_u16)err < p_vol->bpb.num_active_FATs; err++) { \
|
||||
VFiPFSEC_WriteFAT(p_vol, p_page->p_buf, p_page->sector + (pf_u16)err * p_vol->bpb.sectors_per_FAT, 0, p_vol->bpb.bytes_per_sector); \
|
||||
for (state.err = 0; (pf_u16)state.err < p_vol->bpb.num_active_FATs; state.err++) { \
|
||||
VFiPFSEC_WriteFAT(p_vol, p_page->p_buf, p_page->sector + (pf_u16)state.err * p_vol->bpb.sectors_per_FAT, 0, p_vol->bpb.bytes_per_sector); \
|
||||
} \
|
||||
} \
|
||||
err = VFiPFSEC_ReadFAT(p_vol, p_page->p_buf, sector + (next_sector), 0, p_vol->bpb.bytes_per_sector); \
|
||||
if (err != 0) { continue; } \
|
||||
p_page->sector = sector + (next_sector); \
|
||||
state.err = VFiPFSEC_ReadFAT(p_vol, p_page->p_buf, state.sector + (next_sector), 0, p_vol->bpb.bytes_per_sector); \
|
||||
if (state.err != 0) { continue; } \
|
||||
p_page->sector = state.sector + (next_sector); \
|
||||
}
|
||||
|
||||
offset = (pf_u16)(cluster + (cluster >> 1));
|
||||
sector = p_vol->bpb.active_FAT_sector + (offset >> p_vol->bpb.log2_bytes_per_sector) & 0xFFFF;
|
||||
state.offset = (pf_u16)(cluster + (cluster >> 1));
|
||||
state.sector = p_vol->bpb.active_FAT_sector + (state.offset >> p_vol->bpb.log2_bytes_per_sector) & 0xFFFF;
|
||||
if ((p_vol->bpb.ext_flags & 0x80) != 0) {
|
||||
current_fat = p_vol->bpb.ext_flags & (0x01 | 0x02 | 0x04);
|
||||
state.current_fat = p_vol->bpb.ext_flags & (0x01 | 0x02 | 0x04);
|
||||
} else {
|
||||
current_fat = 1;
|
||||
state.current_fat = 1;
|
||||
}
|
||||
err = 0;
|
||||
state.err = 0;
|
||||
while (PF_TRUE) {
|
||||
if (err == 0x1000 && p_vol->p_callback != PF_NULL) {
|
||||
if (state.err == 0x1000 && p_vol->p_callback != PF_NULL) {
|
||||
result = ((PF_VOLUME_CB)p_vol->p_callback)(p_vol->last_driver_error);
|
||||
if (result == 0) {
|
||||
err = 0;
|
||||
state.err = 0;
|
||||
continue;
|
||||
}
|
||||
if (result == 1 && p_vol->bpb.num_active_FATs >= 2 && current_fat < p_vol->bpb.num_active_FATs) {
|
||||
current_fat++;
|
||||
sector += p_vol->bpb.sectors_per_FAT;
|
||||
err = 0;
|
||||
if (result == 1 && p_vol->bpb.num_active_FATs >= 2 && state.current_fat < p_vol->bpb.num_active_FATs) {
|
||||
state.current_fat++;
|
||||
state.sector += p_vol->bpb.sectors_per_FAT;
|
||||
state.err = 0;
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
LOAD_FAT_SECTOR(0);
|
||||
offset &= p_vol->bpb.bytes_per_sector - 1;
|
||||
if (offset == (p_vol->bpb.bytes_per_sector - 1)) {
|
||||
*p_value = *(p_page->p_buf + offset);
|
||||
state.offset &= p_vol->bpb.bytes_per_sector - 1;
|
||||
if (state.offset == (p_vol->bpb.bytes_per_sector - 1)) {
|
||||
*p_value = *(p_page->p_buf + state.offset);
|
||||
if (p_page->option == 1) {
|
||||
for (err = 0; (pf_u16)err < p_vol->bpb.num_active_FATs; err++) {
|
||||
VFiPFSEC_WriteFAT(p_vol, p_page->p_buf, p_page->sector + (pf_u16)err * p_vol->bpb.sectors_per_FAT, 0, p_vol->bpb.bytes_per_sector);
|
||||
for (state.err = 0; (pf_u16)state.err < p_vol->bpb.num_active_FATs; state.err++) {
|
||||
VFiPFSEC_WriteFAT(p_vol, p_page->p_buf, p_page->sector + (pf_u16)state.err * p_vol->bpb.sectors_per_FAT, 0, p_vol->bpb.bytes_per_sector);
|
||||
}
|
||||
}
|
||||
err = VFiPFSEC_ReadFAT(p_vol, p_page->p_buf, sector + 1, 0, p_vol->bpb.bytes_per_sector);
|
||||
if (err != 0) { continue; }
|
||||
p_page->sector = sector + 1;
|
||||
state.err = VFiPFSEC_ReadFAT(p_vol, p_page->p_buf, state.sector + 1, 0, p_vol->bpb.bytes_per_sector);
|
||||
if (state.err != 0) { continue; }
|
||||
p_page->sector = state.sector + 1;
|
||||
*p_value += (pf_u16)(*p_page->p_buf) << 8;
|
||||
} else {
|
||||
*p_value = ((pf_u16)p_page->p_buf[offset + 1] << 8) + *(p_page->p_buf + offset);
|
||||
*p_value = ((pf_u16)p_page->p_buf[state.offset + 1] << 8) + *(p_page->p_buf + state.offset);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (err != 0) {
|
||||
if (state.err != 0) {
|
||||
*p_value = -1;
|
||||
return err;
|
||||
return state.err;
|
||||
}
|
||||
if ((cluster & 0x01) != 0) {
|
||||
*p_value = *p_value >> 4;
|
||||
|
||||
@@ -647,18 +647,16 @@ void PFFILE_Cursor_MoveToClusterEnd(PFFILE_FILE* file, pf_u32 size) {
|
||||
}
|
||||
}
|
||||
|
||||
PFFILE_SFD* PFFILE_GetSFD(PF_VOLUME* volume, PF_DIR_ENT* entry) {
|
||||
PFFILE_VOLUME_DIRS* volume_dirs = (PFFILE_VOLUME_DIRS*)volume;
|
||||
PFFILE_SFD* first_free_sfd = PF_NULL;
|
||||
PFFILE_SFD* sfd = volume_dirs->sfds;
|
||||
PFFILE_SFD* PFFILE_GetSFD(PFFILE_VOLUME_DIRS* volume_dirs, PF_DIR_ENT* entry) {
|
||||
pf_u32 first_free_index = 0;
|
||||
pf_u32 index = 0;
|
||||
PFFILE_SFD* first_free_sfd = PF_NULL;
|
||||
pf_u32 index;
|
||||
|
||||
for (; index < 5; index++, sfd++) {
|
||||
for (index = 0; index < 5; index++) {
|
||||
if ((volume_dirs->sfds[index].stat & 1) == 0 ||
|
||||
((volume_dirs->sfds[index].stat & 1) != 0 && (!volume_dirs->sfds[index].stat & 2) != 0)) {
|
||||
if (first_free_sfd == PF_NULL) {
|
||||
first_free_sfd = sfd;
|
||||
first_free_sfd = &volume_dirs->sfds[index];
|
||||
first_free_index = index;
|
||||
}
|
||||
} else if (entry->p_vol == volume_dirs->sfds[index].dir_entry.p_vol &&
|
||||
@@ -922,7 +920,7 @@ pf_s32 PFFILE_p_fopen(PF_VOLUME* volume, PF_STR* path, pf_u32 open_mode,
|
||||
}
|
||||
}
|
||||
volume = entry.p_vol;
|
||||
sfd = PFFILE_GetSFD(volume, &entry);
|
||||
sfd = PFFILE_GetSFD((PFFILE_VOLUME_DIRS*)volume, &entry);
|
||||
if (sfd == PF_NULL) {
|
||||
return 0x15;
|
||||
}
|
||||
@@ -1409,7 +1407,7 @@ pf_s32 PFFILE_FsexecOpenFile(PF_DIR_ENT* entry, PFFILE_ENT_ITER* iter,
|
||||
} else {
|
||||
PFENT_getcurrentDateTimeForEnt(&entry->access_date, &access_time);
|
||||
}
|
||||
sfd = PFFILE_GetSFD(volume, entry);
|
||||
sfd = PFFILE_GetSFD((PFFILE_VOLUME_DIRS*)volume, entry);
|
||||
if (sfd == PF_NULL) {
|
||||
return 0x15;
|
||||
}
|
||||
|
||||
@@ -144,8 +144,8 @@ const u16 kprLookupTable437[] = {
|
||||
0x00B0, 0x2219, 0x00B7, 0x221A, 0x207F, 0x00B2, 0x25A0, 0x00A0,
|
||||
};
|
||||
|
||||
static void (*kprProcDeadKeysFP)(KPRQueue* queue);
|
||||
static void (*kprProcRomajiFP)(KPRQueue* queue);
|
||||
static void (*kprProcDeadKeysFP)(KPRQueue* queue) = NULL;
|
||||
static void (*kprProcRomajiFP)(KPRQueue* queue) = NULL;
|
||||
const char* __KPRVersion = "<< RVL_SDK - KPR \trelease build: Apr 20 2010 11:21:44 (0x4199_60831) >>";
|
||||
|
||||
void KPRProcessDeadKeys(KPRQueue* queue);
|
||||
|
||||
@@ -135,10 +135,14 @@ s32 NHTTPi_SocSend_sub(s32 socket, const char* data, u32 length, s32 flags) {
|
||||
if(head>length) head=length;
|
||||
NHTTPi_memcpy(buffer,data,head);
|
||||
result=SOSend(socket,buffer,head,flags);
|
||||
if(result<=0) return result;
|
||||
sent=result;
|
||||
if((u32)result<head) return result;
|
||||
data+=result; length-=result;
|
||||
if (result > 0) {
|
||||
sent = result;
|
||||
if ((u32)result < head) return result;
|
||||
data += result;
|
||||
length -= result;
|
||||
} else {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
if((s32)length>0) {
|
||||
head=length&~31;
|
||||
|
||||
@@ -102,23 +102,25 @@ s32 NHTTPi_strToInt(const char* string, s32 length) {
|
||||
return value;
|
||||
}
|
||||
|
||||
static inline u32 TakeDecimalDigit(u32* remaining, u32 scale) {
|
||||
u32 digit = *remaining / scale;
|
||||
*remaining -= digit * scale;
|
||||
return digit;
|
||||
}
|
||||
|
||||
s32 NHTTPi_intToStr(char* destination, u32 value) {
|
||||
u32 scales[9]={1000000000,100000000,10000000,1000000,100000,10000,1000,100,10};
|
||||
char* output;
|
||||
int digit;
|
||||
BOOL started;
|
||||
s32 length;
|
||||
output = destination;
|
||||
length = 0;
|
||||
started = FALSE;
|
||||
for(digit=0; digit<9; ++digit) {
|
||||
if(value>=scales[digit]) {
|
||||
u32 quotient=value/scales[digit];
|
||||
u32 quotient=TakeDecimalDigit(&value, scales[digit]);
|
||||
started=TRUE;
|
||||
++length;
|
||||
*output++=quotient+'0';
|
||||
value-=quotient*scales[digit];
|
||||
} else if(started) { *output++='0'; ++length; }
|
||||
destination[length++]=quotient+'0';
|
||||
} else if(started) { destination[length++]='0'; }
|
||||
}
|
||||
destination[length]=value+'0';
|
||||
return length+1;
|
||||
|
||||
@@ -523,7 +523,7 @@ void InputForm::calc() {
|
||||
if (meEditMode == EM_Edit) {
|
||||
height = 2.0f * getLineHeight();
|
||||
boundY = (mDefaultBoundTrans.y - (height - mDefaultBoundSize.height) / 2.0f) - mfScroll;
|
||||
} else mfDrawScrollY = 0.0f;
|
||||
} else setDrawScrollY(0.0f);
|
||||
mpBoundPane->SetSize(nw4r::lyt::Size(mpBoundPane->GetSize().width, height));
|
||||
mpBoundPane->SetTranslate(nw4r::math::VEC2(mDefaultBoundTrans.x, boundY));
|
||||
mpBoundPane->CalculateMtx(mDrawInfo);
|
||||
|
||||
@@ -90,6 +90,12 @@ MemCardEventHandler::~MemCardEventHandler() {}
|
||||
|
||||
MemoryBaseEvent::MemoryBaseEvent(MemoryBase* memoryBase) : mpBase(memoryBase) {}
|
||||
|
||||
} // namespace scene
|
||||
namespace math {
|
||||
inline LinearIntp<VEC3>::LinearIntp() {}
|
||||
}
|
||||
namespace scene {
|
||||
|
||||
void GCWindow::init(const math::VEC3& translate, MemoryCardManager* manager, u8 cardState, short cardIndex) {
|
||||
mActive = true;
|
||||
mFlags1[cardState] = 0;
|
||||
|
||||
@@ -345,12 +345,10 @@ void MemoryCardManager::update_change_cardstate(u8 slot) {
|
||||
GXTexObj* MemoryCardManager::create_icon(u8 slot, s16 index) {
|
||||
memorycard::IconState (*icons)[0x7f] = reinterpret_cast<memorycard::IconState(*)[0x7f]>(memorycard::getIconStateArray());
|
||||
int total = 0;
|
||||
u32 file = mFile[slot][index].fileNo;
|
||||
s16 frame = 0;
|
||||
u32 file = mFile[slot][index].fileNo;
|
||||
do {
|
||||
u32 shift = frame << 1;
|
||||
frame++;
|
||||
total += ((icons[slot][file].anmFrameBits >> shift) & 3) * 4;
|
||||
total += ((icons[slot][file].anmFrameBits >> (frame++ << 1)) & 3) * 4;
|
||||
if (mFileCell[slot][file].iconAnmCounter <= total) {
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ from pathlib import Path
|
||||
|
||||
EXPECTED_DOL_SHA1 = "26116613f624061ba99c8d1a299aaa6efa85670d"
|
||||
EXPECTED_TOTAL_UNITS = 1027
|
||||
EXPECTED_TOTAL_CODE = 2995188
|
||||
EXPECTED_TOTAL_CODE = 2995176
|
||||
EXPECTED_TOTAL_DATA = 1832684
|
||||
EXPECTED_TOTAL_FUNCTIONS = 12563
|
||||
INTEGER_PATTERN = re.compile(r"-?(0|[1-9][0-9]*)\Z")
|
||||
|
||||
395
tools/decomp-assist/data-d11.attempts.md
Normal file
395
tools/decomp-assist/data-d11.attempts.md
Normal file
@@ -0,0 +1,395 @@
|
||||
# Data d11 attempts
|
||||
|
||||
Baseline HEAD 32f358cd, matching origin/main at start.
|
||||
All four pools contain no strings and are identical.
|
||||
|
||||
## zidawg1
|
||||
- Rename @etb_81330728 -> @34: extabindex relocation at entry for ZiDAWGGetChild identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @eti_8133144C -> @35: extabindex relocation at entry for ZiDAWGGetChild identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @etb_81330730 -> @85: extabindex relocation at entry for ZiDAWGGetSibling identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @eti_81331458 -> @86: extabindex relocation at entry for ZiDAWGGetSibling identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @etb_81330738 -> @108: extabindex relocation at entry for ZiDAWGgetCHARattribute identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @eti_81331464 -> @109: extabindex relocation at entry for ZiDAWGgetCHARattribute identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @etb_81330740 -> @159: extabindex relocation at entry for ZiDAWGGetGraphInfo identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @eti_81331470 -> @160: extabindex relocation at entry for ZiDAWGGetGraphInfo identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- extab: target/source lengths 32/32, byte differences [(24, 56, 64)].
|
||||
- extabindex: target/source lengths 48/48, byte differences [(19, 12, 4), (43, 24, 8)].
|
||||
|
||||
## zi8uwd
|
||||
- Rename @etb_81330700 -> @69: extabindex relocation at entry for Zi8_81480224 identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @eti_81331410 -> @70: extabindex relocation at entry for Zi8_81480224 identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @etb_81330708 -> @80: extabindex relocation at entry for Zi8_814803F4 identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @eti_8133141C -> @81: extabindex relocation at entry for Zi8_814803F4 identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @etb_81330710 -> @88: extabindex relocation at entry for Zi8_8148047C identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @eti_81331428 -> @89: extabindex relocation at entry for Zi8_8148047C identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @etb_81330718 -> @248: extabindex relocation at entry for Zi8MatchUWDdata identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @eti_81331434 -> @249: extabindex relocation at entry for Zi8MatchUWDdata identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- extab: target/source lengths 32/32, byte differences [(24, 104, 88)].
|
||||
- extabindex: target/source lengths 48/48, byte differences [(42, 7, 8), (43, 192, 48)].
|
||||
|
||||
## zi8pud2
|
||||
- Rename @etb_813306C0 -> @52: extabindex relocation at entry for ZiGetZHWordSize identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @eti_813313B0 -> @53: extabindex relocation at entry for ZiGetZHWordSize identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @etb_813306C8 -> @76: extabindex relocation at entry for Zi8CopyZHSpelling identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @eti_813313BC -> @77: extabindex relocation at entry for Zi8CopyZHSpelling identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @etb_813306D0 -> @86: extabindex relocation at entry for ZADP_Zi8SetPDremoveOpt identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @eti_813313C8 -> @87: extabindex relocation at entry for ZADP_Zi8SetPDremoveOpt identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @etb_813306D8 -> @215: extabindex relocation at entry for Zi8MatchPUDdata_ZHS identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @eti_813313D4 -> @216: extabindex relocation at entry for Zi8MatchPUDdata_ZHS identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @etb_813306E0 -> @241: extabindex relocation at entry for Zi8MatchPUDdata identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @eti_813313E0 -> @242: extabindex relocation at entry for Zi8MatchPUDdata identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @etb_813306E8 -> @255: extabindex relocation at entry for Zi8_8147FD7C identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @eti_813313EC -> @256: extabindex relocation at entry for Zi8_8147FD7C identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- extab: target/source lengths 48/48, byte differences [].
|
||||
- extabindex: target/source lengths 72/72, byte differences [(43, 136, 120)].
|
||||
|
||||
## ziswordw
|
||||
- Rename @etb_81330760 -> @127: extabindex relocation at entry for Zi8IsWordW identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @eti_813314A0 -> @128: extabindex relocation at entry for Zi8IsWordW identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @etb_81330768 -> @174: extabindex relocation at entry for Zi8ConvertUC2UserKey identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- Rename @eti_813314AC -> @175: extabindex relocation at entry for Zi8ConvertUC2UserKey identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
|
||||
- extab: target/source lengths 16/16, byte differences [(0, 48, 40)].
|
||||
- extabindex: target/source lengths 24/24, byte differences [(7, 128, 136)].
|
||||
- .sdata2: target/source lengths 8/8, byte differences [].
|
||||
|
||||
- ZiDAWGGetChild attempt 1, widen decoded header to match explicit narrowing: instruction-exact 2, identical non-text bytes 0, raw byte matches 76, target/source function sizes (272, 260). Reverted.
|
||||
- ZiDAWGGetChild attempt 2, combine encoded displacement before assigning it: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (272, 272). Reverted.
|
||||
- ZiDAWGGetChild attempt 3, combine short displacement in one assignment: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (272, 272). Reverted.
|
||||
- ZiDAWGGetSibling attempt 1, decode header in full word temporary: instruction-exact 2, identical non-text bytes 0, raw byte matches 76, target/source function sizes (524, 488). Reverted.
|
||||
- ZiDAWGGetSibling attempt 2, invert long-offset branch to target direction: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (524, 516). Reverted.
|
||||
- ZiDAWGGetSibling attempt 3, retain 16-bit mask in long sibling displacement: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (524, 520). Reverted.
|
||||
- ZiDAWGgetCHARattribute attempt 1, decode low attribute bytes as one value: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (240, 240). Reverted.
|
||||
- ZiDAWGgetCHARattribute attempt 2, widen key during decode: instruction-exact 2, identical non-text bytes 0, raw byte matches 76, target/source function sizes (240, 212). Reverted.
|
||||
- ZiDAWGgetCHARattribute attempt 3, declare output before decoded key: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (240, 240). Reverted.
|
||||
- ZiDAWGGetGraphInfo attempt 1, keep two header predicates together: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (536, 520). Reverted.
|
||||
- ZiDAWGGetGraphInfo attempt 2, decode entry header without persistent pair local: instruction-exact 2, identical non-text bytes 32, raw byte matches 78, target/source function sizes (536, 520). Selected.
|
||||
- ZiDAWGGetGraphInfo attempt 3, widen depth used as loop counter: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (536, 516). Reverted.
|
||||
- Zi8_81480224 attempt 1, use separate insertion index instead of recycling length: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (464, 464). Reverted.
|
||||
- Zi8_81480224 attempt 2, compare candidates through incrementing text cursors: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (464, 464). Reverted.
|
||||
- Zi8_81480224 attempt 3, declare candidate length after list pointers: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (464, 464). Reverted.
|
||||
- Zi8MatchUWDdata attempt 1, use 32-bit return temporary for converted entry language: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (1984, 2100). Reverted.
|
||||
- Zi8MatchUWDdata attempt 2, keep returned entry length in integer temporary: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (1984, 2096). Reverted.
|
||||
- Zi8MatchUWDdata attempt 3, use dictionary base fields directly for initial cursor: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (1984, 2096). Reverted.
|
||||
- ZADP_Zi8SetPDremoveOpt attempt 1, return previous option as a full word: instruction-exact 4, identical non-text bytes 48, raw byte matches 119, target/source function sizes (84, 84). Reverted.
|
||||
- ZADP_Zi8SetPDremoveOpt attempt 2, retain work pointer explicitly before previous option: build failed, reverted. lib\zi8pud2.c # ------------------------------------------------------ # 54: ziWorkData* work = ZI_WORK; # Error: ^^^^^^^^^^ # (10140) undefined identifier 'ziWorkData' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed.
|
||||
- ZADP_Zi8SetPDremoveOpt attempt 3, scope previous option initialization at declaration: instruction-exact 4, identical non-text bytes 48, raw byte matches 119, target/source function sizes (84, 84). Reverted.
|
||||
- Zi8MatchPUDdata_ZHS attempt 1, replace compound section-loop condition with explicit language break: instruction-exact 4, identical non-text bytes 48, raw byte matches 119, target/source function sizes (1416, 1400). Reverted.
|
||||
- Zi8MatchPUDdata_ZHS attempt 2, let byte overflow implement Chinese doubled-length mask: instruction-exact 4, identical non-text bytes 48, raw byte matches 119, target/source function sizes (1416, 1392). Reverted.
|
||||
- Zi8MatchPUDdata_ZHS attempt 3, keep Chinese entry length in signed integer: instruction-exact 4, identical non-text bytes 48, raw byte matches 119, target/source function sizes (1416, 1400). Reverted.
|
||||
- Zi8MatchPUDdata attempt 1, use byte result matching wrapper return test: instruction-exact 4, identical non-text bytes 48, raw byte matches 118, target/source function sizes (200, 196). Reverted.
|
||||
- Zi8MatchPUDdata attempt 2, initialize result at call inside explicit loop block: instruction-exact 4, identical non-text bytes 0, raw byte matches 116, target/source function sizes (200, 228). Reverted.
|
||||
- Zi8MatchPUDdata attempt 3, scope loop flag through explicit zero comparison: instruction-exact 4, identical non-text bytes 48, raw byte matches 119, target/source function sizes (200, 200). Reverted.
|
||||
- Zi8IsWordW attempt 1, initialize search before saving formats and count: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source function sizes (1664, 1672). Reverted.
|
||||
- Zi8IsWordW attempt 2, invert format count branch to target order: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source function sizes (1664, 1672). Reverted.
|
||||
- Zi8IsWordW attempt 3, keep candidate count as unsigned word: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source function sizes (1664, 1672). Reverted.
|
||||
|
||||
Unwind-name experiment reverted in full: source-generated @ numbers changed extabindex fuzzy pairing but no matched_data count increased; original extraction names are retained. No symbol extents or addresses changed.
|
||||
- Zi8MatchPUDdata_ZHS followup, preserve target 16-bit narrowing for section count and offset bytes: instruction-exact 4, identical non-text bytes 120, raw byte matches 120, target/source sizes (1416, 1416). Selected.
|
||||
- ZiDAWGGetSibling followup, combine target branch direction and 16-bit sibling displacement narrowing: instruction-exact 2, identical non-text bytes 32, raw byte matches 78, target/source sizes (524, 520). Reverted.
|
||||
- ZiDAWGGetGraphInfo followup, narrow entry size and key words as shown in target instruction sequence: instruction-exact 2, identical non-text bytes 32, raw byte matches 78, target/source sizes (536, 520). Reverted.
|
||||
- ZADP_Zi8SetPDremoveOpt followup, explicit typed work pointer using actual SDK work structure: instruction-exact 4, identical non-text bytes 0, raw byte matches 118, target/source sizes (84, 96). Reverted.
|
||||
- Zi8IsWordW followup: correct local Zi8GetCandidatesOrCount return prototype from ziU8 to ziU32. Definition and both declarations in zi8getc2.c return ziU32; target caller moves r3 into r29 without byte narrowing. This changes only ziswordw output.
|
||||
- Zi8IsWordW attempt 4, initialize Chinese decoding locals in target order: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1704). Reverted.
|
||||
- Zi8IsWordW attempt 5, zero search aggregate after saving original formats: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1648). Reverted.
|
||||
- Zi8IsWordW attempt 6, match request assignments to target word pointer before capacity: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1668). Reverted.
|
||||
- Zi8IsWordW attempt 7, use typed byte-pair fields for Chinese decoded offset: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1676). Reverted.
|
||||
- Zi8IsWordW attempt 8, combined target initialization and request order: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1684). Reverted.
|
||||
- ZiDAWGGetGraphInfo further followup, return zero on unsupported key as target direct-return block proves: instruction-exact 2, identical non-text bytes 32, raw byte matches 78, target/source sizes (536, 528). Reverted.
|
||||
- ZiDAWGGetGraphInfo further followup, match top-tested child-search loop with explicit extent exit: instruction-exact 2, identical non-text bytes 32, raw byte matches 77, target/source sizes (536, 492). Reverted.
|
||||
- ZiDAWGGetSibling further followup, explicit target halfword narrowing at header-table load: instruction-exact 2, identical non-text bytes 32, raw byte matches 79, target/source sizes (524, 524). Reverted.
|
||||
- Zi8MatchUWDdata further followup, advance typed result text cursor once before conversion loop: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source sizes (1984, 2112). Reverted.
|
||||
- ZiDAWGGetSibling halfword-load followup retained for combined validation: source size now 524 equals target; target lhzx-to-r0 then clrlwi-to-saved-register proves explicit halfword narrowing, instruction-exact counts stay 2/6. One extabindex record now has the exact length.
|
||||
- ZiDAWGGetGraphInfo combined followup, preserve invalid-key exit and decode graph offset in byte order: instruction-exact 2, identical non-text bytes 32, raw byte matches 79, target/source sizes (536, 528). Reverted.
|
||||
- ZiDAWGGetGraphInfo combined followup, group graph child-count header rejects in one condition: instruction-exact 2, identical non-text bytes 32, raw byte matches 79, target/source sizes (536, 528). Reverted.
|
||||
- ZiDAWGGetGraphInfo combined followup, split key range rejects matching direct target branches: instruction-exact 2, identical non-text bytes 80, raw byte matches 80, target/source sizes (536, 536). Selected.
|
||||
- Zi8MatchUWDdata remaining-data followup, reuse language parameter for early and final popped entries as target does: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source sizes (1984, 2092). Reverted.
|
||||
- Zi8MatchUWDdata remaining-data followup, scope continuation result independently: instruction-exact 2, identical non-text bytes 0, raw byte matches 76, target/source sizes (1984, 2108). Reverted.
|
||||
- Zi8MatchUWDdata remaining-data followup, combine independent continuation result and reused language: instruction-exact 2, identical non-text bytes 0, raw byte matches 76, target/source sizes (1984, 2104). Reverted.
|
||||
- Zi8IsWordW remaining-data followup, reorder genuine offset local after ordinal length: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1668). Reverted.
|
||||
- Count-reuse experiment initially failed to build because the scripted identifier change also changed search.length; restored, corrected the transformation to exclude member names, and retried.
|
||||
- Zi8IsWordW remaining-data followup, reuse count for length and candidate result matching target r29 lifetime: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1652). Reverted.
|
||||
- Zi8IsWordW remaining-data followup, fuse terminal Chinese length decrement into single-length test: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1652). Reverted.
|
||||
- Zi8IsWordW remaining-data followup, reorder genuine offset local after ordinal length: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1668). Reverted.
|
||||
- Zi8IsWordW final followup, split table base lookup and encoded entry offset: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1680). Reverted.
|
||||
- Zi8IsWordW final followup, reuse count and split table base lookup: instruction-exact 1, identical non-text bytes 32, raw byte matches 47, target/source sizes (1664, 1664). Selected.
|
||||
- Zi8IsWordW final followup, declare decoded offset as unsigned word with reused count: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1652). Reverted.
|
||||
- Zi8IsWordW final followup, keep count conversion result and selector in distinct scopes: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1680). Reverted.
|
||||
- Zi8IsWordW final followup, initialize groups and entry words with reused count: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1676). Reverted.
|
||||
- Zi8IsWordW selector followup, explicit decoded format selector before switch: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1672). Reverted.
|
||||
- Zi8IsWordW selector followup, initialize decoded format displacement to target default: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1672). Reverted.
|
||||
- Zi8IsWordW selector followup, decode selector into unsigned shift variable: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1672). Reverted.
|
||||
- Zi8IsWordW selector followup, factor selector size defaults before switch: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1660). Reverted.
|
||||
- Zi8MatchUWDdata loop followup, keep both prefix scan induction variables in the loop update: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source sizes (1984, 2100). Reverted.
|
||||
- Zi8MatchUWDdata loop followup, initialize ring scan cursor in its own loop: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source sizes (1984, 2096). Reverted.
|
||||
- Zi8MatchUWDdata loop followup, combine prefix and cursor scan loop induction variables: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source sizes (1984, 2100). Reverted.
|
||||
- Zi8MatchUWDdata loop followup, use preincrement prefix counter after character test: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source sizes (1984, 2096). Reverted.
|
||||
|
||||
## Coverage audit and remaining data classification
|
||||
- ZADP_Zi8SetPDremoveOpt: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 98.57143%, instruction-exact count retained.
|
||||
- Zi8MatchPUDdata_ZHS: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 72.59322%, instruction-exact count retained.
|
||||
- Zi8MatchPUDdata: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 99.1%, instruction-exact count retained.
|
||||
- Zi8_81480224: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 99.22414%, instruction-exact count retained.
|
||||
- Zi8MatchUWDdata: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 70.245964%, instruction-exact count retained.
|
||||
- ZiDAWGGetChild: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 93.60294%, instruction-exact count retained.
|
||||
- ZiDAWGGetSibling: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 86.854965%, instruction-exact count retained.
|
||||
- ZiDAWGgetCHARattribute: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 95.5%, instruction-exact count retained.
|
||||
- ZiDAWGGetGraphInfo: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 81.83582%, instruction-exact count retained.
|
||||
- Zi8IsWordW: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 83.33654%, instruction-exact count retained.
|
||||
- zidawg1: extab and extabindex bytes now identical, including all four owned exception records. No metadata renames or extent changes retained.
|
||||
- zi8pud2: extab and extabindex bytes now identical; explicit 16-bit section-count/offset decoding follows four target clrlwi instructions. No metadata changes.
|
||||
- zi8uwd: no literal/global data. Residual extab record for Zi8MatchUWDdata saves r19-r31 in target, r21-r31 in source; extabindex length is target 1984 versus source 2096. These are real code-generation differences, not name/extent errors. Other three extab records and their lengths match.
|
||||
- ziswordw: .sdata2 and extabindex bytes identical; residual extab for Zi8IsWordW saves r26-r31 in target, r27-r31 in source. Zi8ConvertUC2UserKey unwind bytes and instruction-exact function remain unchanged. The residual is code register allocation, not a data initializer or symbol-name mismatch.
|
||||
- No symbol-size adjustments, forced sections, alignment objects, volatile casts, or assembly added. All retained code is in owned units.
|
||||
|
||||
## Final per-symbol data audit
|
||||
- zidawg1
|
||||
- @etb_81330728, extab+0x0, size 8, ZiDAWGGetChild: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @etb_81330730, extab+0x8, size 8, ZiDAWGGetSibling: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @etb_81330738, extab+0x10, size 8, ZiDAWGgetCHARattribute: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @etb_81330740, extab+0x18, size 8, ZiDAWGGetGraphInfo: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @eti_8133144C, extabindex+0x0, size 12, ZiDAWGGetChild: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @eti_81331458, extabindex+0xc, size 12, ZiDAWGGetSibling: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @eti_81331464, extabindex+0x18, size 12, ZiDAWGgetCHARattribute: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @eti_81331470, extabindex+0x24, size 12, ZiDAWGGetGraphInfo: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- zi8uwd
|
||||
- @etb_81330700, extab+0x0, size 8, Zi8_81480224: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @etb_81330708, extab+0x8, size 8, Zi8_814803F4: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @etb_81330710, extab+0x10, size 8, Zi8_8148047C: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @etb_81330718, extab+0x18, size 8, Zi8MatchUWDdata: real code-derived metadata differences [('0x0', '0x68', '0x58')].
|
||||
- @eti_81331410, extabindex+0x0, size 12, Zi8_81480224: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @eti_8133141C, extabindex+0xc, size 12, Zi8_814803F4: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @eti_81331428, extabindex+0x18, size 12, Zi8_8148047C: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @eti_81331434, extabindex+0x24, size 12, Zi8MatchUWDdata: real code-derived metadata differences [('0x6', '0x7', '0x8'), ('0x7', '0xc0', '0x30')].
|
||||
- zi8pud2
|
||||
- @etb_813306C0, extab+0x0, size 8, ZiGetZHWordSize: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @etb_813306C8, extab+0x8, size 8, Zi8CopyZHSpelling: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @etb_813306D0, extab+0x10, size 8, ZADP_Zi8SetPDremoveOpt: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @etb_813306D8, extab+0x18, size 8, Zi8MatchPUDdata_ZHS: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @etb_813306E0, extab+0x20, size 8, Zi8MatchPUDdata: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @etb_813306E8, extab+0x28, size 8, Zi8_8147FD7C: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @eti_813313B0, extabindex+0x0, size 12, ZiGetZHWordSize: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @eti_813313BC, extabindex+0xc, size 12, Zi8CopyZHSpelling: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @eti_813313C8, extabindex+0x18, size 12, ZADP_Zi8SetPDremoveOpt: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @eti_813313D4, extabindex+0x24, size 12, Zi8MatchPUDdata_ZHS: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @eti_813313E0, extabindex+0x30, size 12, Zi8MatchPUDdata: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @eti_813313EC, extabindex+0x3c, size 12, Zi8_8147FD7C: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- ziswordw
|
||||
- @etb_81330760, extab+0x0, size 8, Zi8IsWordW: real code-derived metadata differences [('0x0', '0x30', '0x28')].
|
||||
- @etb_81330768, extab+0x8, size 8, Zi8ConvertUC2UserKey: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @eti_813314A0, extabindex+0x0, size 12, Zi8IsWordW: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- @eti_813314AC, extabindex+0xc, size 12, Zi8ConvertUC2UserKey: identical bytes; relocations pair by owning function and unwind entry.
|
||||
- lbl_81695018, .sdata2+0x0, size 1, : identical bytes; relocations pair by owning function and unwind entry.
|
||||
- lbl_81695019, .sdata2+0x1, size 1, : identical bytes; relocations pair by owning function and unwind entry.
|
||||
- lbl_8169501A, .sdata2+0x2, size 1, : identical bytes; relocations pair by owning function and unwind entry.
|
||||
- lbl_8169501B, .sdata2+0x3, size 1, : identical bytes; relocations pair by owning function and unwind entry.
|
||||
- lbl_8169501C, .sdata2+0x4, size 1, : identical bytes; relocations pair by owning function and unwind entry.
|
||||
- lbl_8169501D, .sdata2+0x5, size 1, : identical bytes; relocations pair by owning function and unwind entry.
|
||||
- lbl_8169501E, .sdata2+0x6, size 1, : identical bytes; relocations pair by owning function and unwind entry.
|
||||
- lbl_8169501F, .sdata2+0x7, size 1, : identical bytes; relocations pair by owning function and unwind entry.
|
||||
|
||||
## Final clean full gate
|
||||
```
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] objdiff: code 92/1664 data 80/80 functions 2/6 fuzzy 87.7019 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] instruction-exact functions: 2/6
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section .text size 1664 match 87.70192
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section extab size 32 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section extabindex size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGGetChild 93.60294
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGGetSibling 86.51145
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGgetCHARattribute 95.5
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGGetGraphInfo 80.268654
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] baseline: code 92/1664 data None functions 2 fuzzy 88.3149
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] objdiff: code 208/2656 data None/80 functions 2/4 fuzzy 77.6386 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] instruction-exact functions: 2/4
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] section .text size 2656 match 77.63856
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] section extab size 32 match 96.875
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] section extabindex size 48 match 95.83333
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] below 100: Zi8_81480224 99.22414
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] below 100: Zi8MatchUWDdata 70.245964
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] baseline: code 208/2656 data None functions 2 fuzzy 77.6386
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] objdiff: code 436/2136 data 120/120 functions 4/7 fuzzy 81.4288 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] instruction-exact functions: 4/7
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section .text size 2136 match 81.42884
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section extab size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section extabindex size 72 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] below 100: ZADP_Zi8SetPDremoveOpt 98.57143
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] below 100: Zi8MatchPUDdata_ZHS 72.19774
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] below 100: Zi8MatchPUDdata 99.1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] baseline: code 436/2136 data 48 functions 4 fuzzy 81.6910
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] objdiff: code 364/2028 data 32/48 functions 1/2 fuzzy 88.2229 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] instruction-exact functions: 1/2
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section .sdata2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section .text size 2028 match 88.22288
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section extab size 16 match 93.75
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section extabindex size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] below 100: Zi8IsWordW 85.64664
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] baseline: code 364/2028 data 8 functions 1 fuzzy 86.3274
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.57407 -> 88.57407
|
||||
global fuzzy_match_percent: 99.45531 -> 99.45609
|
||||
global complete_code_percent: 63.07103 -> 63.07103
|
||||
global matched_data_percent: 97.73032 -> 97.73993
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
Data lane incomplete for zi8uwd and ziswordw. All remaining non-exact code functions have at least three logged source attempts. No instruction-exact function count dropped.
|
||||
|
||||
## Orchestrator rejection and resumed worker
|
||||
Restored zidawg1.c and zi8pud2.c from current origin/main. Previous unwind-only changes are rejected: they lower function fuzzy scores, and redundant load masks are not accepted. Kept ziswordw.c. Future candidates must preserve every owned function fuzzy score and improve real target control flow/register use.
|
||||
|
||||
Live origin baseline 2f0f5a44c72cb84e23732e09fc8e75487c788f76 built in this worker tree, then owned source restored and rebuilt. Restored full gate passed with correct DOL hash. Function-by-function comparison:
|
||||
```
|
||||
zi8pud2 ZiIsPhoneticChar: 100.0 -> 100.0
|
||||
zi8pud2 ZiGetZHWordSize: 100.0 -> 100.0
|
||||
zi8pud2 Zi8CopyZHSpelling: 100.0 -> 100.0
|
||||
zi8pud2 ZADP_Zi8SetPDremoveOpt: 98.57143 -> 98.57143
|
||||
zi8pud2 Zi8MatchPUDdata_ZHS: 72.59322 -> 72.59322
|
||||
zi8pud2 Zi8MatchPUDdata: 99.1 -> 99.1
|
||||
zi8pud2 Zi8_8147FD7C: 100.0 -> 100.0
|
||||
zi8uwd Zi8_81480224: 99.22414 -> 99.22414
|
||||
zi8uwd Zi8_814803F4: 100.0 -> 100.0
|
||||
zi8uwd Zi8_8148047C: 100.0 -> 100.0
|
||||
zi8uwd Zi8MatchUWDdata: 70.245964 -> 70.245964
|
||||
zidawg1 ZiDAWGGetChild: 93.60294 -> 93.60294
|
||||
zidawg1 ZiDAWGGetSibling: 86.854965 -> 86.854965
|
||||
zidawg1 ZiDAWGgetEOWattribute: 100.0 -> 100.0
|
||||
zidawg1 ZiDAWGgetCHARattribute: 95.5 -> 95.5
|
||||
zidawg1 ZiDAWGGetGraph: 100.0 -> 100.0
|
||||
zidawg1 ZiDAWGGetGraphInfo: 81.83582 -> 81.83582
|
||||
ziswordw Zi8IsWordW: 83.33654 -> 85.64664
|
||||
ziswordw Zi8ConvertUC2UserKey: 100.0 -> 100.0
|
||||
FUZZY REGRESSIONS: 0
|
||||
```
|
||||
- Resume ZiDAWGGetSibling, separate original-node base from encoded-offset cursor, target 81480F6C/81480F88 add original r28: objdiff 86.854965 -> 88.59542; data 0 -> 0; instruction-exact 2 -> 2; target/source sizes (524, 520); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume ZiDAWGGetSibling, decode header from incoming cursor before changing it: objdiff 88.59542 -> 88.63359; data 0 -> 0; instruction-exact 2 -> 2; target/source sizes (524, 520); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume ZiDAWGGetSibling, emit direct no-sibling return proven by 81480ED4/81480ED8: objdiff 88.63359 -> 88.938934; data 0 -> 0; instruction-exact 2 -> 2; target/source sizes (524, 520); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume ZiDAWGGetSibling, invert child-offset branch to target long-first control flow: objdiff 88.938934 -> 88.99236; data 0 -> 0; instruction-exact 2 -> 2; target/source sizes (524, 520); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume ZiDAWGGetSibling, return decoded sibling directly at target 81480F90/81480F94: objdiff 88.99236 -> 89.51145; data 0 -> 0; instruction-exact 2 -> 2; target/source sizes (524, 524); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume ZiDAWGGetSibling, group original-node plus low displacement byte before encoded high displacement: objdiff 89.51145 -> 87.92367; data 0 -> 0; instruction-exact 2 -> 2; target/source sizes (524, 524); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; reverted.
|
||||
- Resume ZiDAWGGetSibling, decode short displacement through its two byte weights: objdiff 89.51145 -> 91.16031; data 0 -> 0; instruction-exact 2 -> 2; target/source sizes (524, 524); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume ZiDAWGGetGraphInfo, avoid persistent decoded header temporary, target first comparisons use r0: objdiff 81.83582 -> 81.87313; data 0 -> 32; instruction-exact 2 -> 2; target/source sizes (536, 520); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume ZiDAWGGetGraphInfo, group empty-root header checks matching branch to 81481240: objdiff 81.87313 -> 85.00746; data 32 -> 32; instruction-exact 2 -> 2; target/source sizes (536, 520); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume ZiDAWGGetGraphInfo, validate key range with shared zero-return else at 81481308: objdiff 85.00746 -> 87.32089; data 32 -> 32; instruction-exact 2 -> 2; target/source sizes (536, 532); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume ZiDAWGGetGraphInfo, top-test child search with target extent check and common key comparison: objdiff 87.32089 -> 85.08209; data 32 -> 32; instruction-exact 2 -> 2; target/source sizes (536, 504); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; reverted.
|
||||
- Resume ZiDAWGGetGraphInfo, decode big-endian header high byte before low byte: objdiff 87.32089 -> 95.19403; data 32 -> 32; instruction-exact 2 -> 2; target/source sizes (536, 532); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume ZiDAWGGetGraphInfo, group 24-bit offsets as high part plus trailing two-byte value: objdiff 95.19403 -> 98.43284; data 32 -> 32; instruction-exact 2 -> 2; target/source sizes (536, 532); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume ZiDAWGGetGraphInfo, tie depth and key induction variables to bounded traversal loop: objdiff 98.43284 -> 97.68657; data 32 -> 48; instruction-exact 2 -> 2; target/source sizes (536, 536); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; reverted.
|
||||
- Resume ZiDAWGGetGraphInfo, treat returned graph address as unsigned value: objdiff 98.43284 -> 98.43284; data 32 -> 32; instruction-exact 2 -> 2; target/source sizes (536, 532); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; reverted.
|
||||
- Resume ZiDAWGGetGraphInfo, check entry bounds before the first dereference, target 81481298 branches to 814812DC: objdiff 98.43284 -> 99.17911; data 32 -> 80; instruction-exact 2 -> 2; target/source sizes (536, 536); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume ZiDAWGGetGraphInfo, use actual graph/end/result byte pointers consistent with caller zi8dawg.c: objdiff 99.17911 -> 99.17911; data 80 -> 80; instruction-exact 2 -> 2; target/source sizes (536, 536); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; reverted.
|
||||
- Removed redundant outer graph-search scope after root guard. Object metrics unchanged: sibling 91.16031%, graph info 99.17911%, extab/extabindex 100%; exact 2/6 retained.
|
||||
- Target proof for graph-search invalid key: branches at 81481288 and 81481294 both reach li r3,0 at 81481308 and return via 814813E4; the former break returning prior result was wrong. New shared else models that control flow.
|
||||
- Current graph info ctxdiff 134/134 instructions, 20 differences remain, principally callee register names plus endpoint arithmetic scheduling. Prologue saves r25-r31, exactly the target range.
|
||||
- Resume Zi8MatchPUDdata_ZHS, let doubled byte length wrap naturally without redundant pre-mask: objdiff 72.59322 -> 73.46045; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1392); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume Zi8MatchPUDdata_ZHS, advance one payload cursor through length/priority/text as target r29: objdiff 73.46045 -> 77.74011; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume Zi8MatchPUDdata_ZHS, search section language with explicit match break: objdiff 77.74011 -> 80.53672; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume Zi8MatchPUDdata_ZHS, test key-token range first matching target 8147F884 branch order: objdiff 80.53672 -> 86.245766; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume Zi8MatchPUDdata_ZHS, treat decoded word and copy counts as signed integers, matching target cmpw: objdiff 86.245766 -> 86.62429; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume Zi8MatchPUDdata_ZHS, use a typed byte view of Chinese search keys: objdiff 86.62429 -> 82.24859; data 48 -> 0; instruction-exact 4 -> 4; target/source sizes (1416, 1392); source unwind 180800000000000010080000000000001008000000000000701800000000000018080000000000000008000000000000; fuzzy regressions []; reverted.
|
||||
- Resume Zi8MatchPUDdata_ZHS, copy UTF16 bytes through typed output view, advancing byte index twice: objdiff 86.62429 -> 83.81638; data 48 -> 0; instruction-exact 4 -> 4; target/source sizes (1416, 1428); source unwind 180800000000000010080000000000001008000000000000681800000000000018080000000000000008000000000000; fuzzy regressions []; reverted.
|
||||
- Resume Zi8MatchPUDdata_ZHS, place common next-entry block at target initial rejection branch: objdiff 86.62429 -> 89.27683; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1376); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume Zi8MatchPUDdata_ZHS, store existing key token before converting plain character fallback: objdiff 89.27683 -> 93.54237; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1376); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume Zi8MatchPUDdata_ZHS, place permitted single-key fallback retry before exhausted-table return: objdiff 93.54237 -> 94.68644; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume Zi8MatchPUDdata_ZHS, bind generic work argument to its real work-data structure: objdiff 94.68644 -> 86.056496; data 48 -> 0; instruction-exact 4 -> 4; target/source sizes (1416, 1504); source unwind 180800000000000010080000000000001008000000000000580800000000000018080000000000000008000000000000; fuzzy regressions []; reverted.
|
||||
- Resume Zi8MatchPUDdata_ZHS, use payload byte view for Chinese key comparison after retry restructure: objdiff 94.68644 -> 91.09887; data 48 -> 0; instruction-exact 4 -> 4; target/source sizes (1416, 1392); source unwind 180800000000000010080000000000001008000000000000701800000000000018080000000000000008000000000000; fuzzy regressions []; reverted.
|
||||
- Resume Zi8MatchPUDdata_ZHS, advance Chinese output byte index after each copied byte: objdiff 94.68644 -> 89.9887; data 48 -> 0; instruction-exact 4 -> 4; target/source sizes (1416, 1428); source unwind 180800000000000010080000000000001008000000000000681800000000000018080000000000000008000000000000; fuzzy regressions []; reverted.
|
||||
- Resume Zi8MatchPUDdata_ZHS, decrement both decoded word count and payload size before stripping priority: objdiff 94.68644 -> 94.5226; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1380); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; reverted.
|
||||
- Resume Zi8MatchPUDdata_ZHS, compare consumed character threshold in target operand order: objdiff 94.68644 -> 94.73447; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume Zi8MatchPUDdata_ZHS, check section index against its declared language count: objdiff 94.73447 -> 94.77683; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume Zi8MatchPUDdata_ZHS, initialize section cursor before loop index as target 8147F75C through 8147F764: objdiff 94.77683 -> 95.341805; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume Zi8MatchPUDdata_ZHS, test requested length against decoded word size in target cmpw operand order: objdiff 95.341805 -> 95.29944; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; reverted.
|
||||
- Resume Zi8MatchPUDdata_ZHS, decrement remaining payload size before consuming Chinese priority byte: objdiff 95.341805 -> 91.0226; data 48 -> 0; instruction-exact 4 -> 4; target/source sizes (1416, 1408); source unwind 180800000000000010080000000000001008000000000000600800000000000018080000000000000008000000000000; fuzzy regressions []; reverted.
|
||||
- Resume Zi8MatchPUDdata_ZHS, advance Chinese output index after each byte without new alias: objdiff 95.341805 -> 95.31921; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1368); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; reverted.
|
||||
- Reindented matched/rejected PUD paths. Object metrics unchanged, ZHS 95.341805%, data 48/120 and instruction-exact 4/7. No masks were added.
|
||||
- PUD target prologue saves r19-r31; current source uses that same range. Remaining code gaps include source size 1372 versus target 1416 and decoded count/offset load treatment; unwind-index mismatch is left intact rather than forced.
|
||||
- Resume ZiDAWGGetSibling, visit encoded child displacement before implicit-child depth increment: objdiff 91.16031 -> 94.21374; data 80 -> 80; instruction-exact 2 -> 2; target/source sizes (524, 524); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED.
|
||||
- Resume ZiDAWGGetSibling, initialize each traversal state where its lifetime starts in target order: objdiff 94.21374 -> 94.21374; data 80 -> 80; instruction-exact 2 -> 2; target/source sizes (524, 524); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; reverted.
|
||||
- Resume ZiDAWGGetSibling, return scanned sibling directly as original node plus traversal size: objdiff 94.21374 -> 95.24428; data 80 -> 32; instruction-exact 2 -> 2; target/source sizes (524, 520); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED.
|
||||
|
||||
Latest origin/main cbf6363d0f5e07b6dceadc43693694c14d58a229 fetched before final validation. Owned unit sources and eZiText headers are unchanged from measured origin baseline 2f0f5a44c72cb84e23732e09fc8e75487c788f76.
|
||||
- Latest sibling direct scan return improves real code 94.21374 -> 95.24428% but source length is 520 versus target 524; extabindex mismatch remains. This source improvement is kept rather than adding an instruction to force the unwind record.
|
||||
- Removed unreachable final sibling return after all paths already return. Complete object SHA256 equality True.
|
||||
|
||||
## Resumed final clean gate and live-origin function audit
|
||||
```
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] objdiff: code 92/1664 data 32/80 functions 2/6 fuzzy 96.5433 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] instruction-exact functions: 2/6
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section .text size 1664 match 96.54327
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section extab size 32 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section extabindex size 48 match 97.91667
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGGetChild 93.60294
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGGetSibling 95.24428
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGgetCHARattribute 95.5
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGGetGraphInfo 99.17911
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] baseline: code 92/1664 data None functions 2 fuzzy 88.3149
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] objdiff: code 208/2656 data None/80 functions 2/4 fuzzy 77.6386 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] instruction-exact functions: 2/4
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] section .text size 2656 match 77.63856
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] section extab size 32 match 96.875
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] section extabindex size 48 match 95.83333
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] below 100: Zi8_81480224 99.22414
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] below 100: Zi8MatchUWDdata 70.245964
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] baseline: code 208/2656 data None functions 2 fuzzy 77.6386
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] objdiff: code 436/2136 data 48/120 functions 4/7 fuzzy 96.7715 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] instruction-exact functions: 4/7
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section .text size 2136 match 96.77154
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section extab size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section extabindex size 72 match 98.61111
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] below 100: ZADP_Zi8SetPDremoveOpt 98.57143
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] below 100: Zi8MatchPUDdata_ZHS 95.341805
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] below 100: Zi8MatchPUDdata 99.1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] baseline: code 436/2136 data 48 functions 4 fuzzy 81.6910
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] objdiff: code 364/2028 data 32/48 functions 1/2 fuzzy 88.2229 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] instruction-exact functions: 1/2
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section .sdata2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section .text size 2028 match 88.22288
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section extab size 16 match 93.75
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section extabindex size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] below 100: Zi8IsWordW 85.64664
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] baseline: code 364/2028 data 8 functions 1 fuzzy 86.3274
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.57407 -> 88.57407
|
||||
global fuzzy_match_percent: 99.45531 -> 99.47194
|
||||
global complete_code_percent: 63.07103 -> 63.07103
|
||||
global matched_data_percent: 97.73032 -> 97.73338
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
```
|
||||
zi8pud2 ZiIsPhoneticChar: 100.0 -> 100.0
|
||||
zi8pud2 ZiGetZHWordSize: 100.0 -> 100.0
|
||||
zi8pud2 Zi8CopyZHSpelling: 100.0 -> 100.0
|
||||
zi8pud2 ZADP_Zi8SetPDremoveOpt: 98.57143 -> 98.57143
|
||||
zi8pud2 Zi8MatchPUDdata_ZHS: 72.59322 -> 95.341805
|
||||
zi8pud2 Zi8MatchPUDdata: 99.1 -> 99.1
|
||||
zi8pud2 Zi8_8147FD7C: 100.0 -> 100.0
|
||||
zi8uwd Zi8_81480224: 99.22414 -> 99.22414
|
||||
zi8uwd Zi8_814803F4: 100.0 -> 100.0
|
||||
zi8uwd Zi8_8148047C: 100.0 -> 100.0
|
||||
zi8uwd Zi8MatchUWDdata: 70.245964 -> 70.245964
|
||||
zidawg1 ZiDAWGGetChild: 93.60294 -> 93.60294
|
||||
zidawg1 ZiDAWGGetSibling: 86.854965 -> 95.24428
|
||||
zidawg1 ZiDAWGgetEOWattribute: 100.0 -> 100.0
|
||||
zidawg1 ZiDAWGgetCHARattribute: 95.5 -> 95.5
|
||||
zidawg1 ZiDAWGGetGraph: 100.0 -> 100.0
|
||||
zidawg1 ZiDAWGGetGraphInfo: 81.83582 -> 99.17911
|
||||
ziswordw Zi8IsWordW: 83.33654 -> 85.64664
|
||||
ziswordw Zi8ConvertUC2UserKey: 100.0 -> 100.0
|
||||
FUZZY REGRESSIONS: 0
|
||||
```
|
||||
No redundant load masks or symbol extent changes retained. All four owned units preserve instruction-exact counts. Data remains incomplete; outstanding unwind-index lengths and saved-register mismatches are left for real code matching.
|
||||
267
tools/decomp-assist/data-d4.attempts.md
Normal file
267
tools/decomp-assist/data-d4.attempts.md
Normal file
@@ -0,0 +1,267 @@
|
||||
# Data d4 high round
|
||||
|
||||
Baseline instruction-exact: tiInputForm 216/221, tiKeyboard 62/62, MyTiManager 91/91, MyTiInputForm 84/84. Matched_data: 908/3772, 12/2708, 76/1132, 2960/3032. All sources equal origin/main after initial fetch. Initial all-unit quick gate passes. All pools identical. Investigate actual relocations and typed source for every mismatch; do not claim completion from the safety gate alone.
|
||||
|
||||
## MyTiInputForm
|
||||
|
||||
High attempt 1: add the real protected textdrawer::Base draw-scroll setter taking const f32&, guarded by MYTIINPUTFORM_IMPLEMENTATION, and call it from calc's non-edit branch. This encapsulates the existing field assignment and lets MWCC materialize the addressable zero argument naturally in .sdata. No explicit object, array, forced section or padding was added.
|
||||
|
||||
Concrete baseline difference: target .sdata+0x28 is four zero bytes, with Nigaoe at +0x2C; source omitted this constant and placed Nigaoe at +0x28. Target calc relocation at .text+0x1F24 referenced .sdata+0x28; baseline source referenced .sdata2 zero. Setter now produces .sdata+0x28 zero and moves the following strings to their target offsets. Source .sdata contains 67 bytes matching target through +0x42; the remaining five target bytes are zero section-end linker alignment. Every non-text section reports 100%, matched_data 2960 -> 3032. calc instruction count remains 629/629, ctxdiff diffs 0. All 84 functions remain objdiff 100%. Await full-unit regression gate before committing.
|
||||
|
||||
All-unit quick gate after the setter passes: retail DOL hash preserved, regressions 0, forbidden/readability scans 0. MyTiInputForm remains 84/84 instruction-exact. Accepted and committed this focused improvement.
|
||||
|
||||
## tiInputForm
|
||||
|
||||
High attempts 1 and 2: defer tiLayoutGather.h until after the Color definitions, then until after sfColorPhase. Both emitted the seven Color objects at their real target offsets 0x0..0x18 instead of source offsets 0x8..0x20. However the compiler still schedules zero-initialized sfColorPhase after the singleton weak statics, and the section score regressed 33.333336 -> 31.818182. Static constructor objdiff regressed from 100 to 99.91954, unit matched_functions 218 -> 217 and matched_code 46980 -> 46632. Both changes rejected and restored. No accepted-data bytes gained.
|
||||
|
||||
High attempt 3: recover the existing sfColorPhase symbol name without changing any size or split range. Target calcCursorTimer has lfs at 0x8141F13C, 0x8141F26C, 0x8141F2CC and stfs at 0x8141F2E0, all relocating to .sbss 0x81698D1C. The real C++ float sfColorPhase feeds those same sine/phase updates. Original anonymous float is already four bytes. This is a name correction, not source address pinning or resizing; total bytes unchanged.
|
||||
|
||||
Phase-name recovery changes .sbss score 33.333336 -> 68.181816, but matched_data stays 908, with code/functions unchanged. No size or byte changes. Not retained as a fuzzy-only result.
|
||||
|
||||
## tiKeyboard
|
||||
|
||||
High attempt 1: declare gui::EventHandler's real virtual destructor out of line under a new macro defined only by tiKeyboard.cpp. The target does not retain this weak table or its weak methods in this unit. MWCC correctly changes its table ownership to external without changing any of the 62 original functions. .data improves 99.117645 -> 99.55687, matched_data remains 12. Pure abstract UIObj::Listener and AnmObserver still contribute 24 appended zero bytes not owned by the original split. Investigating before accepting any declaration-only change.
|
||||
|
||||
## MyTiManager
|
||||
|
||||
Fetched origin and checked pool first. All 91 functions already exact. Target .data+0x3B0..0x3D7 is 40 zero bytes without outgoing relocations; source ends at +0x3B0. Scan of all 43U extracted objects found references to that tail label: []. No concrete virtual method/function-pointer slot or used table object can be recovered from those zeros. Do not invent one. Target .bss is byte-identical 72 bytes but aggregates the first three compiler destructor records into a 36-byte symbol; source has three real 12-byte records at offsets 0, 12 and 24. The fourth record at +0x30 is 12 bytes. Source state objects at +0x24/+0x3C match target. No symbol sizes changed.
|
||||
|
||||
tiKeyboard declaration attempt rejected and restored. It improves only fuzzy section similarity and does not make data exact. Last pure-abstract base tables have no target-owned relocation slots to fill; declaring invented virtual methods or suppressing tables with compiler attributes would be dishonest.
|
||||
|
||||
High attempt 4: recover the actual four-byte ownership of each of seven Color objects in symbols.txt, preserving every address, split boundary and section byte. This corrects wrongly inferred byte objects; it does not hide a byte or relocation difference. Target static initialization relocates r6 to each named Color base and stores the R byte at base plus G/B/A bytes at +1,+2,+3 before registering the same base with __dt__nw4r::ut::Color. All seven objects are exactly four bytes apart, with no overlapping object or unrelated symbol in the three omitted bytes. Existing source already has the real typed nw4r::ut::Color globals. The prior one-byte annotations incorrectly assigned G/B/A to anonymous gaps. sfColorPhase name is recovered from its exact lfs/stfs relocations. Total .sbss stays 32 and whole-unit total_data stays 3772. This is evidence-backed object ownership recovery, not shrinking tables to hide mismatches.
|
||||
|
||||
Color ownership recovery passes the all-unit quick gate. .sbss now 100%, tiInputForm matched_data 908 -> 940, total_data unchanged 3772, instruction-exact 216/221 unchanged, whole-project regressions 0, DOL hash unchanged. Gate explicitly marks symbols.txt for orchestrator review. No source or object bytes were changed by this metadata correction.
|
||||
|
||||
High record-ownership experiment: recover the real 12-byte DestructorChain objects in two incorrectly aggregated BSS labels. NMWException.h defines next/dtor/object, all four-byte pointers. Runtime __register_global_object writes exactly those three fields. Target tiInputForm onCommand registers its singleton using BSS+0; static initialization registers the seven Color globals with BSS+12,+24,+36,+48,+60,+72,+84. Target MyTiManager static initialization registers Disp/Edit/Appear/Disappear states with BSS+0,+12,+24,+48. State objects themselves occupy +36..47 and +60..71 and stay untouched. Replace only the aggregate ownership annotation with those separately proved record boundaries; no byte, section size, split or pointer target changes. No source records or dummy padding added. Keep only if original functions do not regress and data measures improve.
|
||||
|
||||
Record ownership recovery passes the all-unit quick gate. tiInputForm .bss is now 100%, data 940 -> 1036; MyTiManager .bss is now 100%, data 76 -> 148. Both sections have the same byte extent and all original instruction-exact functions are preserved. Whole-project regressions 0, retail DOL hash unchanged. Symbols review remains required by the orchestrator.
|
||||
|
||||
calcCursorPos attempt right-before-bottom: objdiff 91.59509%, code 46980, data 1036. ['src 0x518 base 0x518 insns 326/326', 'diffs 43: [77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 127, 128, 129, 130, 131, 132, 133]']
|
||||
calcCursorPos attempt separate-scale-components: objdiff 86.54601%, code 46980, data 1036. ['src 0x4f4 base 0x518 insns 317/326', '--- replace mine 28:29 base 28:29']
|
||||
calcCursorPos attempt aggregate-line-bounds: objdiff 78.78528%, code 46980, data 1036. ['src 0x56c base 0x518 insns 347/326', '--- replace mine 0:1 base 0:1']
|
||||
create attempt reload-row-owner: objdiff 94.985954%, code 46980, data 1036. ['src 0x580 base 0x590 insns 352/356', '--- replace mine 5:6 base 5:6']
|
||||
create attempt font-branch-direction: objdiff 85.985954%, code 46980, data 1036. ['src 0x580 base 0x590 insns 352/356', '--- replace mine 5:6 base 5:6']
|
||||
create attempt typed-button-index: objdiff 95.02809%, code 46980, data 1036. ['src 0x580 base 0x590 insns 352/356', '--- replace mine 5:6 base 5:6']
|
||||
setLanguage attempt text-pane-branch-direction: objdiff 96.44726%, code 46980, data 1036. ['src 0x3b4 base 0x3b4 insns 237/237', 'diffs 22: [57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 118, 119, 120, 121, 122, 123, 124, 125, 126]']
|
||||
setLanguage attempt reload-language-pane-after-query: objdiff 96.44726%, code 46980, data 1036. ['src 0x3b4 base 0x3b4 insns 237/237', 'diffs 22: [57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 118, 119, 120, 121, 122, 123, 124, 125, 126]']
|
||||
setLanguage attempt split-visibility-counts: objdiff 93.44304%, code 46980, data 1036. ['src 0x3bc base 0x3b4 insns 239/237', '--- replace mine 9:11 base 9:10']
|
||||
High tiInputForm vtable attempt: declare the real GUIComponent virtual destructor out of line in this unit only. This asks the compiler to use the actual external destructor/vtable ownership instead of emitting a duplicate weak GUIComponent table. Every virtual method and signature remains intact. Original unit does not own the GUIComponent destructor. Inspect data and original-function counts before keeping it.
|
||||
GUIComponent destructor declaration had no data/code effect because this unit still defines its real non-inline init, which causes MWCC to emit the table. Restored header. Next real-class ownership attempt declares only gui::EventHandler destructor out of line, preserving all virtual slots.
|
||||
GUI EventHandler destructor-declaration result: code 46916, functions 217, data 1036. Sections [{'name': '.bss', 'size': '96', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.ctors', 'size': '4', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.data', 'size': '2736', 'fuzzy_match_percent': 65.68563, 'metadata': {}}, {'name': '.rodata', 'size': '760', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.sbss', 'size': '32', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.sdata', 'size': '40', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.sdata2', 'size': '104', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.text', 'size': '50656', 'fuzzy_match_percent': 99.521164, 'metadata': {}}]. Rejected and restored; no exact-data improvement.
|
||||
|
||||
## Final concrete data-symbol audit
|
||||
|
||||
Rebuilt all four units from a clean build with the final full gate. The following table compares every target .data symbol to its same-name source object (unnamed labels use the same section offset). Relocations are compared relative to the named object, not to the section start. Named weak tables at different section offsets can have identical real entries. An aligned target symbol extent can include zeros beyond the actual C++ object; these are shown separately rather than treated as missing virtual functions.
|
||||
|
||||
### tiInputForm .data
|
||||
|
||||
Target 2736 bytes; source 3077 bytes.
|
||||
|
||||
- `scP_txtScrll_UP` target +0x0, source +0x0: owned bytes equal, 0 relocation entries equal.
|
||||
- `scP_txtScrll_DOWN` target +0x10, source +0x10: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_8165C840` target +0x20, source +0x20: owned bytes equal, 18 relocation entries equal.
|
||||
- `scN_JPNUSAEUR` target +0xA0, source +0xA0: owned bytes equal, 0 relocation entries equal.
|
||||
- `scN_separateBarAll` target +0xAC, source +0xAC: owned bytes equal, 0 relocation entries equal.
|
||||
- `scT_2l_TextBox` target +0xC0, source +0xC0: owned bytes equal, 0 relocation entries equal.
|
||||
- `scT_title_textJPN` target +0xD0, source +0xD0: owned bytes equal, 0 relocation entries equal.
|
||||
- `scN_separateBarKOR` target +0xE0, source +0xE0: owned bytes equal, 0 relocation entries equal.
|
||||
- `scT_2l_TextBoxKOR` target +0xF8, source +0xF8: owned bytes equal, 0 relocation entries equal.
|
||||
- `scT_title_textKOR` target +0x108, source +0x108: owned bytes equal, 0 relocation entries equal.
|
||||
- `scN_separateBarCHN` target +0x118, source +0x118: owned bytes equal, 0 relocation entries equal.
|
||||
- `scT_2l_TextBoxCHN` target +0x130, source +0x130: owned bytes equal, 0 relocation entries equal.
|
||||
- `scT_title_textCHN` target +0x140, source +0x140: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_8165C970` target +0x150, source +0x150: owned bytes equal, 0 relocation entries equal.
|
||||
- `jumptable_8165C990` target +0x170, source +0x170: owned bytes equal, 40 relocation entries equal.
|
||||
- `jumptable_8165CA30` target +0x210, source +0x210: owned bytes equal, 10 relocation entries equal.
|
||||
- `jumptable_8165CA58` target +0x238, source +0x238: owned bytes equal, 13 relocation entries equal.
|
||||
- `jumptable_8165CA8C` target +0x26C, source +0x26C: owned bytes equal, 48 relocation entries equal.
|
||||
- `jumptable_8165CB4C` target +0x32C, source +0x32C: owned bytes equal, 37 relocation entries equal.
|
||||
- `lbl_8165CBE0` target +0x3C0, source +0x3C0: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_8165CC14` target +0x3F4, source +0x3F4: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_8165CC28` target +0x408, source +0x408: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_8165CC4C` target +0x42C, source +0x42C: owned bytes equal, 0 relocation entries equal.
|
||||
- `jumptable_8165CC5C` target +0x43C, source +0x43C: owned bytes equal, 7 relocation entries equal.
|
||||
- `__vt__Q39textinput9inputform19NormalButtonAnmPane` target +0x458, source +0x458: owned bytes equal, 9 relocation entries equal.
|
||||
- `__vt__Q39textinput9inputform7AnmPane` target +0x484, source +0x484: owned bytes equal, 9 relocation entries equal.
|
||||
- `__vt__Q39textinput9inputform12EventHandler` target +0x4B0, source +0x4B0: owned bytes equal, 6 relocation entries equal.
|
||||
- `__vt__Q39textinput9inputform12LayoutByNW4R` target +0x4D0, source +0x4D0: owned bytes equal, 136 relocation entries equal.
|
||||
- `__vt__Q39textinput9inputform4Base` target +0x710, source +0x710: owned bytes equal, 100 relocation entries equal.
|
||||
- `__vt__Q39textinput9inputform10EditBuffer` target +0x8B8, source +0x8B8: owned bytes equal, target extent 16, source object 12, 1 relocation entries equal.
|
||||
- `__vt__Q39textinput8tistring8WithAtok` target +0x8C8, source +0x8C8: owned bytes equal, 78 relocation entries equal.
|
||||
- `__vt__Q29textinput4Base` target +0xA08, source +0xBA0: owned bytes equal, target extent 48, source object 20, 3 relocation entries equal.
|
||||
- `__vt__Q39textinput4util9Animation` target +0xA38, source +0xB58: owned bytes equal, 7 relocation entries equal.
|
||||
- `lbl_8165D258` target +0xA5C, source +0xA5C: first byte difference +0x0: 4F -> 00, relocations +0x0 None -> ('inputString__Q39textinput8tistring9DecolatedFPCw', 0); +0x4 None -> ('deleteChar__Q39textinput8tistring9DecolatedFv', 0); +0x8 None -> ('backSpace__Q39textinput8tistring9DecolatedFv', 0); +0xC None -> ('confirm__Q39textinput8tistring9DecolatedFPCw', 0).
|
||||
- `@STRING@GetTextColor__Q34nw4r3lyt7TextBoxCFUl` target +0xA6C, source +0xBC4: owned bytes equal, target extent 68, source object 65, source section ends after 65 available bytes, 0 relocation entries equal.
|
||||
|
||||
Additional real compiler-emitted weak tables absent from the target symbol inventory:
|
||||
|
||||
- `__vt__Q39textinput8tistring9Decolated` source +0xA08, 208 bytes: +0x4C -> getLastWChar__Q39textinput8tistring10StringBaseFv; +0x48 -> hasCandidate__Q39textinput8tistring10StringBaseCFv; +0x44 -> getCandidate__Q39textinput8tistring10StringBaseCFv; +0x40 -> setCandidate__Q39textinput8tistring10StringBaseFw; +0x3C -> getWCString__Q39textinput8tistring10StringBaseCFv; +0x34 -> setAt__Q39textinput8tistring10StringBaseFUsw; +0x2C -> replace__Q39textinput8tistring10StringBaseFUsUsPCw; +0x28 -> remove__Q39textinput8tistring10StringBaseFUsUs; +0x24 -> insert__Q39textinput8tistring10StringBaseFUsPCw; +0x20 -> append__Q39textinput8tistring10StringBaseFPCw; +0x1C -> getLength__Q39textinput8tistring10StringBaseCFv; +0x14 -> popBack__Q39textinput8tistring10StringBaseFv; +0x10 -> pushBack__Q39textinput8tistring10StringBaseFw; +0xC -> create__Q39textinput8tistring10StringBaseFP12MEMAllocator; +0xCC -> EnableKSXFilter__Q39textinput8tistring9DecolatedFb; +0xC8 -> clearKana__Q39textinput8tistring9DecolatedFv; +0xC4 -> confirmKana__Q39textinput8tistring9DecolatedFv; +0xC0 -> isKanaFix__Q39textinput8tistring9DecolatedCFv; +0xBC -> getKanaBuffer__Q39textinput8tistring9DecolatedFv; +0xB8 -> initKanaConverter__Q39textinput8tistring9DecolatedFv; +0xB4 -> atTheBeginningOfASentence__Q39textinput8tistring9DecolatedFv; +0xB0 -> converSmall__Q39textinput8tistring9DecolatedFv; +0xAC -> isSmall__Q39textinput8tistring9DecolatedFv; +0xA8 -> convertAll__Q39textinput8tistring9DecolatedFv; +0xA4 -> converHandaku__Q39textinput8tistring9DecolatedFv; +0xA0 -> isHandaku__Q39textinput8tistring9DecolatedFv; +0x9C -> converDakuten__Q39textinput8tistring9DecolatedFv; +0x98 -> isDakuten__Q39textinput8tistring9DecolatedFv; +0x94 -> replaceAtCursor__Q39textinput8tistring9DecolatedFw; +0x90 -> getWCharAtCursor__Q39textinput8tistring9DecolatedFv; +0x8C -> getSelected__Q39textinput8tistring9DecolatedFRUlRUl; +0x88 -> deleteForward__Q39textinput8tistring9DecolatedFv; +0x84 -> canBackSpace__Q39textinput8tistring9DecolatedFv; +0x7C -> getCursorPos__Q39textinput8tistring9DecolatedCFv; +0x80 -> getCursorPos__Q39textinput8tistring9DecolatedFPUlPUl; +0x78 -> isOnSustain__Q39textinput8tistring9DecolatedFv; +0x74 -> offSustain__Q39textinput8tistring9DecolatedFv; +0x70 -> onSustain__Q39textinput8tistring9DecolatedFv; +0x6C -> setCursorPos__Q39textinput8tistring9DecolatedFUl; +0x68 -> moveCursorLeft__Q39textinput8tistring9DecolatedFv; +0x64 -> moveCursorRight__Q39textinput8tistring9DecolatedFv; +0x60 -> confirm__Q39textinput8tistring9DecolatedFPCw; +0x5C -> backSpace__Q39textinput8tistring9DecolatedFv; +0x58 -> deleteChar__Q39textinput8tistring9DecolatedFv; +0x50 -> inputChar__Q39textinput8tistring9DecolatedFw; +0x54 -> inputString__Q39textinput8tistring9DecolatedFPCw; +0x38 -> setLength__Q39textinput8tistring9DecolatedFUs; +0x30 -> set__Q39textinput8tistring9DecolatedFPCw; +0x18 -> clear__Q39textinput8tistring9DecolatedFv; +0x8 -> __dt__Q39textinput8tistring9DecolatedFv.
|
||||
- `__vt__Q39textinput3gui12GUIComponent` source +0xAD8, 104 bytes: +0x18 -> draw__Q39textinput3gui12GUIInterfaceFRA3_A4_f; +0x1C -> draw__Q39textinput3gui12GUIInterfaceFv; +0x14 -> calc__Q39textinput3gui12GUIInterfaceFv; +0xC -> create__Q39textinput3gui12GUIInterfaceFv; +0x60 -> setFlightDuration__Q39textinput3gui12GUIComponentFiUs; +0x5C -> getFlightDuration__Q39textinput3gui12GUIComponentFi; +0x58 -> isVisible__Q39textinput3gui12GUIComponentFv; +0x54 -> setTriggerTarget__Q39textinput3gui12GUIComponentFb; +0x50 -> isTriggerTarget__Q39textinput3gui12GUIComponentFv; +0x48 -> updatePointer__Q39textinput3gui12GUIComponentFRCQ39textinput3gui10GUIPointer; +0x4C -> updatePointer__Q39textinput3gui12GUIComponentFiffUlUlUl; +0x44 -> setDraggingButton__Q39textinput3gui12GUIComponentFUl; +0x40 -> onTrig__Q39textinput3gui12GUIComponentFiUlR3Vec; +0x3C -> onMove__Q39textinput3gui12GUIComponentFiff; +0x38 -> onDrag__Q39textinput3gui12GUIComponentFff; +0x34 -> onPointOut__Q39textinput3gui12GUIComponentFi; +0x30 -> onPointIn__Q39textinput3gui12GUIComponentFi; +0x2C -> setPointed__Q39textinput3gui12GUIComponentFib; +0x28 -> isDragging__Q39textinput3gui12GUIComponentFi; +0x24 -> isPointed__Q39textinput3gui12GUIComponentFi; +0x20 -> getID__Q39textinput3gui12GUIComponentFv; +0x8 -> __dt__Q39textinput3gui12GUIComponentFv; +0x10 -> init__Q39textinput3gui12GUIComponentFv.
|
||||
- `__vt__Q39textinput3gui12EventHandler` source +0xB40, 24 bytes: +0x14 -> getLatestEventCtrlNo__Q39textinput3gui12EventHandlerFv; +0x10 -> setLatestEventCtrlNo__Q39textinput3gui12EventHandlerFi; +0xC -> onEvent__Q39textinput3gui12EventHandlerFRQ39textinput3gui12GUIComponentUlPv; +0x8 -> __dt__Q39textinput3gui12EventHandlerFv.
|
||||
- `__vt__Q29textinput15CommandReceiver` source +0xB80, 32 bytes: +0x10 -> init__Q29textinput4BaseFv; +0xC -> create__Q29textinput4BaseFP12MEMAllocator; +0x1C -> addSender__Q29textinput15CommandReceiverFPQ29textinput13CommandSender; +0x18 -> onCommand__Q29textinput15CommandReceiverFQ39textinput15CommandReceiver13INPUT_COMMANDPv; +0x14 -> clearSender__Q29textinput15CommandReceiverFv; +0x8 -> __dt__Q29textinput15CommandReceiverFv.
|
||||
|
||||
### tiKeyboard .data
|
||||
|
||||
Target 2696 bytes; source 2744 bytes.
|
||||
|
||||
- `lbl_8165F8F0` target +0x0, source +0x0: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_8165F900` target +0x10, source +0x10: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_8165F920` target +0x30, source +0x30: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_8165F938` target +0x48, source +0x48: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_8165F950` target +0x60, source +0x60: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_8165F96C` target +0x7C, source +0x7C: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_8165F988` target +0x98, source +0x98: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_8165F9A0` target +0xB0, source +0xB0: owned bytes equal, 0 relocation entries equal.
|
||||
- `__vt__Q29textinput7Manager` target +0xC8, source +0xC8: owned bytes equal, 50 relocation entries equal.
|
||||
- `__vt__Q49textinput8keyboard10signwindow6Sample` target +0x198, source +0x198: owned bytes equal, target extent 272, source object 268, 61 relocation entries equal.
|
||||
- `__vt__Q39textinput11predictlang6Sample` target +0x2A8, source +0x2A8: owned bytes equal, 50 relocation entries equal.
|
||||
- `__vt__Q39textinput11predictlang4Base` target +0x388, source +0x388: owned bytes equal, target extent 40, source object 36, 7 relocation entries equal.
|
||||
- `__vt__Q39textinput7toolbar6Sample` target +0x3B0, source +0x3B0: owned bytes equal, 48 relocation entries equal.
|
||||
- `__vt__Q39textinput9inputform6Sample` target +0x480, source +0x480: owned bytes equal, 136 relocation entries equal.
|
||||
- `__vt__Q39textinput12candidatebox6Sample` target +0x6C0, source +0x6C0: owned bytes equal, 70 relocation entries equal.
|
||||
- `__vt__Q49textinput8keyboard13cellphonetype6Sample` target +0x7F0, source +0x7F0: owned bytes equal, 75 relocation entries equal.
|
||||
- `__vt__Q49textinput8keyboard6pctype6Sample` target +0x92C, source +0x92C: owned bytes equal, 81 relocation entries equal.
|
||||
|
||||
Additional real compiler-emitted weak tables absent from the target symbol inventory:
|
||||
|
||||
- `__vt__Q59textinput8keyboard6pctype5UIObj8Listener` source +0xA88, 12 bytes: all bytes zero; no relocation slots.
|
||||
- `__vt__Q39textinput11nw4rmanager11AnmObserver` source +0xA94, 12 bytes: all bytes zero; no relocation slots.
|
||||
- `__vt__Q39textinput3gui12EventHandler` source +0xAA0, 24 bytes: +0x14 -> getLatestEventCtrlNo__Q39textinput3gui12EventHandlerFv; +0x10 -> setLatestEventCtrlNo__Q39textinput3gui12EventHandlerFi; +0xC -> onEvent__Q39textinput3gui12EventHandlerFRQ39textinput3gui12GUIComponentUlPv; +0x8 -> __dt__Q39textinput3gui12EventHandlerFv.
|
||||
|
||||
### MyTiManager .data
|
||||
|
||||
Target 984 bytes; source 944 bytes.
|
||||
|
||||
- `lbl_81667E38` target +0x0, source +0x0: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_81667E58` target +0x20, source +0x20: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_81667E68` target +0x30, source +0x30: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_81667E7C` target +0x44, source +0x44: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_81667E94` target +0x5C, source +0x5C: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_81667EB0` target +0x78, source +0x78: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_81667EC8` target +0x90, source +0x90: owned bytes equal, 0 relocation entries equal.
|
||||
- `__vt__Q49textinput6extend2bg4Base` target +0xA8, source +0xA8: owned bytes equal, 2 relocation entries equal.
|
||||
- `__vt__Q49textinput6extend4memo18DisappearMemoState` target +0xB8, source +0xB8: owned bytes equal, 20 relocation entries equal.
|
||||
- `__vt__Q49textinput6extend4memo13EditMemoState` target +0x110, source +0x110: owned bytes equal, 20 relocation entries equal.
|
||||
- `__vt__Q49textinput6extend4memo15AppearMemoState` target +0x168, source +0x168: owned bytes equal, 20 relocation entries equal.
|
||||
- `__vt__Q49textinput6extend4memo13DispMemoState` target +0x1C0, source +0x1C0: owned bytes equal, 20 relocation entries equal.
|
||||
- `__vt__Q49textinput6extend4memo5State` target +0x218, source +0x218: owned bytes equal, 10 relocation entries equal.
|
||||
- `__vt__Q49textinput6extend4memo7Manager` target +0x270, source +0x270: owned bytes equal, 78 relocation entries equal.
|
||||
- `lbl_816681E8` target +0x3B0, source +0x3B0: target contains 40 zero bytes; source section has ended, so none of this object is present; no target relocation entries.
|
||||
|
||||
### MyTiInputForm .data
|
||||
|
||||
Target 1616 bytes; source 1616 bytes.
|
||||
|
||||
- `lbl_81668210` target +0x0, source +0x0: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_8166821C` target +0xC, source +0xC: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_81668228` target +0x18, source +0x18: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_81668234` target +0x24, source +0x24: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_81668240` target +0x30, source +0x30: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_8166824C` target +0x3C, source +0x3C: owned bytes equal, 0 relocation entries equal.
|
||||
- `scPaneName__Q39textinput6extend4memo` target +0x4C, source +0x4C: owned bytes equal, relocations +0x0 ('lbl_81668210', 0) -> ('@6051', 0); +0x4 ('lbl_816974E0', 0) -> ('@6052', 0); +0x8 ('lbl_816974E8', 0) -> ('@6053', 0); +0xC ('lbl_8166821C', 0) -> ('@6054', 0); +0x10 ('lbl_816974F0', 0) -> ('@6055', 0); +0x14 ('lbl_81668228', 0) -> ('@6056', 0); +0x18 ('lbl_81668234', 0) -> ('@6057', 0); +0x1C ('lbl_81668240', 0) -> ('@6058', 0); +0x20 ('lbl_8166824C', 0) -> ('@6059', 0).
|
||||
- `jumptable_81668280` target +0x70, source +0x70: owned bytes equal, 26 relocation entries equal.
|
||||
- `lbl_81668324` target +0x114, source +0x114: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_81668330` target +0x120, source +0x120: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_81668340` target +0x130, source +0x130: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_81668350` target +0x140, source +0x140: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_8166835C` target +0x14C, source +0x14C: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_81668368` target +0x158, source +0x158: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_81668374` target +0x164, source +0x164: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_81668380` target +0x170, source +0x170: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_8166838C` target +0x17C, source +0x17C: owned bytes equal, 0 relocation entries equal.
|
||||
- `csGroupName__Q39textinput6extend4memo` target +0x188, source +0x188: owned bytes equal, relocations +0x0 ('lbl_81668324', 0) -> ('@6255', 0); +0x4 ('lbl_81668330', 0) -> ('@6256', 0); +0x8 ('lbl_81668340', 0) -> ('@6257', 0); +0xC ('lbl_81668350', 0) -> ('@6258', 0); +0x10 ('lbl_8166835C', 0) -> ('@6259', 0); +0x14 ('lbl_81668368', 0) -> ('@6260', 0); +0x18 ('lbl_81668374', 0) -> ('@6261', 0); +0x1C ('lbl_81668380', 0) -> ('@6262', 0); +0x20 ('lbl_8166838C', 0) -> ('@6263', 0).
|
||||
- `jumptable_816683BC` target +0x1AC, source +0x1AC: owned bytes equal, 9 relocation entries equal.
|
||||
- `jumptable_816683E0` target +0x1D0, source +0x1D0: owned bytes equal, 9 relocation entries equal.
|
||||
- `lbl_81668404` target +0x1F4, source +0x1F4: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_81668418` target +0x208, source +0x208: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_81668428` target +0x218, source +0x218: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_81668434` target +0x224, source +0x224: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_81668460` target +0x250, source +0x250: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_8166846C` target +0x25C, source +0x25C: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_8166847C` target +0x26C, source +0x26C: owned bytes equal, 0 relocation entries equal.
|
||||
- `lbl_81668488` target +0x278, source +0x278: owned bytes equal, 0 relocation entries equal.
|
||||
- `__vt__Q49textinput6extend4memo13SimpleAnmPane` target +0x284, source +0x284: owned bytes equal, 7 relocation entries equal.
|
||||
- `__vt__Q49textinput6extend4memo12ScrollButton` target +0x2A8, source +0x2A8: owned bytes equal, 4 relocation entries equal.
|
||||
- `__vt__Q49textinput6extend4memo10NigaoePane` target +0x2C0, source +0x2C0: owned bytes equal, 9 relocation entries equal.
|
||||
- `__vt__Q49textinput6extend4memo9WholePane` target +0x2EC, source +0x2EC: owned bytes equal, 9 relocation entries equal.
|
||||
- `__vt__Q49textinput6extend4memo7AnmPane` target +0x318, source +0x318: owned bytes equal, target extent 48, source object 44, 9 relocation entries equal.
|
||||
- `__vt__Q49textinput6extend4memo12EventHandler` target +0x348, source +0x348: owned bytes equal, 6 relocation entries equal.
|
||||
- `__vt__Q49textinput6extend4memo9InputForm` target +0x368, source +0x368: owned bytes equal, target extent 744, source object 720, 172 relocation entries equal.
|
||||
|
||||
Additional real compiler-emitted weak tables absent from the target symbol inventory:
|
||||
|
||||
- `__vt__Q39textinput3gui12EventHandler` source +0x638, 24 bytes: +0x14 -> getLatestEventCtrlNo__Q39textinput3gui12EventHandlerFv; +0x10 -> setLatestEventCtrlNo__Q39textinput3gui12EventHandlerFi; +0xC -> onEvent__Q39textinput3gui12EventHandlerFRQ39textinput3gui12GUIComponentUlPv; +0x8 -> __dt__Q39textinput3gui12EventHandlerFv.
|
||||
|
||||
## Remaining differences and completeness audit
|
||||
|
||||
Raw relocation name differences for ordinary literal aliases in the inventory above are not wrong pointer targets: normalization to referenced section plus symbol value plus relocation addend resolves them to the same bytes. All retained tiInputForm tables through WithAtok, all tiKeyboard retained tables, and all MyTiManager retained tables have the exact original virtual method slots. No missing nonzero virtual slot was discovered. tiInputForm Base at target .data+0xA08 has only its real destructor/create/init at +8/+12/+16; the additional 28 bytes of its extraction extent are zeros without relocations. Its source table at +0xBA0 has those same three entries. Animation has all seven exact method slots, but shifts from target +0xA38 to source +0xB58. The target OutOfLength literal is at +0xA5C; the identical source literal is at +0xBB4. The final assertion literal shifts from +0xA6C to +0xBC4. The section is not byte-identical and remains unresolved; no invented virtual methods, suppressed tables, padding, or size truncation was used.
|
||||
|
||||
tiKeyboard's complete 2696-byte target prefix is byte-identical to source, including every normalized relocation. Source appends two genuine pure-abstract 12-byte weak tables with only zeros and one real 24-byte EventHandler table with the four concrete relocation slots listed above. Therefore the entire section is not identical and the data goal remains unresolved. MyTiManager's complete 944-byte source prefix is byte-identical to target, with identical normalized relocations. The target-only 40-byte zero tail has no outgoing relocations and no incoming reference found in any extracted 43U object. Its actual source object/type cannot be recovered from this evidence; adding a zero filler would violate the task. Its .data goal remains unresolved.
|
||||
|
||||
MyTiInputForm .data is 1616 bytes on both sides with identical raw bytes. Source's final weak EventHandler has real destructor/onEvent/setLatestEventCtrlNo/getLatestEventCtrlNo relocations at +0x640/+0x644/+0x648/+0x64C; original deduplicated weak extraction has zeros and no relocations there. Objdiff nonetheless reports 100% for the section. .rodata and .sdata2 are byte-identical, including normalized relocations. .sdata now has the genuine addressable float zero at +0x28, and its entire 67-byte source prefix equals target; target has five trailing zero alignment bytes. Objdiff reports every non-text section 100%, matched_data 3032/3032. No total_data value changed for any unit.
|
||||
|
||||
Remaining objdiff nonmatching functions, all restored after three distinct source attempts:
|
||||
- calcCursorPos__Q39textinput9inputform4BaseFff: 91.622696%, 326/326 instructions, float register allocation/scheduling differs; attempted right-before-bottom, separate scale components, aggregate line bounds.
|
||||
- create__Q39textinput9inputform12LayoutByNW4RFP12MEMAllocatorPQ39textinput9inputform10EditBuffer: 95.02809%, 352/356 instructions, row/button loop allocation/codegen differs; attempted reload row owner, font branch direction, typed button index.
|
||||
- setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language: 96.44726%, 237/237 instructions, visibility-loop register choices differ; attempted text-pane branch direction, pane query reload, split visibility counts.
|
||||
|
||||
Final clean full gate over all four units: no regressions, no added forbidden patterns, no readability warnings; retail DOL SHA1 preserved. Code matched bytes and instruction-exact counts never dropped in the retained commits. This is partial data progress, with only MyTiInputForm reaching the full data goal. The symbols ownership corrections preserve all original split/section byte extents and require ordinary orchestrator evidence review.
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/keyboard/tiInputForm] pool: IDENTICAL
|
||||
[src/keyboard/tiInputForm] objdiff: code 46980/50656 data 1036/3772 functions 218/221 fuzzy 99.5781 linked code 0
|
||||
[src/keyboard/tiInputForm] instruction-exact functions: 216/221
|
||||
[src/keyboard/tiInputForm] section .bss size 96 match 100.0
|
||||
[src/keyboard/tiInputForm] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiInputForm] section .data size 2736 match 65.68563
|
||||
[src/keyboard/tiInputForm] section .rodata size 760 match 100.0
|
||||
[src/keyboard/tiInputForm] section .sbss size 32 match 100.0
|
||||
[src/keyboard/tiInputForm] section .sdata size 40 match 100.0
|
||||
[src/keyboard/tiInputForm] section .sdata2 size 104 match 100.0
|
||||
[src/keyboard/tiInputForm] section .text size 50656 match 99.578094
|
||||
[src/keyboard/tiInputForm] below 100: calcCursorPos__Q39textinput9inputform4BaseFff 91.622696
|
||||
[src/keyboard/tiInputForm] below 100: create__Q39textinput9inputform12LayoutByNW4RFP12MEMAllocatorPQ39textinput9inputform10EditBuffer 95.02809
|
||||
[src/keyboard/tiInputForm] below 100: setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language 96.44726
|
||||
[src/keyboard/tiInputForm] baseline: code 46980/50656 data 908 functions 218 fuzzy 99.5781
|
||||
[src/keyboard/tiKeyboard] pool: IDENTICAL
|
||||
[src/keyboard/tiKeyboard] objdiff: code 8368/8368 data 12/2708 functions 62/62 fuzzy 100.0000 linked code 8368
|
||||
[src/keyboard/tiKeyboard] instruction-exact functions: 62/62
|
||||
[src/keyboard/tiKeyboard] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiKeyboard] section .data size 2696 match 99.117645
|
||||
[src/keyboard/tiKeyboard] section .sbss size 8 match 100.0
|
||||
[src/keyboard/tiKeyboard] section .text size 8368 match 100.0
|
||||
[src/keyboard/tiKeyboard] baseline: code 8368/8368 data 12 functions 62 fuzzy 100.0000
|
||||
[src/keyboard/MyTiManager] pool: IDENTICAL
|
||||
[src/keyboard/MyTiManager] objdiff: code 20196/20196 data 148/1132 functions 91/91 fuzzy 100.0000 linked code 0
|
||||
[src/keyboard/MyTiManager] instruction-exact functions: 91/91
|
||||
[src/keyboard/MyTiManager] section .bss size 72 match 100.0
|
||||
[src/keyboard/MyTiManager] section .ctors size 4 match 100.0
|
||||
[src/keyboard/MyTiManager] section .data size 984 match 97.92531
|
||||
[src/keyboard/MyTiManager] section .sbss size 16 match 100.0
|
||||
[src/keyboard/MyTiManager] section .sdata size 24 match 100.0
|
||||
[src/keyboard/MyTiManager] section .sdata2 size 32 match 100.0
|
||||
[src/keyboard/MyTiManager] section .text size 20196 match 100.0
|
||||
[src/keyboard/MyTiManager] baseline: code 20196/20196 data 76 functions 91 fuzzy 100.0000
|
||||
[src/keyboard/MyTiInputForm] pool: IDENTICAL
|
||||
[src/keyboard/MyTiInputForm] objdiff: code 14532/14532 data 3032/3032 functions 84/84 fuzzy 100.0000 linked code 0
|
||||
[src/keyboard/MyTiInputForm] instruction-exact functions: 84/84
|
||||
[src/keyboard/MyTiInputForm] section .data size 1616 match 100.0
|
||||
[src/keyboard/MyTiInputForm] section .rodata size 1288 match 100.0
|
||||
[src/keyboard/MyTiInputForm] section .sdata size 72 match 100.0
|
||||
[src/keyboard/MyTiInputForm] section .sdata2 size 56 match 100.0
|
||||
[src/keyboard/MyTiInputForm] section .text size 14532 match 100.0
|
||||
[src/keyboard/MyTiInputForm] baseline: code 14532/14532 data 2960 functions 84 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.55724 -> 88.55724
|
||||
global fuzzy_match_percent: 99.45033 -> 99.45033
|
||||
global complete_code_percent: 62.98463 -> 62.98463
|
||||
global matched_data_percent: 96.82804 -> 96.84288
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
Accepted improvement commits: 2348596d (real float-reference setter), fff3e072 (Color ownership), 8532b7bf (DestructorChain ownership).
|
||||
165
tools/decomp-assist/four-leaves-r11.attempts.md
Normal file
165
tools/decomp-assist/four-leaves-r11.attempts.md
Normal file
@@ -0,0 +1,165 @@
|
||||
MAX round; one worker, 43U matching and proven owned data identity/extent corrections. AGENTS read; origin fetched.
|
||||
IPL_ES_DATA POOL FIRST: baseline divergence83,114 strings on each side; data first0xd3f bytes are identical, nonmatching unauthorized helper block causes later ordering mismatch. Target objects are extraction labels, ours anonymous literal and __FUNCTION__ compiler symbols. No source data added.
|
||||
DATA PROOF lbl_816412C0 -> @17577: GetTmdView__Q33ipl7utility6ESMiscFPQ23EGG4HeapUxPP9ESTmdView+0x4E data relocation resolves .data+0x0 in both objects; NUL-terminated char[43] bytes identical; extent0x2B->0x2B, address and section totals unchanged, absorbed neighbours/alignment left unowned.
|
||||
DATA PROOF lbl_816412EB -> @17578: GetTmdView__Q33ipl7utility6ESMiscFPQ23EGG4HeapUxPP9ESTmdView+0xC6 data relocation resolves .data+0x2B in both objects; NUL-terminated char[43] bytes identical; extent0x2B->0x2B, address and section totals unchanged, absorbed neighbours/alignment left unowned.
|
||||
DATA PROOF lbl_81641316 -> @17592: GetTicketViewList__Q33ipl7utility6ESMiscFPQ23EGG4HeapUxPP12ESTicketViewPUl+0x52 data relocation resolves .data+0x56 in both objects; NUL-terminated char[54] bytes identical; extent0x36->0x36, address and section totals unchanged, absorbed neighbours/alignment left unowned.
|
||||
DATA PROOF lbl_8164134C -> @17593: GetTicketViewList__Q33ipl7utility6ESMiscFPQ23EGG4HeapUxPP12ESTicketViewPUl+0xDE data relocation resolves .data+0x8C in both objects; NUL-terminated char[54] bytes identical; extent0x36->0x36, address and section totals unchanged, absorbed neighbours/alignment left unowned.
|
||||
DATA PROOF lbl_81641382 -> @17606: GetTicketView__Q33ipl7utility6ESMiscFPQ23EGG4HeapUxP12ESTicketViewi+0x4A data relocation resolves .data+0xC2 in both objects; NUL-terminated char[41] bytes identical; extent0x29->0x29, address and section totals unchanged, absorbed neighbours/alignment left unowned.
|
||||
DATA PROOF lbl_816413AB -> @17613: PrivateContentsExist__Q33ipl7utility6ESMiscFUx+0x2A data relocation resolves .data+0xEB in both objects; NUL-terminated char[25] bytes identical; extent0x19->0x19, address and section totals unchanged, absorbed neighbours/alignment left unowned.
|
||||
DATA PROOF lbl_816413C4 -> @17614: PrivateContentsExist__Q33ipl7utility6ESMiscFUx+0x86 data relocation resolves .data+0x104 in both objects; NUL-terminated char[38] bytes identical; extent0x26->0x26, address and section totals unchanged, absorbed neighbours/alignment left unowned.
|
||||
DATA PROOF lbl_816413EA -> @17630: ContentExist__Q33ipl7utility6ESMiscFP9ESTmdViewUlPl+0xA2 data relocation resolves .data+0x12A in both objects; NUL-terminated char[58] bytes identical; extent0x3A->0x3A, address and section totals unchanged, absorbed neighbours/alignment left unowned.
|
||||
DATA PROOF lbl_81641424 -> @17631: ContentExist__Q33ipl7utility6ESMiscFP9ESTmdViewUlPl+0xEA data relocation resolves .data+0x164 in both objects; NUL-terminated char[58] bytes identical; extent0x491->0x3A, address and section totals unchanged, absorbed neighbours/alignment left unowned.
|
||||
DATA PROOF lbl_816418B5 -> @17730: IsLastTicketExpired__Q33ipl7utility6ESMiscFPUx+0x32 data relocation resolves .data+0x5F5 in both objects; NUL-terminated char[17] bytes identical; extent0xF0->0x11, address and section totals unchanged, absorbed neighbours/alignment left unowned.
|
||||
DATA PROOF lbl_816419A5 -> @17780: ChangeUid__Q33ipl7utility6ESMiscFUx+0x2E data relocation resolves .data+0x6E5 in both objects; NUL-terminated char[33] bytes identical; extent0x268->0x21, address and section totals unchanged, absorbed neighbours/alignment left unowned.
|
||||
DATA PROOF lbl_81641C0D -> @17857: DeleteMetaContent__Q33ipl7utility6ESMiscFUx+0x2E data relocation resolves .data+0x94D in both objects; NUL-terminated char[26] bytes identical; extent0x7CD->0x1A, address and section totals unchanged, absorbed neighbours/alignment left unowned.
|
||||
DATA PROOF lbl_816962A0 -> @17940: DeleteSavedata__Q33ipl7utility6ESMiscFUxPQ23EGG4Heap+0x14C data relocation resolves .sdata+0x0 in both objects; NUL-terminated char[5] bytes identical; extent0x5->0x5, address and section totals unchanged, absorbed neighbours/alignment left unowned.
|
||||
DATA PROOF lbl_816962A5 -> __FUNCTION__$16810: Open__Q33ipl7utility7TMDFileFPc+0x80 data relocation resolves .sdata+0x5 in both objects; NUL-terminated char[5] bytes identical; extent0x5->0x5, address and section totals unchanged, absorbed neighbours/alignment left unowned.
|
||||
DATA PROOF lbl_816962AA -> __FUNCTION__$16845: Exist__Q33ipl7utility7TMDFileFUxPUlPUl+0x80 data relocation resolves .sdata+0xA in both objects; NUL-terminated char[6] bytes identical; extent0x6->0x6, address and section totals unchanged, absorbed neighbours/alignment left unowned.
|
||||
DATA PROOF lbl_816962B0 -> __FUNCTION__$16875: Backup__Q33ipl7utility7TMDFileFUx+0x84 data relocation resolves .sdata+0x10 in both objects; NUL-terminated char[7] bytes identical; extent0x7->0x7, address and section totals unchanged, absorbed neighbours/alignment left unowned.
|
||||
DATA PROOF lbl_816962B7 -> __FUNCTION__$16927: Restore__Q33ipl7utility7TMDFileFUx+0x80 data relocation resolves .sdata+0x17 in both objects; NUL-terminated char[8] bytes identical; extent0x9->0x8, address and section totals unchanged, absorbed neighbours/alignment left unowned.
|
||||
DATA RESULT iplESMisc quick gate PASS: matched_data0/4416->4416/4416; instruction-exact30/31 unchanged. All17 config changes have matched relocation + NUL/type proof; no raw section bytes, addresses, split totals, or production source changed. Pool83 remains a code-source issue in DeleteUnauthorizedData; objdiff100 is its owned-symbol pairing measure and does not assert identical raw pools.
|
||||
DATA FULL GATE PASS: clean 43U build over all4 owned units; DOL SHA1 unchanged, regressions0, forbidden0, readability0. Commit proven data identity/extent recovery before code iteration.
|
||||
BEGIN DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: origin=08923eda6ca98c9270567edcac967fe6d30868cf, fetch=0, source identical=True; Target449/ours434 instructions; aligned frame0x260, fileInfo at0x160 and ticket scratch at0x80. Target retains both ES_ListTitles results inr27 throughheapfree and returns r27 inr3. Previous proper helpers445/449 exposed four missing instructions: hoisted -1 versus per-iteration64 masks, ticket scratch pointer lifetime, and nonzero count branch form. Test wide masked formatting/field expression boundaries and caller scratch lifetime before declaration search; temporary return signature guarded only for this cpp.
|
||||
POOL FIRST DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: FIRST DIVERGENCE at index 83 | 81 mine=0xcfe base=0xcfe | M '%s::%s: Could not read2 %s: %d\n' | B '%s::%s: Could not read2 %s: %d\n' | 82 mine=0xd1e base=0xd1e | M '%s::%s: Failed to delete %s: %d\n' | B '%s::%s: Failed to delete %s: %d\n' | * 83 mine=0xd3f base=0xd3f | M '%s::%s: Unable to allocate\n' | B 'verifySavedataZD' | * 84 mine=0xd5b base=0xd50 | M 'InitSavedata' | B 'DeleteTicketsForce' | * 85 mine=0xd68 base=0xd63 | M '/title/%08x/%08x/data/%s' | B 'InitSavedata' | * 86 mine=0xd81 base=0xd70 | M 'zeldaTp.dat' | B '%s::%s: Failed to ES_ListTitlesOnCard1: %d\n' | * 87 mine=0xd8d base=0xd9c | M '%s::%s: ChangeUid failed\n' | B '%s::%s: Unable to allocate\n' | | mine has 114 strings, base has 114 |
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: return-status helpers with caller-owned aligned file/ticket storage; source 93d28836cd1d; structural/exact,lengths ((32, 398), 444, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: format path from wide-masked title before extracting32-bit halves; source 5f9b66204c9b; structural/exact,lengths ((29, 182), 448, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: fresh typed title reads at masked branch/helper/switch boundaries; source e573f03b2cf2; structural/exact,lengths ((29, 182), 448, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: caller gives ticket scratch pointer an explicit lifetime across title loop; source 042fe84ed15c; BUILD FAIL 1 -DTARGET_RVL -W nomissingreturn -ipa file -gccinc -fp_contract off -O4,s -enc SJIS -lang=c++ -MMD -c src/utility/iplESMisc.cpp -o build/43U/src/src/utility && "/usr/bin/python3" tools/transform_dep.py build/43U/src/src/utility/iplESMisc.d build/43U/src/src/utility/iplESMisc.d | ### mwcceppc.exe Compiler: | # In: include\utility\iplTree.h | # From: src\utility\iplESMisc.cpp | # ---------------------------------- | # 40: } | # Warning: ^ | # (10184) return value expected | # (included from: | # Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix- | # board\include\scene\iplSceneBase.h:6 | # Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix- | # board\include\scene\iplSceneManager.h:14 | # Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix- | # board\include\system\iplSystem.h:15 | # Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix- | # board\src\utility\iplESMisc.cpp:5) | ### mwcceppc.exe Compiler: | # File: src\utility\iplESMisc.cpp | # ---------------------------------- | # 651: u8* ticketScratch = ticketViews; | # Error: ^^^^^^^^^^^ | # (10140) undefined identifier 'ticketViews' | # Too many errors printed, aborting program | | User break, cancelled... | ninja: build stopped: subcommand failed. |
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: ticket scratch union gives actual byte-storage and ticket-view fields; source a138d0e32291; structural/exact,lengths ((29, 182), 448, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: zero ticket count takes explicit cleanup edge as target branch pair; source 857f365c2fe6; structural/exact,lengths ((29, 182), 448, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: InitSavedata scratch cursor declared only in its correct caller scope; source a1fd7d43b86a; structural/exact,lengths ((35, 260), 451, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: low formatting half narrows once after64-bit mask; source 81f2cef32440; structural/exact,lengths ((27, 400), 447, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: both formatting halves narrow once after64-bit mask; source bcd896bc3b59; structural/exact,lengths ((27, 403), 446, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: zero ticket count returns from inline helper before allocation boundary; source 589297c67d3e; structural/exact,lengths ((27, 403), 446, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: verify state declared before block offset and local loop counter; source d7cea452c335; structural/exact,lengths ((29, 403), 446, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: ticket helper evaluates caller storage/count before title and heap; source 89bea13429bb; structural/exact,lengths ((27, 403), 446, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: single narrowing masks combined with caller scratch pointer lifetime; source 421caf55932b; structural/exact,lengths ((30, 434), 450, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: ticket helper returns its actual ES status at zero-count and cleanup exits; source 0b528f4f0a9f; structural/exact,lengths ((32, 434), 451, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: scratch cursor begins lifetime only after successful second title enumeration; source 4578a5a6f40b; structural/exact,lengths ((30, 396), 450, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
|
||||
DECLSEARCH DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: declaration block: | u8 ticketViews[0xe0] ALIGN32; | NANDFileInfo fileInfo ALIGN32; | u32 ticketViewCount; | ESTitleId* titleIds = NULL; | u32 titleCount = 0; | s32 ret = ES_ListTitlesOnCard(NULL, &titleCount); | start (27, 400) | best (27, 400) after 36 builds; source restored; best order was: | u8 ticketViews[0xe0] ALIGN32; | NANDFileInfo fileInfo ALIGN32; | u32 ticketViewCount; | ESTitleId* titleIds = NULL; | u32 titleCount = 0; | s32 ret = ES_ListTitlesOnCard(NULL, &titleCount); |
|
||||
END DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap:at least3 distinct successful MAX source variants, 36 declaration builds; wide formatting boundaries recovered448/449, best narrowed half27struct400exact447/449; pointer lifetime and helper-return variants450/451. Proper helpers fixpool114 but no exact. Temporary guarded public status-return declaration and source restored; committed data identities/types retained. Target repeated -1 materialization, saved scratch cursor and branch pair remain structural differences.
|
||||
NHTTP DATA POOL FIRST: identical1 string, no pool ordering gap. Remaining .rodata object is nine powers-of-ten initializer with trailing8-byte-section alignment.
|
||||
NHTTP DATA REMOTE: origin=c4857800df46ae3edfd824198fa09a31c4f6ce0f; target label still present=True
|
||||
NHTTP DATA POOL FIRST: identical1 string, no pool ordering gap. Remaining .rodata object is nine powers-of-ten initializer with trailing8-byte-section alignment.
|
||||
NHTTP DATA REMOTE: origin=c4857800df46ae3edfd824198fa09a31c4f6ce0f; target label still present=True
|
||||
NHTTP DATA POOL FIRST: identical1 string, no pool ordering gap. Remaining .rodata object is nine powers-of-ten initializer with trailing8-byte-section alignment.
|
||||
NHTTP DATA REMOTE: origin=c4857800df46ae3edfd824198fa09a31c4f6ce0f; target label still present=True
|
||||
DATA PROOF lbl_81618C48 -> @231: NHTTPi_intToStr relocation offsets ['0x16', '0x1a'] resolve .rodata+0 in both objects; source initializer is u32[9] with identical36 bytes; extent0x28->0x24 leaves4 zero alignment bytes unowned, address0x81618C48 and target section total40/alignment8 unchanged; compiled section36/alignment8 was not changed.
|
||||
NHTTP DATA FULL GATE PASS: matched_data72/112->112/112; .rodata extent is9 u32 elements, four zero alignment bytes left unowned; target section still40 bytes, compiled still36. Code counts unchanged; full43U/DOL/regression/forbidden/readability pass over all4 units.
|
||||
BEGIN NHTTPi_strnicmp: origin=c4857800df46ae3edfd824198fa09a31c4f6ce0f, fetch=0, source identical=True; 51/51 instructions, frame0x10 identical. Only initial constants ordered A,zero,Z versus targetA,Z,zero; later instructions exactly identical. New operand direction and matching32-bit long predicates/upper-first helper formal order, then declaration order. Shared LowerCase remains untouched so exact functions cannot regress.
|
||||
POOL FIRST NHTTPi_strnicmp: POOL IDENTICAL up to 1 (mine=1 base=1) |
|
||||
ATTEMPT NHTTPi_strnicmp: constant first in lower bound; source dcccd0bb4449; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_strnicmp: constant first in upper bound; source 21d5e60ddd5e; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_strnicmp: both bound operands in constant-first source form; source 2be149ec0660; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_strnicmp: signed32-bit long formal and bounds have one arithmetic type; source dbf14de99b1b; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_strnicmp: named range predicates retain both compare values before branch; source 746233dd99d4; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_strnicmp: inline range formal order upper/lower/character; source 372f2c0c5a89; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
DECLSEARCH NHTTPi_strnicmp: declaration block: | int a; | int b; | start (2, 2) | best (2, 2) after 2 builds; source restored; best order was: | int a; | int b; |
|
||||
END NHTTPi_strnicmp: six new real operand/type/boundary variants plus2 declaration orders, no exact; A/Z/zero materialization order persists. Baseline source and committed data retained.
|
||||
BEGIN NHTTPi_intToStr: origin=c4857800df46ae3edfd824198fa09a31c4f6ce0f, fetch=0, source identical=True; 95/95, frame0x50. Baseline normalized0/exact53; indexed output already recovers target scratchr5 and15 exact differences. Target quotientr8/productr7/ASCIIr0; ours quotientr7/productr0/ASCIIr7. Array and branches identical. Test byte result type, native32-bit quotient/index types and real divide-result/remaining-value inline boundaries, then declaration search.
|
||||
POOL FIRST NHTTPi_intToStr: POOL IDENTICAL up to 1 (mine=1 base=1) |
|
||||
ATTEMPT NHTTPi_intToStr: indexed output confirms scratch cursor structural match; source 57cbcaead90e; structural/exact,lengths ((0, 15), 95, 95); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_intToStr: ASCII result stored from actual unsigned-byte local; source 2c1e8b51fa7c; BUILD FAIL e -Cpp_exceptions off -O4,p -inline auto -pragma "cats off" -pragma "warn_notinlined off" -maxerrors 1 -nosyspath -RTTI off -fp_contract on -str reuse -DSDK_IPL -D_REVOLUTION -DMEM_MANAGER_DIRECT -i include -i include/global -i libs/MetroTRK/include -i libs/Runtime/include -i libs/MSL/include -i libs/RVL_SDK/include -i libs/RevoEX/include -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL.c -o build/43U/src/libs/RevoEX/src/nhttp && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL.d build/43U/src/libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL.d | ### mwcceppc.exe Compiler: | # File: libs\RevoEX\src\nhttp\NHTTP_stdlib_RVL.c | # ------------------------------------------------- | # 116: u8 character = quotient + '0'; | # Error: ^^ | # (10141) expression syntax error | # Too many errors printed, aborting program | | User break, cancelled... | ninja: build stopped: subcommand failed. |
|
||||
ATTEMPT NHTTPi_intToStr: quotient uses native unsigned-int32 instead of SDK unsigned-long32; source 4f0d833d3eb7; structural/exact,lengths ((0, 15), 95, 95); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_intToStr: array position uses nonnegative unsigned32 index; source 6f5e01e9f05a; structural/exact,lengths ((0, 15), 95, 95); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_intToStr: real division helper returns decimal digit and remainder fields; source dff71c76e5cb; structural/exact,lengths ((31, 82), 107, 95); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_intToStr: division helper updates remaining value and returns quotient; source 253619c46678; structural/exact,lengths ((0, 0), 95, 95); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
DATA PROOF @231 -> @237 at0x81618C48: the new TakeDecimalDigit inline boundary changes the compiler anonymous-ID sequence; exact NHTTPi_intToStr still loads the same9-word initializer through relocation offsets0x16/0x1A, bytes/type u32[9] and extent0x24 unchanged. Update extracted symbol identity to the actual compiled name, no address/section change.
|
||||
MATCH NHTTPi_intToStr: TakeDecimalDigit updates remaining value by reference and returns quotient; indexed output retains target scratch cursor; 95/95 instructions, ctxdiff0 and objdiff100.0, unit10/14->11/14/code1008->1388. Quick full gate over all4 leaves PASS, data4416/112/0/456 preserved; full clean gate before commit.
|
||||
FULL MATCH GATE NHTTPi_intToStr PASS: clean43U over all4 units; exact95/95 ctxdiff0, objdiff100, NHTTP11/14 and data112/112; regressions0, DOL SHA1 correct, forbidden0, readability0. Retain only TakeDecimalDigit plus indexed output and verified @237 array identity update.
|
||||
BEGIN NHTTPi_compareToken: origin=9ef60d674d871e9d936b6f608dc7392de529e97d, fetch=0, source identical=False; 44/45, frame0x10. Target right fold is a conditional value, left keeps raw and folded values; target rawleft inr31, baseline fold colors collide. Code match in previous helper-by-reference decimal conversion motivates real token read/normalize output argument boundaries. Inspect condition-entry loop and raw-left lifetime before declaration search.
|
||||
POOL FIRST NHTTPi_compareToken: POOL IDENTICAL up to 1 (mine=1 base=1) |
|
||||
REMOTE FUNCTION CHECK NHTTPi_compareToken: current public function equals origin/main=True; only local decimal match differs in unit; current ctxdiff24struct42exact proves token still open.
|
||||
ATTEMPT NHTTPi_compareToken: left normalized return and raw output parameter in condition-entry loop; source 9fa26d9ce1c2; structural/exact,lengths ((6, 16), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: explicit right-first fold then left read in loop body; source 73b259bdd42d; structural/exact,lengths ((22, 43), 46, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: left helper output parameter evaluated before input pointer; source 5b5e28b2320a; structural/exact,lengths ((6, 16), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: real raw/folded token pair returned across inline boundary; source 25d582834d5b; structural/exact,lengths ((29, 47), 48, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: raw token out-parameter is signed byte, promoted for comparison; source 065198c55f86; structural/exact,lengths ((6, 16), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: helper returns raw while writing normalized value by reference; source 27910b42caf3; structural/exact,lengths ((22, 43), 46, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
DECLSEARCH NHTTPi_compareToken: declaration block: | int rawLeft; | int leftCharacter; | int rightCharacter; | start (6, 16) | best (6, 16) after 6 builds; source restored; best order was: | int rawLeft; | int leftCharacter; | int rightCharacter; |
|
||||
END NHTTPi_compareToken: six distinct by-reference/tuple/condition-order variations plus declaration search, no exact; baseline token restored and decimal match retained.
|
||||
ATTEMPT NHTTPi_compareToken: right-first equality and inverse ternary preserve raw byte until stop test; source e02a80a88c49; structural/exact,lengths ((32, 45), 48, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: right-first equality with original uppercase ternary; source 1d232b7e3c5c; structural/exact,lengths ((6, 15), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: right fold branch assigns shifted candidate before range rejection; source 6090da9c0edc; structural/exact,lengths ((6, 25), 46, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: left signed-byte read output, right-first equality; source 33a8521f649e; structural/exact,lengths ((32, 45), 48, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: right-first explicit int raw with byte stop comparison; source d9a8082f6e90; structural/exact,lengths ((32, 45), 48, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: right bounds constant-first and shifted candidate before fallback; source 521755ff8e5c; structural/exact,lengths ((6, 25), 46, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
END NHTTPi_compareToken: six further branch/equality/byte-lifetime attempts; best (6, 15); retained decimal-only exact source.
|
||||
BEGIN NHTTPi_Base64Encode: origin=c9fb0697ca1af1a4934b8020b176d57068cf219e, fetch=0, source identical=False; 119/119 frame0x20; target snapshots three signed bytes and computes indices before table loads/stores; baseline interleaves source reloads and output stores. Target source-pointer increments by3 and output by4; consumed-length padding branch is signed. Diagnose alias boundaries and staged triplet arithmetic before register search.
|
||||
POOL FIRST NHTTPi_Base64Encode: POOL IDENTICAL up to 1 (mine=1 base=1) |
|
||||
REMOTE FUNCTION CHECK NHTTPi_Base64Encode: exact public function equals origin/main=True; main has unchanged open implementation.
|
||||
ATTEMPT NHTTPi_Base64Encode: staged byte snapshots and first encoded temporary inside group helper; source 487e72dfdfaa; structural/exact,lengths ((42, 63), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_Base64Encode: first encoded temporary inline in caller, signed padding length; source e387cd259d57; structural/exact,lengths ((42, 67), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_Base64Encode: group helper owns real input and output cursor advancement; source a16ce970e996; structural/exact,lengths ((42, 63), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_Base64Encode: cursor helper input evaluated before output by-reference; source 0ffd67926185; structural/exact,lengths ((42, 63), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_Base64Encode: natural char triplet view with signed fragment before masked fragment; source d371bba56fde; structural/exact,lengths ((43, 57), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_Base64Encode: paired alphabet lookup helper defines fragment lifetimes; source 73fac3ba455c; structural/exact,lengths ((43, 57), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
DECLSEARCH NHTTPi_Base64Encode: declaration block: | const char* table=alphabet; | char* output=destination; | s32 length=strlen(source); | s32 consumed=0; | start (42, 63) | best (42, 63) after 13 builds; source restored; best order was: | const char* table=alphabet; | char* output=destination; | s32 length=strlen(source); | s32 consumed=0; |
|
||||
END NHTTPi_Base64Encode: six successful staged-byte/group/cursor/triplet/lookup attempts and declaration search; best (42, 63), no exact; signed source and production decimal match retained.
|
||||
ATTEMPT NHTTPi_Base64Encode: staged signed snapshots with masked fragment added to table first; source d7cee83c12f4; structural/exact,lengths ((47, 63), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_Base64Encode: first low fragment named before first alphabet lookup; source 08d3fbc6f935; structural/exact,lengths ((47, 63), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_Base64Encode: both masked fragment lifetimes precede alphabet writes; source 174d85140e81; structural/exact,lengths ((47, 63), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_Base64Encode: triplet typed reads staged in alphabet lookup helper; source a6527088f3f3; structural/exact,lengths ((47, 63), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
DECLSEARCH staged helper NHTTPi_Base64Encode: declaration block: | s8 first; | s8 second; | s8 third; | char firstEncoded; | start (47, 63) | best (47, 63) after 13 builds; source restored; best order was: | s8 first; | s8 second; | s8 third; | char firstEncoded; |
|
||||
END NHTTPi_Base64Encode: four masked-index/table operand and snapshot extent attempts, best (47, 63), no exact; additional helper declaration search exhausted.
|
||||
BEGIN TMCJPEGDEC_IdctBlock_Lumi: origin=c9fb0697ca1af1a4934b8020b176d57068cf219e, fetch=0, source identical=True; 257/257 instructions; frame0x140, 64-word scratch and locals match in extent. Target schedules odd sum/difference pairs and even DC butterflies through separate live temporaries; baseline overwrites b1/b5, creating different multiplication/add lifetimes. In column pass target DC+bias and clamp temporaries differ. Diagnose operand order and by-reference butterfly helper boundaries before declaration search; preserve Col code.
|
||||
POOL FIRST TMCJPEGDEC_IdctBlock_Lumi: POOL IDENTICAL up to 0 (mine=0 base=0) |
|
||||
JPEG DATA AUDIT: target no owned data sections or data symbols, matched_data0/0; no identity or extent changes applicable.
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: odd butterfly by-reference outputs in row and column passes; source 64e03eee114e; structural/exact,lengths ((36, 188), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: row-only odd butterfly boundary; source 7f6a2e61fc08; structural/exact,lengths ((36, 188), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: column-only odd butterfly boundary; source 45f8f981bc1c; structural/exact,lengths ((36, 188), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: distinct odd difference temporaries preserve loaded coefficient lifetimes; source df52af3356b9; structural/exact,lengths ((43, 189), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: by-reference odd butterfly into separate sum/difference locals; source 708262fd7b95; structural/exact,lengths ((43, 189), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: DC even butterfly computes sum/difference through actual result pointers; source 801cb5f8ef06; structural/exact,lengths ((34, 188), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: second even butterfly coupled with DC output boundary; source affef2da000e; structural/exact,lengths ((34, 188), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: real scaled coefficient assignments cross by-reference inline boundary; source bfd3ccb1adeb; structural/exact,lengths ((36, 188), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
DECLSEARCH TMCJPEGDEC_IdctBlock_Lumi: declaration block: | s32* dst; | s32 done; | s32 iter; | s32 i; | s32 e; | s32 b2; | s32 b3; | s32 b4; | s32 b5; | s32 b6; | s32 b7; | s32 v; | s32 m; | s32 a; | s32 d; | s32 z; | s32 o; | s32 p; | s32 p_part; | s32 t; | s32 u; | s32 r; | s32 n; | s32 y; | s32 x_factor; | s32 z_factor; | s32 m_part; | s32 q; | s32 w; | s32 x; | s32 b1; | start (34, 188) | improved (34, 187) | improved (31, 187) | best (31, 187) after 140 builds; kept in source: | s32 b5; | s32 t; | s32 iter; | s32 i; | s32 e; | s32 b2; | s32 b3; | s32 b4; | s32* dst; | s32 b6; | s32 b7; | s32 v; | s32 m; | s32 a; | s32 d; | s32 z; | s32 o; | s32 p; | s32 p_part; | s32 done; | s32 u; | s32 r; | s32 n; | s32 y; | s32 x_factor; | s32 z_factor; | s32 m_part; | s32 q; | s32 w; | s32 x; | s32 b1; |
|
||||
END TMCJPEGDEC_IdctBlock_Lumi: eight valid source-level butterfly/lifetime/scale helper variants, best (34, 188), no exact; source restored, Col unchanged.
|
||||
BEGIN TMCJPEGDEC_IdctBlock_Col: origin=f78a686e3216ae4be40493a9fbc2c0b340eb6051, fetch=0, source identical=True; 454/454 frame0x130. DC path target materializes memset destination after range comparisons; ours materializes it early. Remaining full-transform differences are scheduling of coefficient butterfly sums/differences, clamp temporaries and operand association. Both passes use real separate odd differences. Test DC clamp/FIll helper boundaries and paired output stores before register allocation; retain Lumi unchanged.
|
||||
POOL FIRST TMCJPEGDEC_IdctBlock_Col: POOL IDENTICAL up to 0 (mine=0 base=0) |
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Col: DC signed clamp updates actual scalar through output pointer; source 8b59b5fed610; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Col: DC saturation and block fill share actual inline helper boundary; source a34ed3ee141a; structural/exact,lengths ((16, 276), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Col: DC helper passes unclamped value by value and saturation by reference; source 10e35c0ae81a; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Col: scaled sample saturation and byte store share helper output boundary; source 56a34bdf9ef8; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Col: odd coefficients paired by-reference in full row and column passes; source 3ff254193598; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Col: even DC sum/difference share result-pointer helper; source 8629e54d4393; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Col: symmetric low-frequency output pair stores inside real helper; source b6b84a108c27; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Col: odd butterfly difference result assigned before sum; source 2c17ae806df6; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
DECLSEARCH TMCJPEGDEC_IdctBlock_Col: declaration block: | s32* dst; | s32 done; | s32 iter; | s32 d; | s32 b1; | s32 b2; | s32 b3; | s32 b4; | s32 b5; | s32 b6; | s32 b7; | s32 v; | s32 r; | s32 a; | s32 i; | s32 m; | s32 n; | s32 o; | s32 x; | s32 q; | s32 y; | s32 u; | s32 w; | s32 p; | s32 t; | s32 z; | s32 x_factor; | s32 z_factor; | s32 m_part; | s32 p_part; | s32 e; | start (16, 276) | improved (14, 273) | best (14, 273) after 160 builds; kept in source: | s32* dst; | s32 done; | s32 iter; | s32 w; | s32 b1; | s32 b2; | s32 b3; | s32 b4; | s32 b5; | s32 b6; | s32 b7; | s32 v; | s32 r; | s32 a; | s32 i; | s32 m; | s32 n; | s32 o; | s32 x; | s32 q; | s32 y; | s32 u; | s32 d; | s32 p; | s32 t; | s32 z; | s32 x_factor; | s32 z_factor; | s32 m_part; | s32 p_part; | s32 e; |
|
||||
END TMCJPEGDEC_IdctBlock_Col: eight distinct helper/temporary/output-boundary attempts, best (16, 276), no exact; source restored, Lumi unchanged.
|
||||
BEGIN ProcessBlock: origin=c44fbd720965dadcc282b8cea9f6fba352c2f559, fetch=0, source identical=True; 294/306 frame0x20. Baseline __lwbrx zero-first argument generates indexed loads from block base; target materializes each indexed address and uses zero RA. Target independently byte-swaps message twice for two rotation halves and adds four associated partial sums per step. Prior structurally honest helper/address version reaches306/306 with36struct150exact. Inspect sequential pointer advances and by-reference state/cursor helper boundaries before declaration search; preserve three exact public APIs and constant/index data.
|
||||
POOL FIRST ProcessBlock: POOL IDENTICAL up to 0 (mine=0 base=0) |
|
||||
MD5 DATA AUDIT: constants u32[64] and indices u32[48], target .data448 plus .sdata8; existing report456/456; no label/name or extent gap. No data/config change required.
|
||||
ATTEMPT ProcessBlock: reference associated halves and real materialized indexed word addresses; source 281c3a5b98bf; structural/exact,lengths ((36, 150), 306, 306); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT ProcessBlock: rotation halves remain direct STEP macro expressions with shared state plus F; source 46b7f921d942; structural/exact,lengths ((56, 242), 306, 306); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT ProcessBlock: actual accumulator state updated by reference through full-step helper; source b463d05d0830; structural/exact,lengths ((233, 299), 304, 306); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT ProcessBlock: rotation helper owns actual sequential word cursor advancement; source 917c2cfc3ab1; structural/exact,lengths ((36, 150), 306, 306); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT ProcessBlock: round constant read and progression coupled through live pointer; source 12d8bb10252a; structural/exact,lengths ((36, 150), 306, 306); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT ProcessBlock: first two round Boolean functions have actual inline function parameters; source 2a5bd22badd4; structural/exact,lengths ((148, 187), 306, 306); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT ProcessBlock: full-step helper exposes real accumulator and word cursor result pointers; source 5a3812f412c7; structural/exact,lengths ((233, 299), 304, 306); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
DECLSEARCH ProcessBlock: declaration block: | u32 a = context->a; | u32* word; | u32 b = context->b; | u32 c = context->c; | u32 d = context->d; | u32* block; | u32* index; | int round; | u32* constant; | start (36, 150) | best (36, 150) after 93 builds; source restored; best order was: | u32 a = context->a; | u32* word; | u32 b = context->b; | u32 c = context->c; | u32 d = context->d; | u32* block; | u32* index; | int round; | u32* constant; |
|
||||
END ProcessBlock: seven associated-expression/state/cursor/constant/Boolean helper variants plus declaration search, best (36, 150), no exact; baseline restored and three public APIs retained.
|
||||
BEGIN NHTTPi_compareToken: origin=d9cf3598fce3c7991cbc370ad84612a1294866cb, fetch=0, source identical=False; Revisit target raw r31 remains unsigned load while signed normalized value lives r11; body separately extsb raw into r0. Earlier signed-output helper extended raw in-place. Use an actual raw-u8 output and explicit signed interpretation, then stop test sign-extension; keep right conditional value boundary and examine equality operands.
|
||||
POOL FIRST NHTTPi_compareToken: POOL IDENTICAL up to 1 (mine=1 base=1) |
|
||||
REMOTE FUNCTION CHECK NHTTPi_compareToken: public function still equals origin/main=True; local intToStr is the only production code difference.
|
||||
ATTEMPT NHTTPi_compareToken: raw unsigned byte survives left normalization; signed stop interpretation; source 76e97b65fd3f; structural/exact,lengths ((7, 34), 44, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: raw unsigned byte with right normalized operand first; source f838a8ffa736; structural/exact,lengths ((7, 34), 44, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: explicit right-first condition body with unsigned raw snapshot; source 33be55890ebf; structural/exact,lengths ((21, 38), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: right fold initializes shifted candidate before fallback assignment; source 682c2418dcbf; structural/exact,lengths ((28, 40), 47, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: right fold candidate before fallback in explicit condition body; source 9e2b7e7064eb; structural/exact,lengths ((21, 38), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: raw output formal precedes source input; source 620820d22197; structural/exact,lengths ((7, 34), 44, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: stop test signed char promotes from unsigned snapshot; source 06a4de5d0cb2; structural/exact,lengths ((7, 34), 44, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
END NHTTPi_compareToken: seven raw-byte/sign-boundary variants; best (7, 34); no exact and baseline restored.
|
||||
FINAL POOL src/utility/iplESMisc: FIRST DIVERGENCE at index 83 | 81 mine=0xcfe base=0xcfe | M '%s::%s: Could not read2 %s: %d\n' | B '%s::%s: Could not read2 %s: %d\n' | 82 mine=0xd1e base=0xd1e | M '%s::%s: Failed to delete %s: %d\n' | B '%s::%s: Failed to delete %s: %d\n' | * 83 mine=0xd3f base=0xd3f | M '%s::%s: Unable to allocate\n' | B 'verifySavedataZD' | * 84 mine=0xd5b base=0xd50 | M 'InitSavedata' | B 'DeleteTicketsForce' | * 85 mine=0xd68 base=0xd63 | M '/title/%08x/%08x/data/%s' | B 'InitSavedata' | * 86 mine=0xd81 base=0xd70 | M 'zeldaTp.dat' | B '%s::%s: Failed to ES_ListTitlesOnCard1: %d\n' | * 87 mine=0xd8d base=0xd9c | M '%s::%s: ChangeUid failed\n' | B '%s::%s: Unable to allocate\n' | | mine has 114 strings, base has 114 |
|
||||
FINAL OPEN AUDIT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: objdiff=79.797325%, 14 distinct successful source hashes; structural/exact,lengths=((163, 436), 434, 449); Aligned ticket/file scratch lifetime, return-status preservation, masked title formatting and inline helper boundaries. Baseline pool first diverges at83. Proper helpers make all114 strings identical but best tested source still differs structurally.
|
||||
FINAL POOL libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL: POOL IDENTICAL up to 1 (mine=1 base=1) |
|
||||
FINAL OPEN AUDIT NHTTPi_strnicmp: objdiff=99.76471%, 6 distinct successful source hashes; structural/exact,lengths=((2, 2), 51, 51); 51/51 instructions; two initial constant materializations swap Z and zero. Every later instruction is exact. Six source predicate/operand/helper variations and two declaration orders leave the swap.
|
||||
FINAL OPEN AUDIT NHTTPi_compareToken: objdiff=54.622223%, 19 distinct successful source hashes; structural/exact,lengths=((24, 42), 44, 45); 44/45 retained instructions. Raw signed character lifetime and right conditional normalization differ. By-reference helper reaches45/45 with6 structural differences; changed equality/branch form and unsigned raw snapshots do not match.
|
||||
FINAL OPEN AUDIT NHTTPi_Base64Encode: objdiff=60.285713%, 10 distinct successful source hashes; structural/exact,lengths=((71, 58), 119, 119); 119/119 retained instructions. Source loads, masked fragment/table operand association and unrolled alphabet lookup/store scheduling differ. Staged byte helper reaches42 structural differences; cursor, triplet and declaration variants do not match.
|
||||
FINAL POOL libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var: POOL IDENTICAL up to 0 (mine=0 base=0) |
|
||||
FINAL OPEN AUDIT TMCJPEGDEC_IdctBlock_Lumi: objdiff=82.31518%, 8 distinct successful source hashes; structural/exact,lengths=((36, 188), 257, 257); 257/257 instructions, frame0x140. Row/column butterfly multiply/add scheduling, DC/stride temporary lifetimes and register allocation differ. Eight helper/temporary variants, then140 declaration builds leave31 structural differences at best.
|
||||
FINAL OPEN AUDIT TMCJPEGDEC_IdctBlock_Col: objdiff=92.47577%, 8 distinct successful source hashes; structural/exact,lengths=((18, 290), 454, 454); 454/454 instructions, frame0x130. DC memset argument/clamp lifetime and full butterfly/store/clamp scheduling differ. Fill helper fixes the DC structural difference; eight variants then160 declaration builds leave14 structural differences at best.
|
||||
FINAL POOL libs/RevoEX/src/net/md5: POOL IDENTICAL up to 0 (mine=0 base=0) |
|
||||
FINAL OPEN AUDIT ProcessBlock: objdiff=43.290848%, 7 distinct successful source hashes; structural/exact,lengths=((225, 300), 294, 306); 294/306 retained instructions, frame0x20. Indexed addresses, duplicated swapped loads, associated rotation sums and sequential cursor scheduling differ. Honest typed helper/materialized addresses reach306/306; seven source variants and93 declaration builds leave36 structural differences.
|
||||
COMPLETENESS AUDIT PASS: all 7 remaining functions have at least3 distinct successful source-level attempts logged in this MAX round; build failures excluded. No experimental source/header changes retained. No untried function remains.
|
||||
FINAL FULL GATE PASS: all4 owned units, clean43U build, SHA1 26116613f624061ba99c8d1a299aaa6efa85670d; exact30/31,11/14,0/2,3/4; matched_code9404,1388,0,600; matched_data4416,112,0,456. Regression0, forbidden0, readability0. NHTTPi_intToStr95/95 ctxdiff0 after clean build. Seven remaining functions audited14/6/19/10/8/8/7 distinct successful MAX source attempts, all at least3. No additional source changes after final gate.
|
||||
45
tools/decomp-assist/four-leaves-r11.data-gate.txt
Normal file
45
tools/decomp-assist/four-leaves-r11.data-gate.txt
Normal file
@@ -0,0 +1,45 @@
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/utility/iplESMisc] pool: DIVERGES at string 83 (mine=114 orig=114)
|
||||
[src/utility/iplESMisc] objdiff: code 9404/11200 data 4416/4416 functions 30/31 fuzzy 96.7604 linked code 0
|
||||
[src/utility/iplESMisc] instruction-exact functions: 30/31
|
||||
[src/utility/iplESMisc] section .data size 4384 match 100.0
|
||||
[src/utility/iplESMisc] section .sdata size 32 match 100.0
|
||||
[src/utility/iplESMisc] section .text size 11200 match 96.76036
|
||||
[src/utility/iplESMisc] below 100: DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap 79.797325
|
||||
[src/utility/iplESMisc] baseline: code 9404/11200 data None functions 30 fuzzy 96.7604
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] objdiff: code 1008/2248 data 72/112 functions 10/14 fuzzy 87.1886 linked code 0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] instruction-exact functions: 10/14
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .data size 72 match 100.0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .rodata size 40 match 94.73685
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .text size 2248 match 87.188614
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_strnicmp 99.76471
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_intToStr 95.57895
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_compareToken 54.622223
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_Base64Encode 60.285713
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] baseline: code 1008/2248 data 72 functions 10 fuzzy 87.1886
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] objdiff: code None/2844 data None/None functions 0/2 fuzzy 88.8031 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] instruction-exact functions: 0/2
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] section .text size 2844 match 88.80309
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Lumi 82.31518
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Col 92.47577
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] baseline: code None/2844 data None functions 0 fuzzy 88.8031
|
||||
[libs/RevoEX/src/net/md5] pool: IDENTICAL
|
||||
[libs/RevoEX/src/net/md5] objdiff: code 600/1824 data 456/456 functions 3/4 fuzzy 61.9452 linked code 0
|
||||
[libs/RevoEX/src/net/md5] instruction-exact functions: 3/4
|
||||
[libs/RevoEX/src/net/md5] section .data size 448 match 100.0
|
||||
[libs/RevoEX/src/net/md5] section .sdata size 8 match 100.0
|
||||
[libs/RevoEX/src/net/md5] section .text size 1824 match 61.945175
|
||||
[libs/RevoEX/src/net/md5] below 100: ProcessBlock 43.290848
|
||||
[libs/RevoEX/src/net/md5] baseline: code 600/1824 data 456 functions 3 fuzzy 61.9452
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.57407 -> 88.57407
|
||||
global fuzzy_match_percent: 99.45531 -> 99.45531
|
||||
global complete_code_percent: 63.16065 -> 63.16065
|
||||
global matched_data_percent: 97.79842 -> 98.03938
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
|
||||
GATE PASS
|
||||
44
tools/decomp-assist/four-leaves-r11.final-gate.txt
Normal file
44
tools/decomp-assist/four-leaves-r11.final-gate.txt
Normal file
@@ -0,0 +1,44 @@
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/utility/iplESMisc] pool: DIVERGES at string 83 (mine=114 orig=114)
|
||||
[src/utility/iplESMisc] objdiff: code 9404/11200 data 4416/4416 functions 30/31 fuzzy 96.7604 linked code 0
|
||||
[src/utility/iplESMisc] instruction-exact functions: 30/31
|
||||
[src/utility/iplESMisc] section .data size 4384 match 100.0
|
||||
[src/utility/iplESMisc] section .sdata size 32 match 100.0
|
||||
[src/utility/iplESMisc] section .text size 11200 match 96.76036
|
||||
[src/utility/iplESMisc] below 100: DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap 79.797325
|
||||
[src/utility/iplESMisc] baseline: code 9404/11200 data None functions 30 fuzzy 96.7604
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] objdiff: code 1388/2248 data 112/112 functions 11/14 fuzzy 87.9359 linked code 0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] instruction-exact functions: 11/14
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .data size 72 match 100.0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .rodata size 40 match 100.0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .text size 2248 match 87.93594
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_strnicmp 99.76471
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_compareToken 54.622223
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_Base64Encode 60.285713
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] baseline: code 1008/2248 data 72 functions 10 fuzzy 87.1886
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] objdiff: code None/2844 data None/None functions 0/2 fuzzy 88.8031 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] instruction-exact functions: 0/2
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] section .text size 2844 match 88.80309
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Lumi 82.31518
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Col 92.47577
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] baseline: code None/2844 data None functions 0 fuzzy 88.8031
|
||||
[libs/RevoEX/src/net/md5] pool: IDENTICAL
|
||||
[libs/RevoEX/src/net/md5] objdiff: code 600/1824 data 456/456 functions 3/4 fuzzy 61.9452 linked code 0
|
||||
[libs/RevoEX/src/net/md5] instruction-exact functions: 3/4
|
||||
[libs/RevoEX/src/net/md5] section .data size 448 match 100.0
|
||||
[libs/RevoEX/src/net/md5] section .sdata size 8 match 100.0
|
||||
[libs/RevoEX/src/net/md5] section .text size 1824 match 61.945175
|
||||
[libs/RevoEX/src/net/md5] below 100: ProcessBlock 43.290848
|
||||
[libs/RevoEX/src/net/md5] baseline: code 600/1824 data 456 functions 3 fuzzy 61.9452
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.57407 -> 88.58676
|
||||
global fuzzy_match_percent: 99.45531 -> 99.45589
|
||||
global complete_code_percent: 63.16065 -> 63.16065
|
||||
global matched_data_percent: 97.79842 -> 98.04156
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
|
||||
GATE PASS
|
||||
47
tools/decomp-assist/four-leaves-r11.final.md
Normal file
47
tools/decomp-assist/four-leaves-r11.final.md
Normal file
@@ -0,0 +1,47 @@
|
||||
MAX round, start d5cd4ca777677117f1e02f1124ffb375178c391d.
|
||||
|
||||
| Unit | Instruction-exact before -> after | Matched code bytes before -> after | Matched data bytes before -> after |
|
||||
| --- | --- | --- | --- |
|
||||
| src/utility/iplESMisc | 30/31 -> 30/31 | 9404/11200 -> 9404/11200 | 0/4416 -> 4416/4416 |
|
||||
| libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL | 10/14 -> 11/14 | 1008/2248 -> 1388/2248 | 72/112 -> 112/112 |
|
||||
| libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var | 0/2 -> 0/2 | 0/2844 -> 0/2844 | 0/0 -> 0/0 |
|
||||
| libs/RevoEX/src/net/md5 | 3/4 -> 3/4 | 600/1824 -> 600/1824 | 456/456 -> 456/456 |
|
||||
|
||||
NHTTPi_intToStr is now exact, 95/95 instructions and ctxdiff0. TakeDecimalDigit updates the actual remaining value by reference and returns the quotient; indexed output keeps the target scratch cursor. No other production function changed.
|
||||
|
||||
Remaining non-matching functions, one line each:
|
||||
|
||||
- DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap, 79.797325%, Aligned ticket/file scratch lifetime, return-status preservation, masked title formatting and inline helper boundaries. Baseline pool first diverges at83. Proper helpers make all114 strings identical but best tested source still differs structurally. MAX successful distinct attempts 14.
|
||||
- NHTTPi_strnicmp, 99.76471%, 51/51 instructions; two initial constant materializations swap Z and zero. Every later instruction is exact. Six source predicate/operand/helper variations and two declaration orders leave the swap. MAX successful distinct attempts 6.
|
||||
- NHTTPi_compareToken, 54.622223%, 44/45 retained instructions. Raw signed character lifetime and right conditional normalization differ. By-reference helper reaches45/45 with6 structural differences; changed equality/branch form and unsigned raw snapshots do not match. MAX successful distinct attempts 19.
|
||||
- NHTTPi_Base64Encode, 60.285713%, 119/119 retained instructions. Source loads, masked fragment/table operand association and unrolled alphabet lookup/store scheduling differ. Staged byte helper reaches42 structural differences; cursor, triplet and declaration variants do not match. MAX successful distinct attempts 10.
|
||||
- TMCJPEGDEC_IdctBlock_Lumi, 82.31518%, 257/257 instructions, frame0x140. Row/column butterfly multiply/add scheduling, DC/stride temporary lifetimes and register allocation differ. Eight helper/temporary variants, then140 declaration builds leave31 structural differences at best. MAX successful distinct attempts 8.
|
||||
- TMCJPEGDEC_IdctBlock_Col, 92.47577%, 454/454 instructions, frame0x130. DC memset argument/clamp lifetime and full butterfly/store/clamp scheduling differ. Fill helper fixes the DC structural difference; eight variants then160 declaration builds leave14 structural differences at best. MAX successful distinct attempts 8.
|
||||
- ProcessBlock, 43.290848%, 294/306 retained instructions, frame0x20. Indexed addresses, duplicated swapped loads, associated rotation sums and sequential cursor scheduling differ. Honest typed helper/materialized addresses reach306/306; seven source variants and93 declaration builds leave36 structural differences. MAX successful distinct attempts 7.
|
||||
|
||||
Data identity and extent proofs are recorded individually in four-leaves-r11.attempts.md. All18 config entries retain their addresses; target and source section totals remain unchanged. Anonymous literal names are taken from compiled symbols and matched function-relative relocations. NUL-terminated character array and nine-u32 initializer types prove the corrected extents. Absorbed neighbors and alignment remain unowned, as authorized.
|
||||
|
||||
Uncertainty: iplESMisc objdiff matched_data4416/4416 measures paired owned objects. The raw114-string pool still diverges at83 in DeleteUnauthorizedData. This is recorded code work; data100 does not assert identical raw pools or complete linking. The target status-return lifetime and compiler scheduling still lack an exact readable source reconstruction. JPEG has no data sections, so None/None in the raw gate is0/0.
|
||||
|
||||
Changed production files: config/43U/symbols.txt; libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL.c.
|
||||
|
||||
Evidence files: tools/decomp-assist/four-leaves-r11.attempts.md; four-leaves-r11.data-gate.txt; four-leaves-r11.http-data-gate.txt; four-leaves-r11.int-gate.txt; four-leaves-r11.final-gate.txt; four-leaves-r11.final.md.
|
||||
|
||||
Commits: 9b0b4dda recover es misc literal identities and extents; c2927e2a recover decimal scale initializer extent; 054e0b1f match decimal conversion inline boundary.
|
||||
|
||||
Every open function had a fresh origin fetch and unchanged public source check before work. This branch has no push, merge, rebase, other-worktree edits, new assembly or uncommitted experimental code.
|
||||
|
||||
Final full gate output, copied verbatim:
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/utility/iplESMisc] objdiff: code 9404/11200 data 4416/4416 functions 30/31 fuzzy 96.7604 linked code 0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] objdiff: code 1388/2248 data 112/112 functions 11/14 fuzzy 87.9359 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] objdiff: code None/2844 data None/None functions 0/2 fuzzy 88.8031 linked code 0
|
||||
[libs/RevoEX/src/net/md5] objdiff: code 600/1824 data 456/456 functions 3/4 fuzzy 61.9452 linked code 0
|
||||
regressions vs baseline: 0
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
45
tools/decomp-assist/four-leaves-r11.http-data-gate.txt
Normal file
45
tools/decomp-assist/four-leaves-r11.http-data-gate.txt
Normal file
@@ -0,0 +1,45 @@
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/utility/iplESMisc] pool: DIVERGES at string 83 (mine=114 orig=114)
|
||||
[src/utility/iplESMisc] objdiff: code 9404/11200 data 4416/4416 functions 30/31 fuzzy 96.7604 linked code 0
|
||||
[src/utility/iplESMisc] instruction-exact functions: 30/31
|
||||
[src/utility/iplESMisc] section .data size 4384 match 100.0
|
||||
[src/utility/iplESMisc] section .sdata size 32 match 100.0
|
||||
[src/utility/iplESMisc] section .text size 11200 match 96.76036
|
||||
[src/utility/iplESMisc] below 100: DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap 79.797325
|
||||
[src/utility/iplESMisc] baseline: code 9404/11200 data None functions 30 fuzzy 96.7604
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] objdiff: code 1008/2248 data 112/112 functions 10/14 fuzzy 87.1886 linked code 0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] instruction-exact functions: 10/14
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .data size 72 match 100.0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .rodata size 40 match 100.0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .text size 2248 match 87.188614
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_strnicmp 99.76471
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_intToStr 95.57895
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_compareToken 54.622223
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_Base64Encode 60.285713
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] baseline: code 1008/2248 data 72 functions 10 fuzzy 87.1886
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] objdiff: code None/2844 data None/None functions 0/2 fuzzy 88.8031 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] instruction-exact functions: 0/2
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] section .text size 2844 match 88.80309
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Lumi 82.31518
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Col 92.47577
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] baseline: code None/2844 data None functions 0 fuzzy 88.8031
|
||||
[libs/RevoEX/src/net/md5] pool: IDENTICAL
|
||||
[libs/RevoEX/src/net/md5] objdiff: code 600/1824 data 456/456 functions 3/4 fuzzy 61.9452 linked code 0
|
||||
[libs/RevoEX/src/net/md5] instruction-exact functions: 3/4
|
||||
[libs/RevoEX/src/net/md5] section .data size 448 match 100.0
|
||||
[libs/RevoEX/src/net/md5] section .sdata size 8 match 100.0
|
||||
[libs/RevoEX/src/net/md5] section .text size 1824 match 61.945175
|
||||
[libs/RevoEX/src/net/md5] below 100: ProcessBlock 43.290848
|
||||
[libs/RevoEX/src/net/md5] baseline: code 600/1824 data 456 functions 3 fuzzy 61.9452
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.57407 -> 88.57407
|
||||
global fuzzy_match_percent: 99.45531 -> 99.45531
|
||||
global complete_code_percent: 63.16065 -> 63.16065
|
||||
global matched_data_percent: 97.79842 -> 98.04156
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
|
||||
GATE PASS
|
||||
44
tools/decomp-assist/four-leaves-r11.int-gate.txt
Normal file
44
tools/decomp-assist/four-leaves-r11.int-gate.txt
Normal file
@@ -0,0 +1,44 @@
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/utility/iplESMisc] pool: DIVERGES at string 83 (mine=114 orig=114)
|
||||
[src/utility/iplESMisc] objdiff: code 9404/11200 data 4416/4416 functions 30/31 fuzzy 96.7604 linked code 0
|
||||
[src/utility/iplESMisc] instruction-exact functions: 30/31
|
||||
[src/utility/iplESMisc] section .data size 4384 match 100.0
|
||||
[src/utility/iplESMisc] section .sdata size 32 match 100.0
|
||||
[src/utility/iplESMisc] section .text size 11200 match 96.76036
|
||||
[src/utility/iplESMisc] below 100: DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap 79.797325
|
||||
[src/utility/iplESMisc] baseline: code 9404/11200 data None functions 30 fuzzy 96.7604
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] objdiff: code 1388/2248 data 112/112 functions 11/14 fuzzy 87.9359 linked code 0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] instruction-exact functions: 11/14
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .data size 72 match 100.0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .rodata size 40 match 100.0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .text size 2248 match 87.93594
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_strnicmp 99.76471
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_compareToken 54.622223
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_Base64Encode 60.285713
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] baseline: code 1008/2248 data 72 functions 10 fuzzy 87.1886
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] objdiff: code None/2844 data None/None functions 0/2 fuzzy 88.8031 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] instruction-exact functions: 0/2
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] section .text size 2844 match 88.80309
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Lumi 82.31518
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Col 92.47577
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] baseline: code None/2844 data None functions 0 fuzzy 88.8031
|
||||
[libs/RevoEX/src/net/md5] pool: IDENTICAL
|
||||
[libs/RevoEX/src/net/md5] objdiff: code 600/1824 data 456/456 functions 3/4 fuzzy 61.9452 linked code 0
|
||||
[libs/RevoEX/src/net/md5] instruction-exact functions: 3/4
|
||||
[libs/RevoEX/src/net/md5] section .data size 448 match 100.0
|
||||
[libs/RevoEX/src/net/md5] section .sdata size 8 match 100.0
|
||||
[libs/RevoEX/src/net/md5] section .text size 1824 match 61.945175
|
||||
[libs/RevoEX/src/net/md5] below 100: ProcessBlock 43.290848
|
||||
[libs/RevoEX/src/net/md5] baseline: code 600/1824 data 456 functions 3 fuzzy 61.9452
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.57407 -> 88.58676
|
||||
global fuzzy_match_percent: 99.45531 -> 99.45589
|
||||
global complete_code_percent: 63.16065 -> 63.16065
|
||||
global matched_data_percent: 97.79842 -> 98.04156
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
|
||||
GATE PASS
|
||||
@@ -228,3 +228,331 @@ Before -> after instruction-exact functions / matched code bytes / matched data
|
||||
- kpr_lib: 8->9 / 1152->1536 / 1104->1104.
|
||||
- zconvert: 2->3 / 884->1380 / 112->112.
|
||||
Source commits: 57bab7c8, 36278f38. No uncertainty about the reported measurements; remaining source levers unknown.
|
||||
|
||||
# Round 2 after landing
|
||||
Baseline cbf6363d0f5e07b6dceadc43693694c14d58a229
|
||||
- Zi8getKeyLayout / r2 inline layout helper with existing argument order: 18/182 instructions; structural 187, positional differences 180
|
||||
- Zi8getKeyLayout / r2 inline layout helper with work pointer first: 18/182 instructions; structural 187, positional differences 180
|
||||
- Zi8getKeyLayout / r2 inline layout helper with wide scalars: BUILD FAIL tkey.c -o build/43U/src/libs/RVLMiddleware/eZiText/src/clib && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVLMiddleware/eZiText/src/clib/zmtkey.d build/43U/src/libs/RVLMiddleware/eZiText/src/clib/zmtkey.d ### mwcceppc.exe Compiler: # File: libs\RVLMiddleware\eZiText\src\clib\zmtkey.c # ----------------------------------------------------- # 61: if (!Zi8MapKeyCode(key, &key, __zi8_work_data)) { # Error: ^ # (10209) illegal implicit conversion from 'unsigned long *' to # 'unsigned short *' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed.
|
||||
|
||||
Round 2 live diagnosis, all pools identical before source experiments.
|
||||
- Zi8getKeyLayout: same 0x40 frame, 182/182 instructions, branches, operands and inline boundaries equal after register normalization. Language/tableCount r26/r27 coloring remains.
|
||||
- PFFILE_GetSFD: same 0x20 frame, 113/113 instructions; indexed traversal generates three induction updates in different order; volume/entry/free-index saved registers differ.
|
||||
- Zi8ConvertUC2Key: same 0x40 frame, 207/207 instructions, branches/temporaries/operands/helper boundaries equal after register normalization. Work/key r27/r28 coloring remains.
|
||||
All three owned sources identical to newly fetched origin/main before their initial function investigations.
|
||||
- Zi8getKeyLayout / r2 split primary table lookup assignment from condition: 182/182 instructions; structural 0, positional differences 16
|
||||
- Zi8getKeyLayout / r2 split both table lookup assignments from conditions: 182/182 instructions; structural 0, positional differences 22
|
||||
- Zi8getKeyLayout / r2 signed 16 bit count with unsigned reads: 182/182 instructions; structural 3, positional differences 16
|
||||
- Zi8getKeyLayout / r2 direct count addition instead of compound assignment: 183/182 instructions; structural 7, positional differences 72
|
||||
- Zi8getKeyLayout / r2 unsigned sum widened only at increment: 184/182 instructions; structural 8, positional differences 75
|
||||
- Zi8getKeyLayout / r2 index initialized with count in common assignment: 182/182 instructions; structural 0, positional differences 16
|
||||
- Zi8getKeyLayout / r2 key count helper ziU16 locals and ziU16 result: 175/182 instructions; structural 13, positional differences 68
|
||||
- Zi8getKeyLayout / r2 key count helper ziU16 locals and ziU32 result: 175/182 instructions; structural 13, positional differences 68
|
||||
- Zi8getKeyLayout / r2 key count helper ziU32 locals and ziU16 result: 175/182 instructions; structural 13, positional differences 68
|
||||
- Zi8getKeyLayout / r2 key count helper ziU32 locals and ziU32 result: 175/182 instructions; structural 13, positional differences 68
|
||||
- PFFILE_GetSFD / r2 pointer advance in body before index loop update: 113/113 instructions; structural 0, positional differences 18
|
||||
- PFFILE_GetSFD / r2 index advance in body before pointer loop update: 113/113 instructions; structural 2, positional differences 18
|
||||
- PFFILE_GetSFD / r2 while loop with separate induction updates: 113/113 instructions; structural 0, positional differences 18
|
||||
- PFFILE_GetSFD / r2 prefix index and pointer updates: 113/113 instructions; structural 2, positional differences 18
|
||||
- PFFILE_GetSFD / r2 initialize saved slot index before free slot pointer: 113/113 instructions; structural 2, positional differences 19
|
||||
- PFFILE_GetSFD / r2 free descriptor predicate helper: 121/113 instructions; structural 13, positional differences 113
|
||||
- PFFILE_GetSFD / r2 matching directory entry comparison helper: 117/113 instructions; structural 12, positional differences 102
|
||||
- Zi8ConvertUC2Key / r2 signed key with unsigned bit-pattern reads: 208/207 instructions; structural 17, positional differences 53
|
||||
- Zi8ConvertUC2Key / r2 constant character and language parameters: 207/207 instructions; structural 0, positional differences 18
|
||||
- Zi8ConvertUC2Key / r2 explicit constant work pointer parameter: 207/207 instructions; structural 0, positional differences 18
|
||||
- Zi8ConvertUC2Key / r2 common result block entered by goto after table lookup: 207/207 instructions; structural 0, positional differences 18
|
||||
- Zi8ConvertUC2Key / r2 inverse entry exclusion condition nested body: 206/207 instructions; structural 13, positional differences 137
|
||||
- PFFILE_GetSFD / r2 use existing correct SDK volume layout in internal function signature: 113/113 instructions; structural 2, positional differences 28
|
||||
- PFFILE_GetSFD / r2 correct volume signature and pointer-first loop latch: 113/113 instructions; structural 0, positional differences 28
|
||||
- PFFILE_GetSFD / r2 correct volume signature and first free index declaration first: 113/113 instructions; structural 2, positional differences 2
|
||||
- PFFILE_GetSFD / r2 signed traversal index: 113/113 instructions; structural 2, positional differences 18
|
||||
- PFFILE_GetSFD / r2 signed saved slot index: 113/113 instructions; structural 2, positional differences 18
|
||||
- PFFILE_GetSFD / r2 signed traversal and saved slot indices: 113/113 instructions; structural 2, positional differences 18
|
||||
- PFFILE_GetSFD / r2 unsigned int traversal and saved slot indices: 113/113 instructions; structural 2, positional differences 18
|
||||
- PFFILE_GetSFD / r2 constant volume alias and entry pointers: 113/113 instructions; structural 2, positional differences 18
|
||||
- PFFILE_GetSFD / r2 typed volume saved index first pointer-first latch: 113/113 instructions; structural 0, positional differences 2
|
||||
- PFFILE_GetSFD / r2 typed volume saved index first body pointer update: 113/113 instructions; structural 0, positional differences 2
|
||||
- PFFILE_GetSFD / r2 typed volume saved index first separate while updates: 113/113 instructions; structural 0, positional differences 2
|
||||
- PFFILE_GetSFD / r2 typed volume saved index first explicit pointer assignment: 113/113 instructions; structural 0, positional differences 2
|
||||
- PFFILE_GetSFD / r2 typed volume saved index first explicit index assignment: 113/113 instructions; structural 0, positional differences 2
|
||||
- PFFILE_GetSFD / r2 typed volume saved index first both compound additions: 113/113 instructions; structural 0, positional differences 2
|
||||
- PFFILE_GetSFD / r2 typed volume saved index first next index temporary: 113/113 instructions; structural 0, positional differences 2
|
||||
- PFFILE_GetSFD / r2 typed volume saved index first next descriptor temporary: 113/113 instructions; structural 2, positional differences 2
|
||||
- PFFILE_GetSFD / r2 original formal volume retained after traversal: 113/113 instructions; structural 4, positional differences 5
|
||||
- PFFILE_GetSFD / r2 original formal volume retained pointer-first latch: 113/113 instructions; structural 2, positional differences 5
|
||||
- PFFILE_GetSFD / r2 volume traversal alias declared after saved indices: 113/113 instructions; structural 4, positional differences 5
|
||||
- Zi8ConvertUC2Key / r2 ziPtr work context local declared first: 213/207 instructions; structural 44, positional differences 206
|
||||
- Zi8ConvertUC2Key / r2 ziPtr work context local declared last: 213/207 instructions; structural 44, positional differences 206
|
||||
- Zi8ConvertUC2Key / r2 struct __zi8_work_data_s* work context local declared first: 213/207 instructions; structural 44, positional differences 206
|
||||
- Zi8ConvertUC2Key / r2 struct __zi8_work_data_s* work context local declared last: 213/207 instructions; structural 44, positional differences 206
|
||||
- Zi8getKeyLayout / r2 noncompound accumulator expression same operand order: 183/182 instructions; structural 7, positional differences 72
|
||||
- Zi8getKeyLayout / r2 zero test using logical not for lookup result: 182/182 instructions; structural 0, positional differences 16
|
||||
- Zi8getKeyLayout / r2 chained initialization from index to total: 182/182 instructions; structural 0, positional differences 16
|
||||
- Zi8getKeyLayout / r2 prefix key index increments in all traversal loops: 182/182 instructions; structural 0, positional differences 16
|
||||
- Zi8getKeyLayout / r2 builtin character count assignment separated from zero test: 182/182 instructions; structural 1, positional differences 17
|
||||
- PFFILE_GetSFD / r2 typed volume derive free slot directly from indexed array: 113/113 instructions; structural 0, positional differences 0; EXACT candidate retained
|
||||
- PFFILE_GetSFD / r2 typed volume indexed free slot with for loop: 113/113 instructions; structural 0, positional differences 0; EXACT candidate retained
|
||||
- PFFILE_GetSFD / r2 typed volume indexed free slot and declaration-only loop index: 113/113 instructions; structural 0, positional differences 0; EXACT candidate retained
|
||||
- Zi8ConvertUC2Key / r2 separate every short declaration: 207/207 instructions; structural 0, positional differences 18
|
||||
- Zi8ConvertUC2Key / r2 key grouped with count index and bounds: 207/207 instructions; structural 0, positional differences 18
|
||||
- Zi8ConvertUC2Key / r2 lookup index kept wide with narrow reads: 207/207 instructions; structural 0, positional differences 18
|
||||
- Zi8ConvertUC2Key / r2 default mapping pointer const qualification: 208/207 instructions; structural 13, positional differences 53
|
||||
|
||||
Round 2 PFFILE_GetSFD structural resolution: the existing PFFILE_VOLUME_DIRS type is the SDK layout used for all accessed fields, with sfds at 0x40, sizeof(SFD)=0x29c and cluster-link at 0x1f94. Use that type directly in the internal function signature, cast the two callers without changing their generated code. Saved slot index initialization precedes free slot pointer. Derive the free slot from the indexed array instead of maintaining a redundant pointer. The compiler now creates its two induction pointers in target order. 113/113 instructions, diffs 0. Full gate 45/45 exact, code 17820/17820, no data symbols; correct DOL; zero regressions/forbidden/style.
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/fa/pf_file] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_file] objdiff: code 17820/17820 data None/None functions 45/45 fuzzy 100.0000 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_file] instruction-exact functions: 45/45
|
||||
[libs/RVL_SDK/src/fa/pf_file] section .text size 17820 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_file] baseline: code 17368/17820 data None functions 44 fuzzy 99.9771
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.60345 -> 88.61855
|
||||
global fuzzy_match_percent: 99.45553 -> 99.45567
|
||||
global complete_code_percent: 63.16065 -> 63.16065
|
||||
global matched_data_percent: 98.50994 -> 98.50994
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
- Zi8getKeyLayout / r2 readonly pointer qualifiers dataAddress: 182/182 instructions; structural 0, positional differences 16
|
||||
- Zi8getKeyLayout / r2 readonly pointer qualifiers customTable: 182/182 instructions; structural 0, positional differences 16
|
||||
- Zi8getKeyLayout / r2 readonly pointer qualifiers dataAddress,customTable: 182/182 instructions; structural 0, positional differences 16
|
||||
- Zi8getKeyLayout / r2 readonly pointer qualifiers keyChars: 183/182 instructions; structural 5, positional differences 140
|
||||
- Zi8getKeyLayout / r2 readonly pointer qualifiers dataAddress,keyChars: 183/182 instructions; structural 5, positional differences 140
|
||||
- Zi8getKeyLayout / r2 readonly pointer qualifiers customTable,keyChars: 183/182 instructions; structural 5, positional differences 140
|
||||
- Zi8getKeyLayout / r2 readonly pointer qualifiers dataAddress,customTable,keyChars: 183/182 instructions; structural 5, positional differences 140
|
||||
- Zi8ConvertUC2Key / r2 readonly pointer qualifiers table: 207/207 instructions; structural 0, positional differences 18
|
||||
- Zi8ConvertUC2Key / r2 readonly pointer qualifiers ranges: 207/207 instructions; structural 0, positional differences 18
|
||||
- Zi8ConvertUC2Key / r2 readonly pointer qualifiers table,ranges: 207/207 instructions; structural 0, positional differences 18
|
||||
- Zi8ConvertUC2Key / r2 readonly pointer qualifiers entry: 207/207 instructions; structural 0, positional differences 18
|
||||
- Zi8ConvertUC2Key / r2 readonly pointer qualifiers table,entry: 207/207 instructions; structural 0, positional differences 18
|
||||
- Zi8ConvertUC2Key / r2 readonly pointer qualifiers ranges,entry: 207/207 instructions; structural 0, positional differences 18
|
||||
- Zi8ConvertUC2Key / r2 readonly pointer qualifiers table,ranges,entry: 207/207 instructions; structural 0, positional differences 18
|
||||
|
||||
Round 2 compiler diagnosis: eZiText units compile with -inline off -opt off, explaining why new helper calls shortened callers without matching target instruction streams. SDK pf_file uses -O4,p -inline auto -ipa file; structural source changes were effective there. No compiler flags changed. zmtkey declaration search tried 52 orders, no improvement, source restored.
|
||||
|
||||
Round 2 Zi8ConvertUC2Key expanded declaration search: split the four grouped short declarations, explored 93 orders across all nine declarations, best remained structural 0 / 18 differences. Restored original source, including grouped declarations.
|
||||
|
||||
## Round 2 remaining-function audit
|
||||
- Zi8getKeyLayout: 25 distinct logged source experiments this round; at least three complete, no exact candidate.
|
||||
- Zi8ConvertUC2Key: 20 distinct logged source experiments this round; at least three complete, no exact candidate.
|
||||
- PFFILE_GetSFD: exact 113/113, zero instruction differences; all 45 target functions exact after full gate.
|
||||
- No nonexact source changes retained. Data unchanged and fully paired. Only pf_file source and this attempts log changed.
|
||||
|
||||
## Round 2 final full gate over all owned units
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] objdiff: code 1488/2216 data 60/60 functions 3/4 fuzzy 99.8466 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] instruction-exact functions: 3/4
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] section .text size 2216 match 99.84657
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] section extab size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] section extabindex size 36 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] below 100: Zi8getKeyLayout 99.53297
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] baseline: code 1488/2216 data 60 functions 3 fuzzy 99.8466
|
||||
[libs/RVL_SDK/src/fa/pf_file] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_file] objdiff: code 17820/17820 data None/None functions 45/45 fuzzy 100.0000 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_file] instruction-exact functions: 45/45
|
||||
[libs/RVL_SDK/src/fa/pf_file] section .text size 17820 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_file] baseline: code 17368/17820 data None functions 44 fuzzy 99.9771
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] objdiff: code 1380/2208 data 112/112 functions 3/4 fuzzy 99.8370 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] instruction-exact functions: 3/4
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] section .rodata size 32 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] section .text size 2208 match 99.83696
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] section extab size 32 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] section extabindex size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] below 100: Zi8ConvertUC2Key 99.565216
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] baseline: code 1380/2208 data 112 functions 3 fuzzy 99.8370
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.60345 -> 88.61855
|
||||
global fuzzy_match_percent: 99.45553 -> 99.45567
|
||||
global complete_code_percent: 63.16065 -> 63.16065
|
||||
global matched_data_percent: 98.50994 -> 98.50994
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
Instruction-exact functions / matched code bytes / matched data bytes, before -> after:
|
||||
- zmtkey: 3->3 / 1488->1488 / 60->60.
|
||||
- pf_file: 44->45 / 17368->17820 / no data symbols.
|
||||
- zconvert: 3->3 / 1380->1380 / 112->112.
|
||||
Commit ac0541dd contains the exact source improvement. Remaining eZiText compiler coloring fixes are unknown.
|
||||
|
||||
# Round 3 expanded fuzzy lane
|
||||
Baseline c44fbd720965dadcc282b8cea9f6fba352c2f559
|
||||
libs/RVLMiddleware/eZiText/src/clib/zmtkey: POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
libs/RVLMiddleware/eZiText/src/clib/zconvert: POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
libs/RevoEX/src/nhttp/NHTTP_socket_RVL: POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
src/scene/channelSelect/iplChannelObj: POOL IDENTICAL up to 20 (mine=20 base=20)
|
||||
src/scene/board/iplBoard: POOL IDENTICAL up to 18 (mine=18 base=18)
|
||||
libs/NW4R/src/lyt/lyt_window: POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
- Zi8getKeyLayout / r3 byte pair index shift rather than multiply: 182/182 instructions; structural 0, positional differences 16
|
||||
- Zi8getKeyLayout / r3 sum offset explicitly grouped with key header: 182/182 instructions; structural 0, positional differences 16
|
||||
- Zi8getKeyLayout / r3 explicit mapped key failure comparison: 182/182 instructions; structural 0, positional differences 16
|
||||
- Zi8ConvertUC2Key / r3 separate entry value byte assembly: 207/207 instructions; structural 2, positional differences 22
|
||||
- Zi8ConvertUC2Key / r3 use shift for character stride: 207/207 instructions; structural 0, positional differences 18
|
||||
- Zi8ConvertUC2Key / r3 explicit braces around user key return: 207/207 instructions; structural 0, positional differences 18
|
||||
- NHTTPi_SocRecv_sub / r3 memcpy source offset evaluated into local: BUILD FAIL nclude/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RevoEX/src/nhttp/NHTTP_socket_RVL.c -o build/43U/src/libs/RevoEX/src/nhttp && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nhttp/NHTTP_socket_RVL.d build/43U/src/libs/RevoEX/src/nhttp/NHTTP_socket_RVL.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nhttp\NHTTP_socket_RVL.c # ------------------------------------------------- # 99: u8* source = buffer + connection->recvBufOffset; # Error: ^^ # (10141) expression syntax error # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed.
|
||||
- NHTTPi_SocRecv_sub / r3 pass source offset plus buffer in opposite operand order: 67/67 instructions; structural 0, positional differences 4
|
||||
- NHTTPi_SocRecv_sub / r3 narrow unsigned count local reused for copy length: 67/67 instructions; structural 0, positional differences 4
|
||||
- NHTTPi_SocRecv_sub / r3 copy source local declared before body: 67/67 instructions; structural 0, positional differences 4
|
||||
- NHTTPi_SocRecv_sub / r3 copy offset local declared before body: 67/67 instructions; structural 0, positional differences 4
|
||||
- NHTTPi_SocRecv_sub / r3 inline received copy boundary: 67/67 instructions; structural 0, positional differences 4
|
||||
- NHTTPi_SocSend_sub / r3 leading send positive branch with negative else: 102/102 instructions; structural 0, positional differences 0; EXACT candidate retained
|
||||
- NHTTPi_SocSend_sub / r3 leading send nested complete transfer branch: 102/102 instructions; structural 4, positional differences 5
|
||||
- NHTTPi_SocSend_sub / r3 leading send separate nonpositive and short branches: 102/102 instructions; structural 4, positional differences 5
|
||||
|
||||
Round 3 structural diagnosis:
|
||||
- Zi8getKeyLayout: 182/182, unchanged frame and branches, language/count r26/r27 tie remains.
|
||||
- Zi8ConvertUC2Key: 207/207, unchanged frame and branches, work/key r27/r28 tie remains.
|
||||
- NHTTPi_SocRecv_sub: 67/67, identical 0x20 frame, only memcpy argument scheduling differs in four instructions.
|
||||
- NHTTPi_SocSend_sub: 101/102, aligned frame identical, leading partial transfer uses early returns while target has a positive-result block and negative else, with two redundant branch boundaries. Positive block restored exact 102/102.
|
||||
- NHTTPi_SocSend: 43/43, identical 0x10 frame, SSL id field load precedes register save in target but follows it in ours.
|
||||
- setLangPane: 195/195, stack byte arrays misplaced and language code indexing uses byte stride where target has four-byte records; loop pointer temporaries differ.
|
||||
- calcCursorAnim: objdiff 100%, three conditional CR1 branch operands in ctxdiff are misdecoded by odiff as absolute offsets. disasm_fn decodes real local relative branches; no source change needed. The instruction-exact gate count discrepancy is advisory-tool normalization, not a new unmatched function.
|
||||
- appendRecord: 283/283, frame 0x90 vs target 0xa0; interrupt saves promoted to registers whereas target stores three flags beside the address-taken dataSize slot.
|
||||
- DrawFrame: 376/376, instruction skeleton and float schedule identical; saved register allocation shifted, static texture-coordinate map placed in r31 instead of r21; data .sdata2 gap requires separate inspection.
|
||||
- NHTTPi_SocSend / r3 direct SSL id field reads without saved local: 43/43 instructions; structural 2, positional differences 3
|
||||
- NHTTPi_SocSend / r3 SSL id initialization before result declaration: 43/43 instructions; structural 2, positional differences 3
|
||||
- NHTTPi_SocSend / r3 assignment in SSL comparison instead of initializer: 43/43 instructions; structural 2, positional differences 3
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 language code records represented as ten four-byte strings: 196/195 instructions; structural 16, positional differences 120
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 language records and uncached fallback group names: 196/195 instructions; structural 16, positional differences 120
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 language records and four-byte RSO name buffer: 196/195 instructions; structural 25, positional differences 126
|
||||
- appendRecord__Q33ipl5scene5BoardFP10_CDBRecord / r3 record read state groups interrupt saves with address-taken size: BUILD FAIL :6 # Z:\mnt\drive2\projects\wii-ipl-workers\data- # d6\include\scene\iplSceneManager.h:14 # Z:\mnt\drive2\projects\wii-ipl-workers\data-d6\include\iplSceneUI.h:11 # Z:\mnt\drive2\projects\wii-ipl-workers\data- # d6\src\scene\board\iplBoard.cpp:4) ### mwcceppc.exe Compiler: # File: src\scene\board\iplBoard.cpp # ------------------------------------- # 508: if (!cdbManager->getDataSize(record, &interrupts.dataSize)) { # Error: ^^^^^^^^ # (10140) undefined identifier 'dataSize' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed.
|
||||
- appendRecord__Q33ipl5scene5BoardFP10_CDBRecord / r3 record read state before metadata declarations: BUILD FAIL workers\data- # d6\include\scene\iplSceneBase.h:6 # Z:\mnt\drive2\projects\wii-ipl-workers\data- # d6\include\scene\iplSceneManager.h:14 # Z:\mnt\drive2\projects\wii-ipl-workers\data-d6\include\iplSceneUI.h:11 # Z:\mnt\drive2\projects\wii-ipl-workers\data- # d6\src\scene\board\iplBoard.cpp:4) ### mwcceppc.exe Compiler: # File: src\scene\board\iplBoard.cpp # ------------------------------------- # 449: struct RecordReadState { # Error: ^ # (10296) class 'ipl::scene::Board::RecordReadState' redefined # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed.
|
||||
- appendRecord__Q33ipl5scene5BoardFP10_CDBRecord / r3 independent interrupt state locals instead of promotable struct: 283/283 instructions; structural 52, positional differences 48
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 four-byte language records and stop after fallback group: 196/195 instructions; structural 8, positional differences 54
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 records fallback stop and explicit current group pointer: 196/195 instructions; structural 8, positional differences 66
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 records fallback stop and uncached fallback group: 195/195 instructions; structural 4, positional differences 8
|
||||
- appendRecord__Q33ipl5scene5BoardFP10_CDBRecord / r3 corrected read state with escaping data size: 283/283 instructions; structural 29, positional differences 29
|
||||
- appendRecord__Q33ipl5scene5BoardFP10_CDBRecord / r3 corrected read state declared before metadata: 283/283 instructions; structural 38, positional differences 38
|
||||
- appendRecord__Q33ipl5scene5BoardFP10_CDBRecord / r3 corrected read state reverse interrupt declaration order: 283/283 instructions; structural 29, positional differences 29
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 four-byte records with eight-byte RSO names: 195/195 instructions; structural 1, positional differences 5
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 four-byte records names8 and null-terminated fallback table: 195/195 instructions; structural 0, positional differences 4
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 null-terminated fallback table preserving six-byte names: 195/195 instructions; structural 3, positional differences 7
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 shared group declaration: 195/195 instructions; structural 0, positional differences 4
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 iterator initializer from group expression: 195/195 instructions; structural 3, positional differences 5
|
||||
|
||||
## lyt_window round3
|
||||
- Fetch origin: owned source unchanged; pool identical. DrawFrame 376/376, frame0xe0 identical; inlined texture helper allocation shifts preserved argument registers; inspect declaration lifetime before register search.
|
||||
- DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc / r3 declare colors before material setup: 372/376 instructions; structural 90, positional differences 374
|
||||
- DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc / r3 declare geometry before texture coordinates: 376/376 instructions; structural 0, positional differences 119
|
||||
- DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc / r3 draw quad use conditional colors temporary: 364/376 instructions; structural 188, positional differences 373
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 group declared before language: 195/195 instructions; structural 0, positional differences 4
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 group declared before found flag: 195/195 instructions; structural 0, positional differences 4
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 group and outer iterator both explicit: 196/195 instructions; structural 4, positional differences 191
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 pane iterator declared before group pointers: BUILD FAIL \wii-ipl-workers\data- # d6\include\system\iplSystem.h:15 # Z:\mnt\drive2\projects\wii-ipl-workers\data-d6\include\iplSystem.h:9 # Z:\mnt\drive2\projects\wii-ipl-workers\data- # d6\src\scene\channelSelect\iplChannelObj.cpp:8) ### mwcceppc.exe Compiler: # File: src\scene\channelSelect\iplChannelObj.cpp # -------------------------------------------------- # 645: st().GetBeginIter(); it != layout->GetGroupList().GetEndIter(); paneIt++) { # Error: ^^^^^^ # (10140) undefined identifier 'paneIt' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed.
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 pane list reference instead of group pointer: 195/195 instructions; structural 6, positional differences 6
|
||||
- appendRecord__Q33ipl5scene5BoardFP10_CDBRecord / r3 unified metadata and read state structure: 279/283 instructions; structural 18, positional differences 258
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 separate pane iterator declarations: 199/195 instructions; structural 9, positional differences 86
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 const group pointer: 195/195 instructions; structural 0, positional differences 4
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 pane iterators prefix increment: 187/195 instructions; structural 51, positional differences 93
|
||||
- appendRecord__Q33ipl5scene5BoardFP10_CDBRecord / r3 metadata zeroing loop: 284/283 instructions; structural 23, positional differences 249
|
||||
- appendRecord__Q33ipl5scene5BoardFP10_CDBRecord / r3 read state constructor initializes type array: 277/283 instructions; structural 20, positional differences 265
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 shared inline visibility helper: 153/195 instructions; structural 77, positional differences 103
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 group references instead of pointers: 195/195 instructions; structural 0, positional differences 4
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 found flag integer boolean: 195/195 instructions; structural 0, positional differences 4
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 group pointer declaration before assignment in each branch: 195/195 instructions; structural 0, positional differences 4
|
||||
- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 pane iterator comparison reversed: 195/195 instructions; structural 14, positional differences 14
|
||||
- DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc / r3 texture flip helper uses explicit selected entry pointer: 376/376 instructions; structural 0, positional differences 119
|
||||
- DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc / r3 texture flip helper uses table pointer indexing: 376/376 instructions; structural 0, positional differences 119
|
||||
- DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc / r3 texture helper y index declaration first: 376/376 instructions; structural 0, positional differences 119
|
||||
- appendRecord__Q33ipl5scene5BoardFP10_CDBRecord / r3 read state owns interrupt flags and scalar metadata: 283/283 instructions; structural 59, positional differences 58
|
||||
|
||||
### Round 3 declaration search and data ownership audit
|
||||
- Zi8getKeyLayout: 52 declaration orders after structural attempts, best (0,16), original restored.
|
||||
- NHTTPi_SocRecv_sub: two leading declaration orders, best (0,4), original restored.
|
||||
- NHTTPi_SocSend: two leading declaration orders, best (2,3), original restored; remaining three differences are SSL-id load scheduling, not a frame mismatch.
|
||||
- setLangPane: two initialized language declarations and 23 expanded leading declaration orders, best (0,4); target still colors both group pointers r30 whereas compiler selects r28. The four-byte language records, eight-byte RSO name buffer and null-terminated/first-match fallback correct the structural skeleton; all fuzzy candidates restored because no exact function gained.
|
||||
- appendRecord: grouping flags with escaping dataSize forces the target spills and frame; best structural experiment 29 stack-slot differences. Expanded declaration search 76 orders stopped at (45,57); all candidates restored because none exact. Unified metadata structures and their zero-initialization alternatives failed to reproduce the target local layout without extra initialization instructions.
|
||||
- DrawFrame: 52 declaration orders, best (0,119); helper index declarations and explicit selected-entry/table pointers leave allocation unchanged. All candidates restored.
|
||||
- Data: zmtkey 60/60, zconvert 112/112, ChannelObj 2216/2216, Board 896/896; NHTTP has no data symbols. No symbol-name or extent edit justified in these units.
|
||||
- lyt_window relocation proof: target .sdata2 offsets0..19 are five distinct RGBA byte quartets used by GetVtxColorElement, SetVtxColorElement, DrawFrame4/8, GetVtxColor and SetVtxColor; target offsets40..43 are scLytFatalColorR/G/B/A used by GetFrameMaterial. Ours emits only the shared named quartet at0..3; this is a real 16-byte duplicate-constant emission gap, not a missing-name pair or weak vtable. No fake objects, labels or extent changes added. Target .sdata2 total48, source24; remaining float/double constants retain proper relocation uses.
|
||||
- Audit: every objdiff-open function has at least three distinct successful source-level experiments in this round. NHTTPi_SocSend_sub is exact and committed; others remain open as documented. calcCursorAnim is already objdiff100 and is only an instruction-normalization artifact.
|
||||
|
||||
- Advisory literal_reference_diff: 182 functions analyzed, 86 arguments checked, zero candidates/errors/skips. This checks actual string bytes at corresponding uses and does not claim complete data matching.
|
||||
- Zi8ConvertUC2Key: final corrected leading-declarations range127..132, 36 orders, best(0,18); original restored. The preceding wider range accidentally included the first if statement and its invalid permutations were discarded.
|
||||
- Final successful-attempt count audit: Zi8getKeyLayout=3, Zi8ConvertUC2Key=3, NHTTPi_SocRecv_sub=5, NHTTPi_SocSend_sub=3, NHTTPi_SocSend=3, setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object=23, appendRecord__Q33ipl5scene5BoardFP10_CDBRecord=8, DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc=6.
|
||||
|
||||
## Round 3 final full gate (all six units)
|
||||
```
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] objdiff: code 1488/2216 data 60/60 functions 3/4 fuzzy 99.8466 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] instruction-exact functions: 3/4
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] section .text size 2216 match 99.84657
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] section extab size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] section extabindex size 36 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] below 100: Zi8getKeyLayout 99.53297
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] baseline: code 1488/2216 data 60 functions 3 fuzzy 99.8466
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] objdiff: code 1380/2208 data 112/112 functions 3/4 fuzzy 99.8370 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] instruction-exact functions: 3/4
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] section .rodata size 32 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] section .text size 2208 match 99.83696
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] section extab size 32 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] section extabindex size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] below 100: Zi8ConvertUC2Key 99.565216
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] baseline: code 1380/2208 data 112 functions 3 fuzzy 99.8370
|
||||
[libs/RevoEX/src/nhttp/NHTTP_socket_RVL] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nhttp/NHTTP_socket_RVL] objdiff: code 1700/2140 data None/None functions 8/10 fuzzy 99.5701 linked code 0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_socket_RVL] instruction-exact functions: 8/10
|
||||
[libs/RevoEX/src/nhttp/NHTTP_socket_RVL] section .text size 2140 match 99.57009
|
||||
[libs/RevoEX/src/nhttp/NHTTP_socket_RVL] below 100: NHTTPi_SocRecv_sub 99.55224
|
||||
[libs/RevoEX/src/nhttp/NHTTP_socket_RVL] below 100: NHTTPi_SocSend 95.34884
|
||||
[libs/RevoEX/src/nhttp/NHTTP_socket_RVL] baseline: code 1292/2140 data None functions 7 fuzzy 98.9907
|
||||
[src/scene/channelSelect/iplChannelObj] pool: IDENTICAL
|
||||
[src/scene/channelSelect/iplChannelObj] objdiff: code 10144/10924 data 2216/2216 functions 55/56 fuzzy 99.7993 linked code 0
|
||||
[src/scene/channelSelect/iplChannelObj] instruction-exact functions: 54/56
|
||||
[src/scene/channelSelect/iplChannelObj] section .data size 1240 match 100.0
|
||||
[src/scene/channelSelect/iplChannelObj] section .rodata size 784 match 100.0
|
||||
[src/scene/channelSelect/iplChannelObj] section .sdata size 120 match 100.0
|
||||
[src/scene/channelSelect/iplChannelObj] section .sdata2 size 72 match 100.0
|
||||
[src/scene/channelSelect/iplChannelObj] section .text size 10924 match 99.79934
|
||||
[src/scene/channelSelect/iplChannelObj] below 100: setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object 97.18974
|
||||
[src/scene/channelSelect/iplChannelObj] baseline: code 10144/10924 data 2216 functions 55 fuzzy 99.7993
|
||||
[src/scene/board/iplBoard] pool: IDENTICAL
|
||||
[src/scene/board/iplBoard] objdiff: code 19144/20276 data 896/896 functions 93/94 fuzzy 99.8765 linked code 0
|
||||
[src/scene/board/iplBoard] instruction-exact functions: 93/94
|
||||
[src/scene/board/iplBoard] section .data size 744 match 100.0
|
||||
[src/scene/board/iplBoard] section .rodata size 104 match 100.0
|
||||
[src/scene/board/iplBoard] section .sdata size 40 match 100.0
|
||||
[src/scene/board/iplBoard] section .sdata2 size 8 match 100.0
|
||||
[src/scene/board/iplBoard] section .text size 20276 match 99.8765
|
||||
[src/scene/board/iplBoard] below 100: appendRecord__Q33ipl5scene5BoardFP10_CDBRecord 97.78799
|
||||
[src/scene/board/iplBoard] baseline: code 19144/20276 data 896 functions 93 fuzzy 99.8765
|
||||
[libs/NW4R/src/lyt/lyt_window] pool: IDENTICAL
|
||||
[libs/NW4R/src/lyt/lyt_window] objdiff: code 9848/11352 data 268/316 functions 20/21 fuzzy 99.7586 linked code 0
|
||||
[libs/NW4R/src/lyt/lyt_window] instruction-exact functions: 20/21
|
||||
[libs/NW4R/src/lyt/lyt_window] section .ctors size 4 match 100.0
|
||||
[libs/NW4R/src/lyt/lyt_window] section .data size 256 match 100.0
|
||||
[libs/NW4R/src/lyt/lyt_window] section .sbss size 8 match 100.0
|
||||
[libs/NW4R/src/lyt/lyt_window] section .sdata2 size 48 match 66.66667
|
||||
[libs/NW4R/src/lyt/lyt_window] section .text size 11352 match 99.75864
|
||||
[libs/NW4R/src/lyt/lyt_window] below 100: DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc 98.17819
|
||||
[libs/NW4R/src/lyt/lyt_window] baseline: code 9848/11352 data 268 functions 20 fuzzy 99.7586
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.66222 -> 88.67584
|
||||
global fuzzy_match_percent: 99.47330 -> 99.47371
|
||||
global complete_code_percent: 63.16065 -> 63.16065
|
||||
global matched_data_percent: 98.51344 -> 98.51344
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
Before -> after instruction-exact functions / objdiff code bytes / matched data bytes:
|
||||
- zmtkey: 3/4 -> 3/4; 1488 -> 1488; 60 -> 60.
|
||||
- zconvert: 3/4 -> 3/4; 1380 -> 1380; 112 -> 112.
|
||||
- NHTTP_socket_RVL: 7/10 -> 8/10; 1292 -> 1700; no data symbols.
|
||||
- iplChannelObj: instruction gate 54/56 -> 54/56 (objdiff 55/56 unchanged, calcCursorAnim decoding artifact); 10144 -> 10144; 2216 -> 2216.
|
||||
- iplBoard: 93/94 -> 93/94; 19144 -> 19144; 896 -> 896.
|
||||
- lyt_window: 20/21 -> 20/21; 9848 -> 9848; 268 -> 268.
|
||||
Final full gate passes, correct DOL SHA1, zero regressions, zero net forbidden patterns and zero readability warnings. NHTTPi_SocSend_sub has 102/102 instructions and ctxdiff diffs0 after the clean build. Remaining compiler allocation/local layout fixes and the lyt_window duplicate-constant emission are unresolved. Only NHTTP_socket_RVL.c and this attempts log differ from round3 baseline; source improvement commit bf69c042.
|
||||
|
||||
601
tools/decomp-assist/fz3.attempts.md
Normal file
601
tools/decomp-assist/fz3.attempts.md
Normal file
@@ -0,0 +1,601 @@
|
||||
# fz3 attempts
|
||||
|
||||
Start HEAD 5543b7b720e18b9e093f2f3a9e8f9d4cb3a2eabb; origin/main 422a344b282c65104a9157a99239d0950b337472
|
||||
|
||||
libs/RVL_SDK/src/fa/pf_fat12 pool: POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
src/keyboard/tiSignWindow pool: POOL IDENTICAL up to 30 (mine=30 base=30)
|
||||
|
||||
libs/RVL_SDK/src/fa/msc/puh_msc_blk pool: POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32 pool: POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
## PFFAT12_ReadFATEntryWithBuf
|
||||
Remote source unchanged. Pool empty. Target/source both 0x30 frame, 155 instructions, identical branches and operand forms; remaining registers cycle error/current FAT/sector/offset.
|
||||
PFFAT12_ReadFATEntryWithBuf | callback result scoped to callback block | 155/155 instructions; structural/exact differences (0, 34)
|
||||
PFFAT12_ReadFATEntryWithBuf | pointer-index byte read form | 155/155 instructions; structural/exact differences (0, 34)
|
||||
PFFAT12_ReadFATEntryWithBuf | inverted terminal success branch | 155/155 instructions; structural/exact differences (9, 46)
|
||||
restored structural trials; 155/155 instructions; structural/exact differences (0, 34)
|
||||
PFFAT12_ReadFATEntryWithBuf exhaustive declarations (' pf_u32 sector;', ' pf_u32 current_fat;', ' pf_s32 err;', ' pf_u32 offset;', ' pf_s32 result;') (0, 23)
|
||||
exhaustive retained 155/155 instructions; structural/exact differences (0, 23)
|
||||
|
||||
## create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator
|
||||
Remote source unchanged. Pool 30 strings identical; data already 3468/3468. Target/source frame 0x50, 221 instructions, branch/operand structure identical, hoisted vtable and count registers differ.
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | for outer loop instead of do/while | 221/221 instructions; structural/exact differences (0, 34)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | animation count scoped after append | BUILD FAIL clude/global -i libs/MetroTRK/include -i libs/Runtime/include -i libs/MSL/include -i libs/RVL_SDK/include -i libs/RevoEX/include -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -W nomissingreturn -ipa file -gccinc -fp_contract off -O4,s -enc SJIS -lang=c++ -O4,p -MMD -c src/keyboard/tiSignWindow.cpp -o build/43U/src/src/keyboard && "/usr/bin/python3" tools/transform_dep.py build/43U/src/src/keyboard/tiSignWindow.d build/43U/src/src/keyboard/tiSignWindow.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: src\keyboard\tiSignWindow.cpp
|
||||
# --------------------------------------
|
||||
# 77: {0, "N_SGNkeytop_all", 3, 0, {&csAninationFileForSign[0], &csAninationFileForSign[1], &csAninationFileForSign[2]}},
|
||||
# Error: ^
|
||||
# (10209) illegal implicit conversion from 'int' to
|
||||
# 'const char *'
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | shared allocation buffer across switch arms | 221/221 instructions; structural/exact differences (0, 34)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | animation table reference declared before pane pointer | 221/221 instructions; structural/exact differences (0, 34)
|
||||
restored 221/221 instructions; structural/exact differences (0, 34)
|
||||
PFFAT12_ReadFATEntryWithBuf | offset computation temporary separate from in-sector offset | 155/155 instructions; structural/exact differences (0, 23)
|
||||
PFFAT12_ReadFATEntryWithBuf | distinct FAT flush index and read error | 155/155 instructions; structural/exact differences (0, 34)
|
||||
PFFAT12_ReadFATEntryWithBuf | sector narrowing as cast and offset as additive expression | 155/155 instructions; structural/exact differences (0, 26)
|
||||
fat retained 155/155 instructions; structural/exact differences (0, 23)
|
||||
|
||||
## uhf_msc_blk_pread
|
||||
Remote source unchanged. Pool empty; all 424 data bytes already paired. Target/source frames and 129 instructions identical. Transfer block variable scoped in loop shifts callee-saved coloring; control flow and operands identical.
|
||||
uhf_msc_blk_pread | transfer block count declared at function scope | 129/129 instructions; structural/exact differences (0, 17)
|
||||
uhf_msc_blk_pread | cache flag positive comparison | 129/129 instructions; structural/exact differences (0, 33)
|
||||
uhf_msc_blk_pread | transfer byte length named in copy block | 129/129 instructions; structural/exact differences (0, 33)
|
||||
hoisted transfer declaration 129/129 instructions; structural/exact differences (0, 17)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | retry animation count scoped only inside create | 221/221 instructions; structural/exact differences (0, 59)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | force name and count both scoped after append | 221/221 instructions; structural/exact differences (0, 61)
|
||||
sign declaration search:
|
||||
declaration block:
|
||||
const char* forceName;
|
||||
u32 animationCount;
|
||||
u32 paneIndex = 0;
|
||||
start (0, 34)
|
||||
best (0, 34) after 6 builds; source restored; best order was:
|
||||
const char* forceName;
|
||||
u32 animationCount;
|
||||
u32 paneIndex = 0;
|
||||
|
||||
sign retained 221/221 instructions; structural/exact differences (0, 34)
|
||||
PFFAT12_ReadFATEntryWithBuf | initialize error before offset | 155/155 instructions; structural/exact differences (3, 26)
|
||||
PFFAT12_ReadFATEntryWithBuf | initialize error at declaration | 155/155 instructions; structural/exact differences (3, 26)
|
||||
PFFAT12_ReadFATEntryWithBuf | load current FAT before sector calculation | 155/155 instructions; structural/exact differences (15, 38)
|
||||
PFFAT12_ReadFATEntryWithBuf | inline callback result direct local | 155/155 instructions; structural/exact differences (0, 23)
|
||||
retained fat 155/155 instructions; structural/exact differences (0, 23)
|
||||
|
||||
## uhf_msc_blk_pwrite
|
||||
Remote source unchanged. Empty pool and 424/424 data. Both frames 0x40 and 129 instructions, branch forms and operands identical; device and transfer-block registers exchanged.
|
||||
uhf_msc_blk_pwrite | transfer count scoped to transfer loop | 129/129 instructions; structural/exact differences (0, 30)
|
||||
uhf_msc_blk_pwrite | cache flag explicit zero and positive comparisons | 129/129 instructions; structural/exact differences (0, 16)
|
||||
uhf_msc_blk_pwrite | find device loop in caller scope | 129/129 instructions; structural/exact differences (0, 7)
|
||||
pwrite restored 129/129 instructions; structural/exact differences (0, 16)
|
||||
|
||||
## TMCJPEGDEC_decode_iquant
|
||||
Remote source unchanged. No data section or strings. Both 0x50 frames and 276 instructions. Structural diagnosis: AC aggregate stack slot 0x18 instead of 8; DC/AC helper copy slots reversed; long-code addition operands reversed; helper parameter/temporary colors differ.
|
||||
TMCJPEGDEC_decode_iquant | AC entry scoped to AC decode block | 276/276 instructions; structural/exact differences (12, 59)
|
||||
TMCJPEGDEC_decode_iquant | shared long Huffman inline helper for DC and AC | 277/276 instructions; structural/exact differences (19, 177)
|
||||
TMCJPEGDEC_decode_iquant | Huffman symbol offset as named difference plus symbol | BUILD FAIL include/global -i libs/MetroTRK/include -i libs/Runtime/include -i libs/MSL/include -i libs/RVL_SDK/include -i libs/RevoEX/include -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -use_lmw_stmw on -lang=c -MMD -c libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32.c -o build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/b65 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32.d build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: libs\RVLMiddleware\TMC_JPEG\src\b65\iqdec_b65_frv32.c
|
||||
# --------------------------------------------------------------
|
||||
# 58: u32 symbolIndex = code - entry->bitLength;
|
||||
# Error: ^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
jpeg restored 276/276 instructions; structural/exact differences (12, 59)
|
||||
uhf_msc_blk_pread retained caller-scope lookup 129/129 instructions; structural/exact differences (0, 35)
|
||||
uhf_msc_blk_pwrite retained caller-scope lookup 129/129 instructions; structural/exact differences (0, 7)
|
||||
pread declaration search:
|
||||
declaration block:
|
||||
u16 transfer_blocks;
|
||||
s32 error;
|
||||
UHF_MSC_DEVICE* device;
|
||||
u32 block_size;
|
||||
u8* transfer_buffer;
|
||||
u32 transfer_limit;
|
||||
s32 cacheable;
|
||||
u8 sense[3] = {0};
|
||||
start (0, 17)
|
||||
best (0, 17) after 71 builds; source restored; best order was:
|
||||
u16 transfer_blocks;
|
||||
s32 error;
|
||||
UHF_MSC_DEVICE* device;
|
||||
u32 block_size;
|
||||
u8* transfer_buffer;
|
||||
u32 transfer_limit;
|
||||
s32 cacheable;
|
||||
u8 sense[3] = {0};
|
||||
|
||||
pwrite declaration search:
|
||||
declaration block:
|
||||
u16 transfer_blocks;
|
||||
UHF_MSC_DEVICE* device;
|
||||
u32 block_size;
|
||||
s32 error;
|
||||
u8* transfer_buffer;
|
||||
u32 transfer_limit;
|
||||
s32 cacheable;
|
||||
u8 sense[3] = {0};
|
||||
start (0, 16)
|
||||
best (0, 16) after 71 builds; source restored; best order was:
|
||||
u16 transfer_blocks;
|
||||
UHF_MSC_DEVICE* device;
|
||||
u32 block_size;
|
||||
s32 error;
|
||||
u8* transfer_buffer;
|
||||
u32 transfer_limit;
|
||||
s32 cacheable;
|
||||
u8 sense[3] = {0};
|
||||
|
||||
TMCJPEGDEC_decode_iquant | unsigned Huffman symbol offset temporary | 276/276 instructions; structural/exact differences (12, 58)
|
||||
TMCJPEGDEC_decode_iquant | AC aggregate declared after DC helper calls | 276/276 instructions; structural/exact differences (12, 59)
|
||||
TMCJPEGDEC_decode_iquant | long helper code and table entry declaration order reversed | 276/276 instructions; structural/exact differences (12, 63)
|
||||
TMCJPEGDEC_decode_iquant | Huffman table advance as byte-scaled index | 276/276 instructions; structural/exact differences (12, 59)
|
||||
TMCJPEGDEC_decode_iquant | fast DC consumption assigned directly to work field | 276/276 instructions; structural/exact differences (12, 57)
|
||||
jpeg retained 276/276 instructions; structural/exact differences (12, 59)
|
||||
uhf_msc_blk_pread | find index at function scope | 129/129 instructions; structural/exact differences (0, 17)
|
||||
uhf_msc_blk_pread | find index declared first | 129/129 instructions; structural/exact differences (0, 17)
|
||||
uhf_msc_blk_pread | find index narrower signed int | 129/129 instructions; structural/exact differences (0, 17)
|
||||
uhf_msc_blk_pread | explicit cursor for device lookup | 129/129 instructions; structural/exact differences (2, 17)
|
||||
uhf_msc_blk_pwrite | find index at function scope | 129/129 instructions; structural/exact differences (0, 7)
|
||||
uhf_msc_blk_pwrite | find index declared first | 129/129 instructions; structural/exact differences (0, 35)
|
||||
uhf_msc_blk_pwrite | find index narrower signed int | 129/129 instructions; structural/exact differences (0, 7)
|
||||
uhf_msc_blk_pwrite | explicit cursor for device lookup | 129/129 instructions; structural/exact differences (2, 7)
|
||||
msc retained pread 129/129 instructions; structural/exact differences (0, 17)
|
||||
msc retained pwrite 129/129 instructions; structural/exact differences (0, 7)
|
||||
uhf_msc_blk_pwrite | cursor increment before index | 129/129 instructions; structural/exact differences (0, 7)
|
||||
uhf_msc_blk_pwrite | find index before null assignment | 129/129 instructions; structural/exact differences (0, 8)
|
||||
uhf_msc_blk_pwrite | return device through inline output helper | 129/129 instructions; structural/exact differences (0, 35)
|
||||
retained pwrite 129/129 instructions; structural/exact differences (0, 7)
|
||||
uhf_msc_blk_pwrite | inline device lookup using output parameter | 129/129 instructions; structural/exact differences (0, 28)
|
||||
uhf_msc_blk_pwrite | inline output lookup parameter order swapped | 129/129 instructions; structural/exact differences (0, 28)
|
||||
restored 129/129 instructions; structural/exact differences (0, 7)
|
||||
uhf_msc_blk_pwrite | index declared before explicit cursor | 129/129 instructions; structural/exact differences (0, 0)
|
||||
uhf_msc_blk_pwrite | cursor initialized before device | 129/129 instructions; structural/exact differences (0, 0)
|
||||
uhf_msc_blk_pwrite | cursor object at function scope | 129/129 instructions; structural/exact differences (0, 7)
|
||||
uhf_msc_blk_pwrite | loop count explicitly starts before cursor | 129/129 instructions; structural/exact differences (0, 0)
|
||||
restored pwrite 129/129 instructions; structural/exact differences (0, 7)
|
||||
retained index before cursor uhf_msc_blk_pread 129/129 instructions; structural/exact differences (0, 10)
|
||||
retained index before cursor uhf_msc_blk_pwrite 129/129 instructions; structural/exact differences (0, 0)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | pane table pointer instead of reference | 221/221 instructions; structural/exact differences (0, 34)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | animation index function scope | 221/221 instructions; structural/exact differences (0, 63)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | pane pointer function scope | 221/221 instructions; structural/exact differences (0, 34)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | animation record pointer named in inner loop | 219/221 instructions; structural/exact differences (9, 91)
|
||||
restored sign 221/221 instructions; structural/exact differences (0, 34)
|
||||
uhf_msc_blk_pread | transfer bytes function scope | 129/129 instructions; structural/exact differences (0, 15)
|
||||
uhf_msc_blk_pread | transfer bytes before block count declaration | 129/129 instructions; structural/exact differences (0, 17)
|
||||
uhf_msc_blk_pread | count at loop scope with explicit device cursor | 129/129 instructions; structural/exact differences (0, 27)
|
||||
uhf_msc_blk_pread | byte copy in inline helper | 129/129 instructions; structural/exact differences (0, 10)
|
||||
restored pread 129/129 instructions; structural/exact differences (0, 10)
|
||||
|
||||
## First accepted improvement
|
||||
Pwrite 129/129 instructions and ctxdiff diffs 0. Fresh objdiff 100%. Caller-scope lookup with index declared before cursor restores target scratch registers. Pread remains open; declsearch restores its closest order. FAT/JPEG declaration searches improve fuzzy scores without changing instruction count or matched neighbors. Data already 100% in every owned unit, so no symbol rename or extent edit needed.
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/fa/pf_fat12] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_fat12] objdiff: code 1544/2164 data None/None functions 3/4 fuzzy 99.7597 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_fat12] instruction-exact functions: 3/4
|
||||
[libs/RVL_SDK/src/fa/pf_fat12] section .text size 2164 match 99.759705
|
||||
[libs/RVL_SDK/src/fa/pf_fat12] below 100: PFFAT12_ReadFATEntryWithBuf 99.16129
|
||||
[libs/RVL_SDK/src/fa/pf_fat12] baseline: code 1544/2164 data None functions 3 fuzzy 99.6396
|
||||
[src/keyboard/tiSignWindow] pool: IDENTICAL
|
||||
[src/keyboard/tiSignWindow] objdiff: code 6300/7184 data 3468/3468 functions 55/56 fuzzy 99.8914 linked code 0
|
||||
[src/keyboard/tiSignWindow] instruction-exact functions: 55/56
|
||||
[src/keyboard/tiSignWindow] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiSignWindow] section .data size 2672 match 100.0
|
||||
[src/keyboard/tiSignWindow] section .rodata size 784 match 100.0
|
||||
[src/keyboard/tiSignWindow] section .sdata size 8 match 100.0
|
||||
[src/keyboard/tiSignWindow] section .text size 7184 match 99.891426
|
||||
[src/keyboard/tiSignWindow] below 100: create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator 99.117645
|
||||
[src/keyboard/tiSignWindow] baseline: code 6300/7184 data 3468 functions 55 fuzzy 99.8914
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] objdiff: code 1556/2072 data 424/424 functions 10/11 fuzzy 99.8938 linked code 0
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] instruction-exact functions: 10/11
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .bss size 384 match 100.0
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .data size 32 match 100.0
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .sbss size 8 match 100.0
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .text size 2072 match 99.89382
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] below 100: uhf_msc_blk_pread 99.57365
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] baseline: code 1040/2072 data 424 functions 9 fuzzy 99.4498
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] objdiff: code None/1104 data None/None functions 0/1 fuzzy 98.9058 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] instruction-exact functions: 0/1
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] section .text size 1104 match 98.9058
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] below 100: TMCJPEGDEC_decode_iquant 98.9058
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] baseline: code None/1104 data None functions 0 fuzzy 98.8333
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.57407 -> 88.59130
|
||||
global fuzzy_match_percent: 99.45531 -> 99.45574
|
||||
global complete_code_percent: 63.16065 -> 63.16065
|
||||
global matched_data_percent: 98.20744 -> 98.20744
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
uhf_msc_blk_pread copy-block helper parameters ('destination', 'source', 'blocks', 'block_size') 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread copy-block helper parameters ('destination', 'source', 'block_size', 'blocks') 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread copy-block helper parameters ('destination', 'blocks', 'source', 'block_size') 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread copy-block helper parameters ('destination', 'blocks', 'block_size', 'source') 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread copy-block helper parameters ('destination', 'block_size', 'source', 'blocks') 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread copy-block helper parameters ('destination', 'block_size', 'blocks', 'source') 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread copy-block helper parameters ('source', 'destination', 'blocks', 'block_size') 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread copy-block helper parameters ('source', 'destination', 'block_size', 'blocks') 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread copy-block helper parameters ('source', 'blocks', 'destination', 'block_size') 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread copy-block helper parameters ('source', 'blocks', 'block_size', 'destination') 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread copy-block helper parameters ('source', 'block_size', 'destination', 'blocks') 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread copy-block helper parameters ('source', 'block_size', 'blocks', 'destination') 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread copy-block helper parameters ('blocks', 'destination', 'source', 'block_size') 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread copy-block helper parameters ('blocks', 'destination', 'block_size', 'source') 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread copy-block helper parameters ('blocks', 'source', 'destination', 'block_size') 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread copy-block helper parameters ('blocks', 'source', 'block_size', 'destination') 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread copy-block helper parameters ('blocks', 'block_size', 'destination', 'source') 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread copy-block helper parameters ('blocks', 'block_size', 'source', 'destination') 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread copy-block helper parameters ('block_size', 'destination', 'source', 'blocks') 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread copy-block helper parameters ('block_size', 'destination', 'blocks', 'source') 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread copy-block helper parameters ('block_size', 'source', 'destination', 'blocks') 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread copy-block helper parameters ('block_size', 'source', 'blocks', 'destination') 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread copy-block helper parameters ('block_size', 'blocks', 'destination', 'source') 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread copy-block helper parameters ('block_size', 'blocks', 'source', 'destination') 129/129 instructions; structural/exact differences (0, 10)
|
||||
helper permutations restored 129/129 instructions; structural/exact differences (0, 10)
|
||||
TMCJPEGDEC_decode_iquant AC coefficient loop isolated in real inline helper 276/276 instructions; structural/exact differences (5, 128)
|
||||
restored JPEG 276/276 instructions; structural/exact differences (12, 55)
|
||||
uhf_msc_blk_pread | copy byte count at transfer-loop scope | 129/129 instructions; structural/exact differences (0, 33)
|
||||
uhf_msc_blk_pread | transfer count unsigned int with call-bound narrowing | 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread | copy byte count declared before device | 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread | transfer loop copies with named signed byte count | 129/129 instructions; structural/exact differences (0, 33)
|
||||
retained pread 129/129 instructions; structural/exact differences (0, 10)
|
||||
TMCJPEGDEC_decode_iquant | long decode aggregate caller-scope declarations | 276/276 instructions; structural/exact differences (5, 128)
|
||||
TMCJPEGDEC_decode_iquant | long symbol offset compound assignment | 276/276 instructions; structural/exact differences (5, 129)
|
||||
TMCJPEGDEC_decode_iquant | AC helper with outer scalar declarations preserved | 276/276 instructions; structural/exact differences (5, 128)
|
||||
TMCJPEGDEC_decode_iquant | long decoded declarations plus operand compounds | 276/276 instructions; structural/exact differences (5, 129)
|
||||
restored JPEG 276/276 instructions; structural/exact differences (12, 55)
|
||||
PFFAT12_ReadFATEntryWithBuf | sixteen-bit byte offset | 156/155 instructions; structural/exact differences (8, 90)
|
||||
PFFAT12_ReadFATEntryWithBuf | signed byte offset with unsigned boundary compare | 155/155 instructions; structural/exact differences (2, 24)
|
||||
PFFAT12_ReadFATEntryWithBuf | signed sector with unsigned page comparison | 155/155 instructions; structural/exact differences (0, 23)
|
||||
PFFAT12_ReadFATEntryWithBuf | callback flag branch as conditional expression | 155/155 instructions; structural/exact differences (0, 23)
|
||||
FAT restored 155/155 instructions; structural/exact differences (0, 23)
|
||||
PFFAT12_ReadFATEntryWithBuf | FAT flush loops isolated in genuine inline helper | 155/155 instructions; structural/exact differences (0, 34)
|
||||
fat restored 155/155 instructions; structural/exact differences (0, 23)
|
||||
uhf_msc_blk_pread completed randomized leading declarations 900 builds; 129/129 instructions; structural/exact differences (0, 10)
|
||||
TMCJPEGDEC_decode_iquant | DC and AC limit helpers defined in reverse order | 276/276 instructions; structural/exact differences (5, 128)
|
||||
TMCJPEGDEC_decode_iquant | Huffman return copied through explicit output pointer | 276/276 instructions; structural/exact differences (5, 128)
|
||||
TMCJPEGDEC_decode_iquant | Huffman return copied via named initializer | 276/276 instructions; structural/exact differences (5, 128)
|
||||
restored jpeg 276/276 instructions; structural/exact differences (12, 55)
|
||||
PFFAT12_ReadFATEntryWithBuf | readable full FAT local names | BUILD FAIL TION -DMEM_MANAGER_DIRECT -i include -i include/global -i libs/MetroTRK/include -i libs/Runtime/include -i libs/MSL/include -i libs/RVL_SDK/include -i libs/RevoEX/include -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RVL_SDK/src/fa/pf_fat12.c -o build/43U/src/libs/RVL_SDK/src/fa && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/fa/pf_fat12.d build/43U/src/libs/RVL_SDK/src/fa/pf_fat12.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: libs\RVL_SDK\src\fa\pf_fat12.c
|
||||
# ---------------------------------------
|
||||
# 218: if (p_page->fat_sector != fat_sector + (0)) { if (p_page->option == 1) { for (error = 0; ;
|
||||
# Error: ^^
|
||||
# (10393) 'fat_sector' is not a member of class 'struct PF_CACHE_PAGE'
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
PFFAT12_ReadFATEntryWithBuf | error local status name | 155/155 instructions; structural/exact differences (0, 23)
|
||||
PFFAT12_ReadFATEntryWithBuf | byte offset local FAT offset name | 155/155 instructions; structural/exact differences (0, 23)
|
||||
fat retained 155/155 instructions; structural/exact differences (0, 23)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (0, 0, 0, 0) 221/221 instructions; structural/exact differences (0, 34)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (0, 0, 0, 1) 221/221 instructions; structural/exact differences (0, 34)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (0, 0, 1, 0) 221/221 instructions; structural/exact differences (0, 63)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (0, 0, 1, 1) 221/221 instructions; structural/exact differences (0, 63)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (0, 1, 0, 0) 221/221 instructions; structural/exact differences (0, 59)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (0, 1, 0, 1) 221/221 instructions; structural/exact differences (0, 59)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (0, 1, 1, 0) 221/221 instructions; structural/exact differences (0, 38)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (0, 1, 1, 1) 221/221 instructions; structural/exact differences (0, 38)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (1, 0, 0, 0) 221/221 instructions; structural/exact differences (0, 61)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (1, 0, 0, 1) 221/221 instructions; structural/exact differences (0, 61)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (1, 0, 1, 0) 221/221 instructions; structural/exact differences (0, 41)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (1, 0, 1, 1) 221/221 instructions; structural/exact differences (0, 41)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (1, 1, 0, 0) 221/221 instructions; structural/exact differences (0, 61)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (1, 1, 0, 1) 221/221 instructions; structural/exact differences (0, 61)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (1, 1, 1, 0) 221/221 instructions; structural/exact differences (0, 65)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (1, 1, 1, 1) 221/221 instructions; structural/exact differences (0, 65)
|
||||
sign retained 221/221 instructions; structural/exact differences (0, 34)
|
||||
AC helper declaration search restored: structural (5,128) unchanged after118 builds; restores better objdiff committed source.
|
||||
declaration block:
|
||||
TMCHuffmanEntry dcEntry;
|
||||
u8* huff_sym;
|
||||
u32* huff_tbl;
|
||||
s32 bit_pos;
|
||||
u32 bit_data;
|
||||
const TMCHuffmanEntry* dc_fast;
|
||||
s32 r;
|
||||
s32 blk0;
|
||||
s32 extra;
|
||||
u32 tmp;
|
||||
start (5, 128)
|
||||
best (5, 128) after 118 builds; source restored; best order was:
|
||||
TMCHuffmanEntry dcEntry;
|
||||
u8* huff_sym;
|
||||
u32* huff_tbl;
|
||||
s32 bit_pos;
|
||||
u32 bit_data;
|
||||
const TMCHuffmanEntry* dc_fast;
|
||||
s32 r;
|
||||
s32 blk0;
|
||||
s32 extra;
|
||||
u32 tmp;
|
||||
|
||||
TMCJPEGDEC_decode_iquant DC fast lookup single bit-index expression 276/276 instructions; structural/exact differences (12, 50)
|
||||
TMCJPEGDEC_decode_iquant DC fast lookup from work bit buffer 276/276 instructions; structural/exact differences (12, 55)
|
||||
TMCJPEGDEC_decode_iquant DC fast lookup uses signed bit index 276/276 instructions; structural/exact differences (12, 50)
|
||||
TMCJPEGDEC_decode_iquant DC consume direct work bit count 276/276 instructions; structural/exact differences (12, 53)
|
||||
retained JPEG fast lookup 276/276 instructions; structural/exact differences (12, 50)
|
||||
uhf_msc_blk_pread | inline transfer count selection | 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread | inline count selection reversed parameters | 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread | inline count selection loop-scope destination | BUILD FAIL ath -RTTI off -fp_contract on -str reuse -DSDK_IPL -D_REVOLUTION -DMEM_MANAGER_DIRECT -i include -i include/global -i libs/MetroTRK/include -i libs/Runtime/include -i libs/MSL/include -i libs/RVL_SDK/include -i libs/RevoEX/include -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RVL_SDK/src/fa/msc/puh_msc_blk.c -o build/43U/src/libs/RVL_SDK/src/fa/msc && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/fa/msc/puh_msc_blk.d build/43U/src/libs/RVL_SDK/src/fa/msc/puh_msc_blk.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: libs\RVL_SDK\src\fa\msc\puh_msc_blk.c
|
||||
# ----------------------------------------------
|
||||
# 237: transfer_blocks = transfer_limit;
|
||||
# Error: ^^^^^^^^^^^^^^^
|
||||
# (10140) undefined identifier 'transfer_blocks'
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
pread restored 129/129 instructions; structural/exact differences (0, 10)
|
||||
TMCJPEGDEC_decode_iquant explicit Huffman-limit scalar declarations (' TMCHuffmanEntry limit;', ' u16 bitLength;', ' u16 symbol;') 276/276 instructions; structural/exact differences (12, 50)
|
||||
TMCJPEGDEC_decode_iquant explicit Huffman-limit scalar declarations (' TMCHuffmanEntry limit;', ' u16 symbol;', ' u16 bitLength;') 276/276 instructions; structural/exact differences (12, 50)
|
||||
TMCJPEGDEC_decode_iquant explicit Huffman-limit scalar declarations (' u16 bitLength;', ' TMCHuffmanEntry limit;', ' u16 symbol;') 276/276 instructions; structural/exact differences (12, 50)
|
||||
TMCJPEGDEC_decode_iquant explicit Huffman-limit scalar declarations (' u16 bitLength;', ' u16 symbol;', ' TMCHuffmanEntry limit;') 276/276 instructions; structural/exact differences (12, 50)
|
||||
TMCJPEGDEC_decode_iquant explicit Huffman-limit scalar declarations (' u16 symbol;', ' TMCHuffmanEntry limit;', ' u16 bitLength;') 276/276 instructions; structural/exact differences (12, 50)
|
||||
TMCJPEGDEC_decode_iquant explicit Huffman-limit scalar declarations (' u16 symbol;', ' u16 bitLength;', ' TMCHuffmanEntry limit;') 276/276 instructions; structural/exact differences (12, 50)
|
||||
JPEG retained limit 276/276 instructions; structural/exact differences (12, 50)
|
||||
|
||||
## Open-function audit before final full gate
|
||||
PFFAT12_ReadFATEntryWithBuf distinct measured source trials 17; 155/155 instructions; structural/exact differences (0, 23)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator distinct measured source trials 9; 221/221 instructions; structural/exact differences (0, 34)
|
||||
uhf_msc_blk_pread distinct measured source trials 17; 129/129 instructions; structural/exact differences (0, 10)
|
||||
TMCJPEGDEC_decode_iquant distinct measured source trials 14; 276/276 instructions; structural/exact differences (12, 50)
|
||||
Data ownership audit: FAT/JPEG contain no target data; SignWindow .ctors/.data/.rodata/.sdata are fully matched at 3468/3468, MSC .bss/.data/.sbss fully matched at 424/424. No config renames, extents, addresses, or section totals changed.
|
||||
JPEG structural work retained only direct fast DC lookup simplification; AC helper extraction fixed some stack slots but worsened exact differences and was restored. Every remaining function has more than three built, distinct source attempts. No remaining untried function.
|
||||
|
||||
## Final clean full gate
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/fa/pf_fat12] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_fat12] objdiff: code 1544/2164 data None/None functions 3/4 fuzzy 99.7597 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_fat12] instruction-exact functions: 3/4
|
||||
[libs/RVL_SDK/src/fa/pf_fat12] section .text size 2164 match 99.759705
|
||||
[libs/RVL_SDK/src/fa/pf_fat12] below 100: PFFAT12_ReadFATEntryWithBuf 99.16129
|
||||
[libs/RVL_SDK/src/fa/pf_fat12] baseline: code 1544/2164 data None functions 3 fuzzy 99.6396
|
||||
[src/keyboard/tiSignWindow] pool: IDENTICAL
|
||||
[src/keyboard/tiSignWindow] objdiff: code 6300/7184 data 3468/3468 functions 55/56 fuzzy 99.8914 linked code 0
|
||||
[src/keyboard/tiSignWindow] instruction-exact functions: 55/56
|
||||
[src/keyboard/tiSignWindow] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiSignWindow] section .data size 2672 match 100.0
|
||||
[src/keyboard/tiSignWindow] section .rodata size 784 match 100.0
|
||||
[src/keyboard/tiSignWindow] section .sdata size 8 match 100.0
|
||||
[src/keyboard/tiSignWindow] section .text size 7184 match 99.891426
|
||||
[src/keyboard/tiSignWindow] below 100: create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator 99.117645
|
||||
[src/keyboard/tiSignWindow] baseline: code 6300/7184 data 3468 functions 55 fuzzy 99.8914
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] objdiff: code 1556/2072 data 424/424 functions 10/11 fuzzy 99.8938 linked code 0
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] instruction-exact functions: 10/11
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .bss size 384 match 100.0
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .data size 32 match 100.0
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .sbss size 8 match 100.0
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .text size 2072 match 99.89382
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] below 100: uhf_msc_blk_pread 99.57365
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] baseline: code 1040/2072 data 424 functions 9 fuzzy 99.4498
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] objdiff: code None/1104 data None/None functions 0/1 fuzzy 99.0326 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] instruction-exact functions: 0/1
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] section .text size 1104 match 99.03261
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] below 100: TMCJPEGDEC_decode_iquant 99.03261
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] baseline: code None/1104 data None functions 0 fuzzy 98.8333
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.57407 -> 88.59130
|
||||
global fuzzy_match_percent: 99.45531 -> 99.45580
|
||||
global complete_code_percent: 63.16065 -> 63.16065
|
||||
global matched_data_percent: 98.20744 -> 98.20744
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
libs/RVL_SDK/src/fa/pf_fat12 POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
src/keyboard/tiSignWindow POOL IDENTICAL up to 30 (mine=30 base=30)
|
||||
libs/RVL_SDK/src/fa/msc/puh_msc_blk POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32 POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Fresh clean-build pwrite ctxdiff: 129/129 instructions, diffs 0. DOL SHA1 correct; regressions 0; forbidden patterns 0; readability warnings 0. Matched data remains 100% for all owned sections.
|
||||
Second accepted improvement: direct DC fast Huffman index expression raises JPEG fuzzy 98.9058 -> 99.03261; code count stays 0/1. Final clean full gate is PASS over all four units. Original inline-helper boundaries remain uncertain; rejected helper variants were restored.
|
||||
|
||||
# Round 2
|
||||
Start a3b27c9ed0395c408f5c94ff657914456cc7d3f0; current origin/main a3b27c9ed0395c408f5c94ff657914456cc7d3f0
|
||||
libs/RVL_SDK/src/fa/pf_fat12 POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
src/keyboard/tiSignWindow POOL IDENTICAL up to 30 (mine=30 base=30)
|
||||
libs/RVL_SDK/src/fa/msc/puh_msc_blk POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32 POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
## Round 2 PFFAT12_ReadFATEntryWithBuf
|
||||
Origin/main source unchanged before starting. Pool empty. Frame 0x30 and 155 instructions identical. Structural comparison shows only error/offset registers exchanged; previous leading-declaration search exhausted all120 orders without exact match. New attempts vary real helper and state boundaries before register search.
|
||||
PFFAT12_ReadFATEntryWithBuf | R2 typed buffered-read state aggregate | 155/155 instructions; structural/exact differences (0, 0)
|
||||
PFFAT12_ReadFATEntryWithBuf | R2 FAT offset calculation inline helper | 155/155 instructions; structural/exact differences (0, 23)
|
||||
PFFAT12_ReadFATEntryWithBuf | R2 buffered-read inline boundary ('p_vol', 'p_page', 'cluster', 'p_value') | 155/155 instructions; structural/exact differences (3, 26)
|
||||
PFFAT12_ReadFATEntryWithBuf | R2 buffered-read inline boundary ('p_page', 'p_vol', 'p_value', 'cluster') | 155/155 instructions; structural/exact differences (3, 26)
|
||||
PFFAT12_ReadFATEntryWithBuf | R2 buffered-read inline boundary ('cluster', 'p_value', 'p_page', 'p_vol') | 155/155 instructions; structural/exact differences (3, 26)
|
||||
R2 FAT structural restore 155/155 instructions; structural/exact differences (0, 23)
|
||||
R2 retained real buffered-read state aggregate 155/155 instructions; structural/exact differences (0, 0)
|
||||
|
||||
## R2 accepted FAT result
|
||||
Real buffered-read state aggregate scalar-replaces without changing frame or instructions. Exact-name objdiff100%, instruction-exact4/4, ctxdiff155/155 diffs0. No extra data or alignment object.
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/fa/pf_fat12] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_fat12] objdiff: code 2164/2164 data None/None functions 4/4 fuzzy 100.0000 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_fat12] instruction-exact functions: 4/4
|
||||
[libs/RVL_SDK/src/fa/pf_fat12] section .text size 2164 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_fat12] baseline: code 1544/2164 data None functions 3 fuzzy 99.7597
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.64712 -> 88.66782
|
||||
global fuzzy_match_percent: 99.47315 -> 99.47333
|
||||
global complete_code_percent: 63.16065 -> 63.16065
|
||||
global matched_data_percent: 98.51344 -> 98.51344
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
## Round 2 create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator
|
||||
Origin/main unchanged before starting. Pool 30strings and3468data bytes identical. Same0x50frame and221instructions. Differences involve hoisted constructor vtables, animation record pointer/count. Previous scopes/loop/declsearch tried; new typed creation-state and constructor-helper boundaries.
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R2 outer creation state | 221/221 instructions; structural/exact differences (0, 38)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R2 creation state including inner index | 221/221 instructions; structural/exact differences (0, 63)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R2 creation state including pane pointer | 221/221 instructions; structural/exact differences (0, 38)
|
||||
R2 Sign restore 221/221 instructions; structural/exact differences (0, 34)
|
||||
|
||||
## Round 2 uhf_msc_blk_pread
|
||||
Origin/main source unchanged before starting. Pool empty and424/424data. Same0x40frame,129instructions, control flow and operands. Only transfer-block count and memcpy byte-count registers exchanged. Try genuine transfer-state aggregate and typed length temporary, then declaration search.
|
||||
uhf_msc_blk_pread | R2 full block transfer state | 129/129 instructions; structural/exact differences (0, 33)
|
||||
uhf_msc_blk_pread | R2 transfer count and limit state | 129/129 instructions; structural/exact differences (0, 28)
|
||||
uhf_msc_blk_pread | R2 copy length and transfer count state | 129/129 instructions; structural/exact differences (0, 10)
|
||||
R2 MSC restored 129/129 instructions; structural/exact differences (0, 10)
|
||||
|
||||
## Round 2 TMCJPEGDEC_decode_iquant
|
||||
Origin/main source unchanged. No pool/data. Same0x50frame and276instructions. Structure differs in temporary aggregate-copy slots, AC fast-entry stack slot, helper subtraction/add operand order. New typed bit-reader/coefficient state and long-decoder helper state experiments; register search last.
|
||||
TMCJPEGDEC_decode_iquant | R2 bit-reader scalar state | 276/276 instructions; structural/exact differences (12, 54)
|
||||
TMCJPEGDEC_decode_iquant | R2 coefficient and Huffman scalar state | 276/276 instructions; structural/exact differences (12, 129)
|
||||
TMCJPEGDEC_decode_iquant | R2 typed long-Huffman decoder state | 276/276 instructions; structural/exact differences (12, 64)
|
||||
R2 JPEG structural restore 276/276 instructions; structural/exact differences (12, 50)
|
||||
R2 state member declsearch restored src/keyboard/tiSignWindow 221/221 instructions; structural/exact differences (0, 34)
|
||||
R2 state member declsearch restored libs/RVL_SDK/src/fa/msc/puh_msc_blk 129/129 instructions; structural/exact differences (0, 10)
|
||||
declaration block:
|
||||
const char* forceName;
|
||||
u32 animationCount;
|
||||
u32 paneIndex;
|
||||
start (0, 38)
|
||||
best (0, 38) after 6 builds; source restored; best order was:
|
||||
const char* forceName;
|
||||
u32 animationCount;
|
||||
u32 paneIndex;
|
||||
|
||||
declaration block:
|
||||
UHF_MSC_DEVICE* device;
|
||||
u16 transfer_blocks;
|
||||
s32 error;
|
||||
u32 block_size;
|
||||
u8* transfer_buffer;
|
||||
u32 transfer_limit;
|
||||
s32 cacheable;
|
||||
start (0, 33)
|
||||
best (0, 33) after 52 builds; source restored; best order was:
|
||||
UHF_MSC_DEVICE* device;
|
||||
u16 transfer_blocks;
|
||||
s32 error;
|
||||
u32 block_size;
|
||||
u8* transfer_buffer;
|
||||
u32 transfer_limit;
|
||||
s32 cacheable;
|
||||
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R2 per-pane animation state | 221/221 instructions; structural/exact differences (0, 65)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R2 per-pane state with pane object | 221/221 instructions; structural/exact differences (0, 65)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R2 typed sign-pane factory inline boundary | 221/221 instructions; structural/exact differences (0, 61)
|
||||
R2 Sign restored 221/221 instructions; structural/exact differences (0, 34)
|
||||
R2 transfer-state subset search 120 builds; retained 129/129 instructions; structural/exact differences (0, 10)
|
||||
TMCJPEGDEC_decode_iquant | R2 DC count subtraction directly into work | 276/276 instructions; structural/exact differences (12, 48)
|
||||
TMCJPEGDEC_decode_iquant | R2 long-helper consumed bit count explicit subtraction | 276/276 instructions; structural/exact differences (12, 50)
|
||||
TMCJPEGDEC_decode_iquant | R2 long symbol subtraction separate from addition | 276/276 instructions; structural/exact differences (12, 51)
|
||||
R2 JPEG retained 276/276 instructions; structural/exact differences (12, 48)
|
||||
|
||||
## R2 open-function audit before final full gate
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator built, distinct R2 structural attempts 6; 221/221 instructions; structural/exact differences (0, 34)
|
||||
uhf_msc_blk_pread built, distinct R2 structural attempts 3; 129/129 instructions; structural/exact differences (0, 10)
|
||||
TMCJPEGDEC_decode_iquant built, distinct R2 structural attempts 6; 276/276 instructions; structural/exact differences (12, 46)
|
||||
FAT open-function audit: none remains; ReadFATEntryWithBuf155/155 instructions, diffs0 and unit4/4exact.
|
||||
declaration block:
|
||||
TMCHuffmanEntry dcEntry;
|
||||
u8* huff_sym;
|
||||
const TMCHuffmanEntry* ac_fast;
|
||||
s32 idx;
|
||||
u32* huff_tbl;
|
||||
s32 bit_pos;
|
||||
u32 bit_data;
|
||||
const TMCHuffmanEntry* dc_fast;
|
||||
s32 r;
|
||||
s32 blk0;
|
||||
TMCHuffmanEntry acEntry;
|
||||
s32 extra;
|
||||
s32 t;
|
||||
s32 zz;
|
||||
s32 q;
|
||||
u32 tmp;
|
||||
const u8* zztbl;
|
||||
start (12, 48)
|
||||
improved (12, 46)
|
||||
best (12, 46) after 320 builds; kept in source:
|
||||
TMCHuffmanEntry dcEntry;
|
||||
u8* huff_sym;
|
||||
const TMCHuffmanEntry* ac_fast;
|
||||
s32 idx;
|
||||
u32* huff_tbl;
|
||||
s32 bit_pos;
|
||||
u32 bit_data;
|
||||
u32 tmp;
|
||||
s32 r;
|
||||
s32 blk0;
|
||||
TMCHuffmanEntry acEntry;
|
||||
s32 extra;
|
||||
s32 t;
|
||||
s32 zz;
|
||||
s32 q;
|
||||
const TMCHuffmanEntry* dc_fast;
|
||||
const u8* zztbl;
|
||||
|
||||
R2 MSC all120 nontrivial transfer-state field subsets built without improvement; restored original source. Sign outer/member/per-pane/factory boundaries all preserve221instructions but worsen colors; restored. JPEG only direct bit-count subtraction and improved declaration order retained; 46instruction differences remain, including12 structural stack/copy differences.
|
||||
|
||||
## R2 final clean full gate
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/fa/pf_fat12] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_fat12] objdiff: code 2164/2164 data None/None functions 4/4 fuzzy 100.0000 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_fat12] instruction-exact functions: 4/4
|
||||
[libs/RVL_SDK/src/fa/pf_fat12] section .text size 2164 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_fat12] baseline: code 1544/2164 data None functions 3 fuzzy 99.7597
|
||||
[src/keyboard/tiSignWindow] pool: IDENTICAL
|
||||
[src/keyboard/tiSignWindow] objdiff: code 6300/7184 data 3468/3468 functions 55/56 fuzzy 99.8914 linked code 0
|
||||
[src/keyboard/tiSignWindow] instruction-exact functions: 55/56
|
||||
[src/keyboard/tiSignWindow] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiSignWindow] section .data size 2672 match 100.0
|
||||
[src/keyboard/tiSignWindow] section .rodata size 784 match 100.0
|
||||
[src/keyboard/tiSignWindow] section .sdata size 8 match 100.0
|
||||
[src/keyboard/tiSignWindow] section .text size 7184 match 99.891426
|
||||
[src/keyboard/tiSignWindow] below 100: create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator 99.117645
|
||||
[src/keyboard/tiSignWindow] baseline: code 6300/7184 data 3468 functions 55 fuzzy 99.8914
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] objdiff: code 1556/2072 data 424/424 functions 10/11 fuzzy 99.8938 linked code 0
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] instruction-exact functions: 10/11
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .bss size 384 match 100.0
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .data size 32 match 100.0
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .sbss size 8 match 100.0
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .text size 2072 match 99.89382
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] below 100: uhf_msc_blk_pread 99.57365
|
||||
[libs/RVL_SDK/src/fa/msc/puh_msc_blk] baseline: code 1556/2072 data 424 functions 10 fuzzy 99.8938
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] objdiff: code None/1104 data None/None functions 0/1 fuzzy 99.1051 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] instruction-exact functions: 0/1
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] section .text size 1104 match 99.10507
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] below 100: TMCJPEGDEC_decode_iquant 99.10507
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] baseline: code None/1104 data None functions 0 fuzzy 99.0326
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.64712 -> 88.66782
|
||||
global fuzzy_match_percent: 99.47315 -> 99.47335
|
||||
global complete_code_percent: 63.16065 -> 63.16065
|
||||
global matched_data_percent: 98.51344 -> 98.51344
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
libs/RVL_SDK/src/fa/pf_fat12 POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
src/keyboard/tiSignWindow POOL IDENTICAL up to 30 (mine=30 base=30)
|
||||
libs/RVL_SDK/src/fa/msc/puh_msc_blk POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32 POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Fresh clean FAT ctxdiff155/155 diffs0. Code bytes1544->2164, exactfunctions3->4. Other exact counts unchanged. JPEG fuzzy99.03261->99.10507; declaration/direct-expression improvement remains partial. All owned data100%; no configuration/linking edits. Final full gate PASS, DOL correct, regressions0, forbidden0, readability0. Original JPEG inline-helper/copy layout remains uncertain.
|
||||
331
tools/decomp-assist/literal_reference_diff.py
Normal file
331
tools/decomp-assist/literal_reference_diff.py
Normal file
@@ -0,0 +1,331 @@
|
||||
"""Audit statically addressed narrow-string call arguments after ctxdiff.
|
||||
|
||||
Usage: python literal_reference_diff.py [unit ...] [--function NAME]
|
||||
--function requires exactly one unit. With no units, inspect all units in build/43U/report.json. By default, select
|
||||
functions scored 100%; --all-functions includes other equal-sized functions.
|
||||
Requires pyelftools and the sibling jump_table_diff.py.
|
||||
|
||||
This is an advisory audit, not a matching gate. It compares bytes, not relocation
|
||||
names or offsets, and follows constant addresses through GPR moves/additions and
|
||||
control-flow joins. It deliberately does not dereference mutable pointer globals,
|
||||
infer dynamic indices, or establish which arguments a callee actually consumes.
|
||||
Only corresponding calls with the same identity are compared. Binary data can
|
||||
look like a string: inspect every candidate against the original assembly.
|
||||
Missing exact symbol names are explicitly skipped in report-driven selection;
|
||||
compiler aliases are never guessed. No candidates does not prove complete data matching. Exit 0 means no candidates,
|
||||
1 means candidates require review, and 2 means invalid/incomplete input.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
from collections import deque
|
||||
from dataclasses import dataclass
|
||||
import json
|
||||
from pathlib import Path
|
||||
import sys
|
||||
|
||||
from elftools.common.exceptions import ELFError
|
||||
from elftools.elf.elffile import ELFFile
|
||||
|
||||
import jump_table_diff as jump
|
||||
|
||||
DATA_SECTIONS = {".data", ".rodata", ".sdata", ".sdata2"}
|
||||
VOLATILE_GPRS = {0, *range(3, 13)}
|
||||
|
||||
|
||||
@dataclass
|
||||
class LiteralObject:
|
||||
info: jump.ObjectInfo
|
||||
data: dict
|
||||
|
||||
def relocation(self, section, offset):
|
||||
entries = self.info.relocs(section)
|
||||
found = [entries[p] for p in (offset, offset + 2) if p in entries]
|
||||
if len(found) > 1:
|
||||
raise ValueError("multiple relocations in one instruction")
|
||||
return found[0] if found else None
|
||||
|
||||
def string(self, pointer, limit=512):
|
||||
if pointer is None or pointer[0] != "address":
|
||||
return None
|
||||
_, section, offset = pointer
|
||||
if section not in self.info.sections:
|
||||
return None
|
||||
if self.info.sections[section][0] not in DATA_SECTIONS or offset < 0:
|
||||
return None
|
||||
data = self.data.get(section, b"")
|
||||
if offset >= len(data):
|
||||
return None
|
||||
raw = data[offset:offset + limit]
|
||||
end = raw.find(b"\0")
|
||||
if end < 0:
|
||||
return None
|
||||
raw = raw[:end]
|
||||
if not all(c >= 32 or c in (9, 10, 13) for c in raw):
|
||||
return None
|
||||
# A relocated word is an address, not literal character bytes.
|
||||
if any(offset <= at < offset + end + 1
|
||||
for at in self.info.relocs(section)):
|
||||
return None
|
||||
return raw
|
||||
|
||||
|
||||
def read_object(path):
|
||||
info = jump.read_object(path)
|
||||
with open(path, "rb") as stream:
|
||||
elf = ELFFile(stream)
|
||||
data = {i: s.data() for i, s in enumerate(elf.iter_sections())
|
||||
if s["sh_type"] == "SHT_PROGBITS" and s["sh_flags"] & 2}
|
||||
return LiteralObject(info, data)
|
||||
|
||||
|
||||
def signed(value, bits):
|
||||
return value - (1 << bits) if value & (1 << (bits - 1)) else value
|
||||
|
||||
|
||||
def is_call(word):
|
||||
op, xo = word >> 26, (word >> 1) & 1023
|
||||
return bool(word & 1) and (op == 18 or op == 19 and xo in (16, 528))
|
||||
|
||||
|
||||
|
||||
def is_tail_call(obj, function, offset, word):
|
||||
if word >> 26 != 18 or word & 1:
|
||||
return False
|
||||
relocation = obj.relocation(function.section, function.value + offset)
|
||||
if relocation is None or relocation.kind != 10:
|
||||
return False
|
||||
if not 0 <= relocation.symbol < len(obj.info.symbols):
|
||||
raise ValueError("tail-call relocation symbol is out of range")
|
||||
symbol = obj.info.symbols[relocation.symbol]
|
||||
return bool(symbol.name) and (not isinstance(symbol.section, int)
|
||||
or symbol.kind == "STT_FUNC" and symbol.name != function.name)
|
||||
|
||||
|
||||
def call_identity(obj, function, offset, word):
|
||||
relocation = obj.relocation(function.section, function.value + offset)
|
||||
if relocation is not None:
|
||||
if relocation.kind != 10: # R_PPC_REL24
|
||||
return None
|
||||
if not 0 <= relocation.symbol < len(obj.info.symbols):
|
||||
raise ValueError("call relocation symbol is out of range")
|
||||
symbol = obj.info.symbols[relocation.symbol]
|
||||
return ("direct", symbol.name, relocation.addend)
|
||||
if word >> 26 == 19:
|
||||
return ("indirect", (word >> 1) & 1023)
|
||||
# A non-relocated direct call has no reliably paired cross-object identity.
|
||||
return None
|
||||
|
||||
|
||||
def transfer(obj, function, offset, word, incoming):
|
||||
state = dict(incoming)
|
||||
op = word >> 26
|
||||
rd, ra, rb = (word >> 21) & 31, (word >> 16) & 31, (word >> 11) & 31
|
||||
xo = (word >> 1) & 1023
|
||||
immediate = signed(word & 0xffff, 16)
|
||||
if is_call(word):
|
||||
return {r: p for r, p in state.items() if r not in VOLATILE_GPRS}
|
||||
if op in (14, 15):
|
||||
relocation = obj.relocation(function.section, function.value + offset)
|
||||
if relocation and relocation.kind in (4, 6, 109):
|
||||
location = obj.info.location(relocation)
|
||||
if location is not None:
|
||||
kind = "high" if relocation.kind == 6 else "address"
|
||||
state[rd] = (kind, *location)
|
||||
return state
|
||||
pointer = incoming.get(ra) if ra else None
|
||||
if op == 14 and pointer and pointer[0] == "address":
|
||||
state[rd] = ("address", pointer[1], pointer[2] + immediate)
|
||||
else:
|
||||
state.pop(rd, None)
|
||||
elif op == 31 and xo == 444 and rd == rb: # mr = or rA,rS,rS
|
||||
state.pop(ra, None)
|
||||
if rd in incoming:
|
||||
state[ra] = incoming[rd]
|
||||
elif op in (7, 8, 12, 13, 32, 34, 40, 42):
|
||||
state.pop(rd, None)
|
||||
elif op in (33, 35, 41, 43):
|
||||
state.pop(rd, None)
|
||||
state.pop(ra, None)
|
||||
elif op in (20, 21, 23, 24, 25, 26, 27, 28, 29):
|
||||
state.pop(ra, None)
|
||||
elif op == 46: # lmw
|
||||
state = {r: p for r, p in state.items() if r < rd}
|
||||
elif op in (37, 39, 45, 49, 51, 53, 55, 57, 61):
|
||||
state.pop(ra, None)
|
||||
elif op == 4:
|
||||
# Paired-single indexed updates may write rA. Forget it conservatively.
|
||||
state.pop(ra, None)
|
||||
elif op in (10, 11, 16, 18, 19, 36, 38, 44, 47, 48, 50,
|
||||
52, 54, 56, 59, 60, 63):
|
||||
pass
|
||||
elif op == 31:
|
||||
if xo in (0, 32, 144, 467, 151, 215, 407, 535, 599, 663, 727,
|
||||
598, 854):
|
||||
pass
|
||||
elif xo in (28, 60, 124, 284, 316, 412, 444, 476, 24, 26, 536,
|
||||
792, 824, 922, 954):
|
||||
state.pop(ra, None)
|
||||
elif xo in (8, 10, 11, 19, 23, 40, 75, 87, 104, 136,
|
||||
138, 200, 202, 232, 234, 235, 266, 279, 339,
|
||||
343, 459, 491):
|
||||
state.pop(rd, None)
|
||||
elif xo in (55, 119, 311, 375):
|
||||
state.pop(rd, None)
|
||||
state.pop(ra, None)
|
||||
elif xo in (183, 247, 439, 567, 631, 695, 759):
|
||||
state.pop(ra, None)
|
||||
else:
|
||||
state.clear()
|
||||
else:
|
||||
state.clear()
|
||||
return state
|
||||
|
||||
|
||||
def call_strings(obj, name):
|
||||
function = obj.info.symbol(name)
|
||||
if function.kind != "STT_FUNC" or function.size % 4 or function.value % 4:
|
||||
raise ValueError("expected an aligned function: " + name)
|
||||
code = obj.data.get(function.section, b"")
|
||||
if function.value + function.size > len(code):
|
||||
raise ValueError("function code is unavailable: " + name)
|
||||
code = code[function.value:function.value + function.size]
|
||||
words = [int.from_bytes(code[i:i + 4], "big") for i in range(0, len(code), 4)]
|
||||
targets = set()
|
||||
for _, entries in jump.reference_tables(obj.info, function):
|
||||
targets.update(entries)
|
||||
states, pending = {0: {}}, deque([0])
|
||||
|
||||
def offer(offset, state):
|
||||
if offset < 0 or offset >= function.size or offset % 4:
|
||||
return
|
||||
if offset not in states:
|
||||
states[offset] = dict(state)
|
||||
pending.append(offset)
|
||||
return
|
||||
old = states[offset]
|
||||
merged = {r: p for r, p in old.items() if state.get(r) == p}
|
||||
if merged != old:
|
||||
states[offset] = merged
|
||||
pending.append(offset)
|
||||
|
||||
while pending:
|
||||
offset = pending.popleft()
|
||||
word = words[offset // 4]
|
||||
op, xo = word >> 26, (word >> 1) & 1023
|
||||
state = transfer(obj, function, offset, word, states[offset])
|
||||
if is_tail_call(obj, function, offset, word):
|
||||
continue
|
||||
if op == 18 and not word & 1:
|
||||
if word & 2:
|
||||
continue # Absolute branches do not name local section offsets.
|
||||
offer(offset + signed(word & 0x03fffffc, 26), state)
|
||||
elif op == 16:
|
||||
if word & 1:
|
||||
raise ValueError("conditional branch-and-link is unsupported")
|
||||
if not word & 2:
|
||||
offer(offset + signed(word & 0xfffc, 16), state)
|
||||
if ((word >> 21) & 0x14) != 0x14:
|
||||
offer(offset + 4, state)
|
||||
elif op == 19 and xo in (16, 528) and not word & 1:
|
||||
if xo == 528:
|
||||
for target in targets:
|
||||
offer(target, state)
|
||||
if ((word >> 21) & 0x14) != 0x14:
|
||||
offer(offset + 4, state)
|
||||
else:
|
||||
offer(offset + 4, state)
|
||||
|
||||
result = {}
|
||||
for offset, state in states.items():
|
||||
word = words[offset // 4]
|
||||
if not (is_call(word) or is_tail_call(obj, function, offset, word)):
|
||||
continue
|
||||
identity = call_identity(obj, function, offset, word)
|
||||
if identity is None:
|
||||
continue
|
||||
for gpr in range(3, 11):
|
||||
value = obj.string(state.get(gpr))
|
||||
if value is not None:
|
||||
result[(offset, gpr)] = (identity, value)
|
||||
return result
|
||||
|
||||
|
||||
def compare_function(source, reference, name):
|
||||
if source.info.symbol(name).size != reference.info.symbol(name).size:
|
||||
return 0, [], "different function sizes"
|
||||
actual = call_strings(source, name)
|
||||
expected = call_strings(reference, name)
|
||||
checked, differences = 0, []
|
||||
for key, (callee, value) in expected.items():
|
||||
# Short/binary-looking data has especially ambiguous string semantics.
|
||||
if len(value) < 3 or key not in actual or actual[key][0] != callee:
|
||||
continue
|
||||
checked += 1
|
||||
if value != actual[key][1]:
|
||||
differences.append({"offset": key[0], "register": key[1],
|
||||
"expected_hex": value.hex(),
|
||||
"actual_hex": actual[key][1].hex(),
|
||||
"expected": value.decode("utf-8", "replace"),
|
||||
"actual": actual[key][1].decode("utf-8", "replace")})
|
||||
return checked, differences, None
|
||||
|
||||
|
||||
def unit_path(name):
|
||||
path = Path(name.removeprefix("main/"))
|
||||
if path.is_absolute() or ".." in path.parts or not path.parts:
|
||||
raise ValueError("expected a relative unit path")
|
||||
return path
|
||||
|
||||
|
||||
def main(argv=None):
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument("units", nargs="*")
|
||||
parser.add_argument("--function", action="append", default=[])
|
||||
parser.add_argument("--all-functions", action="store_true")
|
||||
parser.add_argument("--build", type=Path, default=Path("build/43U"))
|
||||
parser.add_argument("--report", type=Path)
|
||||
args = parser.parse_args(argv)
|
||||
if args.function and len(args.units) != 1:
|
||||
parser.error("--function requires exactly one unit")
|
||||
output = {"checked_arguments": 0, "analyzed_functions": 0,
|
||||
"skipped_functions": [], "candidates": [], "errors": []}
|
||||
try:
|
||||
report = json.loads((args.report or args.build / "report.json").read_text())
|
||||
selected = {str(unit_path(n)) for n in args.units}
|
||||
units = {str(unit_path(u["name"])): u for u in report["units"]}
|
||||
if selected - units.keys():
|
||||
raise ValueError("unit is absent from report: " + ", ".join(sorted(selected - units.keys())))
|
||||
for unit in sorted(selected or units.keys()):
|
||||
source = read_object(args.build / "src" / (unit + ".o"))
|
||||
reference = read_object(args.build / "obj" / (unit + ".o"))
|
||||
functions = args.function or [f["name"] for f in units[unit].get("functions", [])
|
||||
if args.all_functions or f.get("fuzzy_match_percent") == 100]
|
||||
for name in functions:
|
||||
try:
|
||||
if not args.function:
|
||||
missing = [label for label, obj in (("source", source), ("reference", reference))
|
||||
if not any(s.name == name and isinstance(s.section, int) and s.size
|
||||
for s in obj.info.symbols)]
|
||||
if missing:
|
||||
output["skipped_functions"].append({
|
||||
"unit": unit, "function": name,
|
||||
"reason": "missing exact symbol name in " + ", ".join(missing)
|
||||
+ "; no compiler-alias inference"})
|
||||
continue
|
||||
checked, differences, skipped = compare_function(source, reference, name)
|
||||
if skipped:
|
||||
output["skipped_functions"].append({"unit": unit, "function": name, "reason": skipped})
|
||||
continue
|
||||
output["analyzed_functions"] += 1
|
||||
output["checked_arguments"] += checked
|
||||
output["candidates"].extend(dict(unit=unit, function=name, **d) for d in differences)
|
||||
except ValueError as error:
|
||||
output["errors"].append({"unit": unit, "function": name, "error": str(error)})
|
||||
except (OSError, ELFError, ValueError, KeyError, TypeError) as error:
|
||||
output["errors"].append({"error": str(error)})
|
||||
print(json.dumps(output, indent=2))
|
||||
return 2 if output["errors"] else 1 if output["candidates"] else 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
1218
tools/decomp-assist/partial-oct2f.attempts.md
Normal file
1218
tools/decomp-assist/partial-oct2f.attempts.md
Normal file
File diff suppressed because it is too large
Load Diff
58
tools/decomp-assist/partial-oct2f.data-gate.txt
Normal file
58
tools/decomp-assist/partial-oct2f.data-gate.txt
Normal file
@@ -0,0 +1,58 @@
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/scene/memoryCard/iplMemoryCardManager] pool: IDENTICAL
|
||||
[src/scene/memoryCard/iplMemoryCardManager] objdiff: code 2572/5396 data None/None functions 18/26 fuzzy 97.8836 linked code 0
|
||||
[src/scene/memoryCard/iplMemoryCardManager] instruction-exact functions: 18/26
|
||||
[src/scene/memoryCard/iplMemoryCardManager] section .text size 5396 match 97.88362
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs 92.30769
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: update_file_array__Q33ipl5scene17MemoryCardManagerFUc 99.72222
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: _create_icon__Q33ipl5scene17MemoryCardManagerFUcsl 87.55
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: getComment__Q33ipl5scene17MemoryCardManagerFUcsi 98.94309
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: create_banner__Q33ipl5scene17MemoryCardManagerFUcs 90.42453
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: getBlocks__Q33ipl5scene17MemoryCardManagerFUcs 92.0
|
||||
[src/scene/memoryCard/iplMemoryCardManager] baseline: code 2368/5396 data None functions 17 fuzzy 97.3610
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] pool: IDENTICAL
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] objdiff: code 17444/18624 data 240/1976 functions 64/69 fuzzy 99.8935 linked code 0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] instruction-exact functions: 64/69
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .data size 1696 match 10.087957
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .rodata size 48 match 100.0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .sdata size 192 match 100.0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .sdata2 size 40 match 90.0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .text size 18624 match 99.89347
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: calcFadein__Q33ipl5scene14SDChannelTitleFv 97.87234
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: initCalcFadeout__Q33ipl5scene14SDChannelTitleFv 97.95918
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_startCopyProgress 98.62791
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_updateCopyStart 98.3421
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_flushSaveBeforeExit 98.5946
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] baseline: code 17444/18624 data 240 functions 64 fuzzy 99.8935
|
||||
[src/keyboard/tiCandidateBox] pool: IDENTICAL
|
||||
[src/keyboard/tiCandidateBox] objdiff: code 19988/24000 data 1132/4652 functions 109/112 fuzzy 99.4395 linked code 0
|
||||
[src/keyboard/tiCandidateBox] instruction-exact functions: 108/112
|
||||
[src/keyboard/tiCandidateBox] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiCandidateBox] section .data size 3488 match 99.48127
|
||||
[src/keyboard/tiCandidateBox] section .rodata size 1048 match 100.0
|
||||
[src/keyboard/tiCandidateBox] section .sdata size 32 match 96.875
|
||||
[src/keyboard/tiCandidateBox] section .sdata2 size 80 match 100.0
|
||||
[src/keyboard/tiCandidateBox] section .text size 24000 match 99.4395
|
||||
[src/keyboard/tiCandidateBox] below 100: create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 92.71023
|
||||
[src/keyboard/tiCandidateBox] below 100: createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 96.56481
|
||||
[src/keyboard/tiCandidateBox] below 100: CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv 99.873566
|
||||
[src/keyboard/tiCandidateBox] baseline: code 19988/24000 data 1132 functions 109 fuzzy 99.4395
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] objdiff: code 1196/1692 data None/None functions 6/7 fuzzy 96.3641 linked code 0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] instruction-exact functions: 6/7
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] section .text size 1692 match 96.36407
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] below 100: NHTTPi_compareTokenN_HdrRecvBuf 87.59677
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] baseline: code 1196/1692 data None functions 6 fuzzy 96.3641
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.57407 -> 88.58088
|
||||
global fuzzy_match_percent: 99.45531 -> 99.45625
|
||||
global complete_code_percent: 63.07103 -> 63.07103
|
||||
global matched_data_percent: 97.73032 -> 97.73032
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
review note: include/iplMemoryCardLib.h: volatile object declaration (orchestrator checks the target really re-reads it) (+1 net), e.g. volatile u16 anmFrameBits;
|
||||
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
|
||||
GATE PASS
|
||||
58
tools/decomp-assist/partial-oct2f.final-gate.txt
Normal file
58
tools/decomp-assist/partial-oct2f.final-gate.txt
Normal file
@@ -0,0 +1,58 @@
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/scene/memoryCard/iplMemoryCardManager] pool: IDENTICAL
|
||||
[src/scene/memoryCard/iplMemoryCardManager] objdiff: code 2572/5396 data None/None functions 18/26 fuzzy 97.8836 linked code 0
|
||||
[src/scene/memoryCard/iplMemoryCardManager] instruction-exact functions: 18/26
|
||||
[src/scene/memoryCard/iplMemoryCardManager] section .text size 5396 match 97.88362
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs 92.30769
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: update_file_array__Q33ipl5scene17MemoryCardManagerFUc 99.72222
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: _create_icon__Q33ipl5scene17MemoryCardManagerFUcsl 87.55
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: getComment__Q33ipl5scene17MemoryCardManagerFUcsi 98.94309
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: create_banner__Q33ipl5scene17MemoryCardManagerFUcs 90.42453
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: getBlocks__Q33ipl5scene17MemoryCardManagerFUcs 92.0
|
||||
[src/scene/memoryCard/iplMemoryCardManager] baseline: code 2368/5396 data None functions 17 fuzzy 97.3610
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] pool: IDENTICAL
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] objdiff: code 17444/18624 data 240/1976 functions 64/69 fuzzy 99.8935 linked code 0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] instruction-exact functions: 64/69
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .data size 1696 match 10.087957
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .rodata size 48 match 100.0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .sdata size 192 match 100.0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .sdata2 size 40 match 90.0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .text size 18624 match 99.89347
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: calcFadein__Q33ipl5scene14SDChannelTitleFv 97.87234
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: initCalcFadeout__Q33ipl5scene14SDChannelTitleFv 97.95918
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_startCopyProgress 98.62791
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_updateCopyStart 98.3421
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_flushSaveBeforeExit 98.5946
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] baseline: code 17444/18624 data 240 functions 64 fuzzy 99.8935
|
||||
[src/keyboard/tiCandidateBox] pool: IDENTICAL
|
||||
[src/keyboard/tiCandidateBox] objdiff: code 19988/24000 data 1132/4652 functions 109/112 fuzzy 99.4395 linked code 0
|
||||
[src/keyboard/tiCandidateBox] instruction-exact functions: 108/112
|
||||
[src/keyboard/tiCandidateBox] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiCandidateBox] section .data size 3488 match 99.48127
|
||||
[src/keyboard/tiCandidateBox] section .rodata size 1048 match 100.0
|
||||
[src/keyboard/tiCandidateBox] section .sdata size 32 match 96.875
|
||||
[src/keyboard/tiCandidateBox] section .sdata2 size 80 match 100.0
|
||||
[src/keyboard/tiCandidateBox] section .text size 24000 match 99.4395
|
||||
[src/keyboard/tiCandidateBox] below 100: create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 92.71023
|
||||
[src/keyboard/tiCandidateBox] below 100: createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 96.56481
|
||||
[src/keyboard/tiCandidateBox] below 100: CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv 99.873566
|
||||
[src/keyboard/tiCandidateBox] baseline: code 19988/24000 data 1132 functions 109 fuzzy 99.4395
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] objdiff: code 1196/1692 data None/None functions 6/7 fuzzy 96.3641 linked code 0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] instruction-exact functions: 6/7
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] section .text size 1692 match 96.36407
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] below 100: NHTTPi_compareTokenN_HdrRecvBuf 87.59677
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] baseline: code 1196/1692 data None functions 6 fuzzy 96.3641
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.57407 -> 88.58088
|
||||
global fuzzy_match_percent: 99.45531 -> 99.45625
|
||||
global complete_code_percent: 63.07103 -> 63.07103
|
||||
global matched_data_percent: 97.73032 -> 97.73032
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
review note: include/iplMemoryCardLib.h: volatile object declaration (orchestrator checks the target really re-reads it) (+1 net), e.g. volatile u16 anmFrameBits;
|
||||
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
|
||||
GATE PASS
|
||||
58
tools/decomp-assist/partial-oct2f.icon-gate.txt
Normal file
58
tools/decomp-assist/partial-oct2f.icon-gate.txt
Normal file
@@ -0,0 +1,58 @@
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/scene/memoryCard/iplMemoryCardManager] pool: IDENTICAL
|
||||
[src/scene/memoryCard/iplMemoryCardManager] objdiff: code 2572/5396 data None/None functions 18/26 fuzzy 97.8836 linked code 0
|
||||
[src/scene/memoryCard/iplMemoryCardManager] instruction-exact functions: 18/26
|
||||
[src/scene/memoryCard/iplMemoryCardManager] section .text size 5396 match 97.88362
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs 92.30769
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: update_file_array__Q33ipl5scene17MemoryCardManagerFUc 99.72222
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: _create_icon__Q33ipl5scene17MemoryCardManagerFUcsl 87.55
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: getComment__Q33ipl5scene17MemoryCardManagerFUcsi 98.94309
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: create_banner__Q33ipl5scene17MemoryCardManagerFUcs 90.42453
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: getBlocks__Q33ipl5scene17MemoryCardManagerFUcs 92.0
|
||||
[src/scene/memoryCard/iplMemoryCardManager] baseline: code 2368/5396 data None functions 17 fuzzy 97.3610
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] pool: IDENTICAL
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] objdiff: code 17444/18624 data 240/1976 functions 64/69 fuzzy 99.8935 linked code 0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] instruction-exact functions: 64/69
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .data size 1696 match 19.598541
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .rodata size 48 match 100.0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .sdata size 192 match 100.0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .sdata2 size 40 match 90.0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .text size 18624 match 99.89347
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: calcFadein__Q33ipl5scene14SDChannelTitleFv 97.87234
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: initCalcFadeout__Q33ipl5scene14SDChannelTitleFv 97.95918
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_startCopyProgress 98.62791
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_updateCopyStart 98.3421
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_flushSaveBeforeExit 98.5946
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] baseline: code 17444/18624 data 240 functions 64 fuzzy 99.8935
|
||||
[src/keyboard/tiCandidateBox] pool: IDENTICAL
|
||||
[src/keyboard/tiCandidateBox] objdiff: code 19988/24000 data 1132/4652 functions 109/112 fuzzy 99.4395 linked code 0
|
||||
[src/keyboard/tiCandidateBox] instruction-exact functions: 108/112
|
||||
[src/keyboard/tiCandidateBox] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiCandidateBox] section .data size 3488 match 99.48127
|
||||
[src/keyboard/tiCandidateBox] section .rodata size 1048 match 100.0
|
||||
[src/keyboard/tiCandidateBox] section .sdata size 32 match 96.875
|
||||
[src/keyboard/tiCandidateBox] section .sdata2 size 80 match 100.0
|
||||
[src/keyboard/tiCandidateBox] section .text size 24000 match 99.4395
|
||||
[src/keyboard/tiCandidateBox] below 100: create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 92.71023
|
||||
[src/keyboard/tiCandidateBox] below 100: createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 96.56481
|
||||
[src/keyboard/tiCandidateBox] below 100: CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv 99.873566
|
||||
[src/keyboard/tiCandidateBox] baseline: code 19988/24000 data 1132 functions 109 fuzzy 99.4395
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] objdiff: code 1196/1692 data None/None functions 6/7 fuzzy 96.3641 linked code 0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] instruction-exact functions: 6/7
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] section .text size 1692 match 96.36407
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] below 100: NHTTPi_compareTokenN_HdrRecvBuf 87.59677
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] baseline: code 1196/1692 data None functions 6 fuzzy 96.3641
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.57407 -> 88.58088
|
||||
global fuzzy_match_percent: 99.45531 -> 99.45625
|
||||
global complete_code_percent: 63.07103 -> 63.07103
|
||||
global matched_data_percent: 97.73032 -> 97.73032
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
review note: include/iplMemoryCardLib.h: volatile object declaration (orchestrator checks the target really re-reads it) (+1 net), e.g. volatile u16 anmFrameBits;
|
||||
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
|
||||
GATE PASS
|
||||
57
tools/decomp-assist/partial-oct2f.initial-gate.txt
Normal file
57
tools/decomp-assist/partial-oct2f.initial-gate.txt
Normal file
@@ -0,0 +1,57 @@
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/scene/memoryCard/iplMemoryCardManager] pool: IDENTICAL
|
||||
[src/scene/memoryCard/iplMemoryCardManager] objdiff: code 2368/5396 data None/None functions 17/26 fuzzy 97.3610 linked code 0
|
||||
[src/scene/memoryCard/iplMemoryCardManager] instruction-exact functions: 17/26
|
||||
[src/scene/memoryCard/iplMemoryCardManager] section .text size 5396 match 97.36101
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs 92.30769
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: update_file_array__Q33ipl5scene17MemoryCardManagerFUc 99.72222
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: create_icon__Q33ipl5scene17MemoryCardManagerFUcs 86.17647
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: _create_icon__Q33ipl5scene17MemoryCardManagerFUcsl 87.55
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: getComment__Q33ipl5scene17MemoryCardManagerFUcsi 98.94309
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: create_banner__Q33ipl5scene17MemoryCardManagerFUcs 90.42453
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: getBlocks__Q33ipl5scene17MemoryCardManagerFUcs 92.0
|
||||
[src/scene/memoryCard/iplMemoryCardManager] baseline: code 2368/5396 data None functions 17 fuzzy 97.3610
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] pool: IDENTICAL
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] objdiff: code 17444/18624 data 240/1976 functions 64/69 fuzzy 99.8935 linked code 0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] instruction-exact functions: 64/69
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .data size 1696 match None
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .rodata size 48 match 100.0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .sdata size 192 match 100.0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .sdata2 size 40 match 90.0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .text size 18624 match 99.89347
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: calcFadein__Q33ipl5scene14SDChannelTitleFv 97.87234
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: initCalcFadeout__Q33ipl5scene14SDChannelTitleFv 97.95918
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_startCopyProgress 98.62791
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_updateCopyStart 98.3421
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_flushSaveBeforeExit 98.5946
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] baseline: code 17444/18624 data 240 functions 64 fuzzy 99.8935
|
||||
[src/keyboard/tiCandidateBox] pool: IDENTICAL
|
||||
[src/keyboard/tiCandidateBox] objdiff: code 19988/24000 data 1132/4652 functions 109/112 fuzzy 99.4395 linked code 0
|
||||
[src/keyboard/tiCandidateBox] instruction-exact functions: 108/112
|
||||
[src/keyboard/tiCandidateBox] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiCandidateBox] section .data size 3488 match 99.48127
|
||||
[src/keyboard/tiCandidateBox] section .rodata size 1048 match 100.0
|
||||
[src/keyboard/tiCandidateBox] section .sdata size 32 match 96.875
|
||||
[src/keyboard/tiCandidateBox] section .sdata2 size 80 match 100.0
|
||||
[src/keyboard/tiCandidateBox] section .text size 24000 match 99.4395
|
||||
[src/keyboard/tiCandidateBox] below 100: create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 92.71023
|
||||
[src/keyboard/tiCandidateBox] below 100: createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 96.56481
|
||||
[src/keyboard/tiCandidateBox] below 100: CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv 99.873566
|
||||
[src/keyboard/tiCandidateBox] baseline: code 19988/24000 data 1132 functions 109 fuzzy 99.4395
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] objdiff: code 1196/1692 data None/None functions 6/7 fuzzy 96.3641 linked code 0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] instruction-exact functions: 6/7
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] section .text size 1692 match 96.36407
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] below 100: NHTTPi_compareTokenN_HdrRecvBuf 87.59677
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] baseline: code 1196/1692 data None functions 6 fuzzy 96.3641
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.57407 -> 88.57407
|
||||
global fuzzy_match_percent: 99.45531 -> 99.45531
|
||||
global complete_code_percent: 63.07103 -> 63.07103
|
||||
global matched_data_percent: 97.73032 -> 97.73032
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
50
tools/decomp-assist/partial-oct2f.report.txt
Normal file
50
tools/decomp-assist/partial-oct2f.report.txt
Normal file
@@ -0,0 +1,50 @@
|
||||
GATE PASS
|
||||
[src/scene/memoryCard/iplMemoryCardManager] instruction-exact functions: 18/26
|
||||
[src/scene/memoryCard/iplMemoryCardManager] objdiff: code 2572/5396 data None/None functions 18/26 fuzzy 97.8836 linked code 0
|
||||
before -> after: instruction-exact 17/26 -> 18/26; objdiff-exact 17/26 -> 18/26; code 2368/5396 -> 2572/5396; matched_data None/None -> None/None
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] instruction-exact functions: 64/69
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] objdiff: code 17444/18624 data 240/1976 functions 64/69 fuzzy 99.8935 linked code 0
|
||||
before -> after: instruction-exact 64/69 -> 64/69; objdiff-exact 64/69 -> 64/69; code 17444/18624 -> 17444/18624; matched_data 240/1976 -> 240/1976
|
||||
[src/keyboard/tiCandidateBox] instruction-exact functions: 108/112
|
||||
[src/keyboard/tiCandidateBox] objdiff: code 19988/24000 data 1132/4652 functions 109/112 fuzzy 99.4395 linked code 0
|
||||
before -> after: instruction-exact 108/112 -> 108/112; objdiff-exact 109/112 -> 109/112; code 19988/24000 -> 19988/24000; matched_data 1132/4652 -> 1132/4652
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] instruction-exact functions: 6/7
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] objdiff: code 1196/1692 data None/None functions 6/7 fuzzy 96.3641 linked code 0
|
||||
before -> after: instruction-exact 6/7 -> 6/7; objdiff-exact 6/7 -> 6/7; code 1196/1692 -> 1196/1692; matched_data None/None -> None/None
|
||||
Remaining nonmatching functions:
|
||||
isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505%: directory row/column add operands r0/r3 reversed; 118/118 instructions, 2 diffs
|
||||
isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505%: directory row/column add operands r0/r3 reversed; 118/118 instructions, 2 diffs
|
||||
isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs 92.30769%: restore stack-base setup scheduled seven instructions early; 26/26 instructions
|
||||
update_file_array__Q33ipl5scene17MemoryCardManagerFUc 99.72222%: r3/r4 allocation tie; explicitly skipped as requested; 90/90 instructions
|
||||
_create_icon__Q33ipl5scene17MemoryCardManagerFUcsl 87.55%: texture/TLUT row and column addresses merged across GX calls; 100/100 instructions,16 structural differences
|
||||
getComment__Q33ipl5scene17MemoryCardManagerFUcsi 98.94309%: callee-saved decoded pointer and row/column GPR coloring plus trim read pointer;123/123 instructions,20 GPR-only differences
|
||||
create_banner__Q33ipl5scene17MemoryCardManagerFUcs 90.42453%: validation icon pointer reused; target recomputes rendering pointer and separate cell bases;106/106 instructions,15 structural differences
|
||||
getBlocks__Q33ipl5scene17MemoryCardManagerFUcs 92.0%: restore stack-base setup scheduled before directory load;25/25 instructions
|
||||
calcFadein__Q33ipl5scene14SDChannelTitleFv 97.87234%: extra initialized unused optOut handler argument;48/47 instructions
|
||||
initCalcFadeout__Q33ipl5scene14SDChannelTitleFv 97.95918%: extra initialized unused optOut handler argument;50/49 instructions
|
||||
iplSDChannelTitle_startCopyProgress 98.62791%: extra initialized unused enqueue controller argument and title-word scheduling;87/86 instructions
|
||||
iplSDChannelTitle_updateCopyStart 98.3421%: extra initialized unused enqueue controller argument and title-word scheduling;77/76 instructions
|
||||
iplSDChannelTitle_flushSaveBeforeExit 98.5946%: smArg base GPR assignment and heap/manager reload order;37/37 instructions
|
||||
create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 92.71023%: UITextArea Init indexed addressing instead of advancing owner pointer; scroll/window name helper argument lifetimes;351/352 instructions
|
||||
createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 96.56481%: animation pointer cached across CreateAnimTransform; entry reference restores216/216 structure but leaves53 GPR differences
|
||||
CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv 99.873566%: eleven f2/f3 substitutions in forward-loop calcStringWidth/height temporaries;435/435 instructions
|
||||
NHTTPi_compareTokenN_HdrRecvBuf 87.59677%: guard/read-width/LowerCase structure differs; best honest variant124/124 leaves five delimiter/ASCII-constant scheduling differences
|
||||
Validation: final nonquick gate all four; clean full43U build; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d; global regressions0; forbidden/readability0; all four pools identical.
|
||||
Every remaining unskipped function has >=3 distinct compiled source attempts; failed variations restored. 17 open including update_file_array user skip.
|
||||
New exact: create_icon__Q33ipl5scene17MemoryCardManagerFUcs,51/51 instructions,ctxdiff0,objdiff100. Volatile anmFrameBits is definition-level and scoped to IPL_MEMORY_CARD_MANAGER_CPP; target rereads duration at0xe94 on backedge0xebc->0xe90, without writes/calls in loop.
|
||||
Uncertainty: Candidate gate reports108 instruction-exact versus109 objdiff-exact. Existing onGUIEvent is objdiff100 and declsearch-normalizedscore0; odiff normalizes CR1 branch immediate incorrectly. Function not changed.
|
||||
Data limitation: matched_data is whole-section exact accounting and unchanged. SD three vtable names now pair (.data fuzzy10.087957) but anonymous pooled string/array boundaries and callback relocations remain. Candidate named data bytes/relocations pair after extent corrections, but source .data0xd7c differs from target0xda0 by36 bytes; weak extras were ignored, no padding/suppression added. scEmptyWChars has a final element1 vs target0; all-zero alternatives migrate it to .sbss and were restored.
|
||||
Retained config proof:7 same-address data names and five type extent corrections, no function rename/size/address edits, section totals preserved. See DATA PROOF / DATA EXTENT PROOF lines in attempts log.
|
||||
Files changed:
|
||||
config/43U/symbols.txt
|
||||
include/iplMemoryCardLib.h
|
||||
src/scene/memoryCard/iplMemoryCardManager.cpp
|
||||
tools/decomp-assist/partial-oct2f.attempts.md
|
||||
tools/decomp-assist/partial-oct2f.data-gate.txt
|
||||
tools/decomp-assist/partial-oct2f.final-gate.txt
|
||||
tools/decomp-assist/partial-oct2f.icon-gate.txt
|
||||
tools/decomp-assist/partial-oct2f.initial-gate.txt
|
||||
tools/decomp-assist/partial-oct2f.report.txt
|
||||
Commit hashes:
|
||||
fde9f8d5 identify sd title data objects and correct extents
|
||||
390d83ee match memory card icon frame duration reads
|
||||
285
tools/decomp-assist/test_literal_reference_diff.py
Normal file
285
tools/decomp-assist/test_literal_reference_diff.py
Normal file
@@ -0,0 +1,285 @@
|
||||
import contextlib
|
||||
from dataclasses import replace
|
||||
import io
|
||||
import json
|
||||
from pathlib import Path
|
||||
import struct
|
||||
import tempfile
|
||||
import unittest
|
||||
from unittest.mock import patch
|
||||
|
||||
import jump_table_diff as jump
|
||||
import literal_reference_diff as tool
|
||||
|
||||
|
||||
def words(*values):
|
||||
return b"".join(struct.pack(">I", value) for value in values)
|
||||
|
||||
|
||||
def fixture(value=b"P_prdc_scrl_Left\0", code=None, call_offsets=(8,),
|
||||
text_id=1, data_id=2, function_offset=0, data_offset=0,
|
||||
references=None):
|
||||
code = code or words(0x3c800000, 0x38840000, 0x48000001, 0x4e800020)
|
||||
data = b"\0" * data_offset + value
|
||||
symbols = [jump.Symbol("dispatch", text_id, function_offset, len(code), "STT_FUNC"),
|
||||
jump.Symbol("literal", data_id, data_offset, len(value)),
|
||||
jump.Symbol("consume", "SHN_UNDEF", 0, 0, "STT_FUNC")]
|
||||
relocations = {text_id: {
|
||||
function_offset + 2: jump.Relocation(function_offset + 2, 6, 1, 0),
|
||||
function_offset + 6: jump.Relocation(function_offset + 6, 4, 1, 0),
|
||||
}}
|
||||
if references is not None:
|
||||
relocations[text_id] = {function_offset + at: jump.Relocation(
|
||||
function_offset + at, kind, 1, addend) for at, kind, addend in references}
|
||||
for at in call_offsets:
|
||||
relocations[text_id][function_offset + at] = jump.Relocation(
|
||||
function_offset + at, 10, 2, 0)
|
||||
sections = {text_id: (".text", function_offset + len(code)),
|
||||
data_id: (".data", len(data))}
|
||||
return tool.LiteralObject(jump.ObjectInfo(sections, symbols, relocations),
|
||||
{text_id: b"\0" * function_offset + code, data_id: data})
|
||||
|
||||
|
||||
def compare(source, reference=None):
|
||||
return tool.compare_function(source, reference or fixture(), "dispatch")
|
||||
|
||||
|
||||
class LiteralReferenceTests(unittest.TestCase):
|
||||
def test_equal_value_with_different_section_ids_and_offsets(self):
|
||||
source = fixture(text_id=4, data_id=7, function_offset=0x40, data_offset=0x20)
|
||||
self.assertEqual(compare(source), (1, [], None))
|
||||
|
||||
def test_detects_different_literal_despite_identical_code(self):
|
||||
source = fixture(b"wrong_pane\0")
|
||||
checked, differences, skipped = compare(source)
|
||||
self.assertEqual(checked, 1)
|
||||
self.assertIsNone(skipped)
|
||||
self.assertEqual(differences[0]["expected"], "P_prdc_scrl_Left")
|
||||
self.assertEqual(differences[0]["actual"], "wrong_pane")
|
||||
|
||||
def test_source_empty_string_is_not_silently_ignored(self):
|
||||
self.assertEqual(compare(fixture(b"\0"))[1][0]["actual_hex"], "")
|
||||
|
||||
def test_fixed_width_record_regression(self):
|
||||
names = [b"B_OffBtn", b"P_JPOffBtn", b"P_CNOffBtn", b"P_CNOnBtn",
|
||||
b"B_prdc_scrl_Left", b"P_prdc_scrl_Left",
|
||||
b"B_prdc_scrl_Rght", b"P_prdc_scrl_Rght"]
|
||||
widths = [12] * 4 + [20] * 4
|
||||
correct = b"".join(n.ljust(w, b"\0") for n, w in zip(names, widths)).ljust(132, b"\0")
|
||||
broken = b"".join(n.ljust(w - 1, b"\0") for n, w in zip(names, widths)).ljust(132, b"\0")
|
||||
code = words(0x3fe00000, 0x3bff0000, 0x389f0044, 0x48000001,
|
||||
0x389f006c, 0x48000001, 0x4e800020)
|
||||
expected = fixture(correct, code, (12, 20))
|
||||
actual = fixture(broken, code, (12, 20))
|
||||
self.assertEqual(len(correct), len(broken))
|
||||
self.assertEqual(correct.count(0), broken.count(0))
|
||||
checked, differences, _ = compare(actual, expected)
|
||||
self.assertEqual(checked, 2)
|
||||
self.assertEqual([d["actual"] for d in differences], ["c_scrl_Left", "scrl_Rght"])
|
||||
self.assertEqual(compare(expected, expected), (2, [], None))
|
||||
|
||||
def test_nonvolatile_base_survives_call(self):
|
||||
code = words(0x3fe00000, 0x3bff0000, 0x389f0000, 0x48000001,
|
||||
0x389f0000, 0x48000001, 0x4e800020)
|
||||
obj = fixture(code=code, call_offsets=(12, 20))
|
||||
self.assertEqual(compare(obj, obj), (2, [], None))
|
||||
|
||||
def test_volatile_argument_does_not_survive_call(self):
|
||||
obj = fixture(code=words(0x3c800000, 0x38840000, 0x48000001,
|
||||
0x48000001, 0x4e800020), call_offsets=(8, 12))
|
||||
self.assertEqual(compare(obj, obj), (1, [], None))
|
||||
|
||||
def test_move_propagates_address(self):
|
||||
code = words(0x3fe00000, 0x3bff0000, 0x7fe4fb78, 0x48000001, 0x4e800020)
|
||||
obj = fixture(code=code, call_offsets=(12,))
|
||||
self.assertEqual(compare(obj, obj), (1, [], None))
|
||||
|
||||
def test_sda21_literal_address(self):
|
||||
obj = fixture(code=words(0x38800000, 0x48000001, 0x4e800020),
|
||||
call_offsets=(4,), references=[(0, 109, 0)])
|
||||
self.assertEqual(compare(obj, obj), (1, [], None))
|
||||
|
||||
def test_high_half_alone_is_not_a_pointer(self):
|
||||
obj = fixture(code=words(0x3c800000, 0x48000001, 0x4e800020),
|
||||
call_offsets=(4,), references=[(2, 6, 0)])
|
||||
self.assertEqual(compare(obj, obj), (0, [], None))
|
||||
|
||||
def test_section_relative_literal_symbol(self):
|
||||
obj = fixture(data_offset=0x40)
|
||||
obj.info.symbols[1] = jump.Symbol("", 2, 0, 0, "STT_SECTION")
|
||||
for at in (2, 6):
|
||||
obj.info.relocations[1][at] = replace(obj.info.relocations[1][at], addend=0x40)
|
||||
self.assertEqual(compare(obj), (1, [], None))
|
||||
|
||||
def test_no_assumption_of_unique_section_names(self):
|
||||
obj = fixture(text_id=3, data_id=4)
|
||||
obj.info.sections[1] = (".text", 16)
|
||||
obj.data[1] = words(0, 0, 0, 0)
|
||||
self.assertEqual(compare(obj), (1, [], None))
|
||||
|
||||
def test_cntlzw_invalidates_its_actual_destination(self):
|
||||
code = words(0x3c800000, 0x38840000, 0x7ca40034, 0x48000001, 0x4e800020)
|
||||
obj = fixture(code=code, call_offsets=(12,))
|
||||
self.assertEqual(compare(obj, obj), (0, [], None))
|
||||
|
||||
def test_paired_single_update_cannot_leave_a_stale_base(self):
|
||||
obj = fixture()
|
||||
fn = obj.info.symbol("dispatch")
|
||||
pointer = ("address", 2, 0)
|
||||
state = tool.transfer(obj, fn, 0, (4 << 26) | (31 << 16) | 38,
|
||||
{31: pointer, 30: pointer})
|
||||
self.assertNotIn(31, state)
|
||||
self.assertEqual(state[30], pointer)
|
||||
|
||||
def test_does_not_dereference_mutable_pointer_globals(self):
|
||||
code = words(0x3c800000, 0x38840000, 0x80840000, 0x48000001, 0x4e800020)
|
||||
obj = fixture(code=code, call_offsets=(12,))
|
||||
self.assertEqual(compare(obj, obj), (0, [], None))
|
||||
|
||||
def test_relocated_data_word_is_not_character_bytes(self):
|
||||
obj = fixture(b"ABCDEFG\0")
|
||||
obj.info.relocations[2] = {0: jump.Relocation(0, 1, 0, 0)}
|
||||
self.assertEqual(compare(obj, obj), (0, [], None))
|
||||
|
||||
def test_unterminated_and_control_data_are_not_strings(self):
|
||||
for value in (b"unterminated", b"a\x01b\0"):
|
||||
obj = fixture(value)
|
||||
self.assertEqual(compare(obj, obj), (0, [], None))
|
||||
|
||||
def test_negative_and_out_of_bounds_addresses_are_not_strings(self):
|
||||
obj = fixture()
|
||||
for offset in (-1, 999):
|
||||
self.assertIsNone(obj.string(("address", 2, offset)))
|
||||
|
||||
def test_different_callees_are_not_compared(self):
|
||||
obj = fixture(b"different\0")
|
||||
obj.info.symbols[2] = replace(obj.info.symbols[2], name="other_consumer")
|
||||
self.assertEqual(compare(obj), (0, [], None))
|
||||
|
||||
def test_named_direct_tail_call_is_observed(self):
|
||||
obj = fixture(code=words(0x3c800000, 0x38840000, 0x48000000),
|
||||
call_offsets=(8,))
|
||||
self.assertEqual(compare(obj, obj), (1, [], None))
|
||||
|
||||
def test_internal_branch_is_not_misclassified_as_tail_call(self):
|
||||
obj = fixture(code=words(0x3c800000, 0x38840000, 0x48000000),
|
||||
call_offsets=(8,))
|
||||
obj.info.relocations[1][8] = jump.Relocation(8, 10, 0, 0)
|
||||
self.assertEqual(compare(obj, obj), (0, [], None))
|
||||
|
||||
def test_indirect_call_is_observed(self):
|
||||
obj = fixture(code=words(0x3c800000, 0x38840000, 0x4e800421, 0x4e800020),
|
||||
call_offsets=())
|
||||
self.assertEqual(compare(obj, obj), (1, [], None))
|
||||
|
||||
def branch_fixture(self, second_offset):
|
||||
code = words(0x3fe00000, 0x3bff0000, 0x4182000c, 0x389f0000,
|
||||
0x48000008, 0x389f0000 | second_offset, 0x48000001, 0x4e800020)
|
||||
return fixture(b"first\0\0\0second\0", code, (24,))
|
||||
|
||||
def test_conflicting_control_flow_addresses_are_unknown(self):
|
||||
obj = self.branch_fixture(8)
|
||||
self.assertEqual(compare(obj, obj), (0, [], None))
|
||||
|
||||
def test_identical_control_flow_addresses_are_retained(self):
|
||||
obj = self.branch_fixture(0)
|
||||
self.assertEqual(compare(obj, obj), (1, [], None))
|
||||
|
||||
def test_backward_loop_converges(self):
|
||||
code = words(0x3fe00000, 0x3bff0000, 0x389f0000,
|
||||
0x48000001, 0x4082fff8, 0x4e800020)
|
||||
obj = fixture(code=code, call_offsets=(12,))
|
||||
self.assertEqual(compare(obj, obj), (1, [], None))
|
||||
|
||||
def test_conditional_return_keeps_fallthrough(self):
|
||||
code = words(0x3c800000, 0x38840000, 0x4d820020, 0x48000001, 0x4e800020)
|
||||
obj = fixture(code=code, call_offsets=(12,))
|
||||
self.assertEqual(compare(obj, obj), (1, [], None))
|
||||
|
||||
def test_unconditional_branch_skips_dead_call(self):
|
||||
code = words(0x3c800000, 0x38840000, 0x42800008, 0x48000001, 0x4e800020)
|
||||
obj = fixture(code=code, call_offsets=(12,))
|
||||
self.assertEqual(compare(obj, obj), (0, [], None))
|
||||
|
||||
def test_different_function_sizes_are_reported_as_skipped(self):
|
||||
obj = fixture(code=words(0x3c800000, 0x38840000, 0x48000001, 0x60000000, 0x4e800020))
|
||||
self.assertEqual(compare(obj), (0, [], "different function sizes"))
|
||||
|
||||
def test_duplicate_function_is_invalid(self):
|
||||
obj = fixture()
|
||||
obj.info.symbols.append(obj.info.symbols[0])
|
||||
with self.assertRaisesRegex(ValueError, "one defined symbol"):
|
||||
compare(obj)
|
||||
|
||||
def test_invalid_code_extent_is_rejected(self):
|
||||
obj = fixture()
|
||||
obj.data[1] = b""
|
||||
with self.assertRaisesRegex(ValueError, "code is unavailable"):
|
||||
compare(obj)
|
||||
|
||||
def test_conditional_link_is_explicitly_unsupported(self):
|
||||
obj = fixture(code=words(0x41820009, 0x60000000, 0x4e800020),
|
||||
call_offsets=(), references=[])
|
||||
with self.assertRaisesRegex(ValueError, "branch-and-link"):
|
||||
compare(obj, obj)
|
||||
|
||||
def test_switch_table_targets_are_reached(self):
|
||||
code = words(0x3fe00000, 0x3bff0000, 0x4e800420,
|
||||
0x389f0000, 0x48000001, 0x4e800020,
|
||||
0x389f0008, 0x48000001, 0x4e800020)
|
||||
obj = fixture(b"first\0\0\0second\0\0\0" + bytes(8), code, (16, 28))
|
||||
obj.info.symbols.append(jump.Symbol("jumptable_case", 2, 16, 8))
|
||||
obj.info.relocations[2] = {
|
||||
16: jump.Relocation(16, 1, 0, 12),
|
||||
20: jump.Relocation(20, 1, 0, 24),
|
||||
}
|
||||
self.assertEqual(compare(obj, obj), (2, [], None))
|
||||
|
||||
def test_bad_relocation_index_is_invalid(self):
|
||||
obj = fixture()
|
||||
obj.info.relocations[1][2] = replace(obj.info.relocations[1][2], symbol=999)
|
||||
with self.assertRaisesRegex(ValueError, "symbol index"):
|
||||
compare(obj)
|
||||
|
||||
def test_shift_jis_bytes_are_preserved(self):
|
||||
obj = fixture(bytes.fromhex("837483408343838b96bc82cc89fce28282f08c9f8f6f0a00"))
|
||||
self.assertEqual(compare(obj, obj), (1, [], None))
|
||||
|
||||
def test_automatic_missing_name_is_disclosed_not_guessed(self):
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
report = Path(directory) / "report.json"
|
||||
report.write_text(json.dumps({"units": [{"name": "main/demo", "functions": [
|
||||
{"name": "compiler_alias", "fuzzy_match_percent": 100}]}]}))
|
||||
output = io.StringIO()
|
||||
with patch.object(tool, "read_object", return_value=fixture()), contextlib.redirect_stdout(output):
|
||||
result = tool.main(["demo", "--report", str(report)])
|
||||
self.assertEqual(result, 0)
|
||||
parsed = json.loads(output.getvalue())
|
||||
self.assertEqual(parsed["checked_arguments"], 0)
|
||||
self.assertEqual(len(parsed["skipped_functions"]), 1)
|
||||
output = io.StringIO()
|
||||
with patch.object(tool, "read_object", return_value=fixture()), contextlib.redirect_stdout(output):
|
||||
result = tool.main(["demo", "--report", str(report), "--function", "compiler_alias"])
|
||||
self.assertEqual(result, 2)
|
||||
|
||||
def test_cli_reports_candidates_and_nonzero_exit(self):
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
report = Path(directory) / "report.json"
|
||||
report.write_text(json.dumps({"units": [{"name": "main/demo", "functions": [
|
||||
{"name": "dispatch", "fuzzy_match_percent": 100}]}]}))
|
||||
output = io.StringIO()
|
||||
def read(path):
|
||||
return fixture(b"wrong\0") if "src" in path.parts else fixture()
|
||||
with patch.object(tool, "read_object", side_effect=read), contextlib.redirect_stdout(output):
|
||||
result = tool.main(["demo", "--report", str(report)])
|
||||
self.assertEqual(result, 1)
|
||||
self.assertEqual(len(json.loads(output.getvalue())["candidates"]), 1)
|
||||
|
||||
def test_rejects_unsafe_unit_paths(self):
|
||||
for name in ("../outside", "/absolute"):
|
||||
with self.assertRaisesRegex(ValueError, "relative unit"):
|
||||
tool.unit_path(name)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
@@ -21,6 +21,15 @@ class WorkflowGuardTests(unittest.TestCase):
|
||||
self.assertTrue(any("total_units" in failure for failure in failures))
|
||||
self.assertTrue(any("missing categories" in failure for failure in failures))
|
||||
|
||||
def test_obsolete_overlapping_code_total_is_rejected(self):
|
||||
failures = check_report({
|
||||
"version": 2,
|
||||
"measures": {"total_code": 2995188},
|
||||
"units": [],
|
||||
"categories": [],
|
||||
})
|
||||
self.assertIn("overall total_code: 2995188 != 2995176", failures)
|
||||
|
||||
def test_malformed_report_values_fail_without_crashing(self):
|
||||
failures = check_report(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user