Compare commits
11 Commits
agent/bitt
...
agent/w092
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7b2722c75e | ||
|
|
2230741db8 | ||
|
|
f3adacfe3d | ||
|
|
1cd71c6903 | ||
|
|
7b64914abb | ||
|
|
199de6f6c0 | ||
|
|
513c2a869e | ||
|
|
24b6645572 | ||
|
|
9536177edd | ||
|
|
81325e667c | ||
|
|
51d5dc519b |
@@ -53,9 +53,9 @@ Progress
|
||||
<!-- progress:start -->
|
||||
| Decompiled | Matched | Linked | Data |
|
||||
|:---:|:---:|:---:|:---:|
|
||||
| 99.48% | 88.74% | 64.70% | 98.77% |
|
||||
| 99.48% | 88.80% | 65.20% | 98.77% |
|
||||
|
||||
units 932/1027 complete, functions 12274/12563 matched.
|
||||
units 934/1027 complete, functions 12281/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 -->
|
||||
|
||||
@@ -13802,10 +13802,10 @@ __ieee754_sqrt = .text:0x8160CD34; // type:function size:0x248
|
||||
nan = .text:0x8160CF7C; // type:function size:0x4
|
||||
sqrt = .text:0x8160CF80; // type:function size:0x4
|
||||
GetTRKConnected = .text:0x8160CF84; // type:function size:0x10
|
||||
TRKAccessFile = .text:0x8160CFA0; // type:function
|
||||
TRKOpenFile = .text:0x8160CFA8; // type:function
|
||||
TRKCloseFile = .text:0x8160CFB0; // type:function
|
||||
TRKPositionFile = .text:0x8160CFB8; // type:function
|
||||
TRKAccessFile = .text:0x8160CFA0; // type:function size:0x8
|
||||
TRKOpenFile = .text:0x8160CFA8; // type:function size:0x8
|
||||
TRKCloseFile = .text:0x8160CFB0; // type:function size:0x8
|
||||
TRKPositionFile = .text:0x8160CFB8; // type:function size:0x8
|
||||
__TRK_write_console = .text:0x8160CFC0; // type:function size:0xBC
|
||||
__read_console = .text:0x8160D07C; // type:function size:0xBC
|
||||
EnableMetroTRKInterrupts = .text:0x8160D138; // type:function size:0x20
|
||||
@@ -17597,7 +17597,7 @@ __vt__Q49textinput8keyboard13cellphonetype12EventHandler = .data:0x8165C758; //
|
||||
__vt__Q49textinput8keyboard13cellphonetype4Base = .data:0x8165C778; // type:object size:0xA8
|
||||
scP_txtScrll_UP = .data:0x8165C820; // type:object size:0xE data:string
|
||||
scP_txtScrll_DOWN = .data:0x8165C830; // type:object size:0x10 data:string
|
||||
lbl_8165C840 = .data:0x8165C840; // type:object size:0x80
|
||||
csButtonAnimations__Q29textinput9inputform = .data:0x8165C840; // type:object size:0x80
|
||||
scN_JPNUSAEUR = .data:0x8165C8C0; // type:object size:0xC data:string
|
||||
scN_separateBarAll = .data:0x8165C8CC; // type:object size:0x11 data:string
|
||||
scT_2l_TextBox = .data:0x8165C8E0; // type:object size:0xD data:string
|
||||
@@ -17608,28 +17608,30 @@ scT_title_textKOR = .data:0x8165C928; // type:object size:0x10 data:string
|
||||
scN_separateBarCHN = .data:0x8165C938; // type:object size:0x11 data:string
|
||||
scT_2l_TextBoxCHN = .data:0x8165C950; // type:object size:0x10 data:string
|
||||
scT_title_textCHN = .data:0x8165C960; // type:object size:0x10 data:string
|
||||
lbl_8165C970 = .data:0x8165C970; // type:object size:0x20 data:2byte
|
||||
jumptable_8165C990 = .data:0x8165C990; // type:object size:0xA0 scope:local
|
||||
jumptable_8165CA30 = .data:0x8165CA30; // type:object size:0x28 scope:local
|
||||
jumptable_8165CA58 = .data:0x8165CA58; // type:object size:0x34 scope:local
|
||||
jumptable_8165CA8C = .data:0x8165CA8C; // type:object size:0xC0 scope:local
|
||||
jumptable_8165CB4C = .data:0x8165CB4C; // type:object size:0x94 scope:local
|
||||
lbl_8165CBE0 = .data:0x8165CBE0; // type:object size:0x34
|
||||
lbl_8165CC14 = .data:0x8165CC14; // type:object size:0xE data:string
|
||||
lbl_8165CC28 = .data:0x8165CC28; // type:object size:0x24
|
||||
lbl_8165CC4C = .data:0x8165CC4C; // type:object size:0xD data:string
|
||||
jumptable_8165CC5C = .data:0x8165CC5C; // type:object size:0x1C scope:local
|
||||
@6599 = .data:0x8165C970; // type:object size:0x20 data:2byte
|
||||
@13162 = .data:0x8165C990; // type:object size:0xA0 scope:local
|
||||
@13178 = .data:0x8165CA30; // type:object size:0x28 scope:local
|
||||
@13457 = .data:0x8165CA58; // type:object size:0x34 scope:local
|
||||
@13456 = .data:0x8165CA8C; // type:object size:0xC0 scope:local
|
||||
@13510 = .data:0x8165CB4C; // type:object size:0x94 scope:local
|
||||
@13512 = .data:0x8165CBE0; // type:object size:0xD data:string
|
||||
@13580 = .data:0x8165CBF0; // type:object size:0x22 scope:local data:string
|
||||
@13639 = .data:0x8165CC14; // type:object size:0xE data:string
|
||||
@13640 = .data:0x8165CC28; // type:object size:0x10 data:string
|
||||
@13654 = .data:0x8165CC38; // type:object size:0x11 scope:local data:string
|
||||
@13724 = .data:0x8165CC4C; // type:object size:0xD data:string
|
||||
@14933 = .data:0x8165CC5C; // type:object size:0x1C scope:local
|
||||
__vt__Q39textinput9inputform19NormalButtonAnmPane = .data:0x8165CC78; // type:object size:0x2C
|
||||
__vt__Q39textinput9inputform7AnmPane = .data:0x8165CCA4; // type:object size:0x2C
|
||||
__vt__Q39textinput9inputform12EventHandler = .data:0x8165CCD0; // type:object size:0x20
|
||||
__vt__Q39textinput9inputform12LayoutByNW4R = .data:0x8165CCF0; // type:object size:0x240
|
||||
__vt__Q39textinput9inputform4Base = .data:0x8165CF30; // type:object size:0x1A8
|
||||
__vt__Q39textinput9inputform10EditBuffer = .data:0x8165D0D8; // type:object size:0x10
|
||||
__vt__Q39textinput9inputform10EditBuffer = .data:0x8165D0D8; // type:object size:0xC
|
||||
__vt__Q39textinput8tistring8WithAtok = .data:0x8165D0E8; // type:object size:0x140
|
||||
__vt__Q29textinput4Base = .data:0x8165D228; // type:object size:0x30
|
||||
__vt__Q29textinput4Base = .data:0x8165D228; // type:object size:0x14
|
||||
__vt__Q39textinput4util9Animation = .data:0x8165D258; // type:object size:0x24
|
||||
lbl_8165D258 = .data:0x8165D27C; // type:object size:0xD data:string
|
||||
@STRING@GetTextColor__Q34nw4r3lyt7TextBoxCFUl = .data:0x8165D28C; // type:object size:0x44
|
||||
@STRING@onOutOfLength__Q29textinput13EventObserverFv = .data:0x8165D27C; // type:object size:0xD scope:local data:string
|
||||
@STRING@GetTextColor__Q34nw4r3lyt7TextBoxCFUl = .data:0x8165D28C; // type:object size:0x41 data:string
|
||||
scT_prdc_Text_00 = .data:0x8165D2D0; // type:object size:0xF data:string
|
||||
scP_prdc_scrl_Left = .data:0x8165D2E0; // type:object size:0x11 data:string
|
||||
scCandidatePaneData = .data:0x8165D2F8; // type:object size:0x68C
|
||||
@@ -17780,18 +17782,18 @@ __vt__Q39textinput11nw4rmanager6Layout = .data:0x8165F818; // type:object size:0
|
||||
__vt__Q39textinput11nw4rmanager8PaneFifo = .data:0x8165F890; // type:object size:0x1C scope:weak
|
||||
__vt__Q39textinput11nw4rmanager13AnimPaneGroup = .data:0x8165F8AC; // type:object size:0x1C
|
||||
__vt__Q39textinput11nw4rmanager7AnmPane = .data:0x8165F8C8; // type:object size:0x24
|
||||
lbl_8165F8F0 = .data:0x8165F8F0; // type:object size:0xD data:string
|
||||
lbl_8165F900 = .data:0x8165F900; // type:object size:0x1B data:string
|
||||
lbl_8165F920 = .data:0x8165F920; // type:object size:0x18 data:string
|
||||
lbl_8165F938 = .data:0x8165F938; // type:object size:0x16 data:string
|
||||
lbl_8165F950 = .data:0x8165F950; // type:object size:0x1B data:string
|
||||
lbl_8165F96C = .data:0x8165F96C; // type:object size:0x16 data:string
|
||||
lbl_8165F988 = .data:0x8165F988; // type:object size:0x18 data:string
|
||||
lbl_8165F9A0 = .data:0x8165F9A0; // type:object size:0x16 data:string
|
||||
@8031 = .data:0x8165F8F0; // type:object size:0xD data:string
|
||||
@8076 = .data:0x8165F900; // type:object size:0x1B data:string
|
||||
@8086 = .data:0x8165F920; // type:object size:0x18 data:string
|
||||
@8090 = .data:0x8165F938; // type:object size:0x16 data:string
|
||||
@8115 = .data:0x8165F950; // type:object size:0x1B data:string
|
||||
@8148 = .data:0x8165F96C; // type:object size:0x16 data:string
|
||||
@8156 = .data:0x8165F988; // type:object size:0x18 data:string
|
||||
@8168 = .data:0x8165F9A0; // type:object size:0x16 data:string
|
||||
__vt__Q29textinput7Manager = .data:0x8165F9B8; // type:object size:0xD0
|
||||
__vt__Q49textinput8keyboard10signwindow6Sample = .data:0x8165FA88; // type:object size:0x110
|
||||
__vt__Q49textinput8keyboard10signwindow6Sample = .data:0x8165FA88; // type:object size:0x10C
|
||||
__vt__Q39textinput11predictlang6Sample = .data:0x8165FB98; // type:object size:0xE0
|
||||
__vt__Q39textinput11predictlang4Base = .data:0x8165FC78; // type:object size:0x28
|
||||
__vt__Q39textinput11predictlang4Base = .data:0x8165FC78; // type:object size:0x24
|
||||
__vt__Q39textinput7toolbar6Sample = .data:0x8165FCA0; // type:object size:0xD0
|
||||
__vt__Q39textinput9inputform6Sample = .data:0x8165FD70; // type:object size:0x240
|
||||
__vt__Q39textinput12candidatebox6Sample = .data:0x8165FFB0; // type:object size:0x130
|
||||
@@ -18004,13 +18006,13 @@ csCNKeyboard__Q39textinput8keyboard6pctype = .data:0x81667850; // type:object si
|
||||
@196 = .data:0x81667C78; // type:object size:0x10 scope:local data:wstring
|
||||
cLanguageIndependentString__Q29textinput15langindependent = .data:0x81667C88; // type:object size:0x190
|
||||
__vt__Q29textinput15CommandReceiver = .data:0x81667E18; // type:object size:0x20
|
||||
lbl_81667E38 = .data:0x81667E38; // type:object size:0x19 data:string
|
||||
lbl_81667E58 = .data:0x81667E58; // type:object size:0x10 data:string
|
||||
lbl_81667E68 = .data:0x81667E68; // type:object size:0x11 data:string
|
||||
lbl_81667E7C = .data:0x81667E7C; // type:object size:0x16 data:string
|
||||
lbl_81667E94 = .data:0x81667E94; // type:object size:0x19 data:string
|
||||
lbl_81667EB0 = .data:0x81667EB0; // type:object size:0x16 data:string
|
||||
lbl_81667EC8 = .data:0x81667EC8; // type:object size:0x11 data:string
|
||||
@8346 = .data:0x81667E38; // type:object size:0x19 data:string
|
||||
@8347 = .data:0x81667E58; // type:object size:0x10 data:string
|
||||
@8369 = .data:0x81667E68; // type:object size:0x11 data:string
|
||||
@8385 = .data:0x81667E7C; // type:object size:0x16 data:string
|
||||
@8386 = .data:0x81667E94; // type:object size:0x19 data:string
|
||||
@8402 = .data:0x81667EB0; // type:object size:0x16 data:string
|
||||
@8410 = .data:0x81667EC8; // type:object size:0x11 data:string
|
||||
__vt__Q49textinput6extend2bg4Base = .data:0x81667EE0; // type:object size:0x10
|
||||
__vt__Q49textinput6extend4memo18DisappearMemoState = .data:0x81667EF0; // type:object size:0x58
|
||||
__vt__Q49textinput6extend4memo13EditMemoState = .data:0x81667F48; // type:object size:0x58
|
||||
@@ -20812,9 +20814,9 @@ lbl_81694C98 = .sdata2:0x81694C98; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694C9C = .sdata2:0x81694C9C; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694CA0 = .sdata2:0x81694CA0; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694CA8 = .sdata2:0x81694CA8; // type:object size:0x8 align:8 data:double
|
||||
lbl_81694CB0 = .sdata2:0x81694CB0; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694CB4 = .sdata2:0x81694CB4; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694CB8 = .sdata2:0x81694CB8; // type:object size:0x8 align:8 data:double
|
||||
@4196 = .sdata2:0x81694CB0; // type:object size:0x4 align:4 data:float
|
||||
@4197 = .sdata2:0x81694CB4; // type:object size:0x4 align:4 data:float
|
||||
@4202 = .sdata2:0x81694CB8; // type:object size:0x8 align:8 data:double
|
||||
@3511 = .sdata2:0x81694CC0; // type:object size:0x4 scope:local align:4 data:float
|
||||
@3561 = .sdata2:0x81694CC4; // type:object size:0x4 scope:local align:4 data:float
|
||||
@3625 = .sdata2:0x81694CC8; // type:object size:0x8 scope:local align:8 data:double
|
||||
@@ -22452,7 +22454,7 @@ scBtnSoundType__Q23ipl5scene = .sdata:0x81697258; // type:object size:0x8 scope:
|
||||
@12749 = .sdata:0x8169727C; // type:object size:0x5 scope:local data:string
|
||||
lbl_81697288 = .sdata:0x81697288; // type:object size:0x2
|
||||
lbl_8169728A = .sdata:0x8169728A; // type:object size:0x4 data:string
|
||||
lbl_81697290 = .sdata:0x81697290; // type:object size:0x4
|
||||
voiceVe$3399 = .sdata:0x81697290; // type:object size:0x4
|
||||
@4605 = .sdata:0x81697298; // type:object size:0x4 scope:local data:string
|
||||
lbl_816972A0 = .sdata:0x816972A0; // type:object size:0x8
|
||||
lbl_816972A8 = .sdata:0x816972A8; // type:object size:0x8 data:wstring
|
||||
@@ -23741,7 +23743,7 @@ csZiStringColorRight__Q29textinput9inputform = .sbss:0x81698D10; // type:object
|
||||
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
|
||||
defaultEventObserver__9textinput = .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
|
||||
s_small_map__Q29textinput4util = .sbss:0x81698D38; // type:object size:0x8 scope:local data:4byte
|
||||
|
||||
@@ -901,7 +901,7 @@ config.libs = [
|
||||
),
|
||||
IPLSection("bannerSound", [
|
||||
Object(Matching, "bannerSound/AudioWavePlayer.cpp"),
|
||||
Object(Equivalent, "bannerSound/AxAdpcmPlayer.cpp"),
|
||||
Object(Matching, "bannerSound/AxAdpcmPlayer.cpp"),
|
||||
Object(Matching, "bannerSound/BannerSoundPlayer.cpp"),
|
||||
Object(Matching, "bannerSound/AudioWaveUtility.cpp"),
|
||||
]
|
||||
@@ -1702,7 +1702,7 @@ config.libs = [
|
||||
Object(Matching, "fa/pf_fat32.c"),
|
||||
Object(Matching, "fa/pf_fatfs.c"),
|
||||
Object(Matching, "fa/pf_file.c"),
|
||||
Object(NonMatching, "fa/pf_path.c"),
|
||||
Object(Matching, "fa/pf_path.c"),
|
||||
Object(Matching, "fa/pf_sector.c"),
|
||||
Object(NonMatching, "fa/pf_volume.c"),
|
||||
Object(Matching, "fa/pf_volume_apiadd.c"),
|
||||
|
||||
@@ -1,32 +1,45 @@
|
||||
|
||||
// Yes, versions other than 4.3U align by 8.
|
||||
#if defined(VERSION_43U)
|
||||
#pragma function_align 32
|
||||
#else
|
||||
#pragma function_align 8
|
||||
#endif // VERSION_43U
|
||||
#endif
|
||||
|
||||
#include <TRK_Hollywood_Revolution.h>
|
||||
|
||||
#pragma force_active on
|
||||
|
||||
// Encapsulating function to get the file to align properly
|
||||
asm void __targsupp() {
|
||||
// clang-format off
|
||||
#ifdef __MWERKS__
|
||||
// clang-format off
|
||||
asm DSIOResult TRKAccessFile(MessageCommandID cmd, unsigned int handle, int* count, unsigned char* buffer) {
|
||||
#ifdef __MWERKS__
|
||||
nofralloc
|
||||
entry TRKAccessFile
|
||||
twi 31, r0, 0
|
||||
blr
|
||||
entry TRKOpenFile
|
||||
twi 31, r0, 0
|
||||
blr
|
||||
entry TRKCloseFile
|
||||
twi 31, r0, 0
|
||||
blr
|
||||
entry TRKPositionFile
|
||||
twi 31, r0, 0
|
||||
blr
|
||||
#endif // __MWERKS__
|
||||
// clang-format on
|
||||
twi 31, r0, 0
|
||||
blr
|
||||
#endif
|
||||
}
|
||||
|
||||
#pragma function_align 8
|
||||
|
||||
asm DSIOResult TRKOpenFile() {
|
||||
#ifdef __MWERKS__
|
||||
nofralloc
|
||||
twi 31, r0, 0
|
||||
blr
|
||||
#endif
|
||||
}
|
||||
|
||||
asm DSIOResult TRKCloseFile() {
|
||||
#ifdef __MWERKS__
|
||||
nofralloc
|
||||
twi 31, r0, 0
|
||||
blr
|
||||
#endif
|
||||
}
|
||||
|
||||
asm DSIOResult TRKPositionFile() {
|
||||
#ifdef __MWERKS__
|
||||
nofralloc
|
||||
twi 31, r0, 0
|
||||
blr
|
||||
#endif
|
||||
}
|
||||
// clang-format on
|
||||
|
||||
@@ -321,41 +321,7 @@ pf_u32 PFPATH_DoMatchFileNameWithPattern(pf_u16 c_name, PF_FILE_NAME_ITER* p_nam
|
||||
return 1;
|
||||
}
|
||||
|
||||
pf_bool PFPATH_MatchFileNameWithPattern(const pf_s8* file_name, PF_STR* p_pattern, pf_bool is_long_name) {
|
||||
pf_u16 c_name;
|
||||
pf_u16 c_pat;
|
||||
PF_FILE_NAME_ITER name;
|
||||
PF_STR pattern;
|
||||
pf_bool result;
|
||||
|
||||
result = PF_TRUE;
|
||||
name.buf = file_name;
|
||||
name.current = 0;
|
||||
name.kind = is_long_name;
|
||||
name.index = 0;
|
||||
|
||||
pattern = *p_pattern;
|
||||
|
||||
if (PFSTR_GetCodeMode(p_pattern) == 1) {
|
||||
if (is_long_name == PF_FALSE && (pf_vol_set.setting & 0x02) == 0x02 && PFPATH_CheckExtShortNameSignature(&pattern) == 1) {
|
||||
result = PFPATH_CheckExtShortNameSignature(&pattern);
|
||||
if (result == 1) {
|
||||
name.index += 2;
|
||||
pattern.p_head += 2;
|
||||
}
|
||||
}
|
||||
} else if ((pf_vol_set.setting & 0x02) == 0x02 && is_long_name == PF_FALSE &&
|
||||
PFSTR_StrNCmp(p_pattern, (pf_s8*)".", 1, 0, 1) != 0 && PFSTR_StrNCmp(p_pattern, (pf_s8*)"..", 1, 0, 2) != 0 &&
|
||||
PFPATH_CheckExtShortName(p_pattern, 1, PF_FALSE) == 0) {
|
||||
result = PF_FALSE;
|
||||
}
|
||||
if (result == PF_TRUE) {
|
||||
c_name = PFPATH_GetNextCharOfFileName(&name);
|
||||
c_pat = PFPATH_GetNextCharOfPattern(&pattern, is_long_name);
|
||||
result = PFPATH_DoMatchFileNameWithPattern(c_name, &name, c_pat, &pattern, is_long_name);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
pf_bool PFPATH_MatchFileNameWithPattern(const pf_s8* file_name, PF_STR* p_pattern, pf_bool is_long_name);
|
||||
|
||||
pf_s32 PFPATH_cmpNameImpl(const pf_s8* name, const pf_s8* pattern, pf_u32* matched_end) {
|
||||
pf_u32 read_char;
|
||||
@@ -577,6 +543,42 @@ PF_VOLUME* PFPATH_GetVolumeFromPath(PF_STR* p_path) {
|
||||
return p_vol;
|
||||
}
|
||||
|
||||
pf_bool PFPATH_MatchFileNameWithPattern(const pf_s8* file_name, PF_STR* p_pattern, pf_bool is_long_name) {
|
||||
pf_u16 c_name;
|
||||
pf_u16 c_pat;
|
||||
PF_FILE_NAME_ITER name;
|
||||
PF_STR pattern;
|
||||
pf_bool result;
|
||||
|
||||
result = PF_TRUE;
|
||||
name.buf = file_name;
|
||||
name.current = 0;
|
||||
name.kind = is_long_name;
|
||||
name.index = 0;
|
||||
|
||||
pattern = *p_pattern;
|
||||
|
||||
if (PFSTR_GetCodeMode(p_pattern) == 1) {
|
||||
if (is_long_name == PF_FALSE && (pf_vol_set.setting & 0x02) == 0x02 && PFPATH_CheckExtShortNameSignature(&pattern) == 1) {
|
||||
result = PFPATH_CheckExtShortNameSignature(&pattern);
|
||||
if (result == 1) {
|
||||
name.index += 2;
|
||||
pattern.p_head += 2;
|
||||
}
|
||||
}
|
||||
} else if ((pf_vol_set.setting & 0x02) == 0x02 && is_long_name == PF_FALSE &&
|
||||
PFSTR_StrNCmp(p_pattern, (pf_s8*)".", 1, 0, 1) != 0 && PFSTR_StrNCmp(p_pattern, (pf_s8*)"..", 1, 0, 2) != 0 &&
|
||||
PFPATH_CheckExtShortName(p_pattern, 1, PF_FALSE) == 0) {
|
||||
result = PF_FALSE;
|
||||
}
|
||||
if (result == PF_TRUE) {
|
||||
c_name = PFPATH_GetNextCharOfFileName(&name);
|
||||
c_pat = PFPATH_GetNextCharOfPattern(&pattern, is_long_name);
|
||||
result = PFPATH_DoMatchFileNameWithPattern(c_name, &name, c_pat, &pattern, is_long_name);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
pf_s32 PFPATH_putShortName(pf_u8* pDirEntry, const pf_s8* short_name, pf_u8 attr) {
|
||||
pf_s32 i = 0;
|
||||
|
||||
|
||||
@@ -226,7 +226,6 @@ PFVOL_SET pf_vol_set;
|
||||
|
||||
static s8 default_volume_label[12] = "NO NAME ";
|
||||
static const u8 deleted_entry_mark[8] = {0xE5};
|
||||
|
||||
extern s32 PFDRV_mount(PFVOL_VOLUME* volume);
|
||||
extern s32 PFDRV_unmount(PFVOL_VOLUME* volume, u32 mode);
|
||||
extern s32 PFDRV_format(PFVOL_VOLUME* volume, const u8* format_options);
|
||||
@@ -372,8 +371,13 @@ static inline s32 finalize_volume(PFVOL_VOLUME* volume) {
|
||||
if (error != 0) { return error; }
|
||||
return 0;
|
||||
}
|
||||
static inline s32 copy_codeset(const PFVOL_CHARCODE* code_set) {
|
||||
pf_vol_set.codeset = *code_set;
|
||||
static inline s32 copy_codeset(PFVOL_CHARCODE* code_set) {
|
||||
pf_vol_set.codeset.oem2unicode = code_set->oem2unicode;
|
||||
pf_vol_set.codeset.unicode2oem = code_set->unicode2oem;
|
||||
pf_vol_set.codeset.oem_char_width = code_set->oem_char_width;
|
||||
pf_vol_set.codeset.is_oem_mb_char = code_set->is_oem_mb_char;
|
||||
pf_vol_set.codeset.unicode_char_width = code_set->unicode_char_width;
|
||||
pf_vol_set.codeset.is_unicode_mb_char = code_set->is_unicode_mb_char;
|
||||
return 0;
|
||||
}
|
||||
s32 PFVOL_DoMountVolume(PFVOL_VOLUME* volume) {
|
||||
@@ -1458,7 +1462,7 @@ s32 PFVOL_getvolcfg(s8 drive, u32* config) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 PFVOL_setcode(const PFVOL_CHARCODE* code_set) {
|
||||
s32 PFVOL_setcode(PFVOL_CHARCODE* code_set) {
|
||||
if (pf_vol_set.num_mounted_volumes > 0) {
|
||||
pf_vol_set.last_error = 36;
|
||||
return 36;
|
||||
|
||||
@@ -176,7 +176,8 @@ s32 ConvertDateToDays(u16 year, u8 month, u8 day) {
|
||||
}
|
||||
|
||||
validDate:
|
||||
daysOfYear = day - 1 + DAYS_OF_YEAR[month - 1];
|
||||
daysOfYear = day - 1;
|
||||
daysOfYear += DAYS_OF_YEAR[month - 1];
|
||||
if (month >= 3) {
|
||||
isLeapYear = 0;
|
||||
if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) {
|
||||
@@ -217,20 +218,17 @@ void ConvertDaysToDate(u16* year, u8* month, u8* day, s32 days) {
|
||||
|
||||
for (;;) {
|
||||
s32 previousDays = days;
|
||||
if (*month == 2) {
|
||||
BOOL leapYear = IsLeapYear(*year);
|
||||
if (leapYear) {
|
||||
days -= 29;
|
||||
} else {
|
||||
days -= DAYS_OF_MONTH[*month - 1];
|
||||
}
|
||||
if (*month == 2 && IsLeapYear(*year)) {
|
||||
days -= 29;
|
||||
} else {
|
||||
days -= DAYS_OF_MONTH[*month - 1];
|
||||
}
|
||||
if (days < 0) {
|
||||
*day += previousDays;
|
||||
return;
|
||||
days = previousDays;
|
||||
break;
|
||||
}
|
||||
*month = *month + 1;
|
||||
}
|
||||
|
||||
*day += days;
|
||||
}
|
||||
|
||||
@@ -231,11 +231,11 @@ static NWC24Err QEncode(char* encoded, u32 encodedCapacity, u32* encodedSize, u8
|
||||
}
|
||||
|
||||
static NWC24Err QDecode(char* decoded, u32 decodedCapacity, u32* decodedSize, char* encoded, u32 encodedSize, u32* encodedSizeOut, int flags) {
|
||||
u32 decodedOffset = 0;
|
||||
u32 encodedOffset;
|
||||
u32 decodedOffset = 0;
|
||||
u8 value = 0;
|
||||
char* input;
|
||||
char* output;
|
||||
u8 value = 0;
|
||||
NWC24Err result = NWC24_OK;
|
||||
|
||||
if (decoded == NULL)
|
||||
@@ -255,7 +255,7 @@ static NWC24Err QDecode(char* decoded, u32 decodedCapacity, u32* decodedSize, ch
|
||||
input = encoded;
|
||||
output = decoded;
|
||||
for (encodedOffset = 0; encodedOffset < encodedSize; encodedOffset++) {
|
||||
if (decodedCapacity <= decodedOffset) {
|
||||
if (decodedOffset >= decodedCapacity) {
|
||||
result = NWC24_ERR_OVERFLOW;
|
||||
break;
|
||||
}
|
||||
@@ -265,15 +265,15 @@ static NWC24Err QDecode(char* decoded, u32 decodedCapacity, u32* decodedSize, ch
|
||||
decodedOffset++;
|
||||
} else if (*input == '=' && encodedOffset + 2 < encodedSize) {
|
||||
BOOL validHex = TRUE;
|
||||
u32 inputAfterEqual = encodedOffset + 1;
|
||||
char* current = ++input;
|
||||
if (*current == ' ' || *current == '\t') {
|
||||
char* next = current + 1;
|
||||
input++;
|
||||
encodedOffset++;
|
||||
if (*input == ' ' || *input == '\t') {
|
||||
char* next = input + 1;
|
||||
u32 scan = 1;
|
||||
while (inputAfterEqual + scan + 1 < encodedSize) {
|
||||
while (encodedOffset + scan + 1 < encodedSize) {
|
||||
if (*next == '\r' && next[1] == '\n') {
|
||||
inputAfterEqual += scan;
|
||||
current = next;
|
||||
encodedOffset += scan;
|
||||
input = next;
|
||||
break;
|
||||
}
|
||||
if (*next != ' ' && *next != '\t') {
|
||||
@@ -283,29 +283,27 @@ static NWC24Err QDecode(char* decoded, u32 decodedCapacity, u32* decodedSize, ch
|
||||
scan++;
|
||||
}
|
||||
}
|
||||
if (*current == '\r' && current[1] == '\n') {
|
||||
current += 2;
|
||||
encodedOffset = inputAfterEqual + 1;
|
||||
input = current;
|
||||
if (*input == '\r' && input[1] == '\n') {
|
||||
input += 2;
|
||||
encodedOffset++;
|
||||
} else {
|
||||
int high = Util_xtoi(*current);
|
||||
int high = Util_xtoi(*input);
|
||||
int low;
|
||||
if (high >= 0) {
|
||||
value = (high & 0x0F) << 4;
|
||||
}
|
||||
if (high < 0) { validHex = FALSE; }
|
||||
low = Util_xtoi(current[1]);
|
||||
low = Util_xtoi(input[1]);
|
||||
if (low >= 0) {
|
||||
value |= low & 0x0F;
|
||||
}
|
||||
if (low < 0) { validHex = FALSE; }
|
||||
current += 2;
|
||||
input += 2;
|
||||
if (validHex) {
|
||||
*output++ = (char)value;
|
||||
decodedOffset++;
|
||||
}
|
||||
encodedOffset = inputAfterEqual + 1;
|
||||
input = current;
|
||||
encodedOffset++;
|
||||
}
|
||||
} else {
|
||||
*output++ = *input++;
|
||||
@@ -501,8 +499,9 @@ static BOOL CopyWithoutLinearWhiteSpaces(char* output, int* outputSize, char* in
|
||||
}
|
||||
|
||||
static inline char* FindMarker(char* input, u32 size, const char* marker) {
|
||||
u32 markerLength = Mail_strlen(marker);
|
||||
u32 offset;
|
||||
u32 markerLength;
|
||||
markerLength = Mail_strlen(marker);
|
||||
for (offset = 0; offset <= size; offset++) {
|
||||
char* current = input + offset;
|
||||
if (Mail_strncmp(current, marker, markerLength) == 0)
|
||||
@@ -512,11 +511,11 @@ static inline char* FindMarker(char* input, u32 size, const char* marker) {
|
||||
}
|
||||
static inline char* FindMarkerAfterPrefix(char* input, u32 size, u32 prefix, const char* marker) {
|
||||
u32 markerLength = Mail_strlen(marker);
|
||||
char* current = input + prefix;
|
||||
u32 offset;
|
||||
char* current = input + prefix;
|
||||
for (offset = 0; offset <= size; offset++) {
|
||||
if (Mail_strncmp(current, marker, markerLength) == 0) {
|
||||
return input + offset + prefix;
|
||||
return input + prefix + offset;
|
||||
}
|
||||
current++;
|
||||
}
|
||||
@@ -695,8 +694,9 @@ static NWC24Err ExtractCharset(char* charset, u32 charsetCapacity, u32* charsetS
|
||||
return NWC24_OK;
|
||||
}
|
||||
static inline char* FindMarkerOffsetPrefix(char* input, u32 size, u32 prefix, const char* marker) {
|
||||
u32 markerLength = Mail_strlen(marker);
|
||||
u32 offset;
|
||||
u32 markerLength;
|
||||
markerLength = Mail_strlen(marker);
|
||||
for (offset = 0; offset <= size; offset++) {
|
||||
if (Mail_strncmp(input + offset + prefix, marker, markerLength) == 0) {
|
||||
return input + prefix + offset;
|
||||
|
||||
@@ -828,8 +828,8 @@ NWC24Err NWC24iSetMsgSubjectBase64(NWC24MsgObj* msg, const u16* subject, u32 sub
|
||||
NWC24Err result;
|
||||
|
||||
workHalf = workSize >> 1;
|
||||
secondSize = workSize - workHalf;
|
||||
second = work + workHalf;
|
||||
secondSize = workSize - workHalf;
|
||||
charsetLength = strlen(charsetName);
|
||||
lineLength = ((0x36 - charsetLength) * 3) >> 2;
|
||||
if (lineLength > workHalf) {
|
||||
@@ -849,7 +849,7 @@ NWC24Err NWC24iSetMsgSubjectBase64(NWC24MsgObj* msg, const u16* subject, u32 sub
|
||||
charsetLength = strlen(charsetName);
|
||||
lineLength = (((0x3E - charsetLength) * 3) >> 2) + 1;
|
||||
total = outputLength - 1;
|
||||
for (; sourceOffset < subjectSize; sourceOffset += subjectLength) {
|
||||
for (; sourceOffset < subjectSize;) {
|
||||
subjectLength = subjectSize - sourceOffset;
|
||||
workHalf = lineLength;
|
||||
if (secondSize - total < 3) {
|
||||
@@ -864,6 +864,7 @@ NWC24Err NWC24iSetMsgSubjectBase64(NWC24MsgObj* msg, const u16* subject, u32 sub
|
||||
switch (result) { case NWC24_OK: case NWC24_ERR_OVERFLOW: break; default: goto done; }
|
||||
result = NWC24EncodeWord(second + total, secondSize - total, &outputLength, charsetName, 0x40, 'B', work, workHalf - 1);
|
||||
switch (result) { case NWC24_OK: break; default: goto done; }
|
||||
sourceOffset += subjectLength;
|
||||
total = total + outputLength - 1;
|
||||
}
|
||||
result = NWC24SetMsgSubject(msg, (char*)second, total);
|
||||
|
||||
@@ -17,14 +17,19 @@ typedef struct SocketOption {
|
||||
u8 value[20];
|
||||
} SocketOption;
|
||||
|
||||
typedef struct InterfaceCommand { int level; int option; } InterfaceCommand;
|
||||
typedef union InterfaceCommand {
|
||||
struct { int level; int option; };
|
||||
u8 bytes[32];
|
||||
} InterfaceCommand;
|
||||
|
||||
typedef union InterfaceLength {
|
||||
int length;
|
||||
u8 bytes[32];
|
||||
} InterfaceLength;
|
||||
|
||||
typedef struct InterfaceOption {
|
||||
IOSIoVector vectors[4];
|
||||
union {
|
||||
InterfaceCommand command;
|
||||
u8 commandBlock[32];
|
||||
};
|
||||
InterfaceCommand command;
|
||||
union {
|
||||
int length;
|
||||
u8 lengthBlock[32];
|
||||
@@ -34,10 +39,7 @@ typedef struct InterfaceOption {
|
||||
|
||||
typedef struct InterfaceSetting {
|
||||
IOSIoVector vectors[4];
|
||||
union {
|
||||
InterfaceCommand command;
|
||||
u8 commandBlock[32];
|
||||
};
|
||||
InterfaceCommand command;
|
||||
u8 value[1];
|
||||
} InterfaceSetting;
|
||||
|
||||
@@ -96,9 +98,9 @@ static int OptionLength(int* length) {
|
||||
int SOGetInterfaceOpt(void* interface, int level, int option, void* value, int* length) {
|
||||
s32 rm;
|
||||
int temporary;
|
||||
InterfaceOption* request;
|
||||
int result;
|
||||
int size;
|
||||
int result;
|
||||
InterfaceOption* request;
|
||||
InterfaceCommand* command;
|
||||
int* returnedLength;
|
||||
u8* reply;
|
||||
@@ -111,8 +113,8 @@ int SOGetInterfaceOpt(void* interface, int level, int option, void* value, int*
|
||||
else {
|
||||
command=&request->command;
|
||||
command->level=level; command->option=option;
|
||||
returnedLength=&request->length;
|
||||
reply=request->value;
|
||||
returnedLength=&((InterfaceLength*)(command + 1))->length;
|
||||
reply=(u8*)((InterfaceLength*)returnedLength + 1);
|
||||
*returnedLength=OptionLength(length);
|
||||
request->vectors[0].base=(u8*)command;
|
||||
request->vectors[0].length=8;
|
||||
@@ -138,9 +140,9 @@ int SOGetInterfaceOpt(void* interface, int level, int option, void* value, int*
|
||||
int SOSetInterfaceOpt(void* interface, int level, int option, const void* value, int length) {
|
||||
s32 rm;
|
||||
int temporary;
|
||||
InterfaceSetting* request;
|
||||
int result;
|
||||
int size;
|
||||
int result;
|
||||
InterfaceSetting* request;
|
||||
InterfaceCommand* command;
|
||||
u8* reply;
|
||||
if ((result=SOiPrepareTempRm(NULL,&rm,&temporary))==0) {
|
||||
@@ -152,7 +154,7 @@ int SOSetInterfaceOpt(void* interface, int level, int option, const void* value,
|
||||
else {
|
||||
command=&request->command;
|
||||
command->level=level; command->option=option;
|
||||
reply=request->value;
|
||||
reply=(u8*)(command + 1);
|
||||
if(value) memcpy(reply,value,length);
|
||||
else memset(reply,0,length);
|
||||
request->vectors[0].base=(u8*)command; request->vectors[0].length=8;
|
||||
|
||||
@@ -205,7 +205,7 @@ void AxAdpcmSimplePlayer::init() {
|
||||
}
|
||||
|
||||
int AxAdpcmSimplePlayer::start(void* data, u32 length, AxAdpcmHandle* handle) {
|
||||
Header* head = mpBNSBuffer = (Header*)data;
|
||||
mpBNSBuffer = (Header*)data;
|
||||
|
||||
sSysPauseFlag = false;
|
||||
|
||||
@@ -224,7 +224,6 @@ int AxAdpcmSimplePlayer::start(void* data, u32 length, AxAdpcmHandle* handle) {
|
||||
ChannelInfo* chanInfoBufB[2];
|
||||
ChannelInfo* chanInfoBufA[2];
|
||||
|
||||
AdpcmCoeffs** pCoeffsBufB = NULL;
|
||||
int i;
|
||||
u32* channelStartOffsets;
|
||||
INFOBlock* infoBlock;
|
||||
@@ -240,13 +239,13 @@ int AxAdpcmSimplePlayer::start(void* data, u32 length, AxAdpcmHandle* handle) {
|
||||
|
||||
int chanCount;
|
||||
{
|
||||
if (head->byteOrder != 0xFEFF) {
|
||||
if (((Header*)data)->byteOrder != 0xFEFF) {
|
||||
chanCount = 0;
|
||||
goto clean_up;
|
||||
}
|
||||
|
||||
infoBlock = ADD_OFFSET(INFOBlock, data, head->infoHead.offset);
|
||||
dataBlock = ADD_OFFSET(DATABlock, data, head->dataHead.offset);
|
||||
infoBlock = ADD_OFFSET(INFOBlock, data, ((Header*)data)->infoHead.offset);
|
||||
dataBlock = ADD_OFFSET(DATABlock, data, ((Header*)data)->dataHead.offset);
|
||||
if (infoBlock->head.sig != 'INFO') {
|
||||
chanCount = 0;
|
||||
goto clean_up;
|
||||
@@ -268,8 +267,6 @@ int AxAdpcmSimplePlayer::start(void* data, u32 length, AxAdpcmHandle* handle) {
|
||||
pChanInfoBufB = chanInfoBufB;
|
||||
pChanDataBuf = chanDataBuf;
|
||||
pCoeffsBufA = coeffsBufA;
|
||||
pCoeffsBufB = coeffsBufB;
|
||||
pAxvpbBuf = axVoiceBuf;
|
||||
for (i = 0; chanCount = infoBlock->channelCount, i < chanCount; i++) {
|
||||
int chanStartOffs = channelStartOffsets[i];
|
||||
ChannelInfo* chanInfo = ADD_OFFSET(ChannelInfo, infoBlockDataBase, chanStartOffs);
|
||||
@@ -278,8 +275,9 @@ int AxAdpcmSimplePlayer::start(void* data, u32 length, AxAdpcmHandle* handle) {
|
||||
pChanInfoBufB[i] = chanInfo;
|
||||
pChanDataBuf[i] = ADD_OFFSET(void, dataBlockDataBase, chanInfo->dataOff);
|
||||
pCoeffsBufA[i] = ADD_OFFSET(AdpcmCoeffs, infoBlockDataBase, chanInfo->coeffOff);
|
||||
pCoeffsBufB[i] = ADD_OFFSET(AdpcmCoeffs, infoBlockDataBase, chanInfo->coeffOff);
|
||||
coeffsBufB[i] = ADD_OFFSET(AdpcmCoeffs, infoBlockDataBase, chanInfo->coeffOff);
|
||||
|
||||
pAxvpbBuf = axVoiceBuf;
|
||||
pAxvpbBuf[i] = AXAcquireVoice(0x1f, VoiceCallback, 0);
|
||||
if (pAxvpbBuf[i] == NULL) {
|
||||
chanCount = 0;
|
||||
@@ -312,37 +310,33 @@ int AxAdpcmSimplePlayer::start(void* data, u32 length, AxAdpcmHandle* handle) {
|
||||
axAddr.currentAddressHi = (u32)currAddr >> 0x10;
|
||||
axAddr.currentAddressLo = (u32)currAddr & 0xFFFF;
|
||||
|
||||
axAdpcm.a[0][0] = pCoeffsBufB[i]->a[0][0];
|
||||
axAdpcm.a[0][1] = pCoeffsBufB[i]->a[0][1];
|
||||
axAdpcm.a[1][0] = pCoeffsBufB[i]->a[1][0];
|
||||
axAdpcm.a[1][1] = pCoeffsBufB[i]->a[1][1];
|
||||
axAdpcm.a[2][0] = pCoeffsBufB[i]->a[2][0];
|
||||
axAdpcm.a[2][1] = pCoeffsBufB[i]->a[2][1];
|
||||
axAdpcm.a[3][0] = pCoeffsBufB[i]->a[3][0];
|
||||
axAdpcm.a[3][1] = pCoeffsBufB[i]->a[3][1];
|
||||
axAdpcm.a[4][0] = pCoeffsBufB[i]->a[4][0];
|
||||
axAdpcm.a[4][1] = pCoeffsBufB[i]->a[4][1];
|
||||
axAdpcm.a[5][0] = pCoeffsBufB[i]->a[5][0];
|
||||
axAdpcm.a[5][1] = pCoeffsBufB[i]->a[5][1];
|
||||
axAdpcm.a[6][0] = pCoeffsBufB[i]->a[6][0];
|
||||
axAdpcm.a[6][1] = pCoeffsBufB[i]->a[6][1];
|
||||
axAdpcm.a[7][0] = pCoeffsBufB[i]->a[7][0];
|
||||
axAdpcm.a[7][1] = pCoeffsBufB[i]->a[7][1];
|
||||
axAdpcm.gain = pCoeffsBufB[i]->cfg.gain;
|
||||
axAdpcm.pred_scale = pCoeffsBufB[i]->cfg.predScale;
|
||||
axAdpcm.yn1 = pCoeffsBufB[i]->cfg.yn1;
|
||||
axAdpcm.yn2 = pCoeffsBufB[i]->cfg.yn2;
|
||||
axAdpcm.a[0][0] = coeffsBufB[i]->a[0][0];
|
||||
axAdpcm.a[0][1] = coeffsBufB[i]->a[0][1];
|
||||
axAdpcm.a[1][0] = coeffsBufB[i]->a[1][0];
|
||||
axAdpcm.a[1][1] = coeffsBufB[i]->a[1][1];
|
||||
axAdpcm.a[2][0] = coeffsBufB[i]->a[2][0];
|
||||
axAdpcm.a[2][1] = coeffsBufB[i]->a[2][1];
|
||||
axAdpcm.a[3][0] = coeffsBufB[i]->a[3][0];
|
||||
axAdpcm.a[3][1] = coeffsBufB[i]->a[3][1];
|
||||
axAdpcm.a[4][0] = coeffsBufB[i]->a[4][0];
|
||||
axAdpcm.a[4][1] = coeffsBufB[i]->a[4][1];
|
||||
axAdpcm.a[5][0] = coeffsBufB[i]->a[5][0];
|
||||
axAdpcm.a[5][1] = coeffsBufB[i]->a[5][1];
|
||||
axAdpcm.a[6][0] = coeffsBufB[i]->a[6][0];
|
||||
axAdpcm.a[6][1] = coeffsBufB[i]->a[6][1];
|
||||
axAdpcm.a[7][0] = coeffsBufB[i]->a[7][0];
|
||||
axAdpcm.a[7][1] = coeffsBufB[i]->a[7][1];
|
||||
axAdpcm.gain = coeffsBufB[i]->cfg.gain;
|
||||
axAdpcm.pred_scale = coeffsBufB[i]->cfg.predScale;
|
||||
axAdpcm.yn1 = coeffsBufB[i]->cfg.yn1;
|
||||
axAdpcm.yn2 = coeffsBufB[i]->cfg.yn2;
|
||||
|
||||
u32 ratio = infoBlock->sampleRate / 32000.0f * 65536.0f;
|
||||
axSrc.ratioHi = ratio >> 16;
|
||||
axSrc.ratioLo = ratio & 0xFFFF;
|
||||
axSrc.currentAddressFrac = 0;
|
||||
axSrc.last_samples[0] = 0;
|
||||
axSrc.last_samples[1] = 0;
|
||||
axSrc.last_samples[2] = 0;
|
||||
axSrc.last_samples[3] = 0;
|
||||
axSrc.last_samples[3] = axSrc.last_samples[2] = axSrc.last_samples[1] = axSrc.last_samples[0] = axSrc.currentAddressFrac = 0;
|
||||
|
||||
AXVPB* vpbA = axVoiceBuf[i];
|
||||
AXVPB* vpbA = pAxvpbBuf[i];
|
||||
AXSetVoiceType(vpbA, 0);
|
||||
AXSetVoiceAddr(vpbA, &axAddr);
|
||||
AXSetVoiceAdpcm(vpbA, &axAdpcm);
|
||||
@@ -359,7 +353,7 @@ int AxAdpcmSimplePlayer::start(void* data, u32 length, AxAdpcmHandle* handle) {
|
||||
Voices[vpbA->index].getMix()->vL = 0;
|
||||
}
|
||||
}
|
||||
AXVPB* vpbB = axVoiceBuf[i];
|
||||
AXVPB* vpbB = pAxvpbBuf[i];
|
||||
AXSetVoiceMix(vpbB, Voices[vpbA->index].getMix());
|
||||
static AXPBVE voiceVe = {32768, 0};
|
||||
AXSetVoiceVe(vpbB, &voiceVe);
|
||||
|
||||
@@ -265,3 +265,125 @@ GATE PASS
|
||||
```
|
||||
|
||||
Accepted improvement commits: 2348596d (real float-reference setter), fff3e072 (Color ownership), 8532b7bf (DestructorChain ownership).
|
||||
|
||||
## High continuation: name/extent pairing (new origin/main branch)
|
||||
|
||||
Starting data: tiInputForm 1036/3772, tiKeyboard 12/2708, MyTiManager 148/1132. Instruction-exact counts 216/221, 62/62, 91/91. Fetched origin before unit work; owned source equals origin/main and the full baseline quick gate passes. Prior three distinct attempts for each open tiInputForm function are retained above. User explicitly permits proven real-object extent corrections, leaving alignment bytes unowned without changing addresses, split ranges or section totals. Earlier claims that extra weak tables inherently prevented data matching were premature; rechecking symbol pairing with this new evidence.
|
||||
|
||||
tiKeyboard pool identical (8 strings); source unchanged on origin/main after fetch.
|
||||
- 0x8165FA88 signwindow::Sample vtable extent 272 -> 268: source class compiler table is 268 bytes; all 61 outgoing virtual/thunk relocations agree at their relative offsets, and target's final four bytes are zero alignment without a relocation; the next table still begins at 0x8165FB98.
|
||||
- 0x8165FC78 predictlang::Base vtable extent 40 -> 36: compiler table is the two header words plus seven real virtual slots (36 bytes); all seven target relocations agree, and trailing four bytes are zero alignment; the next table remains 0x8165FCA0.
|
||||
- 0x81698D20 lbl_81698D20 -> defaultEventObserver__9textinput, same 4-byte extent: constructor loads this singleton when observer is NULL, and static init stores the allocated EventObserver pointer through the same target address; source loads/stores defaultEventObserver__9textinput.
|
||||
|
||||
The extent-only trial passed with no regression but .data stayed 99.117645% because all eight pooled literals still had anonymous extraction names instead of actual compiler literal symbols. Each verified literal is now named with its actual compiler-owned name; future compiler numbering may change, but objdiff matches compiler-generated literals by bytes/relocations, not the numeric counter.
|
||||
|
||||
- 0x8165F8F0 lbl_8165F8F0 -> @8031, same 13 bytes: compiler-pooled literal b'T_title_text'; target references setTitleText__Q29textinput7ManagerFPw .text+0x117A, setTitleText__Q29textinput7ManagerFPw .text+0x1192; source same-offset literal has these identical bytes. Compiler-generated names remain compiler-owned; no new source labels or string blob.
|
||||
- 0x8165F900 lbl_8165F900 -> @8076, same 27 bytes: compiler-pooled literal b'fs_VK_ascii_keytop_a.brlyt'; target references createPCTypeKeyboard__Q29textinput7ManagerFv .text+0x147E, createPCTypeKeyboard__Q29textinput7ManagerFv .text+0x148E; source same-offset literal has these identical bytes. Compiler-generated names remain compiler-owned; no new source labels or string blob.
|
||||
- 0x8165F920 lbl_8165F920 -> @8086, same 24 bytes: compiler-pooled literal b'fs_VK_cellPhone_a.brlyt'; target references createCellPhoneTypeKeyboard__Q29textinput7ManagerFv .text+0x15C6, createCellPhoneTypeKeyboard__Q29textinput7ManagerFv .text+0x15D2; source same-offset literal has these identical bytes. Compiler-generated names remain compiler-owned; no new source labels or string blob.
|
||||
- 0x8165F938 lbl_8165F938 -> @8090, same 22 bytes: compiler-pooled literal b'fs_VK_textBox_a.brlyt'; target references createInputForm__Q29textinput7ManagerFv .text+0x1652, createInputForm__Q29textinput7ManagerFv .text+0x1662; source same-offset literal has these identical bytes. Compiler-generated names remain compiler-owned; no new source labels or string blob.
|
||||
- 0x8165F950 lbl_8165F950 -> @8115, same 27 bytes: compiler-pooled literal b'fs_VK_predictInput_a.brlyt'; target references createCandidateBox__Q29textinput7ManagerFv .text+0x16F2, createCandidateBox__Q29textinput7ManagerFv .text+0x1702; source same-offset literal has these identical bytes. Compiler-generated names remain compiler-owned; no new source labels or string blob.
|
||||
- 0x8165F96C lbl_8165F96C -> @8148, same 22 bytes: compiler-pooled literal b'fs_VK_toolbar_a.brlyt'; target references createToolBar__Q29textinput7ManagerFv .text+0x1886, createToolBar__Q29textinput7ManagerFv .text+0x1896; source same-offset literal has these identical bytes. Compiler-generated names remain compiler-owned; no new source labels or string blob.
|
||||
- 0x8165F988 lbl_8165F988 -> @8156, same 24 bytes: compiler-pooled literal b'fs_prdicSelWidw_a.brlyt'; target references createPredictLanguageDialog__Q29textinput7ManagerFv .text+0x1932, createPredictLanguageDialog__Q29textinput7ManagerFv .text+0x1942; source same-offset literal has these identical bytes. Compiler-generated names remain compiler-owned; no new source labels or string blob.
|
||||
- 0x8165F9A0 lbl_8165F9A0 -> @8168, same 22 bytes: compiler-pooled literal b'fs_signWindow_a.brlyt'; target references createSignWindow__Q29textinput7ManagerFv .text+0x1A36, createSignWindow__Q29textinput7ManagerFv .text+0x1A42; source same-offset literal has these identical bytes. Compiler-generated names remain compiler-owned; no new source labels or string blob.
|
||||
|
||||
tiKeyboard all-unit quick gate PASS: matched_data 12 -> 2708/2708, every owned non-text section 100%, instruction-exact 62/62 unchanged; zero regressions, correct retail DOL hash. Actual pooled literal identities plus proven vtable extents resolve pairing; extra compiler-emitted weak tables do not prevent the named-symbol route from reaching 100%.
|
||||
|
||||
tiInputForm pool identical (20 strings), fetched origin and confirmed owned source unchanged. Symbol pairing corrections, all within its .data split 0x8165C820..0x8165D2D0; every address and section/split total remains unchanged:
|
||||
|
||||
- 0x8165C990 jumptable_8165C990 -> @13162, extent 160 -> 160: 40-entry real switch table, all 40 outgoing relocation targets and addends agree with the source compiler table; references ToIndependentClass__Q39textinput9inputform13DeadKeyStreamFw .text+0x4F2 -> data+0x170; ToIndependentClass__Q39textinput9inputform13DeadKeyStreamFw .text+0x4FA -> data+0x170.
|
||||
- 0x8165CA30 jumptable_8165CA30 -> @13178, extent 40 -> 40: 10-entry real switch table, all 10 outgoing relocation targets and addends agree with the source compiler table; references setLanguage__Q39textinput9inputform4BaseFQ29textinput8Language .text+0xBFA -> data+0x210; setLanguage__Q39textinput9inputform4BaseFQ29textinput8Language .text+0xC02 -> data+0x210.
|
||||
- 0x8165CA58 jumptable_8165CA58 -> @13457, extent 52 -> 52: 13-entry real switch table, all 13 outgoing relocation targets and addends agree with the source compiler table; references onCommand__Q39textinput9inputform4BaseFQ39textinput15CommandReceiver13INPUT_COMMANDPv .text+0x28D2 -> data+0x238; onCommand__Q39textinput9inputform4BaseFQ39textinput15CommandReceiver13INPUT_COMMANDPv .text+0x28DA -> data+0x238.
|
||||
- 0x8165CA8C jumptable_8165CA8C -> @13456, extent 192 -> 192: 48-entry real switch table, all 48 outgoing relocation targets and addends agree with the source compiler table; references onCommand__Q39textinput9inputform4BaseFQ39textinput15CommandReceiver13INPUT_COMMANDPv .text+0xEB2 -> data+0x26C; onCommand__Q39textinput9inputform4BaseFQ39textinput15CommandReceiver13INPUT_COMMANDPv .text+0xEBA -> data+0x26C.
|
||||
- 0x8165CB4C jumptable_8165CB4C -> @13510, extent 148 -> 148: 37-entry real switch table, all 37 outgoing relocation targets and addends agree with the source compiler table; references onHKBCtrlCode__Q39textinput9inputform4BaseFQ29textinput7HVKCodeUl .text+0x65B2 -> data+0x32C; onHKBCtrlCode__Q39textinput9inputform4BaseFQ29textinput7HVKCodeUl .text+0x65BA -> data+0x32C.
|
||||
- 0x8165CC5C jumptable_8165CC5C -> @14933, extent 28 -> 28: 7-entry real switch table, all 7 outgoing relocation targets and addends agree with the source compiler table; references onAnmEvent__Q39textinput9inputform19NormalButtonAnmPaneFQ49textinput11nw4rmanager7AnmPane12AnmPaneEvent .text+0xC09A -> data+0x43C; onAnmEvent__Q39textinput9inputform19NormalButtonAnmPaneFQ49textinput11nw4rmanager7AnmPane12AnmPaneEvent .text+0xC0A2 -> data+0x43C.
|
||||
- 0x8165C840 lbl_8165C840 -> csButtonAnimations__Q29textinput9inputform, extent 128 -> 128: two ButtonAnimations structs (64 bytes each), exact bytes and 18 outgoing relocations to pane names and animation-file objects; references __sinit_\tiInputForm_cpp .text+0xC50A -> data+0x20; __sinit_\tiInputForm_cpp .text+0xC512 -> data+0x20.
|
||||
- 0x8165C970 lbl_8165C970 -> @6599, extent 32 -> 32: compiler-owned constant b'\x00\xa4\x00\xac\x00\xaf\x00\xb2\x00\xb3\x00\xb6\x00\xb8\x00\xb9\x00\xbc\x00\xbd\x00\xbe\x00\xd0\x00\xde\x00\xf0\x00\xfe\x00\x00', exact 32 bytes; references onCommand__Q39textinput9inputform4BaseFQ39textinput15CommandReceiver13INPUT_COMMANDPv .text+0xFF2 -> data+0x150; onCommand__Q39textinput9inputform4BaseFQ39textinput15CommandReceiver13INPUT_COMMANDPv .text+0xFFA -> data+0x150; onCommand__Q39textinput9inputform4BaseFQ39textinput15CommandReceiver13INPUT_COMMANDPv .text+0x1436 -> data+0x150; onCommand__Q39textinput9inputform4BaseFQ39textinput15CommandReceiver13INPUT_COMMANDPv .text+0x143E -> data+0x150; onSpaceKeyHWKB__Q39textinput9inputform4BaseFUl .text+0x965A -> data+0x150; onSpaceKeyHWKB__Q39textinput9inputform4BaseFUl .text+0x9662 -> data+0x150; onSpaceKeyHWKB__Q39textinput9inputform4BaseFUl .text+0x97C2 -> data+0x150; onSpaceKeyHWKB__Q39textinput9inputform4BaseFUl .text+0x97CA -> data+0x150.
|
||||
- 0x8165CBE0 lbl_8165CBE0 -> @13512, extent 52 -> 13: compiler-owned constant b'T_2l_TextBox\x00', exact 13 bytes; references __ct__Q39textinput9inputform12LayoutByNW4RFPQ29textinput7ManagerPQ34nw4r3lyt24MultiArcResourceAccessorPCcPQ29textinput13EventObserverPCc .text+0x9A3E -> data+0x3C0; __ct__Q39textinput9inputform12LayoutByNW4RFPQ29textinput7ManagerPQ34nw4r3lyt24MultiArcResourceAccessorPCcPQ29textinput13EventObserverPCc .text+0x9A56 -> data+0x3C0; setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xA9BA -> data+0x3C0; setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xA9BE -> data+0x3C0; setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xA9C2 -> data+0x3C0; setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xA9CA -> data+0x3C0; setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xA9E2 -> data+0x3C0; setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xAA26 -> data+0x3C0; setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xAA2A -> data+0x3C0; setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xAB1A -> data+0x3C0; setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xAB1E -> data+0x3C0.
|
||||
- 0x8165CBF0 recover @13580, 34 bytes previously absorbed into lbl_8165CBE0: separate compiler literal b'RevoIpl_RodinNTLGProM_32_I4.brfnt\x00'; references none in this unit.
|
||||
- 0x8165CC14 lbl_8165CC14 -> @13639, extent 14 -> 14: compiler-owned constant b'P_txtScrll_UP\x00', exact 14 bytes; references init__Q39textinput9inputform12LayoutByNW4RFv .text+0xA22A -> data+0x3F4; init__Q39textinput9inputform12LayoutByNW4RFv .text+0xA236 -> data+0x3F4.
|
||||
- 0x8165CC28 lbl_8165CC28 -> @13640, extent 36 -> 16: compiler-owned constant b'P_txtScrll_DOWN\x00', exact 16 bytes; references init__Q39textinput9inputform12LayoutByNW4RFv .text+0xA25A -> data+0x408; init__Q39textinput9inputform12LayoutByNW4RFv .text+0xA266 -> data+0x408.
|
||||
- 0x8165CC38 recover @13654, 17 bytes previously absorbed into lbl_8165CC28: separate compiler literal b'N_separateBarAll\x00'; references none in this unit.
|
||||
- 0x8165CC4C lbl_8165CC4C -> @13724, extent 13 -> 13: compiler-owned constant b'T_title_text\x00', exact 13 bytes; references setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xAB6E -> data+0x42C; setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xAB7A -> data+0x42C; setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xAB96 -> data+0x42C.
|
||||
- 0x8165D0D8 __vt__Q39textinput9inputform10EditBuffer -> __vt__Q39textinput9inputform10EditBuffer, extent 16 -> 12: real compiler vtable is 12 bytes, 1 method/thunk relocation slots; target trailing 4 bytes are zero and contain no relocation; references __dt__Q39textinput9inputform10EditBufferFv .text+0x2A -> data+0x8B8; __dt__Q39textinput9inputform10EditBufferFv .text+0x2E -> data+0x8B8.
|
||||
- 0x8165D228 __vt__Q29textinput4Base -> __vt__Q29textinput4Base, extent 48 -> 20: real compiler vtable is 20 bytes, 3 method/thunk relocation slots; target trailing 28 bytes are zero and contain no relocation; references none in this unit.
|
||||
- 0x8165D27C lbl_8165D258 -> @STRING@onOutOfLength__Q29textinput13EventObserverFv, extent 13 -> 13: function-generated string b'OutOfLength\n', actual literal extent 13, target final 0 bytes zero alignment; references none in this unit.
|
||||
- 0x8165D28C @STRING@GetTextColor__Q34nw4r3lyt7TextBoxCFUl -> @STRING@GetTextColor__Q34nw4r3lyt7TextBoxCFUl, extent 68 -> 65: function-generated string b'Error#004\nAn error has occurred.\nThe system files are corrupted.', actual literal extent 65, target final 3 bytes zero alignment; references none in this unit.
|
||||
|
||||
Initial tiInputForm name-pairing trial reached data 3772/3772 but the gate rejected its DOL hash. Isolated the cause to making the duplicate OutOfLength literal globally visible under the inline function-generated name: iplSystem already owns a global literal under that exact name at 0x81634699. Restoring only the old literal name restored the retail hash, proving the other changes preserve it. The source inline literal is translation-unit compiler-owned data; extract this duplicate as scope:local with its actual source symbol name to preserve the existing global literal's binding. All 43U object symbol tables were checked: no other unit refers to the old lbl_8165D258 symbol. No address/extent/content changes; no real function or public API scope changed.
|
||||
|
||||
Neighbour-literal relocation/type proofs strengthened by target disassembly: LayoutByNW4R::create establishes r30 from the .data base relocation, then instruction .text+0x9D6C passes r30+0x3D0 to the resource accessor to load RevoIpl_RodinNTLGProM_32_I4.brfnt; this independently proves the 34-byte literal at 0x8165CBF0 rather than relying on byte similarity alone. LayoutByNW4R::calc at .text+0xA6BC passes the .data base+0x418 to its virtual setVisible for N_separateBarAll, proving the distinct 17-byte object at 0x8165CC38. Both remain ordinary compiler-pooled source literals.
|
||||
|
||||
tiInputForm corrected local-string trial passes the all-unit quick gate: every non-text section 100%, matched_data 1036 -> 3772/3772, instruction-exact 216/221 unchanged, no regressions, correct retail DOL hash. All extra weak tables remain genuine compiler output and require no suppression.
|
||||
|
||||
MyTiManager: fetched origin, owned source unchanged; pool identical (7 strings). Recover each compiler literal identity, preserving all extents:
|
||||
|
||||
- 0x81667E38 lbl_81667E38 -> @8346, same 25 bytes: compiler literal b'WiiBitmapFontType2.brfnt\x00'; relocation loads createMemoInputForm__Q49textinput6extend4memo7ManagerFv .text+0x9BA, createMemoInputForm__Q49textinput6extend4memo7ManagerFv .text+0x9CE, createLetterInputForm__Q49textinput6extend4memo7ManagerFv .text+0xAE2, createLetterInputForm__Q49textinput6extend4memo7ManagerFv .text+0xAF6, __sinit_\MyTiManager_cpp .text+0x4E22, __sinit_\MyTiManager_cpp .text+0x4E26.
|
||||
- 0x81667E58 lbl_81667E58 -> @8347, same 16 bytes: compiler literal b'my_Memo_a.brlyt\x00'; relocation loads createMemoInputForm__Q49textinput6extend4memo7ManagerFv .text+0x9BE, createMemoInputForm__Q49textinput6extend4memo7ManagerFv .text+0x9D2.
|
||||
- 0x81667E68 lbl_81667E68 -> @8369, same 17 bytes: compiler literal b'my_LetterL.brlyt\x00'; relocation loads createLetterInputForm__Q49textinput6extend4memo7ManagerFv .text+0xAE6, createLetterInputForm__Q49textinput6extend4memo7ManagerFv .text+0xAFA.
|
||||
- 0x81667E7C lbl_81667E7C -> @8385, same 22 bytes: compiler literal b'fs_VK_textBox_a.brlyt\x00'; relocation loads createInputForm__Q49textinput6extend4memo7ManagerFv .text+0xC22, createInputForm__Q49textinput6extend4memo7ManagerFv .text+0xC36.
|
||||
- 0x81667E94 lbl_81667E94 -> @8386, same 25 bytes: compiler literal b'WiiBitmapFontType1.brfnt\x00'; relocation loads createInputForm__Q49textinput6extend4memo7ManagerFv .text+0xC26, createInputForm__Q49textinput6extend4memo7ManagerFv .text+0xC3A, createBigTextInputForm__Q49textinput6extend4memo7ManagerFv .text+0xC82, createBigTextInputForm__Q49textinput6extend4memo7ManagerFv .text+0xC96.
|
||||
- 0x81667EB0 lbl_81667EB0 -> @8402, same 22 bytes: compiler literal b'fs_VK_textBox_b.brlyt\x00'; relocation loads createBigTextInputForm__Q49textinput6extend4memo7ManagerFv .text+0xC7E, createBigTextInputForm__Q49textinput6extend4memo7ManagerFv .text+0xC92.
|
||||
- 0x81667EC8 lbl_81667EC8 -> @8410, same 17 bytes: compiler literal b'fs_VK_bg_a.brlyt\x00'; relocation loads createBG__Q49textinput6extend4memo7ManagerFv .text+0xCF2, createBG__Q49textinput6extend4memo7ManagerFv .text+0xCFA.
|
||||
|
||||
MyTiManager literal identities pass the all-unit quick gate with no regressions and preserved DOL hash. All seven genuine pooled literal objects now pair by compiler identity, while every retained vtable has the real exact method slots. Unit matched_data remains 148/1132 because the target-only lbl_816681E8 object is still unpaired. It is 40 zero bytes at 0x816681E8..0x81668210, after the 320-byte Manager vtable; source .data ends at offset 0x3B0. No incoming relocation in any original 43U object and no outgoing relocation prove a real type or name for those bytes. No source object was fabricated, no hidden flag added, no zero-size annotation or symbol deletion used to force the score. Remaining extent/ownership is explicitly uncertain. This commit improves real symbol pairing, not the unit's aggregate data measure.
|
||||
|
||||
Advisory literal_reference_diff.py over all three units, --all-functions: 35 arguments checked in 373 analyzed functions, no candidates/errors; LayoutByNW4R::create skipped because source/target function sizes differ. This is additional literal evidence, not proof for the unknown zero tail.
|
||||
|
||||
## Continuation final verification
|
||||
|
||||
Final full gate ran without --quick and rebuilt from a clean 43U build. tiInputForm data 1036 -> 3772/3772 and tiKeyboard 12 -> 2708/2708 now reach the entire data goal; MyTiManager remains 148/1132, with .data 97.92531% and only the unpaired 40-byte tail requiring ownership/type evidence. No code bodies were changed in this continuation. Instruction-exact counts remain 216/221, 62/62 and 91/91; code bytes remain 46980/50656, 8368/8368 and 20196/20196. Checked every changed symbols.txt annotation: all 70 removed/added lines belong to the three assigned split ranges. All section totals stay unchanged.
|
||||
|
||||
Open-function completeness audit: calcCursorPos, LayoutByNW4R::create and LayoutByNW4R::setLanguage each have the three distinct source-level attempts recorded earlier in this same log; all were restored and remain open only for code work. Every function in tiKeyboard and MyTiManager is already exact. The two additional objdiff-100% tiInputForm functions excluded from instruction-exact counts are unchanged, preserving the baseline definition.
|
||||
|
||||
Tool-source evidence for the pairing method: the installed objdiff-cli is v3.4.5. Its official [find_symbol implementation](https://github.com/encounter/objdiff/blob/v3.4.5/objdiff-core/src/diff/mod.rs#L690) pairs compiler-generated literal/table symbols by exact bytes and relocations, independent of their numeric counters. [diff_generic_section](https://github.com/encounter/objdiff/blob/v3.4.5/objdiff-core/src/diff/data.rs#L511) requires every target-owned symbol to pair at 100%; extra source weak symbols do not prevent this route. The seven now-paired MyTiManager literals and every genuine retained vtable are exact, but the unknown target-owned 40-byte object is still unpaired; it was left intact.
|
||||
|
||||
Accepted commits: a6c8a274 (tiKeyboard data 100%), 4ba13948 (tiInputForm data 100%), 78403153 (MyTiManager's seven compiler literal identities, without an aggregate gain).
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/keyboard/tiInputForm] pool: IDENTICAL
|
||||
[src/keyboard/tiInputForm] objdiff: code 46980/50656 data 3772/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 100.0
|
||||
[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 1036 functions 218 fuzzy 99.5781
|
||||
[src/keyboard/tiKeyboard] pool: IDENTICAL
|
||||
[src/keyboard/tiKeyboard] objdiff: code 8368/8368 data 2708/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 100.0
|
||||
[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 148 functions 91 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.70241 -> 88.70241
|
||||
global fuzzy_match_percent: 99.47499 -> 99.47499
|
||||
global complete_code_percent: 63.21193 -> 63.54459
|
||||
global matched_data_percent: 98.77142 -> 99.06781
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
note: no baseline for merge-base 6ebe56bc; compared against nearest snapshotted ancestor 69c235ff (1 commits back)
|
||||
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
@@ -599,3 +599,231 @@ 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.
|
||||
|
||||
# Round 3
|
||||
HEAD c6c0b145f823573a643925eacc094af8547ff502 origin/main 5fe0a61af71d078b7b2da949b49a9cf30e81d66f
|
||||
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)
|
||||
libs/RVL_SDK/src/fa/pf_entry_iterator POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
libs/RevoEX/src/so/SOOption POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
src/keyboard/tiString POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
libs/RVL_SDK/src/fa/pf_volume POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
Round 3 create diagnosis: frame 0x50 and 221 instructions equal; branch forms/helper inlining equal; all 34 differences register allocation, including hoisted vtables and loop state. origin source unchanged.
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | r3 animation pointer temporary | BUILD FAIL 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
|
||||
# --------------------------------------
|
||||
# 252: const Animation* animation = paneInfo.animations[animationIndex];
|
||||
# Warning: ^^^^^^^^^
|
||||
# (10349) implicit 'int' is no longer supported in C++
|
||||
### mwcceppc.exe Compiler:
|
||||
# 252: const Animation* animation = paneInfo.animations[animationIndex];
|
||||
# Error: ^
|
||||
# (10224) 'const' or '&' variable needs initializer
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | r3 move force/count into loop scope | 221/221 instructions; structural/exact differences (0, 61)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | r3 outer for loop | 221/221 instructions; structural/exact differences (0, 34)
|
||||
221/221 instructions; structural/exact differences (0, 34)
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | r3 corrected animation temporary | 219/221 instructions; structural/exact differences (9, 91)
|
||||
Round 3 pread diagnosis: 129/129 instructions, frame 0x40 identical; 10 register differences transfer_blocks and byte product. No structural/operand-order differences; origin source unchanged.
|
||||
uhf_msc_blk_pread | r3 conditional transfer selection | 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread | r3 byte product scoped to success | 129/129 instructions; structural/exact differences (0, 10)
|
||||
uhf_msc_blk_pread | r3 count signed temporary | 129/129 instructions; structural/exact differences (0, 10)
|
||||
Round 3 JPEG diagnosis: frame/instruction counts equal (276), 12 structural differences in returned Huffman aggregate stack slots; remaining coloring differences. origin source unchanged.
|
||||
TMCJPEGDEC_decode_iquant | r3 shared entry aggregate | 276/276 instructions; structural/exact differences (10, 41)
|
||||
TMCJPEGDEC_decode_iquant | r3 AC aggregate declared in AC scope | 276/276 instructions; structural/exact differences (12, 46)
|
||||
TMCJPEGDEC_decode_iquant | r3 reverse returned entry declaration fields loads | 276/276 instructions; structural/exact differences (18, 47)
|
||||
FindCluster diagnosis: same 0xb0 frame/237 instructions, all 8 differences constant-one vs shifted entries register allocation; no branch or helper boundary differences. origin source unchanged.
|
||||
PFENT_ITER_FindCluster | initialize shifted entries before iterator fields | 238/237 instructions; structural/exact differences (13, 208)
|
||||
PFENT_ITER_FindCluster | use iterator start cluster as shift operand | 237/237 instructions; structural/exact differences (0, 8)
|
||||
PFENT_ITER_FindCluster | sector scalar state | 237/237 instructions; structural/exact differences (0, 11)
|
||||
Last-register searches: create 6 permutations no change (0,34); pread40 no change (0,10); JPEG35 no change (12,46); FindCluster35 no change (0,8).
|
||||
GetLFNEntryName diagnosis: 73/73, target loop uses i*13 index strengthened to byte offset; source carries an advancing pointer and independent character index. Target terminator uses reloaded num_entry_LFNs*13. Branch/helper forms equal.
|
||||
PFENT_ITER_GetLFNEntryName | indexed 13 character fragments and reloaded terminator | 76/73 instructions; structural/exact differences (26, 75)
|
||||
PFENT_ITER_GetLFNEntryName | typed LFN fragment array indexed by entry | 76/73 instructions; structural/exact differences (26, 75)
|
||||
PFENT_ITER_GetLFNEntryName | fragment array typedef, loop-local base initialization | 76/73 instructions; structural/exact differences (26, 75)
|
||||
PFENT_ITER_GetLFNEntryName | explicit byte offset for packed LFN copies; byte-size terminator | 76/73 instructions; structural/exact differences (24, 75)
|
||||
PFENT_ITER_GetLFNEntryName | packed fragment inline helper boundary | 76/73 instructions; structural/exact differences (24, 75)
|
||||
SOGetInterfaceOpt diagnosis: 119/119, frame equal, target computes command/reply/length from nested payload bases; source uses direct request bases. Also register assignment/scheduling. origin source unchanged.
|
||||
SOGetInterfaceOpt | construct all buffer pointers before command assignments | 119/119 instructions; structural/exact differences (5, 16)
|
||||
SOGetInterfaceOpt | command fields in opposite statement order | 119/119 instructions; structural/exact differences (10, 14)
|
||||
SOGetInterfaceOpt | returned length after reply assignment | 119/119 instructions; structural/exact differences (5, 16)
|
||||
SOSetInterfaceOpt diagnosis: 74/74 frame/calls/branches equal; payload pointer derived from command base target, direct request source. Source stores option after reply pointer, target before. origin source unchanged.
|
||||
SOSetInterfaceOpt | reply pointer before stores | 74/74 instructions; structural/exact differences (4, 14)
|
||||
SOSetInterfaceOpt | reverse command assignments | 74/74 instructions; structural/exact differences (6, 19)
|
||||
SOSetInterfaceOpt | request and allocation size scalar state | 74/74 instructions; structural/exact differences (4, 15)
|
||||
inputChar diagnosis: target136/source125 frame0x30 same; target translate mode3 uses indexed character append with count++ and trailing NUL, source direct scalar stores. Target dead newline comparison suggests converter helper boundary. origin source unchanged.
|
||||
inputChar__Q39textinput8tistring9DecolatedFw | mode3 indexed append | 125/136 instructions; structural/exact differences (18, 73)
|
||||
inputChar__Q39textinput8tistring9DecolatedFw | mode3 scan append index | 137/136 instructions; structural/exact differences (17, 74)
|
||||
inputChar__Q39textinput8tistring9DecolatedFw | mode3 count as conversion state | 125/136 instructions; structural/exact differences (18, 73)
|
||||
p_rmvvol diagnosis: 64/64 frame0x500 equal; constant target lbz SDA21 vs source folded li0xe5. Target indicates aggregate initialization from small constant template, investigate genuine local byte array.
|
||||
PFVOL_p_rmvvol | one byte local deleted marker array initializer | 64/64 instructions; structural/exact differences (0, 0)
|
||||
PFVOL_p_rmvvol | array initialized from existing constant object | BUILD FAIL -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/RVL_SDK/src/fa/pf_volume.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_volume.d build/43U/src/libs/RVL_SDK/src/fa/pf_volume.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: libs\RVL_SDK\src\fa\pf_volume.c
|
||||
# ----------------------------------------
|
||||
# 588: u8 deleted[1] = {deleted_entry_mark[0]};
|
||||
# Error: ^
|
||||
# (10124) illegal constant expression
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
PFVOL_p_rmvvol | single field aggregate initializer | 64/64 instructions; structural/exact differences (0, 0)
|
||||
p_rmvvol local byte-array yields exact instructions but .sdata2 is1byte versus target8byte padded extent; gate currently fails matched-data regression8. No commit until resolved.
|
||||
PFVOL_p_rmvvol | read marker helper | 64/64 instructions; structural/exact differences (2, 4)
|
||||
PFVOL_p_rmvvol | pointer local | 64/64 instructions; structural/exact differences (2, 4)
|
||||
PFVOL_p_rmvvol | char aggregate through constant pointer | 64/64 instructions; structural/exact differences (2, 4)
|
||||
attach diagnosis: 174/176 frame0x20 same. clear_mount return value allocation crosses inline boundary; target moves failure result to r0 and materializes success0 before checking. Shared helper must not regress other matched users.
|
||||
PFVOL_attach | mount helper return variable declared separately | 174/176 instructions; structural/exact differences (10, 39)
|
||||
PFVOL_attach | scope mount result into aggregate | 174/176 instructions; structural/exact differences (10, 39)
|
||||
PFVOL_attach | error branch else form | 174/176 instructions; structural/exact differences (10, 39)
|
||||
PFVOL_attach | success branch first in mount helper | 174/176 instructions; structural/exact differences (19, 39)
|
||||
setcode diagnosis: 23/23 instructions; aggregate assignment loads all six pointers then stores, target alternates field load/store. Six real function pointer fields should copy individually.
|
||||
PFVOL_setcode | explicit code conversion callback copies | 23/23 instructions; structural/exact differences (10, 17)
|
||||
PFVOL_setcode | mutable callback table pointer with field copies | 23/23 instructions; structural/exact differences (0, 0)
|
||||
setcode exact: mutable code_set pointer preserves potential alias between callback field reads and global field stores.
|
||||
|
||||
SOOption register search: size-before-request declarations improve GetInterface16->10 differences and SetInterface14->4; source retained. setcode23/23 exact, volume33->34; quick gate PASS with regressions0/data unchanged. p_rmvvol exact local-array candidate abandoned because data regression; existing source/data restored.
|
||||
regctx diagnosis: 75/75, frame0x10 same; 15 differences free_context_index vs masked status r5/r8 allocation in unrolled three-context loop. All branch/operand/helper boundaries identical; origin source unchanged except our setcode match.
|
||||
PFVOL_regctx | status declared at function scope | 75/75 instructions; structural/exact differences (0, 15)
|
||||
PFVOL_regctx | free and status typed state | 75/75 instructions; structural/exact differences (0, 25)
|
||||
PFVOL_regctx | status tested through stored full flags | 75/75 instructions; structural/exact differences (0, 14)
|
||||
SOOption | genuine nested IPC payload layout | 119/119 instructions; structural/exact differences (5, 10); set 74/74 instructions; structural/exact differences (4, 4)
|
||||
PFVOL_regctx | search state free_context_index,context_index | 75/75 instructions; structural/exact differences (0, 25)
|
||||
PFVOL_regctx | search state free_context_index,error | 75/75 instructions; structural/exact differences (0, 15)
|
||||
PFVOL_regctx | search state free_context_index,stat | 75/75 instructions; structural/exact differences (0, 25)
|
||||
PFVOL_regctx | search state context_index,error | 75/75 instructions; structural/exact differences (0, 20)
|
||||
PFVOL_regctx | search state context_index,stat | 75/75 instructions; structural/exact differences (0, 16)
|
||||
PFVOL_regctx | search state error,stat | 75/75 instructions; structural/exact differences (0, 14)
|
||||
PFVOL_regctx | search state free_context_index,context_index,error | 75/75 instructions; structural/exact differences (0, 25)
|
||||
PFVOL_regctx | search state free_context_index,context_index,stat | 75/75 instructions; structural/exact differences (0, 25)
|
||||
PFVOL_regctx | search state free_context_index,error,stat | 75/75 instructions; structural/exact differences (0, 25)
|
||||
PFVOL_regctx | search state context_index,error,stat | 75/75 instructions; structural/exact differences (0, 16)
|
||||
PFVOL_regctx | search state free_context_index,context_index,error,stat | 75/75 instructions; structural/exact differences (0, 25)
|
||||
SOOption | typed 32-byte IPC blocks with sequential payload addressing | 119/119 instructions; structural/exact differences (0, 5); set 74/74 instructions; structural/exact differences (0, 0)
|
||||
IPC block proof: target command at request+32, length at command+32, value at length+32 (set value at command+32); existing storage already reserves these 32-byte IPC blocks. Typed pointer traversal preserves allocation/layout; SetInterface 74/74 diffs0, Get119/119 structural0/exact5.
|
||||
PFENT_ITER_GetLFNEntryName | byte fragment state i,index | 76/73 instructions; structural/exact differences (24, 74)
|
||||
PFENT_ITER_GetLFNEntryName | byte fragment state index,err | 76/73 instructions; structural/exact differences (24, 75)
|
||||
PFENT_ITER_GetLFNEntryName | byte fragment state i,index,err | 76/73 instructions; structural/exact differences (24, 74)
|
||||
SOGetInterfaceOpt | option input state level,option | 119/119 instructions; structural/exact differences (0, 5)
|
||||
SOGetInterfaceOpt | option input state option,level | 119/119 instructions; structural/exact differences (0, 5)
|
||||
SOGetInterfaceOpt | option input state level,option,length | 119/119 instructions; structural/exact differences (0, 5)
|
||||
SOGetInterfaceOpt | option input state level,option,value | 119/119 instructions; structural/exact differences (0, 5)
|
||||
SOGetInterfaceOpt | random permutations 50 | best remains (0, 5)
|
||||
SOGetInterfaceOpt | random permutations 100 | best remains (0, 5)
|
||||
SOGetInterfaceOpt | random permutations 150 | best remains (0, 5)
|
||||
SOGetInterfaceOpt | random permutations 200 | best remains (0, 5)
|
||||
SOGetInterfaceOpt | random permutations 250 | best remains (0, 5)
|
||||
SOGetInterfaceOpt | random permutations 300 | best remains (0, 5)
|
||||
SOGetInterfaceOpt | random permutations 350 | best remains (0, 5)
|
||||
SOGetInterfaceOpt | random permutations 400 | best remains (0, 5)
|
||||
PFVOL_attach | ignored mount status return zero | 174/176 instructions; structural/exact differences (10, 39)
|
||||
PFVOL_attach | mount helper returns void | 174/176 instructions; structural/exact differences (10, 39)
|
||||
PFVOL_attach | mount check distinct status result | 174/176 instructions; structural/exact differences (10, 39)
|
||||
Structural frame correction: FindCluster is0xa0, not0xb0; JPEG0x50; GetLFN/GetInterface/SetInterface0x30. Registers and frame statements verified against fresh target disassembly.
|
||||
|
||||
SOOption final quick gate PASS, regressions0, forbidden0/readability0, no data. SetInterface exact count2->3/code520->816; GetInterface remains99.78992 with five pure parameter-register differences after400 additional declaration permutations.
|
||||
|
||||
Completeness audit: all10 remaining functions have at least3 distinct successful-build source attempts in Round3; no untried open function. All seven owned data sections100%, no symbol/configuration changes. Exact p_rmvvol local-byte-array candidate reverted because7 target alignment bytes caused data regression; initializer/extent uncertain. GetLFN induction shape, inputChar converter helper, attach return helper, JPEG aggregate stack scope remain uncertain.
|
||||
|
||||
## Final full clean gate, Round3
|
||||
```
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[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.1051
|
||||
[libs/RVL_SDK/src/fa/pf_entry_iterator] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_entry_iterator] objdiff: code 6640/7880 data 24/24 functions 14/16 fuzzy 99.6264 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_entry_iterator] instruction-exact functions: 14/16
|
||||
[libs/RVL_SDK/src/fa/pf_entry_iterator] section .sdata size 24 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_entry_iterator] section .text size 7880 match 99.626396
|
||||
[libs/RVL_SDK/src/fa/pf_entry_iterator] below 100: PFENT_ITER_FindCluster 99.81013
|
||||
[libs/RVL_SDK/src/fa/pf_entry_iterator] below 100: PFENT_ITER_GetLFNEntryName 90.53425
|
||||
[libs/RVL_SDK/src/fa/pf_entry_iterator] baseline: code 6640/7880 data 24 functions 14 fuzzy 99.6264
|
||||
[libs/RevoEX/src/so/SOOption] pool: IDENTICAL
|
||||
[libs/RevoEX/src/so/SOOption] objdiff: code 816/1292 data None/None functions 3/4 fuzzy 99.9226 linked code 0
|
||||
[libs/RevoEX/src/so/SOOption] instruction-exact functions: 3/4
|
||||
[libs/RevoEX/src/so/SOOption] section .text size 1292 match 99.9226
|
||||
[libs/RevoEX/src/so/SOOption] below 100: SOGetInterfaceOpt 99.78992
|
||||
[libs/RevoEX/src/so/SOOption] baseline: code 520/1292 data None functions 2 fuzzy 97.5759
|
||||
[src/keyboard/tiString] pool: IDENTICAL
|
||||
[src/keyboard/tiString] objdiff: code 4632/5176 data 288/288 functions 41/42 fuzzy 98.9629 linked code 0
|
||||
[src/keyboard/tiString] instruction-exact functions: 41/42
|
||||
[src/keyboard/tiString] section .data size 288 match 100.0
|
||||
[src/keyboard/tiString] section .text size 5176 match 98.962906
|
||||
[src/keyboard/tiString] below 100: inputChar__Q39textinput8tistring9DecolatedFw 90.132355
|
||||
[src/keyboard/tiString] baseline: code 4632/5176 data 288 functions 41 fuzzy 98.9629
|
||||
[libs/RVL_SDK/src/fa/pf_volume] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_volume] objdiff: code 16732/17992 data 210976/210976 functions 34/37 fuzzy 99.8755 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_volume] instruction-exact functions: 34/37
|
||||
[libs/RVL_SDK/src/fa/pf_volume] section .bss size 210944 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_volume] section .data size 16 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_volume] section .sdata size 8 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_volume] section .sdata2 size 8 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_volume] section .text size 17992 match 99.8755
|
||||
[libs/RVL_SDK/src/fa/pf_volume] below 100: PFVOL_p_rmvvol 95.9375
|
||||
[libs/RVL_SDK/src/fa/pf_volume] below 100: PFVOL_attach 98.72159
|
||||
[libs/RVL_SDK/src/fa/pf_volume] below 100: PFVOL_regctx 99.0
|
||||
[libs/RVL_SDK/src/fa/pf_volume] baseline: code 16640/17992 data 210976 functions 33 fuzzy 99.6396
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.68973 -> 88.70268
|
||||
global fuzzy_match_percent: 99.47443 -> 99.47685
|
||||
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
|
||||
```
|
||||
|
||||
Instruction exact functions; objdiff matched code bytes; matched data bytes, before -> after:
|
||||
src/keyboard/tiSignWindow: functions 55/56 -> 55/56; code 6300 -> 6300 / 7184; data 3468 -> 3468 / 3468
|
||||
libs/RVL_SDK/src/fa/msc/puh_msc_blk: functions 10/11 -> 10/11; code 1556 -> 1556 / 2072; data 424 -> 424 / 424
|
||||
libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32: functions 0/1 -> 0/1; code 0 -> 0 / 1104; data 0 -> 0 / 0
|
||||
libs/RVL_SDK/src/fa/pf_entry_iterator: functions 14/16 -> 14/16; code 6640 -> 6640 / 7880; data 24 -> 24 / 24
|
||||
libs/RevoEX/src/so/SOOption: functions 2/4 -> 3/4; code 520 -> 816 / 1292; data 0 -> 0 / 0
|
||||
src/keyboard/tiString: functions 41/42 -> 41/42; code 4632 -> 4632 / 5176; data 288 -> 288 / 288
|
||||
libs/RVL_SDK/src/fa/pf_volume: functions 33/37 -> 34/37; code 16640 -> 16732 / 17992; data 210976 -> 210976 / 210976
|
||||
|
||||
Remaining unmatched functions, every one has >=3 distinct Round3 source experiments:
|
||||
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator: 99.117645%; 34 register-only differences; vtable/loop state coloring
|
||||
uhf_msc_blk_pread: 99.57365%; 10 register-only count/product differences
|
||||
TMCJPEGDEC_decode_iquant: 99.10507%; 12 structural stack-slot differences in Huffman aggregate returns, plus register coloring
|
||||
PFENT_ITER_FindCluster: 99.81013%; 8 register-only shifted-entry vs constant-one differences
|
||||
PFENT_ITER_GetLFNEntryName: 90.53425%; pointer induction vs target byte-index loop; terminator uses count reload
|
||||
SOGetInterfaceOpt: 99.78992%; 5 parameter-register coloring differences; structure now exact
|
||||
inputChar__Q39textinput8tistring9DecolatedFw: 90.132355%; 125/136 instructions; mode3 conversion append/helper boundary unresolved
|
||||
PFVOL_p_rmvvol: 95.9375%; folded constant vs target byte-template load; exact candidate rejected for data regression
|
||||
PFVOL_attach: 98.72159%; 174/176 instructions; inline clear_mount return boundary
|
||||
PFVOL_regctx: 99.0%; 15 register-only status/free-index differences
|
||||
|
||||
Changed source files: libs/RevoEX/src/so/SOOption.c and libs/RVL_SDK/src/fa/pf_volume.c; attempts log tools/decomp-assist/fz3.attempts.md. Commits43b95ca5/d4a8860d. No config/symbol edits. Full clean gate PASS; pool identical across7 units; regressions0, forbidden0, readability0, target DOL SHA1 preserved.
|
||||
|
||||
518
tools/decomp-assist/fz7.attempts.md
Normal file
518
tools/decomp-assist/fz7.attempts.md
Normal file
@@ -0,0 +1,518 @@
|
||||
# fz7 attempts
|
||||
|
||||
Baseline full quick gate passes; all four units have 100% data and identical pools. No data renames or extent changes needed.
|
||||
|
||||
## NWC24Mime
|
||||
POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
|
||||
## NWC24MsgRead
|
||||
POOL IDENTICAL up to 7 (mine=7 base=7)
|
||||
|
||||
## NWC24MsgSubject
|
||||
POOL IDENTICAL up to 10 (mine=10 base=10)
|
||||
|
||||
## NWC24DateParser
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
### NWC24ReadMsgField
|
||||
Fetched origin; checked current origin source against local source before experiments.
|
||||
- protected check inline boundary: ((3, 84), 101, 102) -> ((3, 84), 101, 102); restored
|
||||
|
||||
### NWC24ReadMsgSubjectPublic
|
||||
Fetched origin; checked current origin source against local source before experiments.
|
||||
- error result switch with success and overflow cases: ((11, 64), 100, 104) -> ((10, 10), 104, 104); kept
|
||||
|
||||
### NWC24ReadMsgTextPublic
|
||||
Fetched origin; checked current origin source against local source before experiments.
|
||||
- error result switch with success and overflow cases: ((7, 28), 68, 70) -> ((5, 5), 70, 70); kept
|
||||
|
||||
### ConvertDateToDays
|
||||
Fetched origin; checked current origin source against local source before experiments.
|
||||
- add day minus one before month offset: ((6, 19), 113, 113) -> ((6, 19), 113, 113); restored
|
||||
- combine leap totals in returned expression: ((6, 19), 113, 113) -> ((18, 21), 113, 113); restored
|
||||
|
||||
### DecodeWord
|
||||
Fetched origin; checked current origin source against local source before experiments.
|
||||
- Declaration swap and move search, explicit local block lines 535-539, up to 180 distinct source permutations: ((0, 67), 180, 180) -> ((0, 67), 180, 180)
|
||||
```
|
||||
declaration block:
|
||||
char* encodedWord;
|
||||
u32 consumedSize;
|
||||
u32 decodedLength;
|
||||
int encodedLength;
|
||||
NWC24Err result;
|
||||
start (0, 67)
|
||||
best (0, 67) after 23 builds; source restored; best order was:
|
||||
char* encodedWord;
|
||||
u32 consumedSize;
|
||||
u32 decodedLength;
|
||||
int encodedLength;
|
||||
NWC24Err result;
|
||||
```
|
||||
|
||||
### ExtractCharset
|
||||
Fetched origin; checked current origin source against local source before experiments.
|
||||
- Declaration swap and move search, explicit local block lines 674-676, up to 180 distinct source permutations: ((0, 35), 84, 84) -> ((0, 35), 84, 84)
|
||||
```
|
||||
declaration block:
|
||||
char* start;
|
||||
char* end;
|
||||
u32 charsetLength;
|
||||
start (0, 35)
|
||||
best (0, 35) after 6 builds; source restored; best order was:
|
||||
char* start;
|
||||
char* end;
|
||||
u32 charsetLength;
|
||||
```
|
||||
|
||||
### ExtractEncodedText
|
||||
Fetched origin; checked current origin source against local source before experiments.
|
||||
- Declaration swap and move search, explicit local block lines 711-714, up to 180 distinct source permutations: ((0, 44), 135, 135) -> ((0, 44), 135, 135)
|
||||
```
|
||||
declaration block:
|
||||
char* start;
|
||||
char* end;
|
||||
int length;
|
||||
NWC24Err result;
|
||||
start (0, 44)
|
||||
best (0, 44) after 13 builds; source restored; best order was:
|
||||
char* start;
|
||||
char* end;
|
||||
int length;
|
||||
NWC24Err result;
|
||||
```
|
||||
|
||||
### NWC24SetMsgSubjectAndTextPublic
|
||||
Fetched origin; checked current origin source against local source before experiments.
|
||||
- Declaration swap and move search, explicit local block lines 228-236, up to 180 distinct source permutations: ((0, 65), 190, 190) -> ((0, 65), 190, 190)
|
||||
```
|
||||
declaration block:
|
||||
NWC24MsgObjPrivate* privateMsg = (NWC24MsgObjPrivate*)msg;
|
||||
NWC24Work* nwcWork;
|
||||
u32 textSourceSize;
|
||||
u32 textWorkSize;
|
||||
BOOL is7Bit;
|
||||
NWC24Charset charset;
|
||||
u32 subjectWorkSize;
|
||||
u8* subjectWork;
|
||||
NWC24Err result;
|
||||
start (0, 65)
|
||||
best (0, 65) after 93 builds; source restored; best order was:
|
||||
NWC24MsgObjPrivate* privateMsg = (NWC24MsgObjPrivate*)msg;
|
||||
NWC24Work* nwcWork;
|
||||
u32 textSourceSize;
|
||||
u32 textWorkSize;
|
||||
BOOL is7Bit;
|
||||
NWC24Charset charset;
|
||||
u32 subjectWorkSize;
|
||||
u8* subjectWork;
|
||||
NWC24Err result;
|
||||
```
|
||||
|
||||
### NWC24iSetMsgSubjectQP
|
||||
Fetched origin; checked current origin source against local source before experiments.
|
||||
- protected result helper and success switch boundary: ((3, 84), 101, 102) -> ((9, 88), 104, 102); restored
|
||||
- SelectMBox caches flags in inline-local variable: ((3, 84), 101, 102) -> ((3, 84), 101, 102); restored
|
||||
- SelectMBox takes message flags by value: ((3, 84), 101, 102) -> ((3, 84), 101, 102); restored
|
||||
- Declaration swap and move search, explicit local block lines 739-750, up to 180 distinct source permutations: ((0, 12), 144, 144) -> ((0, 12), 144, 144)
|
||||
```
|
||||
declaration block:
|
||||
u32 workHalf;
|
||||
u32 sourceOffset;
|
||||
u32 secondSize;
|
||||
u8* second;
|
||||
u32 subjectLength;
|
||||
u32 lineLength;
|
||||
u32 outputLength;
|
||||
u32 total;
|
||||
u32 combinedLength;
|
||||
u32 i;
|
||||
u32 charsetLength;
|
||||
NWC24Err result;
|
||||
start (0, 12)
|
||||
best (0, 12) after 177 builds; source restored; best order was:
|
||||
u32 workHalf;
|
||||
u32 sourceOffset;
|
||||
u32 secondSize;
|
||||
u8* second;
|
||||
u32 subjectLength;
|
||||
u32 lineLength;
|
||||
u32 outputLength;
|
||||
u32 total;
|
||||
u32 combinedLength;
|
||||
u32 i;
|
||||
u32 charsetLength;
|
||||
NWC24Err result;
|
||||
```
|
||||
|
||||
### NWC24iDateToOSCalendarTime
|
||||
Fetched origin; checked current origin source against local source before experiments.
|
||||
- Declaration swap and move search, explicit local block lines 121-122, up to 180 distinct source permutations: ((0, 13), 85, 85) -> ((0, 13), 85, 85)
|
||||
```
|
||||
declaration block:
|
||||
BOOL isLeapYear;
|
||||
s32 days;
|
||||
start (0, 13)
|
||||
best (0, 13) after 2 builds; source restored; best order was:
|
||||
BOOL isLeapYear;
|
||||
s32 days;
|
||||
```
|
||||
- default arm handles overflow: ((10, 10), 104, 104) -> ((11, 64), 100, 104); restored
|
||||
- overflow case first in switch: ((10, 10), 104, 104) -> ((10, 10), 104, 104); restored
|
||||
- success case branches to common continue: ((10, 10), 104, 104) -> ((10, 10), 104, 104); restored
|
||||
- default arm handles overflow: ((5, 5), 70, 70) -> ((7, 28), 68, 70); restored
|
||||
- overflow case first in switch: ((5, 5), 70, 70) -> ((5, 5), 70, 70); restored
|
||||
- success case branches to common continue: ((5, 5), 70, 70) -> ((5, 5), 70, 70); restored
|
||||
- unsigned error switch dispatch: ((10, 10), 104, 104) -> ((10, 10), 104, 104); restored
|
||||
- nested overflow-only switch after success test: ((10, 10), 104, 104) -> ((13, 64), 102, 104); restored
|
||||
- unsigned error switch dispatch: ((5, 5), 70, 70) -> ((5, 5), 70, 70); restored
|
||||
- nested overflow-only switch after success test: ((5, 5), 70, 70) -> ((8, 29), 69, 70); restored
|
||||
|
||||
### NWC24iSetMsgSubjectQP
|
||||
Fetched origin; checked current origin source against local source before experiments.
|
||||
- declare source offset in successful encode block: ((0, 12), 144, 144) -> compile failure; restored
|
||||
- declare second capacity adjacent to its initialization: ((0, 12), 144, 144) -> ((0, 12), 144, 144); restored
|
||||
- scope source offset to folding block: ((0, 12), 144, 144) -> ((0, 29), 144, 144); restored
|
||||
- delay leap flag initialization until month offset stored: ((0, 13), 85, 85) -> ((5, 76), 86, 85); restored
|
||||
- use IsLeapYear inline helper: ((0, 13), 85, 85) -> ((8, 68), 89, 85); restored
|
||||
- cache calendar year explicitly: ((0, 13), 85, 85) -> ((0, 13), 85, 85); restored
|
||||
- initialize half capacity before second buffer: ((0, 12), 144, 144) -> ((2, 14), 144, 144); restored
|
||||
- initialize second pointer before second capacity: ((0, 12), 144, 144) -> ((0, 12), 144, 144); restored
|
||||
- use line length directly for initial complete comparison: ((0, 12), 144, 144) -> ((0, 12), 144, 144); restored
|
||||
- advance total before source offset in folding loop: ((0, 12), 144, 144) -> ((2, 16), 144, 144); restored
|
||||
- separate day decrement from month accumulation: ((6, 19), 113, 113) -> ((4, 16), 113, 113); kept
|
||||
- compute century correction after year day accumulation: ((4, 16), 113, 113) -> ((4, 16), 113, 113); restored
|
||||
- return common leap correction first: ((4, 16), 113, 113) -> ((4, 16), 113, 113); restored
|
||||
- split leap quotient temporaries: ((4, 16), 113, 113) -> ((4, 16), 113, 113); restored
|
||||
|
||||
### ConvertDaysToDate
|
||||
Fetched origin; checked current origin source against local source before experiments.
|
||||
- combine February leap branch before shared month subtraction: ((18, 86), 106, 103) -> ((13, 83), 102, 103); kept
|
||||
- year leap calculation via inline helper: ((13, 83), 102, 103) -> ((21, 94), 98, 103); restored
|
||||
- month loop exits with break and shared day update: ((13, 83), 102, 103) -> ((7, 83), 101, 103); kept
|
||||
|
||||
### QDecode
|
||||
Fetched origin; checked current origin source against local source before experiments.
|
||||
- mutate input and encoded offset directly during escape decoding: ((16, 59), 146, 146) -> ((15, 62), 146, 146); kept
|
||||
- unsigned capacity comparison follows consumed output: ((15, 62), 146, 146) -> ((14, 62), 146, 146); kept
|
||||
- decoded counter increments before copying plain byte: ((14, 62), 146, 146) -> ((14, 62), 146, 146); restored
|
||||
- initialize returned marker at its declaration: ((0, 67), 180, 180) -> compile failure; restored
|
||||
- inline marker computes current before loop: ((0, 67), 180, 180) -> ((5, 148), 181, 180); restored
|
||||
- inline marker length declaration separated from call: ((0, 67), 180, 180) -> compile failure; restored
|
||||
- initialize returned marker at its declaration: ((0, 35), 84, 84) -> compile failure; restored
|
||||
- inline marker computes current before loop: ((0, 35), 84, 84) -> ((5, 71), 85, 84); restored
|
||||
- inline marker length declaration separated from call: ((0, 35), 84, 84) -> compile failure; restored
|
||||
- initialize returned marker at its declaration: ((0, 44), 135, 135) -> compile failure; restored
|
||||
- inline marker computes current before loop: ((0, 44), 135, 135) -> ((7, 112), 136, 135); restored
|
||||
- inline marker length declaration separated from call: ((0, 44), 135, 135) -> compile failure; restored
|
||||
- marker offset initialized before marker length call: ((0, 67), 180, 180) -> ((2, 66), 180, 180); restored
|
||||
- declare current marker outside loop without initial value: ((0, 67), 180, 180) -> ((0, 67), 180, 180); restored
|
||||
- marker length inline-local declarations precede assignments: ((0, 67), 180, 180) -> ((0, 63), 180, 180); kept
|
||||
- single input cursor throughout escape branch: ((14, 62), 146, 146) -> ((0, 41), 146, 146); kept
|
||||
- validity initialization after escaped byte consumption: ((0, 41), 146, 146) -> ((0, 41), 146, 146); restored
|
||||
- increment input before escape counter: ((0, 41), 146, 146) -> ((0, 41), 146, 146); restored
|
||||
- grouped success and overflow arms with overflow flag test: ((10, 10), 104, 104) -> ((19, 70), 108, 104); restored
|
||||
- success-only switch with conditional default arm: ((10, 10), 104, 104) -> ((11, 64), 100, 104); restored
|
||||
- grouped success and overflow arms with overflow flag test: ((5, 5), 70, 70) -> ((11, 32), 72, 70); restored
|
||||
- success-only switch with conditional default arm: ((5, 5), 70, 70) -> ((7, 28), 68, 70); restored
|
||||
- inline year length isolates leap arithmetic: ((7, 83), 101, 103) -> ((7, 83), 101, 103); restored
|
||||
- inline month length isolates February table load: ((7, 83), 101, 103) -> ((16, 83), 100, 103); restored
|
||||
- month loop keeps previous days for final update: ((7, 83), 101, 103) -> compile failure; restored
|
||||
|
||||
- QDecode declaration search after structural fixes: 21 builds, three improving local-order swaps, structural/exact 0/41 -> 0/25 -> 0/11 -> 0/0.
|
||||
```
|
||||
declaration block:
|
||||
u32 decodedOffset = 0;
|
||||
u32 encodedOffset;
|
||||
char* input;
|
||||
char* output;
|
||||
u8 value = 0;
|
||||
NWC24Err result = NWC24_OK;
|
||||
start (0, 41)
|
||||
improved (0, 25)
|
||||
improved (0, 11)
|
||||
improved (0, 0)
|
||||
best (0, 0) after 21 builds; kept in source:
|
||||
u32 encodedOffset;
|
||||
u32 decodedOffset = 0;
|
||||
u8 value = 0;
|
||||
char* input;
|
||||
char* output;
|
||||
NWC24Err result = NWC24_OK;
|
||||
```
|
||||
- Restored public subject error-switch experiments: structural comparison improved but objdiff fuzzy score declined; no exact gains.
|
||||
|
||||
### DecodeWord
|
||||
Fetched origin; checked current origin source against local source before experiments.
|
||||
- find-marker declares return cursor before offset and length: ((0, 63), 180, 180) -> ((0, 65), 180, 180); restored
|
||||
- find-marker length initialized in declaration after offset: ((0, 63), 180, 180) -> ((0, 63), 180, 180); restored
|
||||
- search prefix cursor return uses offset before prefix: ((0, 63), 180, 180) -> ((0, 63), 180, 180); restored
|
||||
|
||||
### ExtractCharset
|
||||
Fetched origin; checked current origin source against local source before experiments.
|
||||
- find-marker declares return cursor before offset and length: ((0, 30), 84, 84) -> ((0, 35), 84, 84); restored
|
||||
- find-marker length initialized in declaration after offset: ((0, 30), 84, 84) -> ((0, 30), 84, 84); restored
|
||||
- search prefix cursor return uses offset before prefix: ((0, 30), 84, 84) -> ((0, 25), 84, 84); kept
|
||||
|
||||
### ExtractEncodedText
|
||||
Fetched origin; checked current origin source against local source before experiments.
|
||||
- find-marker declares return cursor before offset and length: ((0, 34), 135, 135) -> ((0, 44), 135, 135); restored
|
||||
- find-marker length initialized in declaration after offset: ((0, 34), 135, 135) -> ((0, 34), 135, 135); restored
|
||||
|
||||
### NWC24ReadMsgFromAddr
|
||||
Fetched origin; checked current origin source against local source before experiments.
|
||||
- read-permission helper returns status with conditional early return: ((4, 66), 91, 92) -> ((11, 78), 94, 92); restored
|
||||
- mailbox selection in function scope: ((4, 66), 91, 92) -> ((12, 63), 91, 92); restored
|
||||
- mailbox helper copies flags into local: ((4, 66), 91, 92) -> ((4, 66), 91, 92); restored
|
||||
|
||||
### NWC24ReadMsgSubject
|
||||
Fetched origin; checked current origin source against local source before experiments.
|
||||
- read-permission helper returns status with conditional early return: ((3, 65), 81, 82) -> ((9, 69), 84, 82); restored
|
||||
- mailbox selection in function scope: ((3, 65), 81, 82) -> ((11, 62), 81, 82); restored
|
||||
- mailbox helper copies flags into local: ((3, 65), 81, 82) -> ((3, 65), 81, 82); restored
|
||||
|
||||
### ReadMsgTextInternal
|
||||
Fetched origin; checked current origin source against local source before experiments.
|
||||
- read-permission helper returns status with conditional early return: ((16, 160), 176, 178) -> ((18, 164), 180, 178); restored
|
||||
- mailbox selection in function scope: ((16, 160), 176, 178) -> ((24, 158), 176, 178); restored
|
||||
- mailbox helper copies flags into local: ((16, 160), 176, 178) -> ((16, 160), 176, 178); restored
|
||||
|
||||
### NWC24ReadMsgAttached
|
||||
Fetched origin; checked current origin source against local source before experiments.
|
||||
- read-permission helper returns status with conditional early return: ((6, 75), 90, 91) -> ((13, 81), 93, 91); restored
|
||||
- mailbox selection in function scope: ((6, 75), 90, 91) -> ((14, 72), 90, 91); restored
|
||||
- mailbox helper copies flags into local: ((6, 75), 90, 91) -> ((6, 75), 90, 91); restored
|
||||
|
||||
### NWC24SetMsgSubjectAndTextPublic
|
||||
Fetched origin; checked current origin source against local source before experiments.
|
||||
- cache work pointer initialized in its declaration: ((0, 65), 190, 190) -> ((7, 99), 190, 190); restored
|
||||
- initialize subject remainder pointer before size: ((0, 65), 190, 190) -> ((2, 65), 190, 190); restored
|
||||
- scope work pointer to conversion phase: ((0, 65), 190, 190) -> ((0, 65), 190, 190); restored
|
||||
|
||||
### NWC24iSetMsgSubjectBase64
|
||||
Fetched origin; checked current origin source against local source before experiments.
|
||||
- conversion accepts success or overflow with ordinary conditions: ((18, 130), 139, 136) -> ((19, 77), 135, 136); restored
|
||||
- compute second pointer before capacity: ((18, 130), 139, 136) -> ((16, 130), 139, 136); kept
|
||||
- loop explicitly advances source before combined output length: ((16, 130), 139, 136) -> ((14, 130), 139, 136); kept
|
||||
- leap flag initialized in local declaration: ((0, 13), 85, 85) -> ((0, 13), 85, 85); restored
|
||||
- calendar year converted before leap flag is declared: ((0, 13), 85, 85) -> ((0, 13), 85, 85); restored
|
||||
- century correction directly added without intermediate: ((4, 16), 113, 113) -> ((4, 16), 113, 113); restored
|
||||
- return quotient correction directly: ((4, 16), 113, 113) -> ((4, 16), 113, 113); restored
|
||||
- DecodeWord inline helper FindMarker declaration permutation search: ((0, 63), 180, 180) -> ((0, 63), 180, 180)
|
||||
```
|
||||
declaration block:
|
||||
u32 offset;
|
||||
u32 markerLength;
|
||||
start (0, 63)
|
||||
best (0, 63) after 2 builds; source restored; best order was:
|
||||
u32 offset;
|
||||
u32 markerLength;
|
||||
```
|
||||
- ExtractCharset inline helper FindMarkerAfterPrefix declaration permutation search: ((0, 25), 84, 84) -> ((0, 23), 84, 84)
|
||||
```
|
||||
declaration block:
|
||||
u32 markerLength = Mail_strlen(marker);
|
||||
char* current = input + prefix;
|
||||
u32 offset;
|
||||
start (0, 25)
|
||||
improved (0, 23)
|
||||
best (0, 23) after 6 builds; kept in source:
|
||||
u32 markerLength = Mail_strlen(marker);
|
||||
u32 offset;
|
||||
char* current = input + prefix;
|
||||
```
|
||||
- ExtractEncodedText inline helper FindMarkerOffsetPrefix declaration permutation search: ((0, 34), 135, 135) -> ((0, 34), 135, 135)
|
||||
```
|
||||
declaration block:
|
||||
u32 offset;
|
||||
u32 markerLength;
|
||||
start (0, 34)
|
||||
best (0, 34) after 2 builds; source restored; best order was:
|
||||
u32 offset;
|
||||
u32 markerLength;
|
||||
```
|
||||
|
||||
## Coverage audit and final diagnosis
|
||||
|
||||
Scores in trials are structural differences ignoring registers, positional instruction differences, mine instruction count, target instruction count. Failed compilations are recorded but do not count toward the three distinct attempts. Declaration searches evaluate swaps and moves and preserve the best order.
|
||||
- Origin source check libs/RevoEX/src/nwc24/NWC24Mime: identical to starting source; baseline open functions still present.
|
||||
- Origin source check libs/RevoEX/src/nwc24/NWC24MsgRead: identical to starting source; baseline open functions still present.
|
||||
- Origin source check libs/RevoEX/src/nwc24/NWC24MsgSubject: identical to starting source; baseline open functions still present.
|
||||
- Origin source check libs/RevoEX/src/nwc24/NWC24DateParser: identical to starting source; baseline open functions still present.
|
||||
- Every owned data section was already 100% in baseline and remains 100%. No symbol renames, extent adjustments, header edits, or configure edits.
|
||||
|
||||
### Final open DecodeWord
|
||||
register allocation only after declaration and inline-helper experiments; at least three distinct successful source experiments or declaration permutations logged above.
|
||||
```
|
||||
src 0x2d0 base 0x2d0 insns 180/180
|
||||
diffs 63: [8, 9, 10, 12, 13, 35, 36, 41, 42, 43, 50, 52, 53, 57, 58, 64, 65, 66, 68, 69]
|
||||
```
|
||||
|
||||
### Final open ExtractCharset
|
||||
register allocation only after declaration and inline-helper experiments; at least three distinct successful source experiments or declaration permutations logged above.
|
||||
```
|
||||
src 0x150 base 0x150 insns 84/84
|
||||
diffs 23: [10, 17, 18, 20, 22, 23, 28, 29, 31, 32, 36, 37, 39, 40, 41, 43, 45, 46, 47, 51]
|
||||
```
|
||||
|
||||
### Final open ExtractEncodedText
|
||||
register allocation only after declaration and inline-helper experiments; at least three distinct successful source experiments or declaration permutations logged above.
|
||||
```
|
||||
src 0x21c base 0x21c insns 135/135
|
||||
diffs 34: [6, 7, 8, 9, 10, 12, 33, 35, 44, 45, 52, 54, 58, 65, 76, 77, 83, 84, 85, 86]
|
||||
```
|
||||
|
||||
### Final open NWC24ReadMsgField
|
||||
mailbox selection reuses protected/type check load; target reloads the field; no volatile added; at least three distinct successful source experiments or declaration permutations logged above.
|
||||
```
|
||||
src 0x194 base 0x198 insns 101/102
|
||||
--- replace mine 16:19 base 16:19
|
||||
```
|
||||
|
||||
### Final open NWC24ReadMsgFromAddr
|
||||
mailbox selection reuses protected/type check load; target reloads the field; no volatile added; at least three distinct successful source experiments or declaration permutations logged above.
|
||||
```
|
||||
src 0x16c base 0x170 insns 91/92
|
||||
--- replace mine 15:16 base 15:16
|
||||
```
|
||||
|
||||
### Final open NWC24ReadMsgSubject
|
||||
mailbox selection reuses protected/type check load; target reloads the field; no volatile added; at least three distinct successful source experiments or declaration permutations logged above.
|
||||
```
|
||||
src 0x144 base 0x148 insns 81/82
|
||||
--- replace mine 15:18 base 15:18
|
||||
```
|
||||
|
||||
### Final open ReadMsgTextInternal
|
||||
mailbox type reload, text-length branch, decoding result/close-result merge, and register allocation; at least three distinct successful source experiments or declaration permutations logged above.
|
||||
```
|
||||
src 0x2c0 base 0x2c8 insns 176/178
|
||||
--- replace mine 5:7 base 5:7
|
||||
```
|
||||
|
||||
### Final open NWC24ReadMsgAttached
|
||||
mailbox selection reuses protected/type check load; target reloads the field; no volatile added; attachment index temporaries and switch branch form also differ; at least three distinct successful source experiments or declaration permutations logged above.
|
||||
```
|
||||
src 0x168 base 0x16c insns 90/91
|
||||
--- replace mine 5:9 base 5:9
|
||||
```
|
||||
|
||||
### Final open NWC24ReadMsgSubjectPublic
|
||||
target contains redundant branch pair for accepted overflow result; ordinary conditional and switch forms differ; at least three distinct successful source experiments or declaration permutations logged above.
|
||||
```
|
||||
src 0x190 base 0x1a0 insns 100/104
|
||||
--- replace mine 14:15 base 14:15
|
||||
```
|
||||
|
||||
### Final open NWC24ReadMsgTextPublic
|
||||
target contains redundant branch pair for accepted overflow result; ordinary conditional and switch forms differ; at least three distinct successful source experiments or declaration permutations logged above.
|
||||
```
|
||||
src 0x110 base 0x118 insns 68/70
|
||||
--- replace mine 15:16 base 15:16
|
||||
```
|
||||
|
||||
### Final open NWC24SetMsgSubjectAndTextPublic
|
||||
register allocation only after declaration and inline-helper experiments; at least three distinct successful source experiments or declaration permutations logged above.
|
||||
```
|
||||
src 0x2f8 base 0x2f8 insns 190/190
|
||||
diffs 65: [6, 7, 8, 10, 11, 12, 13, 14, 15, 34, 35, 36, 37, 38, 39, 40, 57, 58, 59, 60]
|
||||
```
|
||||
|
||||
### Final open NWC24iSetMsgSubjectQP
|
||||
register allocation only after declaration and inline-helper experiments; at least three distinct successful source experiments or declaration permutations logged above.
|
||||
```
|
||||
src 0x240 base 0x240 insns 144/144
|
||||
diffs 12: [10, 61, 71, 73, 87, 91, 103, 107, 111, 119, 129, 132]
|
||||
```
|
||||
|
||||
### Final open NWC24iSetMsgSubjectBase64
|
||||
work-half local stored in source prologue only; signed success/overflow switch dispatch and buffer registers differ; at least three distinct successful source experiments or declaration permutations logged above.
|
||||
```
|
||||
src 0x22c base 0x220 insns 139/136
|
||||
--- insert mine 5:5 base 5:6
|
||||
```
|
||||
|
||||
### Final open NWC24iDateToOSCalendarTime
|
||||
register allocation only after declaration and inline-helper experiments; at least three distinct successful source experiments or declaration permutations logged above.
|
||||
```
|
||||
src 0x154 base 0x154 insns 85/85
|
||||
diffs 13: [6, 7, 16, 17, 24, 32, 33, 38, 43, 47, 52, 54, 55]
|
||||
```
|
||||
|
||||
### Final open ConvertDateToDays
|
||||
century/quarter-year expression scheduling and temporary registers; day-minus-one/month ordering fixed; at least three distinct successful source experiments or declaration permutations logged above.
|
||||
```
|
||||
src 0x1c4 base 0x1c4 insns 113/113
|
||||
diffs 16: [94, 95, 96, 97, 99, 100, 101, 103, 104, 105, 106, 107, 108, 109, 110, 111]
|
||||
```
|
||||
|
||||
### Final open ConvertDaysToDate
|
||||
target reloads year/month before increment; source retains earlier loads, plus leap-flag registers; at least three distinct successful source experiments or declaration permutations logged above.
|
||||
```
|
||||
src 0x194 base 0x19c insns 101/103
|
||||
--- replace mine 8:11 base 8:11
|
||||
```
|
||||
|
||||
Final non-quick gate interrupted externally with exit 143 before any output; clean build removed main.dol. Retrying unchanged full gate.
|
||||
|
||||
## Final full gate
|
||||
|
||||
Unmodified gate, non-quick clean full rebuild over all four owned units.
|
||||
```
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] objdiff: code 4528/6124 data 88/88 functions 13/16 fuzzy 99.5428 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] instruction-exact functions: 13/16
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] section .data size 72 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] section .sdata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] section .text size 6124 match 99.542786
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: DecodeWord 97.888885
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: ExtractCharset 98.27381
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: ExtractEncodedText 98.703705
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] baseline: code 3944/6124 data 88 functions 12 fuzzy 98.8556
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] objdiff: code 2480/4660 data 128/128 functions 11/16 fuzzy 98.4764 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] instruction-exact functions: 11/16
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] section .data size 128 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] section .text size 4660 match 98.476395
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: NWC24ReadMsgField 98.92157
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: NWC24ReadMsgFromAddr 98.804344
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: NWC24ReadMsgSubject 98.65854
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: ReadMsgTextInternal 93.735954
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: NWC24ReadMsgAttached 96.37363
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] baseline: code 2480/4660 data 128 functions 11 fuzzy 98.4764
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] objdiff: code 2776/5352 data 232/232 functions 7/12 fuzzy 98.9013 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] instruction-exact functions: 7/12
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] section .data size 184 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] section .sdata size 48 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] section .text size 5352 match 98.901344
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24ReadMsgSubjectPublic 96.15385
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24ReadMsgTextPublic 97.14286
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24SetMsgSubjectAndTextPublic 98.23684
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24iSetMsgSubjectQP 99.548615
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24iSetMsgSubjectBase64 96.54412
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] baseline: code 2776/5352 data 232 functions 7 fuzzy 98.5874
|
||||
[libs/RevoEX/src/nwc24/NWC24DateParser] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24DateParser] objdiff: code 1168/2372 data 40/40 functions 5/8 fuzzy 98.0236 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24DateParser] instruction-exact functions: 5/8
|
||||
[libs/RevoEX/src/nwc24/NWC24DateParser] section .rodata size 40 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24DateParser] section .text size 2372 match 98.023605
|
||||
[libs/RevoEX/src/nwc24/NWC24DateParser] below 100: NWC24iDateToOSCalendarTime 99.17647
|
||||
[libs/RevoEX/src/nwc24/NWC24DateParser] below 100: ConvertDateToDays 96.92921
|
||||
[libs/RevoEX/src/nwc24/NWC24DateParser] below 100: ConvertDaysToDate 92.66991
|
||||
[libs/RevoEX/src/nwc24/NWC24DateParser] baseline: code 1168/2372 data 40 functions 5 fuzzy 96.5649
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.70241 -> 88.72191
|
||||
global fuzzy_match_percent: 99.47499 -> 99.47811
|
||||
global complete_code_percent: 63.54459 -> 63.54459
|
||||
global matched_data_percent: 98.77142 -> 98.77142
|
||||
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/code/data: Mime 12->13, 3944->4528, 88->88; MsgRead 11->11, 2480->2480, 128->128; MsgSubject 7->7, 2776->2776, 232->232; DateParser 5->5, 1168->1168, 40->40.
|
||||
|
||||
All sixteen remaining functions have at least three distinct compiled source variations or tested local-declaration permutations. One new exact function, QDecode, independently ctxdiff 0 with 146/146 instructions. No other exact function gained. Remaining compiler differences are not proven impossible; further effort may find source levers.
|
||||
Reference in New Issue
Block a user