Compare commits
23 Commits
agent/w100
...
agent/w092
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
548fdd78bf | ||
|
|
bdafc5eafa | ||
|
|
0aa7ebc82d | ||
|
|
17dde877a2 | ||
|
|
47e1871309 | ||
|
|
10b5024b83 | ||
|
|
ab38b6b89a | ||
|
|
5b8103330b | ||
|
|
242028ae91 | ||
|
|
3d68725e64 | ||
|
|
9e11a96eb1 | ||
|
|
fecf686ab3 | ||
|
|
39582f4410 | ||
|
|
9d0eb3bd19 | ||
|
|
414af7fa1d | ||
|
|
bdd15186a7 | ||
|
|
40a2ea7e91 | ||
|
|
0b10215388 | ||
|
|
4e293a4223 | ||
|
|
d94df60412 | ||
|
|
daf04f1f26 | ||
|
|
1994d24f06 | ||
|
|
0d9b038782 |
@@ -53,9 +53,9 @@ Progress
|
||||
<!-- progress:start -->
|
||||
| Decompiled | Matched | Linked | Data |
|
||||
|:---:|:---:|:---:|:---:|
|
||||
| 99.57% | 90.47% | 70.31% | 99.37% |
|
||||
| 99.58% | 90.72% | 71.01% | 99.37% |
|
||||
|
||||
units 952/1027 complete, functions 12351/12563 matched.
|
||||
units 955/1027 complete, functions 12359/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 -->
|
||||
|
||||
@@ -8932,18 +8932,18 @@ TMCJPEGDEC_IdctBlock4x4_Col = .text:0x814EF810; // type:function size:0x224
|
||||
TMCJPEGDEC_IdctBlock2x2_Col = .text:0x814EFA34; // type:function size:0x124
|
||||
TMCJPEGDEC_IdctBlock1x1_Col = .text:0x814EFB58; // type:function size:0x44
|
||||
TMCJPEGDEC_set_converterY8U8V8 = .text:0x814EFB9C; // type:function size:0x310
|
||||
TMCJPEG_814EFEAC = .text:0x814EFEAC; // type:function size:0x590 scope:local
|
||||
TMCJPEG_814F043C = .text:0x814F043C; // type:function size:0x61C scope:local
|
||||
TMCJPEG_814F0A58 = .text:0x814F0A58; // type:function size:0x76C scope:local
|
||||
TMCJPEG_814F11C4 = .text:0x814F11C4; // type:function size:0x61C scope:local
|
||||
TMCJPEG_814F17E0 = .text:0x814F17E0; // type:function size:0x768 scope:local
|
||||
TMCJPEG_814F1F48 = .text:0x814F1F48; // type:function size:0x628 scope:local
|
||||
TMCJPEG_814F2570 = .text:0x814F2570; // type:function size:0x5E0 scope:local
|
||||
TMCJPEG_814F2B50 = .text:0x814F2B50; // type:function size:0x608 scope:local
|
||||
TMCJPEG_814F3158 = .text:0x814F3158; // type:function size:0x18C scope:local
|
||||
TMCJPEG_814F32E4 = .text:0x814F32E4; // type:function size:0x1C0 scope:local
|
||||
TMCJPEG_814F34A4 = .text:0x814F34A4; // type:function size:0x288 scope:local
|
||||
TMCJPEG_814F372C = .text:0x814F372C; // type:function size:0x2BC scope:local
|
||||
TMCJPEGDEC_converterYUV411toY8U8V8 = .text:0x814EFEAC; // type:function size:0x590 scope:local
|
||||
TMCJPEGDEC_converterYUV411toY8U8V8edge = .text:0x814F043C; // type:function size:0x61C scope:local
|
||||
TMCJPEGDEC_converterYUV422toY8U8V8 = .text:0x814F0A58; // type:function size:0x76C scope:local
|
||||
TMCJPEGDEC_converterYUV422toY8U8V8edge = .text:0x814F11C4; // type:function size:0x61C scope:local
|
||||
TMCJPEGDEC_converterYUV420toY8U8V8 = .text:0x814F17E0; // type:function size:0x768 scope:local
|
||||
TMCJPEGDEC_converterYUV420toY8U8V8edge = .text:0x814F1F48; // type:function size:0x628 scope:local
|
||||
TMCJPEGDEC_converterYUV211toY8U8V8 = .text:0x814F2570; // type:function size:0x5E0 scope:local
|
||||
TMCJPEGDEC_converterYUV211toY8U8V8edge = .text:0x814F2B50; // type:function size:0x608 scope:local
|
||||
TMCJPEGDEC_converterYUV444toY8U8V8 = .text:0x814F3158; // type:function size:0x18C scope:local
|
||||
TMCJPEGDEC_converterYUV444toY8U8V8edge = .text:0x814F32E4; // type:function size:0x1C0 scope:local
|
||||
TMCJPEGDEC_converterYUV400toY8U8V8 = .text:0x814F34A4; // type:function size:0x288 scope:local
|
||||
TMCJPEGDEC_converterYUV400toY8U8V8edge = .text:0x814F372C; // type:function size:0x2BC scope:local
|
||||
TMCJPEGDEC_set_converterRGB565 = .text:0x814F39E8; // type:function size:0x2A8
|
||||
TMCJPEGDEC_converterYUV411toRGB565 = .text:0x814F3C90; // type:function size:0x364 scope:local
|
||||
TMCJPEGDEC_converterYUV411toRGB565edge = .text:0x814F3FF4; // type:function size:0x1A8 scope:local
|
||||
|
||||
@@ -1005,7 +1005,7 @@ config.libs = [
|
||||
Object(Matching, "clib/zi8ZHuwd.c"),
|
||||
Object(NonMatching, "clib/zidawg1.c"),
|
||||
Object(Matching, "clib/zikorean.c"),
|
||||
Object(NonMatching, "clib/ziswordw.c"),
|
||||
Object(Matching, "clib/ziswordw.c"),
|
||||
Object(NonMatching, "clib/zkokeyp.c"),
|
||||
Object(Matching, "clib/zierror.c"),
|
||||
Object(NonMatching, "clib/zmtkey.c"),
|
||||
@@ -1075,11 +1075,11 @@ config.libs = [
|
||||
Object(Matching, "nwc24/NWC24Utils.c"),
|
||||
Object(Matching, "nwc24/NWC24Manage.c"),
|
||||
Object(Matching, "nwc24/NWC24MsgObj.c"),
|
||||
Object(NonMatching, "nwc24/NWC24MBoxCtrl.c"),
|
||||
Object(Matching, "nwc24/NWC24MBoxCtrl.c"),
|
||||
Object(Matching, "nwc24/NWC24Mime.c"),
|
||||
Object(Matching, "nwc24/NWC24Stream.c"),
|
||||
Object(Matching, "nwc24/NWC24Parser.c"),
|
||||
Object(NonMatching, "nwc24/NWC24MsgCommit.c"),
|
||||
Object(Matching, "nwc24/NWC24MsgCommit.c"),
|
||||
Object(Matching, "nwc24/NWC24MsgRead.c"),
|
||||
Object(NonMatching, "nwc24/NWC24MsgSubject.c"),
|
||||
Object(Matching, "nwc24/NWC24Schedule.c"),
|
||||
|
||||
@@ -1120,6 +1120,7 @@ static int __wpformatter(void* (*write_proc)(void*, const wchar_t*, size_t),
|
||||
case 's':
|
||||
if (format.argument_options == wchar_argument) {
|
||||
wchar_t* wcs_ptr = va_arg(args, wchar_t*);
|
||||
int wideLength;
|
||||
|
||||
if (wcs_ptr == NULL) {
|
||||
wcs_ptr = L"";
|
||||
@@ -1127,22 +1128,24 @@ static int __wpformatter(void* (*write_proc)(void*, const wchar_t*, size_t),
|
||||
|
||||
if (format.alternate_form) {
|
||||
wchar_t first = *wcs_ptr++;
|
||||
num_chars = (unsigned char)first;
|
||||
wideLength = (unsigned char)first;
|
||||
|
||||
if (format.precision_specified && num_chars > format.precision) {
|
||||
num_chars = format.precision;
|
||||
if (format.precision_specified && wideLength > format.precision) {
|
||||
wideLength = format.precision;
|
||||
}
|
||||
} else if (format.precision_specified) {
|
||||
num_chars = format.precision;
|
||||
wideLength = format.precision;
|
||||
|
||||
if ((string_end = wmemchr((wchar_t*)wcs_ptr, 0, num_chars)) != 0) {
|
||||
num_chars = string_end - wcs_ptr;
|
||||
if ((string_end = wmemchr((wchar_t*)wcs_ptr, 0, wideLength)) != 0) {
|
||||
wideLength = string_end - wcs_ptr;
|
||||
}
|
||||
|
||||
} else {
|
||||
num_chars = wcslen(wcs_ptr);
|
||||
wideLength = wcslen(wcs_ptr);
|
||||
}
|
||||
|
||||
num_chars = wideLength;
|
||||
|
||||
buff_ptr = wcs_ptr;
|
||||
break;
|
||||
} else {
|
||||
|
||||
@@ -10,12 +10,14 @@ static TMCHuffmanEntry readHuffmanEntry(const TMCHuffmanEntry* entries, u32 inde
|
||||
return entries[index];
|
||||
}
|
||||
|
||||
static void readHuffmanLimit(const TMCHuffmanEntry* entries, TMCHuffmanEntry* limit) {
|
||||
limit->bitLength = entries->bitLength;
|
||||
limit->symbol = entries->symbol;
|
||||
static TMCHuffmanEntry readHuffmanLimit(const TMCHuffmanEntry* entries) {
|
||||
TMCHuffmanEntry limit;
|
||||
limit.bitLength = entries->bitLength;
|
||||
limit.symbol = entries->symbol;
|
||||
return limit;
|
||||
}
|
||||
|
||||
static inline s32 decodeLongHuffman(s32 bitCount, const TMCHuffmanEntry* table, const u8* symbols, TMCCJPEGDecWork* work, TMCHuffmanEntry* limit, TMCHuffmanEntry* decoded) {
|
||||
static inline s32 decodeLongHuffman(s32 bitCount, const TMCHuffmanEntry* table, const u8* symbols, TMCCJPEGDecWork* work) {
|
||||
u32 bitData;
|
||||
u32 code;
|
||||
u32 length;
|
||||
@@ -49,21 +51,17 @@ static inline s32 decodeLongHuffman(s32 bitCount, const TMCHuffmanEntry* table,
|
||||
code |= (bitData >> bitCount) & 1;
|
||||
read_entry:
|
||||
{
|
||||
readHuffmanLimit(entry, limit);
|
||||
*decoded = *limit;
|
||||
if (code > (u32)decoded->bitLength) {
|
||||
TMCHuffmanEntry decoded = readHuffmanLimit(entry);
|
||||
if (code > (u32)decoded.bitLength) {
|
||||
continue;
|
||||
}
|
||||
{
|
||||
u32 relativeCode = code - entry->bitLength;
|
||||
u32 symbolIndex = relativeCode + entry->symbol;
|
||||
return symbols[symbolIndex & 0xFF];
|
||||
}
|
||||
code = code - entry->bitLength + entry->symbol;
|
||||
return symbols[code & 0xFF];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static inline s32 decodeACHuffman(s32 bitCount, const TMCHuffmanEntry* entry, const u8* symbols, TMCCJPEGDecWork* work, TMCHuffmanEntry* limit, TMCHuffmanEntry* decoded) {
|
||||
static inline s32 decodeACHuffman(s32 bitCount, const TMCHuffmanEntry* entry, const u8* symbols, TMCCJPEGDecWork* work) {
|
||||
u32 bitData;
|
||||
u32 code;
|
||||
u32 length;
|
||||
@@ -96,26 +94,18 @@ static inline s32 decodeACHuffman(s32 bitCount, const TMCHuffmanEntry* entry, co
|
||||
code |= (bitData >> bitCount) & 1;
|
||||
read_entry:
|
||||
{
|
||||
readHuffmanLimit(entry, limit);
|
||||
*decoded = *limit;
|
||||
if (code > (u32)decoded->bitLength) {
|
||||
TMCHuffmanEntry decoded = readHuffmanLimit(entry);
|
||||
if (code > (u32)decoded.bitLength) {
|
||||
continue;
|
||||
}
|
||||
{
|
||||
u32 relativeCode = code - entry->bitLength;
|
||||
u32 symbolIndex = relativeCode + entry->symbol;
|
||||
return symbols[symbolIndex & 0xFF];
|
||||
}
|
||||
code = code - entry->bitLength + entry->symbol;
|
||||
return symbols[code & 0xFF];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_ptr, TMCCJPEGDecWork* work) {
|
||||
TMCHuffmanEntry dcEntry;
|
||||
TMCHuffmanEntry dcDecoded;
|
||||
TMCHuffmanEntry dcLimit;
|
||||
TMCHuffmanEntry acDecoded;
|
||||
TMCHuffmanEntry acLimit;
|
||||
u8* huff_sym;
|
||||
const TMCHuffmanEntry* ac_fast;
|
||||
s32 idx;
|
||||
@@ -157,7 +147,7 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p
|
||||
} else {
|
||||
huff_sym = work->pDCHuffSym;
|
||||
huff_tbl = work->pDCHuffTbl;
|
||||
r = decodeLongHuffman(bit_pos, (const TMCHuffmanEntry*)huff_tbl, huff_sym, work, &dcLimit, &dcDecoded);
|
||||
r = decodeLongHuffman(bit_pos, (const TMCHuffmanEntry*)huff_tbl, huff_sym, work);
|
||||
if (r < 0) {
|
||||
return r;
|
||||
}
|
||||
@@ -217,7 +207,7 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p
|
||||
r = acEntry.symbol;
|
||||
} else {
|
||||
bit_pos = work->bitCount;
|
||||
r = decodeACHuffman(bit_pos, (const TMCHuffmanEntry*)huff_tbl, huff_sym, work, &acLimit, &acDecoded);
|
||||
r = decodeACHuffman(bit_pos, (const TMCHuffmanEntry*)huff_tbl, huff_sym, work);
|
||||
if (r < 0) {
|
||||
return r;
|
||||
}
|
||||
|
||||
@@ -340,17 +340,15 @@ static s32 TMCJPEGDEC_exif_parse(const u8* data, u32 size, TMCCJPEGDecExifData*
|
||||
|
||||
static void TMCJPEGDEC_IFD0_tag_parse(TMCCJPEGDecExifData* pInfo, u16 byteOrder, const u8* entry) {
|
||||
s32 tag;
|
||||
u16 type;
|
||||
u32 type;
|
||||
|
||||
tag = readU16(entry, byteOrder);
|
||||
type = readU16(entry + 2, byteOrder);
|
||||
|
||||
switch (tag) {
|
||||
case 0x0103:
|
||||
case 0x0111:
|
||||
case 0x0201:
|
||||
case 0x0202: {
|
||||
break;
|
||||
case 0x0111: {
|
||||
return;
|
||||
}
|
||||
case 0x0112: {
|
||||
pInfo->orientation = readU16(entry + 8, byteOrder);
|
||||
@@ -486,6 +484,11 @@ static void TMCJPEGDEC_IFD0_tag_parse(TMCCJPEGDecExifData* pInfo, u16 byteOrder,
|
||||
}
|
||||
return;
|
||||
}
|
||||
case 0x0201:
|
||||
case 0x0202:
|
||||
default: {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -493,17 +496,12 @@ static void TMCJPEGDEC_IFD1_tag_parse(TMCCJPEGDecExifData* pInfo, u16 byteOrder,
|
||||
s32 tag = readU16(entry, byteOrder);
|
||||
|
||||
switch (tag) {
|
||||
case 0x0132:
|
||||
case 0x0111:
|
||||
case 0x0112:
|
||||
case 0x012D:
|
||||
case 0x0213:
|
||||
case 0x8769:
|
||||
case 0x9000:
|
||||
case 0x9101:
|
||||
case 0xA003: {
|
||||
case 0x0102: {
|
||||
break;
|
||||
}
|
||||
case 0x0111: {
|
||||
return;
|
||||
}
|
||||
case 0x011A: {
|
||||
u32 offset;
|
||||
const u8* p;
|
||||
@@ -548,10 +546,19 @@ static void TMCJPEGDEC_IFD1_tag_parse(TMCCJPEGDecExifData* pInfo, u16 byteOrder,
|
||||
pInfo->yResDenIfd1 = readU32(p, byteOrder);
|
||||
return;
|
||||
}
|
||||
case 0x0112: {
|
||||
break;
|
||||
}
|
||||
case 0x0128: {
|
||||
pInfo->resUnitIfd1 = readU16(entry + 8, byteOrder);
|
||||
return;
|
||||
}
|
||||
case 0x012D: {
|
||||
break;
|
||||
}
|
||||
case 0x0132: {
|
||||
break;
|
||||
}
|
||||
case 0x0103: {
|
||||
pInfo->compressionIfd1 = readU16(entry + 8, byteOrder);
|
||||
return;
|
||||
@@ -564,6 +571,24 @@ static void TMCJPEGDEC_IFD1_tag_parse(TMCCJPEGDecExifData* pInfo, u16 byteOrder,
|
||||
pInfo->thumbnailLength = readU32(entry + 8, byteOrder);
|
||||
return;
|
||||
}
|
||||
case 0x0213: {
|
||||
break;
|
||||
}
|
||||
case 0x8769: {
|
||||
break;
|
||||
}
|
||||
case 0x9000: {
|
||||
break;
|
||||
}
|
||||
case 0x9101: {
|
||||
break;
|
||||
}
|
||||
case 0xA003: {
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
#define TMC_JPEG_PLANAR_OUTPUT
|
||||
#include <tmc_jpeg_internal.h>
|
||||
|
||||
static void TMCJPEG_814EFEAC(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEG_814F043C(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEG_814F0A58(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEG_814F11C4(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEG_814F17E0(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEG_814F1F48(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEG_814F2570(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEG_814F2B50(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEG_814F3158(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEG_814F32E4(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEG_814F34A4(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEG_814F372C(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEGDEC_converterYUV411toY8U8V8(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEGDEC_converterYUV411toY8U8V8edge(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEGDEC_converterYUV422toY8U8V8(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEGDEC_converterYUV422toY8U8V8edge(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEGDEC_converterYUV420toY8U8V8(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEGDEC_converterYUV420toY8U8V8edge(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEGDEC_converterYUV211toY8U8V8(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEGDEC_converterYUV211toY8U8V8edge(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEGDEC_converterYUV444toY8U8V8(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEGDEC_converterYUV444toY8U8V8edge(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEGDEC_converterYUV400toY8U8V8(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEGDEC_converterYUV400toY8U8V8edge(TMCCJPEGDecWork*, s32, s32);
|
||||
|
||||
s32 TMCJPEGDEC_set_converterY8U8V8(TMCCJPEGDecWork* work) {
|
||||
u8* buffer;
|
||||
@@ -35,8 +35,8 @@ s32 TMCJPEGDEC_set_converterY8U8V8(TMCCJPEGDecWork* work) {
|
||||
|
||||
mode = work->idctMode;
|
||||
firstRow = buffer + 4;
|
||||
work->pConverterFunc = TMCJPEG_814EFEAC;
|
||||
work->pConverterFuncEdge = TMCJPEG_814F043C;
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV411toY8U8V8;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV411toY8U8V8edge;
|
||||
secondRow = firstRow + mode;
|
||||
thirdRow = secondRow + mode;
|
||||
fourthRow = thirdRow + mode;
|
||||
@@ -61,8 +61,8 @@ s32 TMCJPEGDEC_set_converterY8U8V8(TMCCJPEGDecWork* work) {
|
||||
|
||||
mode = work->idctMode;
|
||||
firstRow = buffer + 4;
|
||||
work->pConverterFunc = TMCJPEG_814F0A58;
|
||||
work->pConverterFuncEdge = TMCJPEG_814F11C4;
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV422toY8U8V8;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV422toY8U8V8edge;
|
||||
secondRow = firstRow + mode;
|
||||
cbBlock = buffer + 132;
|
||||
crBlock = buffer + 196;
|
||||
@@ -85,8 +85,8 @@ s32 TMCJPEGDEC_set_converterY8U8V8(TMCCJPEGDecWork* work) {
|
||||
|
||||
mode = work->idctMode;
|
||||
firstRow = buffer + 4;
|
||||
work->pConverterFunc = TMCJPEG_814F17E0;
|
||||
work->pConverterFuncEdge = TMCJPEG_814F1F48;
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV420toY8U8V8;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV420toY8U8V8edge;
|
||||
secondRow = firstRow + mode;
|
||||
thirdRow = firstRow + mode * 16;
|
||||
fourthRow = thirdRow + mode;
|
||||
@@ -111,8 +111,8 @@ s32 TMCJPEGDEC_set_converterY8U8V8(TMCCJPEGDecWork* work) {
|
||||
|
||||
mode = work->idctMode;
|
||||
firstRow = buffer + 4;
|
||||
work->pConverterFunc = TMCJPEG_814F2570;
|
||||
work->pConverterFuncEdge = TMCJPEG_814F2B50;
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV211toY8U8V8;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV211toY8U8V8edge;
|
||||
secondRow = firstRow + mode * 8;
|
||||
cbBlock = buffer + 132;
|
||||
crBlock = buffer + 196;
|
||||
@@ -127,8 +127,8 @@ s32 TMCJPEGDEC_set_converterY8U8V8(TMCCJPEGDecWork* work) {
|
||||
case 4: {
|
||||
TMCConverterFunc* converter;
|
||||
TMCConverterFunc* edgeConverter;
|
||||
converter = TMCJPEG_814F3158;
|
||||
edgeConverter = TMCJPEG_814F32E4;
|
||||
converter = TMCJPEGDEC_converterYUV444toY8U8V8;
|
||||
edgeConverter = TMCJPEGDEC_converterYUV444toY8U8V8edge;
|
||||
work->pConvRowPtrs[0] = buffer + 4;
|
||||
work->pConvRowPtrs[5] = buffer + 0x44;
|
||||
work->pConvRowPtrs[6] = buffer + 0x84;
|
||||
@@ -141,8 +141,8 @@ s32 TMCJPEGDEC_set_converterY8U8V8(TMCCJPEGDecWork* work) {
|
||||
case 5: {
|
||||
TMCConverterFunc* converter;
|
||||
TMCConverterFunc* edgeConverter;
|
||||
converter = TMCJPEG_814F34A4;
|
||||
edgeConverter = TMCJPEG_814F372C;
|
||||
converter = TMCJPEGDEC_converterYUV400toY8U8V8;
|
||||
edgeConverter = TMCJPEGDEC_converterYUV400toY8U8V8edge;
|
||||
work->pConvRowPtrs[0] = buffer + 4;
|
||||
work->pConverterFunc = converter;
|
||||
work->pConverterFuncEdge = edgeConverter;
|
||||
@@ -168,7 +168,7 @@ s32 TMCJPEGDEC_set_converterY8U8V8(TMCCJPEGDecWork* work) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void TMCJPEG_814EFEAC(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
static void TMCJPEGDEC_converterYUV411toY8U8V8(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 rowSkip;
|
||||
u8* output;
|
||||
u32 tileRow;
|
||||
@@ -232,7 +232,7 @@ static void TMCJPEG_814EFEAC(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
}
|
||||
}
|
||||
|
||||
static void TMCJPEG_814F043C(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
static void TMCJPEGDEC_converterYUV411toY8U8V8edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
TMCCJPEGDecState* state;
|
||||
u8* lumaTexture;
|
||||
u8* luminance;
|
||||
@@ -298,7 +298,7 @@ static void TMCJPEG_814F043C(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
}
|
||||
}
|
||||
|
||||
static void TMCJPEG_814F0A58(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
static void TMCJPEGDEC_converterYUV422toY8U8V8(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 chromaYEnd;
|
||||
u8* lumaTexture;
|
||||
u8* luminance;
|
||||
@@ -357,7 +357,7 @@ static void TMCJPEG_814F0A58(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
}
|
||||
}
|
||||
|
||||
static void TMCJPEG_814F11C4(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
static void TMCJPEGDEC_converterYUV422toY8U8V8edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
TMCCJPEGDecState* state;
|
||||
u8* lumaTexture;
|
||||
u8* luminance;
|
||||
@@ -423,7 +423,7 @@ static void TMCJPEG_814F11C4(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
}
|
||||
}
|
||||
|
||||
static void TMCJPEG_814F17E0(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
static void TMCJPEGDEC_converterYUV420toY8U8V8(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 chromaYEnd;
|
||||
u8* lumaTexture;
|
||||
s32 height;
|
||||
@@ -479,7 +479,7 @@ static void TMCJPEG_814F17E0(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
}
|
||||
}
|
||||
|
||||
static void TMCJPEG_814F1F48(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
static void TMCJPEGDEC_converterYUV420toY8U8V8edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
TMCCJPEGDecState* state;
|
||||
u8* lumaTexture;
|
||||
u8* luminance;
|
||||
@@ -546,7 +546,7 @@ static void TMCJPEG_814F1F48(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
}
|
||||
}
|
||||
|
||||
static void TMCJPEG_814F2570(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
static void TMCJPEGDEC_converterYUV211toY8U8V8(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
u8* lumaTexture;
|
||||
TMCCJPEGDecState* state;
|
||||
u8* luminance;
|
||||
@@ -602,7 +602,7 @@ static void TMCJPEG_814F2570(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
}
|
||||
}
|
||||
|
||||
static void TMCJPEG_814F2B50(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
static void TMCJPEGDEC_converterYUV211toY8U8V8edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
u32 chromaTileWidth;
|
||||
TMCCJPEGDecState* state;
|
||||
u8* lumaTexture;
|
||||
@@ -667,7 +667,7 @@ static void TMCJPEG_814F2B50(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
}
|
||||
}
|
||||
|
||||
static void TMCJPEG_814F3158(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
static void TMCJPEGDEC_converterYUV444toY8U8V8(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 rowSkip;
|
||||
u8* output;
|
||||
s32 height;
|
||||
@@ -722,7 +722,7 @@ static void TMCJPEG_814F3158(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
}
|
||||
}
|
||||
|
||||
static void TMCJPEG_814F32E4(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
static void TMCJPEGDEC_converterYUV444toY8U8V8edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 rowSkip;
|
||||
u8* output;
|
||||
s32 height;
|
||||
@@ -785,7 +785,7 @@ static void TMCJPEG_814F32E4(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
}
|
||||
}
|
||||
|
||||
static void TMCJPEG_814F34A4(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
static void TMCJPEGDEC_converterYUV400toY8U8V8(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 height;
|
||||
u8* lumaTexture;
|
||||
u8* luminance;
|
||||
@@ -821,7 +821,7 @@ static void TMCJPEG_814F34A4(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
}
|
||||
}
|
||||
|
||||
static void TMCJPEG_814F372C(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
static void TMCJPEGDEC_converterYUV400toY8U8V8edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 height;
|
||||
u8* lumaTexture;
|
||||
u8* luminance;
|
||||
|
||||
@@ -41,7 +41,7 @@ ziBool Zi8_81480224(ziUserWord* word ZI_NEED_WORK) {
|
||||
current = ZI_WORK->uwdList;
|
||||
while (current != 0) {
|
||||
candidate = (ziUserWord*)current->word;
|
||||
if (ZI_WORK->unk_0x12E == 1 && word->priority > candidate->priority) break;
|
||||
if (ZI_WORK->unk_0x12E == 1 && candidate->priority < word->priority) break;
|
||||
if (candidate->length == length) {
|
||||
position = 0;
|
||||
while (position < length) {
|
||||
|
||||
@@ -41,6 +41,13 @@ ziU32 ZiDAWGGetChild(ziU32 node) {
|
||||
return node;
|
||||
}
|
||||
|
||||
typedef struct ziDawgLongOffset {
|
||||
ziU8 flags;
|
||||
ziU8 middle;
|
||||
ziU8 low;
|
||||
} ziDawgLongOffset;
|
||||
typedef char ziDawgLongOffsetSizeCheck[(sizeof(ziDawgLongOffset) == 3) ? 1 : -1];
|
||||
|
||||
ziU8* ZiDAWGGetSibling(ziU8* cursor) {
|
||||
ziS32 depth;
|
||||
ziU8* node;
|
||||
@@ -70,14 +77,14 @@ ziU8* ZiDAWGGetSibling(ziU8* cursor) {
|
||||
}
|
||||
|
||||
if ((*cursor & 0x80) != 0) {
|
||||
node += (*cursor & 0x7f) * 0x10000 +
|
||||
(((ziU32)cursor[1] << 8) + (ziU32)cursor[2]) + 0x8000;
|
||||
node += (((const ziDawgLongOffset*)cursor)->flags & 0x7f) * 0x10000 +
|
||||
(((ziU32)(ziU16)cursor[1] << 8) +
|
||||
((const ziDawgLongOffset*)cursor)->low) + 0x8000;
|
||||
} else {
|
||||
node = cursor[1] + (node + (ziU16)*cursor * 0x100);
|
||||
}
|
||||
return node;
|
||||
} else {
|
||||
cursor = node;
|
||||
do {
|
||||
header = nodeHeaderTable[cursor[0] >> 4];
|
||||
if ((cursor[0] & 0xf) == 0xf) {
|
||||
|
||||
@@ -25,6 +25,12 @@ ziU8 Zi8GetFormatVersion(ziU8 ZI_NEED_WORK);
|
||||
ziPtr Zi8GetTableAddress(ziU8, ziU8 ZI_NEED_WORK);
|
||||
ziU16 Zi8Uni2Ord(ziWChar ZI_NEED_WORK);
|
||||
|
||||
typedef struct ziEncodedOrdinal {
|
||||
ziU8 low;
|
||||
ziU8 high;
|
||||
} ziEncodedOrdinal;
|
||||
typedef char ziEncodedOrdinalSizeCheck[(sizeof(ziEncodedOrdinal) == 2) ? 1 : -1];
|
||||
|
||||
ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
|
||||
ziChineseEntry* table = 0;
|
||||
ziU8* baseData = 0;
|
||||
@@ -134,10 +140,10 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
|
||||
countLeft = count;
|
||||
cursor = ordinals;
|
||||
while (countLeft > 0) {
|
||||
value = (data[1] << 8) | data[0];
|
||||
value = ((ziU32)(ziU16)data[1] << 8) |
|
||||
((const ziEncodedOrdinal*)data)->low;
|
||||
data += 2;
|
||||
cursor++;
|
||||
if (value != *cursor) break;
|
||||
if (value != *++cursor) break;
|
||||
countLeft--;
|
||||
if (value & 0x8000) break;
|
||||
}
|
||||
|
||||
@@ -30,8 +30,7 @@ ziU8 Zi8MatchOEMdata(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* word
|
||||
index = ZI_WORK->oemIdx;
|
||||
if ((ziS32)index >= ZI_WORK->oemLen) goto failed;
|
||||
if (ZI_WORK->oemMatch == 0) goto failed;
|
||||
capacity--;
|
||||
if ((ziS32)length >= (ziS32)capacity) {
|
||||
if ((ziS32)length >= (ziS32)--capacity) {
|
||||
failed:
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -550,7 +550,15 @@ pf_s32 PFCACHE_DoWriteSector(PF_VOLUME* p_vol, PF_CACHE_PAGE** pp_head, const pf
|
||||
|
||||
#pragma dont_inline reset
|
||||
|
||||
#pragma dont_inline on
|
||||
static inline pf_u32 PFCACHE_RecordPageEndOverlap(PF_CACHE_PAGE* p_page, pf_u32 end_sector, pf_u32* p_num_success, pf_u32* p_num_rest_sector) {
|
||||
pf_u32 last_sector = end_sector - 1;
|
||||
pf_u32 num_overlap = end_sector - p_page->sector;
|
||||
*p_num_success += num_overlap;
|
||||
*p_num_rest_sector -= num_overlap;
|
||||
p_page->stat |= 2;
|
||||
return last_sector;
|
||||
}
|
||||
|
||||
pf_s32 PFCACHE_DoWriteNumSectorAndFreeIfNeeded(PF_VOLUME* p_vol, PF_CACHE_PAGE** pp_head, const pf_u8* p_buf, pf_u32 sector,
|
||||
pf_u32 num_sector, pf_u32* p_num_success) {
|
||||
PF_CACHE_PAGE* p_page = PF_NULL;
|
||||
@@ -609,11 +617,9 @@ pf_s32 PFCACHE_DoWriteNumSectorAndFreeIfNeeded(PF_VOLUME* p_vol, PF_CACHE_PAGE**
|
||||
(p_page->sector + p_page->size) >= (sector + num_sector)) {
|
||||
pf_memcpy(p_page->buffer, (pf_u8*)&p_buf[(p_page->sector - sector) << p_vol->bpb.log2_bytes_per_sector],
|
||||
(sector + num_sector - p_page->sector) << p_vol->bpb.log2_bytes_per_sector);
|
||||
num_overlap = p_page->size - ((p_page->sector + p_page->size) - (num_sector + sector));
|
||||
last_sector = p_page->sector + num_overlap - 1;
|
||||
*p_num_success += num_overlap;
|
||||
num_rest_sector -= num_overlap;
|
||||
p_page->stat |= 2;
|
||||
num_overlap = num_sector;
|
||||
num_overlap += sector;
|
||||
last_sector = PFCACHE_RecordPageEndOverlap(p_page, num_overlap, p_num_success, &num_rest_sector);
|
||||
p_ebuf = &p_page->buffer[(last_sector - p_page->sector) << p_vol->bpb.log2_bytes_per_sector];
|
||||
p_page->p_mod_sbuf = p_page->buffer;
|
||||
if (p_page->p_mod_ebuf == NULL || p_page->p_mod_ebuf < p_ebuf) {
|
||||
|
||||
@@ -1458,6 +1458,19 @@ s32 PFFAT_CountFreeClusters(PF_VOLUME* volume, u32* numFreeClusters)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline s32 PFFAT_ClearEntryWithBuf(PF_VOLUME* volume, u32 cluster, PF_CACHE_PAGE* page) {
|
||||
switch (volume->bpb.fat_type) {
|
||||
case FAT_12:
|
||||
return PFFAT12_WriteFATEntryWithBuf(volume, (u16)cluster, 0, page);
|
||||
case FAT_16:
|
||||
return PFFAT16_WriteFATEntryWithBuf(volume, cluster, 0, page);
|
||||
case FAT_32:
|
||||
return PFFAT32_WriteFATEntryWithBuf(volume, cluster, 0, page);
|
||||
default:
|
||||
return 15;
|
||||
}
|
||||
}
|
||||
|
||||
s32 PFFAT_FreeChain(PFFAT_FFD* file, u32 startCluster, u32 chainIndex,
|
||||
u32 size)
|
||||
{
|
||||
@@ -1523,9 +1536,9 @@ s32 PFFAT_FreeChain(PFFAT_FFD* file, u32 startCluster, u32 chainIndex,
|
||||
}
|
||||
if (nextCluster == 0) {
|
||||
s32 firstFlushError;
|
||||
PF_CACHE_PAGE* flushPage;
|
||||
u16 fatIndex;
|
||||
u32 fatSector;
|
||||
u16 fatIndex;
|
||||
const PF_CACHE_PAGE* flushPage;
|
||||
|
||||
firstFlushError = 0;
|
||||
flushPage = page;
|
||||
@@ -1546,33 +1559,19 @@ s32 PFFAT_FreeChain(PFFAT_FFD* file, u32 startCluster, u32 chainIndex,
|
||||
PFCACHE_FreeDataPage(volume, page);
|
||||
return 0;
|
||||
}
|
||||
if (chainIndex != -1) {
|
||||
error = PFFAT_WriteClusterWithBuf(file, startCluster, chainIndex,
|
||||
0, 1, page);
|
||||
chainIndex++;
|
||||
} else {
|
||||
currentPage = page;
|
||||
switch (volume->bpb.fat_type) {
|
||||
case FAT_12:
|
||||
error = PFFAT12_WriteFATEntryWithBuf(
|
||||
volume, (u16)startCluster, 0, currentPage);
|
||||
break;
|
||||
case FAT_16:
|
||||
error = PFFAT16_WriteFATEntryWithBuf(volume, startCluster, 0,
|
||||
currentPage);
|
||||
break;
|
||||
case FAT_32:
|
||||
error = PFFAT32_WriteFATEntryWithBuf(volume, startCluster, 0,
|
||||
currentPage);
|
||||
break;
|
||||
default:
|
||||
error = 15;
|
||||
break;
|
||||
{
|
||||
s32 writeError;
|
||||
if (chainIndex != -1) {
|
||||
writeError = PFFAT_WriteClusterWithBuf(file, startCluster, chainIndex,
|
||||
0, 1, page);
|
||||
chainIndex++;
|
||||
} else {
|
||||
writeError = PFFAT_ClearEntryWithBuf(volume, startCluster, page);
|
||||
}
|
||||
if (writeError != 0) {
|
||||
PFCACHE_FreeDataPage(volume, page);
|
||||
return writeError;
|
||||
}
|
||||
}
|
||||
if (error != 0) {
|
||||
PFCACHE_FreeDataPage(volume, page);
|
||||
return error;
|
||||
}
|
||||
if (size != 0 && fileSize != 0) {
|
||||
if (fileSize <= clusterSize) {
|
||||
@@ -1590,7 +1589,7 @@ s32 PFFAT_FreeChain(PFFAT_FFD* file, u32 startCluster, u32 chainIndex,
|
||||
s32 firstFlushError;
|
||||
u32 fatSector;
|
||||
u16 fatIndex;
|
||||
PF_CACHE_PAGE* flushPage;
|
||||
const PF_CACHE_PAGE* flushPage;
|
||||
|
||||
firstFlushError = 0;
|
||||
flushPage = page;
|
||||
|
||||
@@ -769,19 +769,14 @@ static NWC24Err WriteMIMEAttachHeader(NWC24MsgObjPrivate* msg, u32 index) {
|
||||
char* buffer;
|
||||
const char* mime;
|
||||
const char* suffix;
|
||||
s32 typeLength, encodingLength, dispositionLength, mimeLength;
|
||||
int mimeLength;
|
||||
s32 first, second, third, total;
|
||||
NWC24Err err;
|
||||
Mail_memset(NWC24WorkP->stringWork, 0, 1024);
|
||||
buffer = NWC24WorkP->stringWork;
|
||||
mime = NWC24GetMIMETypeStr(msg->attachedType[index]);
|
||||
suffix = NWC24iGetMIMETypeSuffix(msg->attachedType[index]);
|
||||
encodingLength = Mail_strlen(ContentTxEncA);
|
||||
typeLength = Mail_strlen(ContentTypeA);
|
||||
dispositionLength = Mail_strlen(ContentDispA);
|
||||
typeLength += encodingLength;
|
||||
mimeLength = Mail_strlen(mime);
|
||||
mimeLength = (dispositionLength + typeLength) + mimeLength + 4;
|
||||
mimeLength = (Mail_strlen(ContentTypeA) + Mail_strlen(ContentTxEncA)) + Mail_strlen(ContentDispA) + Mail_strlen(mime) + 4;
|
||||
if (mimeLength >= 1024)
|
||||
return NWC24_ERR_NOMEM;
|
||||
first = Mail_sprintf(buffer, (char*)ContentTypeA, mime, (char)('a' + index), msg->msgId, suffix);
|
||||
|
||||
@@ -101,7 +101,7 @@ int SOGetInterfaceOpt(void* interface, int level, int option, void* value, int*
|
||||
int size;
|
||||
int result;
|
||||
InterfaceOption* request;
|
||||
InterfaceCommand* command;
|
||||
const InterfaceCommand* command;
|
||||
int* returnedLength;
|
||||
u8* reply;
|
||||
if ((result=SOiPrepareTempRm(NULL,&rm,&temporary))==0) {
|
||||
@@ -112,7 +112,7 @@ int SOGetInterfaceOpt(void* interface, int level, int option, void* value, int*
|
||||
if(!request) result=-49;
|
||||
else {
|
||||
command=&request->command;
|
||||
command->level=level; command->option=option;
|
||||
request->command.level=level; request->command.option=option;
|
||||
returnedLength=&((InterfaceLength*)(command + 1))->length;
|
||||
reply=(u8*)((InterfaceLength*)returnedLength + 1);
|
||||
*returnedLength=OptionLength(length);
|
||||
|
||||
@@ -638,7 +638,7 @@ namespace ipl {
|
||||
void ChannelObj::setLangPane(const layout::Object* layout) {
|
||||
int lang = System::getLanguage();
|
||||
const char* langGroup = scLangGroups[lang];
|
||||
char langCodeBuf[40] = "";
|
||||
char langCodeBuf[10][4] = {""};
|
||||
|
||||
bool foundLangGroup = false;
|
||||
|
||||
@@ -648,7 +648,7 @@ namespace ipl {
|
||||
} else {
|
||||
bool isNonRsoGroup = true;
|
||||
for (int i = 0; i < channel::MAX_ANIMS; i++) {
|
||||
char name[6];
|
||||
char name[8];
|
||||
sprintf(name, "Rso%d", i);
|
||||
if (strncmp(it->GetName(), name, 5) == 0) {
|
||||
isNonRsoGroup = false;
|
||||
@@ -663,8 +663,8 @@ namespace ipl {
|
||||
|
||||
for (int i = 0; i < 10; i++) {
|
||||
if (strncmp(it->GetName(), scLangGroups[i], 3) == 0) {
|
||||
memcpy(&langCodeBuf[i], it->GetName(), 3);
|
||||
langCodeBuf[i + 3] = 0;
|
||||
memcpy(langCodeBuf[i], it->GetName(), 3);
|
||||
langCodeBuf[i][3] = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -680,16 +680,15 @@ namespace ipl {
|
||||
} else {
|
||||
s32 region = System::getRegion();
|
||||
for (int i = 0; i < channel::MAX_ANIMS; i++) {
|
||||
char* groupName = (char*)scModuleData.langGroupLookup[region][i];
|
||||
|
||||
if (groupName != NULL) {
|
||||
if (strcmp(groupName, &langCodeBuf[scLangLookup[region][i]]) == 0) {
|
||||
nw4r::lyt::Group* group = layout->FindGroupByName(groupName);
|
||||
for (nw4r::lyt::PaneLinkList::Iterator it = group->GetPaneList().GetBeginIter(); it != group->GetPaneList().GetEndIter();
|
||||
it++) {
|
||||
it->mTarget->SetVisible(true);
|
||||
}
|
||||
if (scModuleData.langGroupLookup[region][i] == NULL) {
|
||||
break;
|
||||
}
|
||||
if (strcmp(scModuleData.langGroupLookup[region][i], langCodeBuf[scLangLookup[region][i]]) == 0) {
|
||||
nw4r::lyt::Group* group = layout->FindGroupByName(scModuleData.langGroupLookup[region][i]);
|
||||
for (nw4r::lyt::PaneLinkList::Iterator it = group->GetPaneList().GetBeginIter(); it != group->GetPaneList().GetEndIter(); it++) {
|
||||
it->mTarget->SetVisible(true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -729,8 +729,11 @@ namespace ipl {
|
||||
return;
|
||||
}
|
||||
|
||||
if (OSGetTime() - mOperationStartTime < OS_TIMER_CLOCK) {
|
||||
switch (OSGetTime() - mOperationStartTime < OS_TIMER_CLOCK) {
|
||||
default:
|
||||
return;
|
||||
case false:
|
||||
break;
|
||||
}
|
||||
setDialogMessage(1, 0);
|
||||
int result = mpSDWorker->get_async_result();
|
||||
@@ -781,11 +784,15 @@ namespace ipl {
|
||||
enqueueLoadNotice();
|
||||
}
|
||||
} else {
|
||||
int channelCount = 0;
|
||||
int channelIndex = 0;
|
||||
u32 titleIndex = 0;
|
||||
u32 titleId;
|
||||
u32 titleIndex;
|
||||
int channelIndex;
|
||||
int channelCount;
|
||||
channelCount = 0;
|
||||
channelIndex = 0;
|
||||
titleIndex = 0;
|
||||
for (; titleIndex < mSDTitleCount; ++titleIndex) {
|
||||
u32 titleId = mpSDTitleInfo[titleIndex].titleId;
|
||||
titleId = mpSDTitleInfo[titleIndex].titleId;
|
||||
if (titleId != 0x48415A41) {
|
||||
++channelCount;
|
||||
mpChannelTitleIds[channelIndex++] = titleId;
|
||||
|
||||
@@ -1194,8 +1194,9 @@ s32 CArGBAOdh::huffmanCoder(u16* coefficientInput, SArCDJ_HuffmanRequest* reques
|
||||
}
|
||||
}
|
||||
code = request->dcTable[bitCount];
|
||||
if (EmitBit(((code & 0xFFFFFF) << bitCount) | (difference & ((1 << bitCount) - 1)), ((s32)code >> 24) + bitCount,
|
||||
request) == ODH_ERROR_80000004) {
|
||||
magnitude = (difference & ((1 << bitCount) - 1)) | ((code & 0xFFFFFF) << bitCount);
|
||||
code = (s32)code >> 24;
|
||||
if (EmitBit(magnitude, code + bitCount, request) == ODH_ERROR_80000004) {
|
||||
return ODH_ERROR_80000004;
|
||||
}
|
||||
|
||||
@@ -1224,8 +1225,9 @@ s32 CArGBAOdh::huffmanCoder(u16* coefficientInput, SArCDJ_HuffmanRequest* reques
|
||||
}
|
||||
}
|
||||
code = request->acTable[bitCount];
|
||||
if (EmitBit(((code & 0xFFFFFF) << bitCount) | (runLength & ((1 << bitCount) - 1)), ((s32)code >> 24) + bitCount,
|
||||
request) == ODH_ERROR_80000004) {
|
||||
magnitude = (runLength & ((1 << bitCount) - 1)) | ((code & 0xFFFFFF) << bitCount);
|
||||
code = (s32)code >> 24;
|
||||
if (EmitBit(magnitude, code + bitCount, request) == ODH_ERROR_80000004) {
|
||||
return ODH_ERROR_80000004;
|
||||
}
|
||||
|
||||
@@ -1244,8 +1246,9 @@ s32 CArGBAOdh::huffmanCoder(u16* coefficientInput, SArCDJ_HuffmanRequest* reques
|
||||
}
|
||||
}
|
||||
code = request->dcTable[bitCount];
|
||||
if (EmitBit(((code & 0xFFFFFF) << bitCount) | (value & ((1 << bitCount) - 1)), ((s32)code >> 24) + bitCount,
|
||||
request) == ODH_ERROR_80000004) {
|
||||
magnitude = (value & ((1 << bitCount) - 1)) | ((code & 0xFFFFFF) << bitCount);
|
||||
code = (s32)code >> 24;
|
||||
if (EmitBit(magnitude, code + bitCount, request) == ODH_ERROR_80000004) {
|
||||
return ODH_ERROR_80000004;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -6265,3 +6265,927 @@ forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
## Max continuation fz10h: fresh branch audit
|
||||
Initial HEAD 2050ad7616acfcb7752e5a6da8b7f44f22c6cafd. Fresh branch, clean source; previous quantization and page-offset gains already landed. All further gains measured from this HEAD.
|
||||
Pool first libs/RVL_SDK/src/vi/vi: POOL IDENTICAL up to 7 (mine=7 base=7)
|
||||
Pool first libs/RVLMiddleware/eZiText/src/clib/zi8dawg: POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Pool first src/iplwww/www_wiisetting: POOL IDENTICAL up to 72 (mine=72 base=72)
|
||||
Pool first libs/RVLMiddleware/eZiText/src/clib/zi8getc2: POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Pool first src/keyboard/MyTiManager: POOL IDENTICAL up to 7 (mine=7 base=7)
|
||||
Pool first src/system/odh: POOL IDENTICAL up to 10 (mine=10 base=10)
|
||||
Pool first libs/RevoEX/src/nwc24/NWC24Download: POOL IDENTICAL up to 3 (mine=3 base=3)
|
||||
Pool first src/scene/address/iplAddress: POOL IDENTICAL up to 81 (mine=81 base=81)
|
||||
Pool first libs/RVL_SDK/src/fa/driver/sd_drv: POOL IDENTICAL up to 46 (mine=46 base=46)
|
||||
|
||||
Fz10h structural diagnosis VIInit: fetched origin; unit identical to verified baseline origin source; 99.7929%; 338/338 instructions, structural/exact (0, 14); stack ('stwu', 'r1, -0x30(r1)') / ('stwu', 'r1, -0x30(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h structural diagnosis VIInit: fetched origin; unit identical to verified baseline origin source; 99.7929%; 338/338 instructions, structural/exact (0, 14); stack ('stwu', 'r1, -0x30(r1)') / ('stwu', 'r1, -0x30(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
VIInit | fz10h initial clipping dedicated helper frac_accumulator | 335/338 instructions, structural/exact (117, 225)
|
||||
|
||||
VIInit | fz10h initial clipping dedicated helper coefficient_branch | 340/338 instructions, structural/exact (118, 196)
|
||||
|
||||
VIInit | fz10h initial clipping dedicated helper height_halfword | 335/338 instructions, structural/exact (114, 225)
|
||||
|
||||
VIInit | fz10h initial clipping dedicated helper top_helper | 337/338 instructions, structural/exact (104, 224)
|
||||
|
||||
VIInit | fz10h initial clipping dedicated helper bottom_helper | 337/338 instructions, structural/exact (109, 223)
|
||||
|
||||
Fz10h structural diagnosis Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue: fetched origin; unit identical to verified baseline origin source; 99.86043%; 609/609 instructions, structural/exact (0, 14); stack ('stwu', 'r1, -0xd0(r1)') / ('stwu', 'r1, -0xd0(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h VI clone correction: the initial five cloned-helper trials preceded the original file-local MIN/MAX/CLAMP definitions, so those tokens were compiled as unresolved function calls. They are invalid semantic trials and excluded from attempt counts. Every trial was restored; repeat with separate local macro names that expand to the original clamp expressions.
|
||||
|
||||
Fz10h structural diagnosis VIInit: fetched origin; unit identical to verified baseline origin source; 99.7929%; 338/338 instructions, structural/exact (0, 14); stack ('stwu', 'r1, -0x30(r1)') / ('stwu', 'r1, -0x30(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
VIInit | fz10h initial clipping genuine macro expansion frac_accumulator | 338/338 instructions, structural/exact (0, 14)
|
||||
|
||||
VIInit | fz10h initial clipping genuine macro expansion coefficient_branch | 341/338 instructions, structural/exact (33, 166)
|
||||
|
||||
VIInit | fz10h initial clipping genuine macro expansion height_halfword | 338/338 instructions, structural/exact (32, 73)
|
||||
|
||||
VIInit | fz10h initial clipping genuine macro expansion top_helper | 338/338 instructions, structural/exact (3, 33)
|
||||
|
||||
VIInit | fz10h initial clipping genuine macro expansion bottom_helper | 338/338 instructions, structural/exact (18, 57)
|
||||
|
||||
Fz10h structural diagnosis Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue: fetched origin; unit identical to verified baseline origin source; 99.86043%; 609/609 instructions, structural/exact (0, 14); stack ('stwu', 'r1, -0xd0(r1)') / ('stwu', 'r1, -0xd0(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue | fz10h genuine security/country helper boundaries mask_full | 609/609 instructions, structural/exact (0, 9)
|
||||
|
||||
Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue | fz10h genuine security/country helper boundaries country_ref | 609/609 instructions, structural/exact (0, 14)
|
||||
|
||||
Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue | fz10h genuine security/country helper boundaries mask_full_country | 609/609 instructions, structural/exact (0, 9)
|
||||
|
||||
Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue | fz10h genuine security/country helper boundaries mask_result_country | 609/609 instructions, structural/exact (0, 9)
|
||||
|
||||
Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue | fz10h country loop positive comparison and prefix increment | 609/609 instructions, structural/exact (0, 14)
|
||||
|
||||
Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue | fz10h country accepted index advanced before narrowing assignment | 609/609 instructions, structural/exact (0, 14)
|
||||
|
||||
Fz10h structural diagnosis Zi8GetDataSignature: fetched origin; unit identical to verified baseline origin source; 99.347824%; 69/69 instructions, structural/exact (0, 9); stack ('stwu', 'r1, -0x30(r1)') / ('stwu', 'r1, -0x30(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Zi8GetDataSignature | fz10h immutable destination pointer | 69/69 instructions, structural/exact (0, 9)
|
||||
|
||||
Zi8GetDataSignature | fz10h immutable query input parameters | 69/69 instructions, structural/exact (0, 9)
|
||||
|
||||
Zi8GetDataSignature | fz10h destination array formal | 69/69 instructions, structural/exact (0, 9)
|
||||
|
||||
Zi8GetDataSignature | fz10h query address preserved as const scalar until table count returns | 73/69 instructions, structural/exact (8, 68)
|
||||
|
||||
Fz10h Zi8MatchROMdata1 skip proof: fetched origin; dawg source identical to live main; function already 100%, ctxdiff 128/128 instructions and diffs 0. Unit 6/6 exact, code 4868, data 120. No duplicate source trials.
|
||||
|
||||
Zi8GetDataSignature | fz10h finished capacity parameter reused for validated signature length | 70/69 instructions, structural/exact (11, 32)
|
||||
|
||||
Zi8GetDataSignature | fz10h validated destination pointer advanced to terminating byte | 70/69 instructions, structural/exact (6, 25)
|
||||
|
||||
Zi8GetDataSignature | fz10h table selection switch preserves format-error exit and query order | 70/69 instructions, structural/exact (3, 63)
|
||||
|
||||
Fz10h structural diagnosis Zi8IsDupWChar: fetched origin; unit identical to verified baseline origin source; 99.36508%; 63/63 instructions, structural/exact (0, 8); stack ('stwu', 'r1, -0x20(r1)') / ('stwu', 'r1, -0x20(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Zi8IsDupWChar | fz10h immutable search character formal | 66/63 instructions, structural/exact (6, 54)
|
||||
|
||||
Zi8IsDupWChar | fz10h search snapshot scoped with positive bound and matching operand order | 67/63 instructions, structural/exact (12, 65)
|
||||
|
||||
Zi8IsDupWChar | fz10h duplicate result initialized only after empty-buffer return | 63/63 instructions, structural/exact (3, 22)
|
||||
|
||||
Zi8IsDupWChar | fz10h completed search index reused for wrap-size decision | 63/63 instructions, structural/exact (0, 23)
|
||||
|
||||
Zi8IsDupWChar | fz10h completed search index reused for actual append slot | 63/63 instructions, structural/exact (4, 26)
|
||||
|
||||
Zi8IsDupWChar | fz10h byte buffer count update expressed as prefix sequence | 63/63 instructions, structural/exact (2, 11)
|
||||
|
||||
Zi8IsDupWChar | fz10h duplicate return explicitly narrows its boolean result | 63/63 instructions, structural/exact (1, 8)
|
||||
|
||||
Fz10h structural diagnosis Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue: fetched origin; unit identical to verified baseline origin source; 99.86043%; 609/609 instructions, structural/exact (0, 14); stack ('stwu', 'r1, -0xd0(r1)') / ('stwu', 'r1, -0xd0(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue | fz10h European index return helper with preserving failed-search state | 612/609 instructions, structural/exact (26, 46)
|
||||
|
||||
Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue | fz10h European helper initialized index formal | 612/609 instructions, structural/exact (26, 46)
|
||||
|
||||
Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue | fz10h European helper explicit immutable settings input | 612/609 instructions, structural/exact (26, 46)
|
||||
|
||||
Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue | fz10h European helper completed index accumulator returned | 612/609 instructions, structural/exact (24, 46)
|
||||
|
||||
Fz10h structural diagnosis VIInit: fetched origin; unit identical to verified baseline origin source; 99.7929%; 338/338 instructions, structural/exact (0, 14); stack ('stwu', 'r1, -0x30(r1)') / ('stwu', 'r1, -0x30(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h register allocation last, official declsearch VIInit: (0, 14)
|
||||
```text
|
||||
declaration block:
|
||||
u16 displayConfig;
|
||||
u32 __VIDVDStopFlag_Enable_old;
|
||||
s32 format;
|
||||
u32 value;
|
||||
u32 tv;
|
||||
u32 bootromTv;
|
||||
start (0, 14)
|
||||
best (0, 14) after 36 builds; source restored; best order was:
|
||||
u16 displayConfig;
|
||||
u32 __VIDVDStopFlag_Enable_old;
|
||||
s32 format;
|
||||
u32 value;
|
||||
u32 tv;
|
||||
u32 bootromTv;
|
||||
```
|
||||
|
||||
Fz10h structural diagnosis Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue: fetched origin; unit identical to verified baseline origin source; 99.86043%; 609/609 instructions, structural/exact (0, 14); stack ('stwu', 'r1, -0xd0(r1)') / ('stwu', 'r1, -0xd0(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h register allocation last, official declsearch Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue: (0, 14)
|
||||
```text
|
||||
declaration block:
|
||||
int retVal;
|
||||
int strPropIdx;
|
||||
start (0, 14)
|
||||
best (0, 14) after 2 builds; source restored; best order was:
|
||||
int retVal;
|
||||
int strPropIdx;
|
||||
```
|
||||
|
||||
Fz10h structural diagnosis Zi8GetDataSignature: fetched origin; unit identical to verified baseline origin source; 99.347824%; 69/69 instructions, structural/exact (0, 9); stack ('stwu', 'r1, -0x30(r1)') / ('stwu', 'r1, -0x30(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h register allocation last, official declsearch Zi8GetDataSignature: (0, 9)
|
||||
```text
|
||||
declaration block:
|
||||
ziU8* signature;
|
||||
ziU16 length;
|
||||
start (0, 9)
|
||||
best (0, 9) after 2 builds; source restored; best order was:
|
||||
ziU8* signature;
|
||||
ziU16 length;
|
||||
```
|
||||
|
||||
Fz10h structural diagnosis Zi8IsDupWChar: fetched origin; unit identical to verified baseline origin source; 99.36508%; 63/63 instructions, structural/exact (0, 8); stack ('stwu', 'r1, -0x20(r1)') / ('stwu', 'r1, -0x20(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h register allocation last, official declsearch Zi8IsDupWChar: (0, 8)
|
||||
```text
|
||||
declaration block:
|
||||
ziBool duplicate;
|
||||
ziU16* buffer;
|
||||
unsigned int index;
|
||||
start (0, 8)
|
||||
best (0, 8) after 6 builds; source restored; best order was:
|
||||
ziBool duplicate;
|
||||
ziU16* buffer;
|
||||
unsigned int index;
|
||||
```
|
||||
|
||||
Fz10h structural diagnosis cdj_c_colorConv__9CArGBAOdhFP16SArCDJ_OdhMasterPUci: fetched origin; unit identical to verified baseline origin source; 98.63636%; 77/77 instructions, structural/exact (0, 18); stack ('stwu', 'r1, -0x50(r1)') / ('stwu', 'r1, -0x50(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
cdj_c_colorConv__9CArGBAOdhFP16SArCDJ_OdhMasterPUci | fz10h dimension rounding retained inside complete inline helper | 76/77 instructions, structural/exact (5, 57)
|
||||
|
||||
cdj_c_colorConv__9CArGBAOdhFP16SArCDJ_OdhMasterPUci | fz10h dimension remainder retained as initialized local | 77/77 instructions, structural/exact (0, 19)
|
||||
|
||||
cdj_c_colorConv__9CArGBAOdhFP16SArCDJ_OdhMasterPUci | fz10h chroma plane area held once before the two plane pointers | 77/77 instructions, structural/exact (0, 30)
|
||||
|
||||
cdj_c_colorConv__9CArGBAOdhFP16SArCDJ_OdhMasterPUci | fz10h dimension aligned by seven-bit addition and mask | 73/77 instructions, structural/exact (8, 56)
|
||||
|
||||
Fz10h structural diagnosis LineConv11__9CArGBAOdhFPUcPUcPUcPUcUsUsPCli: fetched origin; unit identical to verified baseline origin source; 98.08219%; 146/146 instructions, structural/exact (2, 12); stack ('stwu', 'r1, -0x60(r1)') / ('stwu', 'r1, -0x60(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
LineConv11__9CArGBAOdhFPUcPUcPUcPUcUsUsPCli | fz10h RGB565 byte assembly a single high-first integer expression | 146/146 instructions, structural/exact (2, 12)
|
||||
|
||||
LineConv11__9CArGBAOdhFPUcPUcPUcPUcUsUsPCli | fz10h YCbCr samples captured before the floating conversion arithmetic | 146/146 instructions, structural/exact (2, 12)
|
||||
|
||||
LineConv11__9CArGBAOdhFPUcPUcPUcPUcUsUsPCli | fz10h integer conversion sums accumulate blue and green before red | 146/146 instructions, structural/exact (12, 20)
|
||||
|
||||
Fz10h structural diagnosis huffmanCoder__9CArGBAOdhFPUsP21SArCDJ_HuffmanRequest: fetched origin; unit identical to verified baseline origin source; 99.07976%; 163/163 instructions, structural/exact (0, 18); stack ('stwu', 'r1, -0x20(r1)') / ('stwu', 'r1, -0x20(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
huffmanCoder__9CArGBAOdhFPUsP21SArCDJ_HuffmanRequest | fz10h Huffman payload OR operand before shifted prefix | 163/163 instructions, structural/exact (0, 21)
|
||||
|
||||
huffmanCoder__9CArGBAOdhFPUsP21SArCDJ_HuffmanRequest | fz10h signed coefficient halfword consumed directly at both DC and AC reads | 160/163 instructions, structural/exact (10, 142)
|
||||
|
||||
huffmanCoder__9CArGBAOdhFPUsP21SArCDJ_HuffmanRequest | fz10h finished magnitude temporary used for mask before each bit emission | 163/163 instructions, structural/exact (0, 18)
|
||||
|
||||
Fz10h structural diagnosis cdj_d_decompressLoop__9CArGBAOdhFP16SArCDJ_OdhMasterii: fetched origin; unit identical to verified baseline origin source; 99.67186%; 899/899 instructions, structural/exact (0, 43); stack ('stwu', 'r1, -0x50(r1)') / ('stwu', 'r1, -0x50(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
cdj_d_decompressLoop__9CArGBAOdhFP16SArCDJ_OdhMasterii | fz10h block row bytes derived from initialized row stride | 899/899 instructions, structural/exact (3, 48)
|
||||
|
||||
cdj_d_decompressLoop__9CArGBAOdhFP16SArCDJ_OdhMasterii | fz10h natural-order coefficient read follows immutable mapped-index snapshot | 899/899 instructions, structural/exact (0, 43)
|
||||
|
||||
cdj_d_decompressLoop__9CArGBAOdhFP16SArCDJ_OdhMasterii | fz10h block stride twice initialized row stride | 899/899 instructions, structural/exact (0, 43)
|
||||
|
||||
Fz10h structural diagnosis huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl: fetched origin; unit identical to verified baseline origin source; 95.57189%; 306/306 instructions, structural/exact (0, 171); stack ('stwu', 'r1, -0x30(r1)') / ('stwu', 'r1, -0x30(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl | fz10h signed Huffman reconstruction complements mask before value OR | 306/306 instructions, structural/exact (0, 171)
|
||||
|
||||
huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl | fz10h decoded coefficient pointer assignment consumes counted index | 306/306 instructions, structural/exact (0, 171)
|
||||
|
||||
huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl | fz10h DC maximum bit length selected with initialized conditional | 306/306 instructions, structural/exact (12, 148)
|
||||
|
||||
Fz10h MyTiManager data relocation/type audit:
|
||||
.data source/target 980/984; entire source prefix byte-equal True; sorted relocation equality False (177/170); remaining 4 bytes all zero True.
|
||||
@8346: target 0x0/0x19, source no named counterpart
|
||||
@8347: target 0x20/0x10, source no named counterpart
|
||||
@8369: target 0x30/0x11, source no named counterpart
|
||||
@8385: target 0x44/0x16, source no named counterpart
|
||||
@8386: target 0x5c/0x19, source no named counterpart
|
||||
@8402: target 0x78/0x16, source no named counterpart
|
||||
@8410: target 0x90/0x11, source no named counterpart
|
||||
__vt__Q49textinput6extend2bg4Base: target 0xa8/0x10, source 0xa8/0x10
|
||||
__vt__Q49textinput6extend4memo18DisappearMemoState: target 0xb8/0x58, source 0xb8/0x58
|
||||
__vt__Q49textinput6extend4memo13EditMemoState: target 0x110/0x58, source 0x110/0x58
|
||||
__vt__Q49textinput6extend4memo15AppearMemoState: target 0x168/0x58, source 0x168/0x58
|
||||
__vt__Q49textinput6extend4memo13DispMemoState: target 0x1c0/0x58, source 0x1c0/0x58
|
||||
__vt__Q49textinput6extend4memo5State: target 0x218/0x58, source 0x218/0x58
|
||||
__vt__Q49textinput6extend4memo7Manager: target 0x270/0x140, source 0x270/0x140
|
||||
lbl_816681E8: target 0x3b0/0x28, source no named counterpart
|
||||
Manager vtable offset 0x270, type layout 80 words = 0x140 bytes, ends 0x3b0; final slots relocate to createMemoInputForm/createLetterInputForm/createBigTextInputForm/createBG. Every real vtable already pairs by name/size. Separate lbl_816681E8 at 0x3b0 has size 0x28, no outgoing relocations, and no proven real type or incoming target reference. No rename or extent correction is justified; no symbols, addresses, section totals or source data were changed.
|
||||
|
||||
Fz10h structural diagnosis NWC24InitDlTask: fetched origin; unit identical to verified baseline origin source; 98.923615%; 144/144 instructions, structural/exact (0, 31); stack ('stwu', 'r1, -0x60(r1)') / ('stwu', 'r1, -0x60(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
NWC24InitDlTask | fz10h home identifier parsing complete helper caller-owned path | 144/144 instructions, structural/exact (0, 31)
|
||||
|
||||
NWC24InitDlTask | fz10h home identifier parsing complete helper helper-owned path | 144/144 instructions, structural/exact (0, 31)
|
||||
|
||||
NWC24InitDlTask | fz10h content filename branch directly uses complete type predicate | 139/144 instructions, structural/exact (9, 93)
|
||||
|
||||
Fz10h structural diagnosis NWC24IterateDlTask: fetched origin; unit identical to verified baseline origin source; 99.303795%; 79/79 instructions, structural/exact (0, 10); stack ('lwz', 'r5, 0(0)') / ('lwz', 'r5, 0(0)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
NWC24IterateDlTask | fz10h iteration bound and advancement expressed as for loop | 79/79 instructions, structural/exact (0, 10)
|
||||
|
||||
NWC24IterateDlTask | fz10h loop success and failed-entry paths explicitly complementary | 80/79 instructions, structural/exact (6, 26)
|
||||
|
||||
NWC24IterateDlTask | fz10h completed bound temporary reused for current header maximum | 79/79 instructions, structural/exact (0, 10)
|
||||
|
||||
Fz10h structural diagnosis NWC24UpdateDlTask: fetched origin; unit identical to verified baseline origin source; 95.00395%; 249/253 instructions, structural/exact (19, 250); stack ('stwu', 'r1, -0x30(r1)') / ('stwu', 'r1, -0x20(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
NWC24UpdateDlTask | fz10h current access-time helper delayed initialized result | 249/253 instructions, structural/exact (19, 250)
|
||||
|
||||
NWC24UpdateDlTask | fz10h complete inline update owns universal-time acquisition | 248/253 instructions, structural/exact (14, 145)
|
||||
|
||||
NWC24UpdateDlTask | fz10h complete inline update retry loop positive exit | 254/253 instructions, structural/exact (21, 142)
|
||||
|
||||
NWC24UpdateDlTask | fz10h complete inline update header snapshot after sentinel guard | 256/253 instructions, structural/exact (16, 207)
|
||||
|
||||
Fz10h current MyTi weak-data qualification: main now emits __vt__Q39textinput4util9Animation, STB_WEAK, 36 bytes at .data+0x3b0 with seven relocations to startAnm/calc/getValue/isActive/setSEFlag/isSEFlag/stop. The original target tail remains 40 zero bytes with no relocations, so only the first 944 bytes and their 170 relocations pair structurally; the extra source weak vtable is linker-deduplicated data and is ignored as required. Its placement alone does not prove the unreferenced target lbl_816681E8 names it. No rename/extent edit.
|
||||
|
||||
Fz10h structural diagnosis start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface: fetched origin; unit identical to verified baseline origin source; 99.34978%; 222/223 instructions, structural/exact (4, 200); stack ('stwu', 'r1, -0x40(r1)') / ('stwu', 'r1, -0x40(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface | fz10h nested mode switches with complete drag image helper icon first | 224/223 instructions, structural/exact (12, 98)
|
||||
|
||||
start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface | fz10h nested mode switches with complete drag image helper pane first | 224/223 instructions, structural/exact (12, 98)
|
||||
|
||||
start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface | fz10h nested mode switches drag image helper texture pointer | 224/223 instructions, structural/exact (12, 98)
|
||||
|
||||
start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface | fz10h nested mode switches icon image pointer captured at the copy boundary | 223/223 instructions, structural/exact (0, 7)
|
||||
|
||||
Fz10h structural diagnosis onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface: fetched origin; unit identical to verified baseline origin source; 97.662964%; 271/270 instructions, structural/exact (18, 152); stack ('stwu', 'r1, -0x20(r1)') / ('stwu', 'r1, -0x30(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface | fz10h controller null and button trigger expressed as a nested positive case | 271/270 instructions, structural/exact (18, 152)
|
||||
|
||||
onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface | fz10h pane component captured before its name query | 271/270 instructions, structural/exact (18, 152)
|
||||
|
||||
onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface | fz10h drag controller identity has explicit short-circuit null arm | 281/270 instructions, structural/exact (41, 130)
|
||||
|
||||
Fz10h structural diagnosis movePane_onDrag__Q33ipl5scene7AddressFv: fetched origin; unit identical to verified baseline origin source; 95.70968%; 154/155 instructions, structural/exact (7, 104); stack ('stwu', 'r1, -0x90(r1)') / ('stwu', 'r1, -0x90(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
movePane_onDrag__Q33ipl5scene7AddressFv | fz10h character-width loop exposes increment after actual font width call | 154/155 instructions, structural/exact (7, 104)
|
||||
|
||||
movePane_onDrag__Q33ipl5scene7AddressFv | fz10h projection scale consumed from initialized local in both offset branches | 140/155 instructions, structural/exact (45, 103)
|
||||
|
||||
movePane_onDrag__Q33ipl5scene7AddressFv | fz10h base position plus width captured as actual right edge | 154/155 instructions, structural/exact (7, 104)
|
||||
|
||||
Fz10h structural diagnosis update__Q33ipl5scene15FriendListCacheFUlPCwUx: fetched origin; unit identical to verified baseline origin source; 81.35%; 36/40 instructions, structural/exact (19, 34); stack ('stwu', 'r1, -0x20(r1)') / ('stwu', 'r1, -0x20(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
update__Q33ipl5scene15FriendListCacheFUlPCwUx | fz10h friend name uses reference independent of final record address | 37/40 instructions, structural/exact (7, 32)
|
||||
|
||||
update__Q33ipl5scene15FriendListCacheFUlPCwUx | fz10h only name pointer retained through clear and copy calls | 38/40 instructions, structural/exact (7, 33)
|
||||
|
||||
update__Q33ipl5scene15FriendListCacheFUlPCwUx | fz10h record pointer scope ends before manager query | 37/40 instructions, structural/exact (7, 32)
|
||||
|
||||
Fz10h structural diagnosis movePane_onDrag__Q33ipl5scene7AddressFv: fetched origin; unit identical to verified baseline origin source; 95.70968%; 154/155 instructions, structural/exact (7, 104); stack ('stwu', 'r1, -0x90(r1)') / ('stwu', 'r1, -0x90(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h movePane target branch proof: target null TextBox/name branches jump past the extra 0.01f addition (0x50d0/0x50dc -> 0x514c), but baseline source adds it unconditionally. Move the margin into the successful font-width branch before any register-only tuning.
|
||||
|
||||
movePane_onDrag__Q33ipl5scene7AddressFv | fz10h margin only inside the successful text-width branch | 154/155 instructions, structural/exact (5, 104)
|
||||
|
||||
movePane_onDrag__Q33ipl5scene7AddressFv | fz10h margin branch consumes name address only after TextBox null check | 153/155 instructions, structural/exact (4, 100)
|
||||
|
||||
movePane_onDrag__Q33ipl5scene7AddressFv | fz10h margin branch and name consumption explicit right-edge product local | 153/155 instructions, structural/exact (4, 100)
|
||||
|
||||
movePane_onDrag__Q33ipl5scene7AddressFv | fz10h margin branch begins with name and text-box pointers declared together | 154/155 instructions, structural/exact (5, 104)
|
||||
|
||||
movePane_onDrag__Q33ipl5scene7AddressFv | fz10h complete nullable text-width helper with actual margin 0 | 154/155 instructions, structural/exact (5, 104)
|
||||
|
||||
movePane_onDrag__Q33ipl5scene7AddressFv | fz10h complete nullable text-width helper with actual margin 1 | 154/155 instructions, structural/exact (5, 104)
|
||||
|
||||
Fz10h structural diagnosis NWC24iCheckDlHeaderConsistency: fetched origin; unit identical to verified baseline origin source; 98.77358%; 212/212 instructions, structural/exact (2, 3); stack ('stwu', 'r1, -0x2c0(r1)') / ('stwu', 'r1, -0x2c0(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h structural diagnosis NWC24iCheckDlHeaderConsistency: fetched origin; unit identical to verified baseline origin source; 98.77358%; 212/212 instructions, structural/exact (2, 3); stack ('stwu', 'r1, -0x2c0(r1)') / ('stwu', 'r1, -0x2c0(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
NWC24iCheckDlHeaderConsistency | fz10h task pointer assigned after parameter snapshots | 212/212 instructions, structural/exact (2, 3)
|
||||
|
||||
NWC24iCheckDlHeaderConsistency | fz10h repair predicate short-circuit expressed as sequential continues | 212/212 instructions, structural/exact (2, 3)
|
||||
|
||||
NWC24iCheckDlHeaderConsistency | fz10h iteration count converted into explicit loop advancement | 214/212 instructions, structural/exact (8, 178)
|
||||
|
||||
Fz10h structural diagnosis AddTaskInternal: fetched origin; unit identical to verified baseline origin source; 97.7182%; 398/401 instructions, structural/exact (20, 323); stack ('stwu', 'r1, -0x30(r1)') / ('stwu', 'r1, -0x30(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
AddTaskInternal | fz10h URL helper local pointer assignment after header validation | 398/401 instructions, structural/exact (20, 323)
|
||||
|
||||
AddTaskInternal | fz10h URL helper positive scheme branches in preserved string order | 399/401 instructions, structural/exact (24, 106)
|
||||
|
||||
AddTaskInternal | fz10h URL helper sentinel guard before count check | 398/401 instructions, structural/exact (25, 328)
|
||||
|
||||
Fz10h structural diagnosis pfd_sddrv_init: fetched origin; unit identical to verified baseline origin source; 92.326385%; 144/144 instructions, structural/exact (18, 31); stack ('stwu', 'r1, -0x20(r1)') / ('stwu', 'r1, -0x20(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
pfd_sddrv_init | fz10h null disk expressed by unsigned pointer-size value | 144/144 instructions, structural/exact (18, 31)
|
||||
|
||||
pfd_sddrv_init | fz10h already initialized return expressed as positive disk mismatch branch | 144/144 instructions, structural/exact (18, 31)
|
||||
|
||||
pfd_sddrv_init | fz10h disk binding and initialization flag completed through alias to driver state | 144/144 instructions, structural/exact (18, 31)
|
||||
|
||||
Fz10h structural diagnosis pfd_sddrv_finalize: fetched origin; unit identical to verified baseline origin source; 92.63158%; 57/57 instructions, structural/exact (6, 4); stack ('stwu', 'r1, -0x10(r1)') / ('stwu', 'r1, -0x10(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
pfd_sddrv_finalize | fz10h final flags use existing immutable-info accessor boundary | 57/57 instructions, structural/exact (6, 4)
|
||||
|
||||
pfd_sddrv_finalize | fz10h final flags completed through genuine local state alias | 57/57 instructions, structural/exact (6, 4)
|
||||
|
||||
pfd_sddrv_finalize | fz10h final flags assignment consumes result temporary after unmount completes | 57/57 instructions, structural/exact (6, 4)
|
||||
|
||||
Fz10h structural diagnosis pfd_sddrv_get_total_sectors: fetched origin; unit identical to verified baseline origin source; 99.5%; 80/80 instructions, structural/exact (0, 6); stack ('stwu', 'r1, -0x30(r1)') / ('stwu', 'r1, -0x30(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
pfd_sddrv_get_total_sectors | fz10h validated exponent adjusted in its own halfword local before shifting | 80/80 instructions, structural/exact (0, 6)
|
||||
|
||||
pfd_sddrv_get_total_sectors | fz10h factor consumed as direct halfword shifted expression | 80/80 instructions, structural/exact (3, 10)
|
||||
|
||||
pfd_sddrv_get_total_sectors | fz10h finished block size local reused for factor exponent | 80/80 instructions, structural/exact (0, 6)
|
||||
|
||||
Fz10h structural diagnosis pfd_sddrv_store_mbr_buf: fetched origin; unit identical to verified baseline origin source; 99.75247%; 202/202 instructions, structural/exact (0, 9); stack ('stwu', 'r1, -0x40(r1)') / ('stwu', 'r1, -0x40(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
pfd_sddrv_store_mbr_buf | fz10h requested sector temporary receives CHS sectors per cylinder after table lookup | 202/202 instructions, structural/exact (0, 18)
|
||||
|
||||
pfd_sddrv_store_mbr_buf | fz10h geometry operands load root entries before fat copies | 202/202 instructions, structural/exact (0, 9)
|
||||
|
||||
pfd_sddrv_store_mbr_buf | fz10h completed table iteration index receives partition start value | 202/202 instructions, structural/exact (0, 13)
|
||||
|
||||
Fz10h structural diagnosis pfd_sddrv_build_fat32_mbr_bpb: fetched origin; unit identical to verified baseline origin source; 94.75225%; 230/222 instructions, structural/exact (24, 122); stack ('stwu', 'r1, -0x40(r1)') / ('stwu', 'r1, -0x40(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
pfd_sddrv_build_fat32_mbr_bpb | fz10h reserved helper consumes genuine memset destination return | 229/222 instructions, structural/exact (23, 122)
|
||||
|
||||
pfd_sddrv_build_fat32_mbr_bpb | fz10h reserved helper takes typed boot-sector pointer | 230/222 instructions, structural/exact (26, 122)
|
||||
|
||||
pfd_sddrv_build_fat32_mbr_bpb | fz10h reserved helper positive null guard with actual status local | 230/222 instructions, structural/exact (24, 122)
|
||||
|
||||
Fz10h structural diagnosis movePane_onDrag__Q33ipl5scene7AddressFv: fetched origin; unit identical to verified baseline origin source; 95.70968%; 154/155 instructions, structural/exact (7, 104); stack ('stwu', 'r1, -0x90(r1)') / ('stwu', 'r1, -0x90(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
movePane_onDrag__Q33ipl5scene7AddressFv | fz10h nullable text nested positive boolean switches | 160/155 instructions, structural/exact (12, 117)
|
||||
|
||||
movePane_onDrag__Q33ipl5scene7AddressFv | fz10h nullable text nested negative boolean switches | 158/155 instructions, structural/exact (10, 114)
|
||||
|
||||
movePane_onDrag__Q33ipl5scene7AddressFv | fz10h nullable text inner boolean switch with outer positive guard | 157/155 instructions, structural/exact (6, 103)
|
||||
|
||||
movePane_onDrag__Q33ipl5scene7AddressFv | fz10h nullable text inner switch consumes base translation for right edge | 158/155 instructions, structural/exact (8, 104)
|
||||
|
||||
movePane_onDrag__Q33ipl5scene7AddressFv | fz10h nullable text inner switch consumes projection x for right edge | 158/155 instructions, structural/exact (8, 104)
|
||||
|
||||
Fz10h structural diagnosis NWC24iCheckDlHeaderConsistency: fetched origin; unit identical to verified baseline origin source; 98.77358%; 212/212 instructions, structural/exact (2, 3); stack ('stwu', 'r1, -0x2c0(r1)') / ('stwu', 'r1, -0x2c0(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
NWC24iCheckDlHeaderConsistency | fz10h complete consistency helper task workspace first | 212/212 instructions, structural/exact (5, 6)
|
||||
|
||||
NWC24iCheckDlHeaderConsistency | fz10h complete consistency helper header then workspace | 212/212 instructions, structural/exact (5, 6)
|
||||
|
||||
NWC24iCheckDlHeaderConsistency | fz10h complete consistency helper repair then workspace | 212/212 instructions, structural/exact (5, 6)
|
||||
|
||||
NWC24iCheckDlHeaderConsistency | fz10h complete consistency helper workspace last | 212/212 instructions, structural/exact (5, 6)
|
||||
|
||||
Fz10h structural diagnosis huffmanCoder__9CArGBAOdhFPUsP21SArCDJ_HuffmanRequest: fetched origin; unit identical to verified baseline origin source; 99.07976%; 163/163 instructions, structural/exact (0, 18); stack ('stwu', 'r1, -0x20(r1)') / ('stwu', 'r1, -0x20(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
huffmanCoder__9CArGBAOdhFPUsP21SArCDJ_HuffmanRequest | fz10h complete Huffman emit helper actual low-bit payload first | 163/163 instructions, structural/exact (0, 21)
|
||||
|
||||
huffmanCoder__9CArGBAOdhFPUsP21SArCDJ_HuffmanRequest | fz10h complete Huffman emit helper actual prefix first | 163/163 instructions, structural/exact (0, 18)
|
||||
|
||||
huffmanCoder__9CArGBAOdhFPUsP21SArCDJ_HuffmanRequest | fz10h complete Huffman emit helper value formal before code | 163/163 instructions, structural/exact (0, 21)
|
||||
|
||||
huffmanCoder__9CArGBAOdhFPUsP21SArCDJ_HuffmanRequest | fz10h completed magnitude becomes payload and code becomes prefix length | 163/163 instructions, structural/exact (0, 9)
|
||||
|
||||
Fz10h structural diagnosis movePane_onDrag__Q33ipl5scene7AddressFv: fetched origin; unit identical to verified baseline origin source; 95.70968%; 154/155 instructions, structural/exact (7, 104); stack ('stwu', 'r1, -0x90(r1)') / ('stwu', 'r1, -0x90(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
movePane_onDrag__Q33ipl5scene7AddressFv | fz10h nullable text pointer switches preserve default branches | 153/155 instructions, structural/exact (4, 100)
|
||||
|
||||
movePane_onDrag__Q33ipl5scene7AddressFv | fz10h nullable text single-pass loop with early exits | 153/155 instructions, structural/exact (4, 100)
|
||||
|
||||
movePane_onDrag__Q33ipl5scene7AddressFv | fz10h nullable text negative guards and positive else bodies | 153/155 instructions, structural/exact (4, 100)
|
||||
|
||||
Fz10h structural diagnosis huffmanCoder__9CArGBAOdhFPUsP21SArCDJ_HuffmanRequest: fetched origin; unit identical to verified baseline origin source; 99.07976%; 163/163 instructions, structural/exact (0, 18); stack ('stwu', 'r1, -0x20(r1)') / ('stwu', 'r1, -0x20(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
huffmanCoder__9CArGBAOdhFPUsP21SArCDJ_HuffmanRequest | fz10h consumed code prefix length with actual payload first OR operand | 163/163 instructions, structural/exact (0, 0)
|
||||
|
||||
Fz10h exact gain: huffmanCoder payload is computed using the finished magnitude temporary, payload first in the OR, and code is consumed as its prefix length before EmitBit. This fixes all 18 original differences, including the code/payload registers and OR operands. Fresh ctxdiff 163/163, diffs 0; exact-name objdiff 100%; string pool 10/10 identical. No real function, data extent, symbol name, compiler flags, or inline assembly changed.
|
||||
Fz10h full clean ODH gate before committing gain:
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/system/odh] pool: IDENTICAL
|
||||
[src/system/odh] objdiff: code 8972/14684 data 6360/6360 functions 24/28 fuzzy 99.4457 linked code 0
|
||||
[src/system/odh] instruction-exact functions: 24/28
|
||||
[src/system/odh] section .data size 464 match 100.0
|
||||
[src/system/odh] section .rodata size 5856 match 100.0
|
||||
[src/system/odh] section .sdata2 size 40 match 100.0
|
||||
[src/system/odh] section .text size 14684 match 99.445656
|
||||
[src/system/odh] below 100: cdj_c_colorConv__9CArGBAOdhFP16SArCDJ_OdhMasterPUci 98.63636
|
||||
[src/system/odh] below 100: LineConv11__9CArGBAOdhFPUcPUcPUcPUcUsUsPCli 98.08219
|
||||
[src/system/odh] below 100: cdj_d_decompressLoop__9CArGBAOdhFP16SArCDJ_OdhMasterii 99.67186
|
||||
[src/system/odh] below 100: huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl 95.57189
|
||||
[src/system/odh] baseline: code 8320/14684 data 6360 functions 23 fuzzy 99.4048
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 90.46720 -> 90.48897
|
||||
global fuzzy_match_percent: 99.56565 -> 99.56587
|
||||
global complete_code_percent: 70.30611 -> 70.30611
|
||||
global matched_data_percent: 99.36639 -> 99.36639
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
Fz10h structural diagnosis cdj_c_colorConv__9CArGBAOdhFP16SArCDJ_OdhMasterPUci: fetched origin; unit identical to verified baseline origin source; 98.63636%; 77/77 instructions, structural/exact (0, 18); stack ('stwu', 'r1, -0x50(r1)') / ('stwu', 'r1, -0x50(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h register allocation last, official declsearch cdj_c_colorConv__9CArGBAOdhFP16SArCDJ_OdhMasterPUci: (0, 18)
|
||||
```text
|
||||
declaration block:
|
||||
u32 paddedWidth;
|
||||
u16 width;
|
||||
u16 height;
|
||||
u8* workPlane;
|
||||
int sourceStride;
|
||||
u8* crPlane;
|
||||
u8* cbPlane;
|
||||
u16* dimensions;
|
||||
int rowIndex;
|
||||
int i;
|
||||
u16 dimension;
|
||||
u16 paddedDimensions[2];
|
||||
start (0, 18)
|
||||
best (0, 18) after 80 builds; source restored; best order was:
|
||||
u32 paddedWidth;
|
||||
u16 width;
|
||||
u16 height;
|
||||
u8* workPlane;
|
||||
int sourceStride;
|
||||
u8* crPlane;
|
||||
u8* cbPlane;
|
||||
u16* dimensions;
|
||||
int rowIndex;
|
||||
int i;
|
||||
u16 dimension;
|
||||
u16 paddedDimensions[2];
|
||||
```
|
||||
|
||||
Fz10h structural diagnosis LineConv11__9CArGBAOdhFPUcPUcPUcPUcUsUsPCli: fetched origin; unit identical to verified baseline origin source; 98.08219%; 146/146 instructions, structural/exact (2, 12); stack ('stwu', 'r1, -0x60(r1)') / ('stwu', 'r1, -0x60(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h register allocation last, official declsearch LineConv11__9CArGBAOdhFPUcPUcPUcPUcUsUsPCli: (2, 12)
|
||||
```text
|
||||
declaration block:
|
||||
u32 planeSize = (u32)width * (u32)height;
|
||||
const s32* table = (const s32*)conversionTable;
|
||||
u32 pixelIndex = 0;
|
||||
start (2, 12)
|
||||
best (2, 12) after 6 builds; source restored; best order was:
|
||||
u32 planeSize = (u32)width * (u32)height;
|
||||
const s32* table = (const s32*)conversionTable;
|
||||
u32 pixelIndex = 0;
|
||||
```
|
||||
|
||||
Fz10h structural diagnosis cdj_d_decompressLoop__9CArGBAOdhFP16SArCDJ_OdhMasterii: fetched origin; unit identical to verified baseline origin source; 99.67186%; 899/899 instructions, structural/exact (0, 43); stack ('stwu', 'r1, -0x50(r1)') / ('stwu', 'r1, -0x50(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h register allocation last, official declsearch cdj_d_decompressLoop__9CArGBAOdhFP16SArCDJ_OdhMasterii: (0, 43)
|
||||
```text
|
||||
declaration block:
|
||||
int blockStride;
|
||||
int workBufferSize = workSize;
|
||||
u8 xSampling;
|
||||
u8 coefficientIndex;
|
||||
u16 blockWidth;
|
||||
int blockRowStride;
|
||||
int planeOffset;
|
||||
u32 sourceLimit = srcSize;
|
||||
int statusOrOffset;
|
||||
u16 blockX;
|
||||
int rowStride;
|
||||
int blockRowSize;
|
||||
int naturalIndex;
|
||||
int requiredBlockEnd;
|
||||
start (0, 43)
|
||||
best (0, 43) after 80 builds; source restored; best order was:
|
||||
int blockStride;
|
||||
int workBufferSize = workSize;
|
||||
u8 xSampling;
|
||||
u8 coefficientIndex;
|
||||
u16 blockWidth;
|
||||
int blockRowStride;
|
||||
int planeOffset;
|
||||
u32 sourceLimit = srcSize;
|
||||
int statusOrOffset;
|
||||
u16 blockX;
|
||||
int rowStride;
|
||||
int blockRowSize;
|
||||
int naturalIndex;
|
||||
int requiredBlockEnd;
|
||||
```
|
||||
|
||||
Fz10h structural diagnosis huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl: fetched origin; unit identical to verified baseline origin source; 95.57189%; 306/306 instructions, structural/exact (0, 171); stack ('stwu', 'r1, -0x30(r1)') / ('stwu', 'r1, -0x30(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h register allocation last, official declsearch huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl: (0, 171)
|
||||
```text
|
||||
declaration block:
|
||||
u32 bitBuffer;
|
||||
u32 tableCount;
|
||||
s32 decodeResult;
|
||||
int bitIndex;
|
||||
s32 maximumBitLength;
|
||||
int maxHuffmanBits;
|
||||
u16 tableEntry;
|
||||
s32 valueCategory;
|
||||
u32 tableIndex;
|
||||
u32 magnitudeMask;
|
||||
int bytesConsumed;
|
||||
u8* sourceCursor;
|
||||
u32 decodedSymbol;
|
||||
u32 bitCountAndMask;
|
||||
start (0, 171)
|
||||
best (0, 171) after 80 builds; source restored; best order was:
|
||||
u32 bitBuffer;
|
||||
u32 tableCount;
|
||||
s32 decodeResult;
|
||||
int bitIndex;
|
||||
s32 maximumBitLength;
|
||||
int maxHuffmanBits;
|
||||
u16 tableEntry;
|
||||
s32 valueCategory;
|
||||
u32 tableIndex;
|
||||
u32 magnitudeMask;
|
||||
int bytesConsumed;
|
||||
u8* sourceCursor;
|
||||
u32 decodedSymbol;
|
||||
u32 bitCountAndMask;
|
||||
```
|
||||
|
||||
Fz10h structural diagnosis NWC24InitDlTask: fetched origin; unit identical to verified baseline origin source; 98.923615%; 144/144 instructions, structural/exact (0, 31); stack ('stwu', 'r1, -0x60(r1)') / ('stwu', 'r1, -0x60(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h register allocation last, official declsearch NWC24InitDlTask: (0, 31)
|
||||
```text
|
||||
declaration block:
|
||||
char homePath[64] = {0};
|
||||
u32 nwc24IdHigh;
|
||||
u32 nwc24IdLow;
|
||||
DlTaskData* task;
|
||||
DlTaskListHeader* header;
|
||||
NWC24Err result;
|
||||
BOOL allowed;
|
||||
BOOL useContentFile;
|
||||
start (0, 31)
|
||||
best (0, 31) after 57 builds; source restored; best order was:
|
||||
char homePath[64] = {0};
|
||||
u32 nwc24IdHigh;
|
||||
u32 nwc24IdLow;
|
||||
DlTaskData* task;
|
||||
DlTaskListHeader* header;
|
||||
NWC24Err result;
|
||||
BOOL allowed;
|
||||
BOOL useContentFile;
|
||||
```
|
||||
|
||||
Fz10h structural diagnosis NWC24IterateDlTask: fetched origin; unit identical to verified baseline origin source; 99.303795%; 79/79 instructions, structural/exact (0, 10); stack ('lwz', 'r5, 0(0)') / ('lwz', 'r5, 0(0)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h register allocation last, official declsearch NWC24IterateDlTask: (0, 10)
|
||||
```text
|
||||
declaration block:
|
||||
DlTaskListHeader* entriesHeader;
|
||||
NWC24Work* work;
|
||||
u16 taskId;
|
||||
u16 maxTaskCount;
|
||||
DlTaskListHeader* header;
|
||||
NWC24Err result;
|
||||
start (0, 10)
|
||||
best (0, 10) after 31 builds; source restored; best order was:
|
||||
DlTaskListHeader* entriesHeader;
|
||||
NWC24Work* work;
|
||||
u16 taskId;
|
||||
u16 maxTaskCount;
|
||||
DlTaskListHeader* header;
|
||||
NWC24Err result;
|
||||
```
|
||||
|
||||
Fz10h structural diagnosis NWC24UpdateDlTask: fetched origin; unit identical to verified baseline origin source; 95.00395%; 249/253 instructions, structural/exact (19, 250); stack ('stwu', 'r1, -0x30(r1)') / ('stwu', 'r1, -0x20(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h register allocation last, official declsearch NWC24UpdateDlTask: (19, 250)
|
||||
```text
|
||||
declaration block:
|
||||
DlTaskData* task = (DlTaskData*)dlTask;
|
||||
DlTaskListHeader* header;
|
||||
u16 taskId;
|
||||
OSTime universalTime;
|
||||
NWC24Err result;
|
||||
start (19, 250)
|
||||
best (19, 250) after 21 builds; source restored; best order was:
|
||||
DlTaskData* task = (DlTaskData*)dlTask;
|
||||
DlTaskListHeader* header;
|
||||
u16 taskId;
|
||||
OSTime universalTime;
|
||||
NWC24Err result;
|
||||
```
|
||||
|
||||
Fz10h structural diagnosis NWC24iCheckDlHeaderConsistency: fetched origin; unit identical to verified baseline origin source; 98.77358%; 212/212 instructions, structural/exact (2, 3); stack ('stwu', 'r1, -0x2c0(r1)') / ('stwu', 'r1, -0x2c0(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h register allocation last, official declsearch NWC24iCheckDlHeaderConsistency (score-only: insufficient independent leading declarations or call/declaration dependency): (2, 3)
|
||||
```text
|
||||
structural 2 exact 3
|
||||
```
|
||||
|
||||
Fz10h structural diagnosis AddTaskInternal: fetched origin; unit identical to verified baseline origin source; 97.7182%; 398/401 instructions, structural/exact (20, 323); stack ('stwu', 'r1, -0x30(r1)') / ('stwu', 'r1, -0x30(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h register allocation last, official declsearch AddTaskInternal: (20, 323)
|
||||
```text
|
||||
declaration block:
|
||||
DlTaskData* task = (DlTaskData*)dlTask;
|
||||
NWC24Err result;
|
||||
start (20, 323)
|
||||
best (20, 323) after 2 builds; source restored; best order was:
|
||||
DlTaskData* task = (DlTaskData*)dlTask;
|
||||
NWC24Err result;
|
||||
```
|
||||
|
||||
Fz10h structural diagnosis start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface: fetched origin; unit identical to verified baseline origin source; 99.34978%; 222/223 instructions, structural/exact (4, 200); stack ('stwu', 'r1, -0x40(r1)') / ('stwu', 'r1, -0x40(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h register allocation last, official declsearch start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface (score-only: insufficient independent leading declarations or call/declaration dependency): (4, 200)
|
||||
```text
|
||||
structural 4 exact 200
|
||||
```
|
||||
|
||||
Fz10h structural diagnosis onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface: fetched origin; unit identical to verified baseline origin source; 97.662964%; 271/270 instructions, structural/exact (18, 152); stack ('stwu', 'r1, -0x20(r1)') / ('stwu', 'r1, -0x30(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h register allocation last, official declsearch onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface (score-only: insufficient independent leading declarations or call/declaration dependency): (18, 152)
|
||||
```text
|
||||
structural 18 exact 152
|
||||
```
|
||||
|
||||
Fz10h structural diagnosis movePane_onDrag__Q33ipl5scene7AddressFv: fetched origin; unit identical to verified baseline origin source; 95.70968%; 154/155 instructions, structural/exact (7, 104); stack ('stwu', 'r1, -0x90(r1)') / ('stwu', 'r1, -0x90(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h register allocation last, official declsearch movePane_onDrag__Q33ipl5scene7AddressFv (score-only: insufficient independent leading declarations or call/declaration dependency): (7, 104)
|
||||
```text
|
||||
structural 7 exact 104
|
||||
```
|
||||
|
||||
Fz10h structural diagnosis update__Q33ipl5scene15FriendListCacheFUlPCwUx: fetched origin; unit identical to verified baseline origin source; 81.35%; 36/40 instructions, structural/exact (19, 34); stack ('stwu', 'r1, -0x20(r1)') / ('stwu', 'r1, -0x20(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h register allocation last, official declsearch update__Q33ipl5scene15FriendListCacheFUlPCwUx (score-only: insufficient independent leading declarations or call/declaration dependency): (19, 34)
|
||||
```text
|
||||
structural 19 exact 34
|
||||
```
|
||||
|
||||
Fz10h structural diagnosis pfd_sddrv_init: fetched origin; unit identical to verified baseline origin source; 92.326385%; 144/144 instructions, structural/exact (18, 31); stack ('stwu', 'r1, -0x20(r1)') / ('stwu', 'r1, -0x20(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h register allocation last, official declsearch pfd_sddrv_init: (18, 31)
|
||||
```text
|
||||
declaration block:
|
||||
s32 sd_result;
|
||||
SDDev* device;
|
||||
u32 status;
|
||||
start (18, 31)
|
||||
best (18, 31) after 6 builds; source restored; best order was:
|
||||
s32 sd_result;
|
||||
SDDev* device;
|
||||
u32 status;
|
||||
```
|
||||
|
||||
Fz10h structural diagnosis pfd_sddrv_finalize: fetched origin; unit identical to verified baseline origin source; 92.63158%; 57/57 instructions, structural/exact (6, 4); stack ('stwu', 'r1, -0x10(r1)') / ('stwu', 'r1, -0x10(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h register allocation last, official declsearch pfd_sddrv_finalize (score-only: insufficient independent leading declarations or call/declaration dependency): (6, 4)
|
||||
```text
|
||||
structural 6 exact 4
|
||||
```
|
||||
|
||||
Fz10h structural diagnosis pfd_sddrv_get_total_sectors: fetched origin; unit identical to verified baseline origin source; 99.5%; 80/80 instructions, structural/exact (0, 6); stack ('stwu', 'r1, -0x30(r1)') / ('stwu', 'r1, -0x30(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h register allocation last, official declsearch pfd_sddrv_get_total_sectors: (0, 6)
|
||||
```text
|
||||
declaration block:
|
||||
s32 result;
|
||||
u32 csd[4];
|
||||
u32 c_size;
|
||||
u32 cluster_blocks;
|
||||
u32 read_block_length;
|
||||
u16 multiplier;
|
||||
u16 minimum_multiplier;
|
||||
u16 max_multiplier;
|
||||
u16 read_block_size;
|
||||
u16 multiplier_factor;
|
||||
start (0, 6)
|
||||
best (0, 6) after 80 builds; source restored; best order was:
|
||||
s32 result;
|
||||
u32 csd[4];
|
||||
u32 c_size;
|
||||
u32 cluster_blocks;
|
||||
u32 read_block_length;
|
||||
u16 multiplier;
|
||||
u16 minimum_multiplier;
|
||||
u16 max_multiplier;
|
||||
u16 read_block_size;
|
||||
u16 multiplier_factor;
|
||||
```
|
||||
|
||||
Fz10h structural diagnosis pfd_sddrv_store_mbr_buf: fetched origin; unit identical to verified baseline origin source; 99.75247%; 202/202 instructions, structural/exact (0, 9); stack ('stwu', 'r1, -0x40(r1)') / ('stwu', 'r1, -0x40(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h register allocation last, official declsearch pfd_sddrv_store_mbr_buf: (0, 9)
|
||||
```text
|
||||
declaration block:
|
||||
PFD_SDDRV_SIZE_SETTINGS settings;
|
||||
PFD_SDDRV_MBR* master_boot_record;
|
||||
PFD_SDDRV_PARTITION_ENTRY* partition;
|
||||
u32 entry_index;
|
||||
u32 requested_sectors;
|
||||
const PFD_SDDRV_SIZE_DEPEND* size_entry;
|
||||
s32 result;
|
||||
u8 partition_type;
|
||||
u8 start_head;
|
||||
u16 start_sector;
|
||||
u16 start_cylinder;
|
||||
u8 end_head;
|
||||
u16 end_sector;
|
||||
u16 end_cylinder;
|
||||
start (0, 9)
|
||||
best (0, 9) after 80 builds; source restored; best order was:
|
||||
PFD_SDDRV_SIZE_SETTINGS settings;
|
||||
PFD_SDDRV_MBR* master_boot_record;
|
||||
PFD_SDDRV_PARTITION_ENTRY* partition;
|
||||
u32 entry_index;
|
||||
u32 requested_sectors;
|
||||
const PFD_SDDRV_SIZE_DEPEND* size_entry;
|
||||
s32 result;
|
||||
u8 partition_type;
|
||||
u8 start_head;
|
||||
u16 start_sector;
|
||||
u16 start_cylinder;
|
||||
u8 end_head;
|
||||
u16 end_sector;
|
||||
u16 end_cylinder;
|
||||
```
|
||||
|
||||
Fz10h structural diagnosis pfd_sddrv_build_fat32_mbr_bpb: fetched origin; unit identical to verified baseline origin source; 94.75225%; 230/222 instructions, structural/exact (24, 122); stack ('stwu', 'r1, -0x40(r1)') / ('stwu', 'r1, -0x40(r1)'). Target/source disasm and ctxdiff saved in /tmp.
|
||||
|
||||
Fz10h register allocation last, official declsearch pfd_sddrv_build_fat32_mbr_bpb: (24, 122)
|
||||
```text
|
||||
declaration block:
|
||||
PFD_SDDRV_FORMAT_DATA format_data;
|
||||
s32 result;
|
||||
start (24, 122)
|
||||
best (24, 122) after 2 builds; source restored; best order was:
|
||||
PFD_SDDRV_FORMAT_DATA format_data;
|
||||
s32 result;
|
||||
```
|
||||
|
||||
## Fz10h final completion audit
|
||||
Instruction-exact / matched code bytes / matched data bytes before -> after:
|
||||
libs/RVL_SDK/src/vi/vi: 29/30 / 9944 / 1944 -> 29/30 / 9944 / 1944
|
||||
libs/RVLMiddleware/eZiText/src/clib/zi8dawg: 6/6 / 4868 / 120 -> 6/6 / 4868 / 120
|
||||
src/iplwww/www_wiisetting: 20/21 / 3740 / 3856 -> 20/21 / 3740 / 3856
|
||||
libs/RVLMiddleware/eZiText/src/clib/zi8getc2: 15/17 / 6360 / 332 -> 15/17 / 6360 / 332
|
||||
src/keyboard/MyTiManager: 91/91 / 20196 / 148 -> 91/91 / 20196 / 148
|
||||
src/system/odh: 23/28 / 8320 / 6360 -> 24/28 / 8972 / 6360
|
||||
libs/RevoEX/src/nwc24/NWC24Download: 25/30 / 8140 / 80 -> 25/30 / 8140 / 80
|
||||
src/scene/address/iplAddress: 96/101 / 21236 / 1964 -> 96/101 / 21236 / 1964
|
||||
libs/RVL_SDK/src/fa/driver/sd_drv: 21/26 / 8940 / 3592 -> 21/26 / 8940 / 3592
|
||||
Remaining functions; distinct successful fz10h source trials (invalid macro clones and declsearch permutations excluded):
|
||||
VIInit | 99.7929% | height/top clipping/shared-zero register cycle; 338/338, frame 0x30 | 5 valid distinct source attempts; final structural/exact (0, 14).
|
||||
Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue | 99.86043% | security buffer/count and European-country loop index registers; 609/609, frame 0xd0 | 10 valid distinct source attempts; final structural/exact (0, 14).
|
||||
Zi8GetDataSignature | 99.347824% | destination/language/signature saved-register cycle; 69/69, frame 0x30 | 7 valid distinct source attempts; final structural/exact (0, 9).
|
||||
Zi8IsDupWChar | 99.36508% | character/duplicate saved-register swap; 63/63, frame 0x20 | 7 valid distinct source attempts; final structural/exact (0, 8).
|
||||
cdj_c_colorConv__9CArGBAOdhFP16SArCDJ_OdhMasterPUci | 98.63636% | padding temporary and chroma/table saved-register cycles; 77/77, frame 0x50 | 4 valid distinct source attempts; final structural/exact (0, 18).
|
||||
LineConv11__9CArGBAOdhFPUcPUcPUcPUcUsUsPCli | 98.08219% | floating-constant load scheduling and RGB source/pixel registers; 146/146, frame 0x60 | 3 valid distinct source attempts; final structural/exact (2, 12).
|
||||
cdj_d_decompressLoop__9CArGBAOdhFP16SArCDJ_OdhMasterii | 99.67186% | row/block stride and block offset registers and operand order; 899/899, frame 0x50 | 3 valid distinct source attempts; final structural/exact (0, 43).
|
||||
huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl | 95.57189% | Huffman traversal, bit buffer, mask and coefficient register allocation; 306/306, frame 0x30 | 3 valid distinct source attempts; final structural/exact (0, 171).
|
||||
NWC24InitDlTask | 98.923615% | home identifier, task/header and validation saved-register allocation; 144/144, frame 0x60 | 3 valid distinct source attempts; final structural/exact (0, 31).
|
||||
NWC24IterateDlTask | 99.303795% | entry/header/index registers; 79/79, leaf | 3 valid distinct source attempts; final structural/exact (0, 10).
|
||||
NWC24UpdateDlTask | 95.00395% | inline helper lifetime adds saved register/frame and different retry branch; 249/253, frame 0x30 versus 0x20 | 4 valid distinct source attempts; final structural/exact (19, 250).
|
||||
NWC24iCheckDlHeaderConsistency | 98.77358% | workspace address scheduled after parameter copies; only prologue instructions 5-7 differ, 212/212, frame 0x2c0 | 7 valid distinct source attempts; final structural/exact (2, 3).
|
||||
AddTaskInternal | 97.7182% | URL validation and purge/update helper branches; 398/401, frame 0x30 | 3 valid distinct source attempts; final structural/exact (20, 323).
|
||||
start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface | 99.34978% | state/mode guard branch; correct nested switches give 223/223 with seven icon/pane register differences | 4 valid distinct source attempts; final structural/exact (4, 200).
|
||||
onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface | 97.662964% | controller/null guards and saved-register frame; 271/270, frame 0x20 versus 0x30 | 3 valid distinct source attempts; final structural/exact (18, 152).
|
||||
movePane_onDrag__Q33ipl5scene7AddressFv | 95.70968% | text null-guard branches, successful-branch margin, projection floating scheduling; 154/155, frame 0x90; corrected margin trials remain fuzzy | 17 valid distinct source attempts; final structural/exact (7, 104).
|
||||
update__Q33ipl5scene15FriendListCacheFUlPCwUx | 81.35% | friend record address retained across calls instead of recalculated; 36/40, frame 0x20 | 3 valid distinct source attempts; final structural/exact (19, 34).
|
||||
pfd_sddrv_init | 92.326385% | null comparison, same-disk return and state-store scheduling; 144/144, frame 0x20 | 3 valid distinct source attempts; final structural/exact (18, 31).
|
||||
pfd_sddrv_finalize | 92.63158% | flag-mask and media-clear store scheduling; four differences, 57/57, frame 0x10 | 3 valid distinct source attempts; final structural/exact (6, 4).
|
||||
pfd_sddrv_get_total_sectors | 99.5% | factor/exponent registers; six differences, 80/80, frame 0x30 | 3 valid distinct source attempts; final structural/exact (0, 6).
|
||||
pfd_sddrv_store_mbr_buf | 99.75247% | geometry product and start-sector register swap; nine differences, 202/202, frame 0x40 | 3 valid distinct source attempts; final structural/exact (0, 9).
|
||||
pfd_sddrv_build_fat32_mbr_bpb | 94.75225% | reserved-sector inline null guard and retained error tail; 230/222, frame 0x40 | 3 valid distinct source attempts; final structural/exact (24, 122).
|
||||
OPEN FUNCTION AUDIT PASS: 22 remaining functions each have at least three distinct successful-build source trials this round. Final official declsearch followed structural/helper/operand trials. Dawg was already exact in fetched main and was skipped. Every non-exact source trial was restored.
|
||||
Gain commit 276d3c02: huffmanCoder only, ODH 23 -> 24 instruction-exact, code 8320 -> 8972; no data or configuration edits.
|
||||
Uncertainty: MyTiManager unreferenced 40-byte target tail ownership remains unproven. Source weak Animation vtable emission is ignored. No unjustified data rename or extent change.
|
||||
Final full non-quick gate over all nine owned units, verbatim:
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/vi/vi] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/vi/vi] objdiff: code 9944/11296 data 1944/1944 functions 29/30 fuzzy 99.9752 linked code 0
|
||||
[libs/RVL_SDK/src/vi/vi] instruction-exact functions: 29/30
|
||||
[libs/RVL_SDK/src/vi/vi] section .bss size 368 match 100.0
|
||||
[libs/RVL_SDK/src/vi/vi] section .data size 1368 match 100.0
|
||||
[libs/RVL_SDK/src/vi/vi] section .sbss size 176 match 100.0
|
||||
[libs/RVL_SDK/src/vi/vi] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/vi/vi] section .text size 11296 match 99.97521
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIInit 99.7929
|
||||
[libs/RVL_SDK/src/vi/vi] baseline: code 9944/11296 data 1944 functions 29 fuzzy 99.9752
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] objdiff: code 4868/4868 data 120/120 functions 6/6 fuzzy 100.0000 linked code 4868
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] instruction-exact functions: 6/6
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] section .text size 4868 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] section extab size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] section extabindex size 72 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] baseline: code 4868/4868 data 120 functions 6 fuzzy 100.0000
|
||||
[src/iplwww/www_wiisetting] pool: IDENTICAL
|
||||
[src/iplwww/www_wiisetting] objdiff: code 3740/6176 data 3856/3856 functions 20/21 fuzzy 99.9450 linked code 0
|
||||
[src/iplwww/www_wiisetting] instruction-exact functions: 20/21
|
||||
[src/iplwww/www_wiisetting] section .bss size 104 match 100.0
|
||||
[src/iplwww/www_wiisetting] section .data size 2576 match 100.0
|
||||
[src/iplwww/www_wiisetting] section .rodata size 792 match 100.0
|
||||
[src/iplwww/www_wiisetting] section .sbss size 32 match 100.0
|
||||
[src/iplwww/www_wiisetting] section .sdata size 320 match 100.0
|
||||
[src/iplwww/www_wiisetting] section .sdata2 size 32 match 100.0
|
||||
[src/iplwww/www_wiisetting] section .text size 6176 match 99.94495
|
||||
[src/iplwww/www_wiisetting] below 100: Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue 99.86043
|
||||
[src/iplwww/www_wiisetting] baseline: code 3740/6176 data 3856 functions 20 fuzzy 99.9450
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] objdiff: code 6360/6888 data 332/332 functions 15/17 fuzzy 99.9506 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] instruction-exact functions: 15/17
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .data size 80 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .rodata size 16 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sbss2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sdata2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .text size 6888 match 99.95064
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extab size 88 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extabindex size 132 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetDataSignature 99.347824
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8IsDupWChar 99.36508
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] baseline: code 6360/6888 data 332 functions 15 fuzzy 99.9506
|
||||
[src/keyboard/MyTiManager] pool: IDENTICAL
|
||||
[src/keyboard/MyTiManager] objdiff: code 20196/20196 data 148/1132 functions 91/91 fuzzy 100.0000 linked code 20196
|
||||
[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 99.79633
|
||||
[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
|
||||
[src/system/odh] pool: IDENTICAL
|
||||
[src/system/odh] objdiff: code 8972/14684 data 6360/6360 functions 24/28 fuzzy 99.4457 linked code 0
|
||||
[src/system/odh] instruction-exact functions: 24/28
|
||||
[src/system/odh] section .data size 464 match 100.0
|
||||
[src/system/odh] section .rodata size 5856 match 100.0
|
||||
[src/system/odh] section .sdata2 size 40 match 100.0
|
||||
[src/system/odh] section .text size 14684 match 99.445656
|
||||
[src/system/odh] below 100: cdj_c_colorConv__9CArGBAOdhFP16SArCDJ_OdhMasterPUci 98.63636
|
||||
[src/system/odh] below 100: LineConv11__9CArGBAOdhFPUcPUcPUcPUcUsUsPCli 98.08219
|
||||
[src/system/odh] below 100: cdj_d_decompressLoop__9CArGBAOdhFP16SArCDJ_OdhMasterii 99.67186
|
||||
[src/system/odh] below 100: huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl 95.57189
|
||||
[src/system/odh] baseline: code 8320/14684 data 6360 functions 23 fuzzy 99.4048
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] objdiff: code 8140/12496 data 80/80 functions 25/30 fuzzy 99.1521 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] instruction-exact functions: 25/30
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .data size 56 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sbss size 8 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sdata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .text size 12496 match 99.15205
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24InitDlTask 98.923615
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTask 99.303795
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24UpdateDlTask 95.00395
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCheckDlHeaderConsistency 98.77358
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: AddTaskInternal 97.7182
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] baseline: code 8140/12496 data 80 functions 25 fuzzy 99.1521
|
||||
[src/scene/address/iplAddress] pool: IDENTICAL
|
||||
[src/scene/address/iplAddress] objdiff: code 21236/23988 data 1964/1964 functions 97/101 fuzzy 99.6353 linked code 0
|
||||
[src/scene/address/iplAddress] instruction-exact functions: 96/101
|
||||
[src/scene/address/iplAddress] section .ctors size 4 match 100.0
|
||||
[src/scene/address/iplAddress] section .data size 1880 match 100.0
|
||||
[src/scene/address/iplAddress] section .rodata size 24 match 100.0
|
||||
[src/scene/address/iplAddress] section .sbss size 8 match 100.0
|
||||
[src/scene/address/iplAddress] section .sdata size 16 match 100.0
|
||||
[src/scene/address/iplAddress] section .sdata2 size 32 match 100.0
|
||||
[src/scene/address/iplAddress] section .text size 23988 match 99.635315
|
||||
[src/scene/address/iplAddress] below 100: start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface 99.34978
|
||||
[src/scene/address/iplAddress] below 100: onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface 97.662964
|
||||
[src/scene/address/iplAddress] below 100: movePane_onDrag__Q33ipl5scene7AddressFv 95.70968
|
||||
[src/scene/address/iplAddress] below 100: update__Q33ipl5scene15FriendListCacheFUlPCwUx 81.35
|
||||
[src/scene/address/iplAddress] baseline: code 21236/23988 data 1964 functions 97 fuzzy 99.6353
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] objdiff: code 8940/11760 data 3592/3592 functions 21/26 fuzzy 99.0544 linked code 0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] instruction-exact functions: 21/26
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .bss size 608 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .data size 2576 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .rodata size 368 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .sbss size 40 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .text size 11760 match 99.05442
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_init 92.326385
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_finalize 92.63158
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_get_total_sectors 99.5
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_mbr_buf 99.75247
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_build_fat32_mbr_bpb 94.75225
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] baseline: code 8940/11760 data 3592 functions 21 fuzzy 99.0544
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 90.46720 -> 90.48897
|
||||
global fuzzy_match_percent: 99.56565 -> 99.56587
|
||||
global complete_code_percent: 70.30611 -> 70.30611
|
||||
global matched_data_percent: 99.36639 -> 99.36639
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
@@ -3582,3 +3582,360 @@ KBDSetModState 99.40476%: modifier address versus old value r4/r5 allocation, fo
|
||||
WriteMIMEAttachHeader 99.61957%: type versus disposition lengths and sum result coalescing, five operands.
|
||||
Zi8PrepareMatch 96.319145%: local stack/code layout and component-presence stores without semantic reads, 939/940 instructions.
|
||||
Uncertainty: original source construct responsible for the JPEG two-instruction schedule and zprepare dead component flag is unresolved. No unsupported volatility or dummy field retained. Current-round exact source commit: 7ea5a033.
|
||||
|
||||
# Xhigh continuation fz15g
|
||||
Fresh branch agent/w1002/sol-fz15g-xhigh from bc303bc36e5ea826ef9da39d6e9c9ed9c79e4ba9. All four owned files identical to origin/main after fetch. All four pools identical before code tuning. Start exact counts NWC 17/18, JPEG 11/13, keyboard 15/21, zprepare 0/1. Previous helper match retained unchanged.
|
||||
|
||||
## fz15g WriteMIMEAttachHeader diagnosis
|
||||
Origin body unchanged; current structural/exact (0, 5), 92/92 instructions. Frame 0x30, five differences at 25/28/30/32/33 map to measured prefix lengths. Library Mail_strlen returns int, while current locals use long typedef s32. No store/reload volatility proof. Test library result types and direct call-expression boundary before register search.
|
||||
- WriteMIMEAttachHeader: strlen result locals use int return type: structural/exact (0, 5) instructions 92/92 first [(25, ('mr', 'r29, r3'), ('mr', 'r30, r3')), (28, ('mr', 'r30, r3'), ('mr', 'r29, r3')), (30, ('add', 'r28, r29, r28'), ('add', 'r30, r30, r28')), (32, ('add', 'r0, r3, r30'), ('add', 'r0, r29, r30'))]
|
||||
- WriteMIMEAttachHeader: formatted byte counts use int return type: structural/exact (0, 5) instructions 92/92 first [(25, ('mr', 'r29, r3'), ('mr', 'r30, r3')), (28, ('mr', 'r30, r3'), ('mr', 'r29, r3')), (30, ('add', 'r28, r29, r28'), ('add', 'r30, r30, r28')), (32, ('add', 'r0, r3, r30'), ('add', 'r0, r29, r30'))]
|
||||
- WriteMIMEAttachHeader: all library return values use int locals: structural/exact (0, 5) instructions 92/92 first [(25, ('mr', 'r29, r3'), ('mr', 'r30, r3')), (28, ('mr', 'r30, r3'), ('mr', 'r29, r3')), (30, ('add', 'r28, r29, r28'), ('add', 'r30, r30, r28')), (32, ('add', 'r0, r3, r30'), ('add', 'r0, r29, r30'))]
|
||||
- WriteMIMEAttachHeader: nested library-call capacity tree 0: structural/exact (0, 0) instructions 92/92 first []
|
||||
|
||||
## fz15g TMCJPEGDEC_set_converterY8U8V8 diagnosis
|
||||
Origin body unchanged; current structural/exact (41, 195), 195/196 instructions. Frame 0x10, 195/196 instructions; target early shared convBuf base r4 is folded into individual work addresses. Extent ends at immediate neighbour; no volatility proof. Test typed sample-block ownership, int dimensions and dimension helper boundary.
|
||||
- TMCJPEGDEC_set_converterY8U8V8: decoder dimensions read through separate const view: structural/exact (41, 195) instructions 195/196
|
||||
- TMCJPEGDEC_set_converterY8U8V8: component and dimensions use C int locals: structural/exact (41, 195) instructions 195/196
|
||||
- TMCJPEGDEC_set_converterY8U8V8: texture dimensions owned by inline state helper: structural/exact (41, 195) instructions 195/196
|
||||
- TMCJPEGDEC_set_converterY8U8V8: conversion sample buffer represented as typed block: structural/exact (41, 195) instructions 195/196
|
||||
|
||||
## fz15g WriteMIMEAttachHeader exact
|
||||
The nested strlen call expression preserves the original evaluation boundary. MWCC evaluates the right operand of the first addition, ContentTxEncA, before ContentTypeA; the expression result now owns the target r30 length sum instead of the scalar encoding local. All five operand differences disappear: 92/92 instructions, ctxdiff diffs 0, identical 9-string pool. Quick full-build gate confirms NWC 18/18 functions, code 8532/8532, data 904/904, all sections 100, no regressions/forbidden/readability. Keep NonMatching classification for this phase as instructed.
|
||||
|
||||
## fz15g TMCJPEGDEC_set_converterY8U8V8 Address arithmetic uses a typed sample-word base, preserving all real buffer offsets and object layout. No loads through reinterpreted word types.
|
||||
|
||||
## fz15g kbdEventHandler diagnosis
|
||||
Origin body unchanged; current structural/exact (0, 5), 186/186 instructions. Frame 0x20, 186/186 instructions. First differing instruction 35 loads report error into r3 versus r5 and then table base r30 versus r3. All later instructions identical; no adjacent stack reload evidence. Test report signedness, explicit enum and readonly pointer view.
|
||||
- TMCJPEGDEC_set_converterY8U8V8: converter buffer viewed as 32-bit sample words: structural/exact (41, 195) instructions 195/196
|
||||
- kbdEventHandler: read report as const char data with unsigned modifier view: structural/exact (22, 106) instructions 192/186
|
||||
- TMCJPEGDEC_set_converterY8U8V8: converter buffer viewed as signed 32-bit sample words: structural/exact (41, 195) instructions 195/196
|
||||
- kbdEventHandler: unsigned error status and signed channel index snapshot: structural/exact (0, 6) instructions 186/186 first [(35, ('lbz', 'r3, 2(r4)'), ('lbz', 'r5, 2(r4)')), (36, ('lis', 'r4, 0'), ('lis', 'r3, 0')), (37, ('mulli', 'r5, r31, 0x268'), ('mulli', 'r4, r31, 0x268')), (38, ('addi', 'r0, r3, 0xff'), ('addi', 'r0, r5, 0xff'))]
|
||||
- kbdEventHandler: report uses readonly void-to-byte input view: structural/exact (0, 5) instructions 186/186 first [(35, ('lbz', 'r3, 2(r4)'), ('lbz', 'r5, 2(r4)')), (36, ('lis', 'r30, 0'), ('lis', 'r3, 0')), (38, ('addi', 'r0, r3, 0xff'), ('addi', 'r0, r5, 0xff')), (39, ('addi', 'r30, r30, 0'), ('addi', 'r3, r3, 0'))]
|
||||
- TMCJPEGDEC_set_converterY8U8V8: converter buffer viewed as 16-bit sample pairs: structural/exact (41, 195) instructions 195/196
|
||||
- kbdEventHandler: report status has explicit HID error enum type: structural/exact (0, 6) instructions 186/186 first [(35, ('lbz', 'r4, 2(r4)'), ('lbz', 'r5, 2(r4)')), (36, ('lis', 'r30, 0'), ('lis', 'r3, 0')), (37, ('mulli', 'r3, r31, 0x268'), ('mulli', 'r4, r31, 0x268')), (38, ('addi', 'r0, r4, 0xff'), ('addi', 'r0, r5, 0xff'))]
|
||||
|
||||
The first const-char report trial changed signed key comparisons and is excluded from the valid attempt count. Re-run with unsigned casts on every report-byte read to preserve HID values 0x80..0xff. No trial was retained.
|
||||
|
||||
## fz15g kbdEventHandler Correct unsigned HID key comparisons in report representation trial.
|
||||
- kbdEventHandler: const char report view with every byte explicitly unsigned: structural/exact (0, 5) instructions 186/186 first [(35, ('lbz', 'r3, 2(r4)'), ('lbz', 'r5, 2(r4)')), (36, ('lis', 'r30, 0'), ('lis', 'r3, 0')), (38, ('addi', 'r0, r3, 0xff'), ('addi', 'r0, r5, 0xff')), (39, ('addi', 'r30, r30, 0'), ('addi', 'r3, r3, 0'))]
|
||||
|
||||
## fz15g kbdProcMod diagnosis
|
||||
Origin body unchanged; current structural/exact (0, 4), 256/256 instructions. Frame 0x20, identical instruction counts. Address/result r4/r5 differ in physical field update. Test modifier union word type and real reserved/lock bit layout; no volatility proof.
|
||||
- kbdProcMod: modifier union uses unsigned int storage and bitfields: structural/exact (0, 4) instructions 256/256 first [(245, ('add', 'r5, r4, r31'), ('add', 'r4, r4, r31')), (246, ('lwz', 'r4, 0x220(r5)'), ('lwz', 'r5, 0x220(r4)')), (247, ('rlwimi', 'r0, r4, 0, 0x1a, 0x1f'), ('rlwimi', 'r0, r5, 0, 0x1a, 0x1f')), (248, ('stw', 'r0, 0x220(r5)'), ('stw', 'r0, 0x220(r4)'))]
|
||||
- kbdProcMod: logical modifier bits split from reserved high bits: structural/exact (0, 4) instructions 256/256 first [(245, ('add', 'r5, r4, r31'), ('add', 'r4, r4, r31')), (246, ('lwz', 'r4, 0x220(r5)'), ('lwz', 'r5, 0x220(r4)')), (247, ('rlwimi', 'r0, r4, 0, 0x1a, 0x1f'), ('rlwimi', 'r0, r5, 0, 0x1a, 0x1f')), (248, ('stw', 'r0, 0x220(r5)'), ('stw', 'r0, 0x220(r4)'))]
|
||||
- kbdProcMod: modifier union scalar follows unsigned int word type: structural/exact (0, 4) instructions 256/256 first [(245, ('add', 'r5, r4, r31'), ('add', 'r4, r4, r31')), (246, ('lwz', 'r4, 0x220(r5)'), ('lwz', 'r5, 0x220(r4)')), (247, ('rlwimi', 'r0, r4, 0, 0x1a, 0x1f'), ('rlwimi', 'r0, r5, 0, 0x1a, 0x1f')), (248, ('stw', 'r0, 0x220(r5)'), ('stw', 'r0, 0x220(r4)'))]
|
||||
- kbdProcMod: modifier union scalar uses signed word representation: structural/exact (0, 4) instructions 256/256 first [(245, ('add', 'r5, r4, r31'), ('add', 'r4, r4, r31')), (246, ('lwz', 'r4, 0x220(r5)'), ('lwz', 'r5, 0x220(r4)')), (247, ('rlwimi', 'r0, r4, 0, 0x1a, 0x1f'), ('rlwimi', 'r0, r5, 0, 0x1a, 0x1f')), (248, ('stw', 'r0, 0x220(r5)'), ('stw', 'r0, 0x220(r4)'))]
|
||||
|
||||
## fz15g TMCJPEG_814F0A58 diagnosis
|
||||
Origin body unchanged; current structural/exact (0, 77), 475/475 instructions. Frame 0x60, 475/475 instructions. Earlier implicit chroma padding and phase-shared tileWidth/xEnd resolves all registers but leaves subfic r6 and generated bound-mask rlwinm exchanged. Test readonly count helper and expression result ownership, not declaration permutations.
|
||||
- kbdProcMod: physical modifier read owned by readonly union helper: structural/exact (0, 4) instructions 256/256 first [(245, ('add', 'r5, r4, r31'), ('add', 'r4, r4, r31')), (246, ('lwz', 'r4, 0x220(r5)'), ('lwz', 'r5, 0x220(r4)')), (247, ('rlwimi', 'r0, r4, 0, 0x1a, 0x1f'), ('rlwimi', 'r0, r5, 0, 0x1a, 0x1f')), (248, ('stw', 'r0, 0x220(r5)'), ('stw', 'r0, 0x220(r4)'))]
|
||||
|
||||
## fz15g KBDSetModState diagnosis
|
||||
Origin body unchanged; current structural/exact (0, 4), 42/42 instructions. Frame 0x10, identical instruction counts. Address/result r4/r5 differ in physical field update. Test modifier union word type and real reserved/lock bit layout; no volatility proof.
|
||||
- TMCJPEG_814F0A58: readonly decoder helper owns chroma sample count: structural/exact (34, 283) instructions 474/475
|
||||
- TMCJPEG_814F0A58: readonly scale factor byte helper owns sample count: structural/exact (34, 283) instructions 474/475
|
||||
- KBDSetModState: modifier union uses unsigned int storage and bitfields: structural/exact (0, 4) instructions 42/42 first [(30, ('add', 'r5, r5, r4'), ('add', 'r4, r5, r4')), (31, ('lwz', 'r4, 0x220(r5)'), ('lwz', 'r5, 0x220(r4)')), (32, ('rlwimi', 'r0, r4, 0, 0x1a, 0x1f'), ('rlwimi', 'r0, r5, 0, 0x1a, 0x1f')), (33, ('stw', 'r0, 0x220(r5)'), ('stw', 'r0, 0x220(r4)'))]
|
||||
- KBDSetModState: logical modifier bits split from reserved high bits: structural/exact (0, 4) instructions 42/42 first [(30, ('add', 'r5, r5, r4'), ('add', 'r4, r5, r4')), (31, ('lwz', 'r4, 0x220(r5)'), ('lwz', 'r5, 0x220(r4)')), (32, ('rlwimi', 'r0, r4, 0, 0x1a, 0x1f'), ('rlwimi', 'r0, r5, 0, 0x1a, 0x1f')), (33, ('stw', 'r0, 0x220(r5)'), ('stw', 'r0, 0x220(r4)'))]
|
||||
- TMCJPEG_814F0A58: chroma width and height initialize from shared helper value: structural/exact (2, 2) instructions 475/475 first [(274, ('rlwinm', 'r0, r26, 0, 0, 0'), ('subfic', 'r6, r6, 8')), (275, ('subfic', 'r6, r6, 8'), ('rlwinm', 'r0, r26, 0, 0, 0'))]
|
||||
- KBDSetModState: modifier union scalar follows unsigned int word type: structural/exact (0, 4) instructions 42/42 first [(30, ('add', 'r5, r5, r4'), ('add', 'r4, r5, r4')), (31, ('lwz', 'r4, 0x220(r5)'), ('lwz', 'r5, 0x220(r4)')), (32, ('rlwimi', 'r0, r4, 0, 0x1a, 0x1f'), ('rlwimi', 'r0, r5, 0, 0x1a, 0x1f')), (33, ('stw', 'r0, 0x220(r5)'), ('stw', 'r0, 0x220(r4)'))]
|
||||
- KBDSetModState: modifier union scalar uses signed word representation: structural/exact (0, 4) instructions 42/42 first [(30, ('add', 'r5, r5, r4'), ('add', 'r4, r5, r4')), (31, ('lwz', 'r4, 0x220(r5)'), ('lwz', 'r5, 0x220(r4)')), (32, ('rlwimi', 'r0, r4, 0, 0x1a, 0x1f'), ('rlwimi', 'r0, r5, 0, 0x1a, 0x1f')), (33, ('stw', 'r0, 0x220(r5)'), ('stw', 'r0, 0x220(r4)'))]
|
||||
- TMCJPEG_814F0A58: phase-shared variables use C int arithmetic: structural/exact (2, 2) instructions 475/475 first [(274, ('rlwinm', 'r0, r26, 0, 0, 0'), ('subfic', 'r6, r6, 8')), (275, ('subfic', 'r6, r6, 8'), ('rlwinm', 'r0, r26, 0, 0, 0'))]
|
||||
- KBDSetModState: physical modifier read owned by readonly union helper: structural/exact (0, 4) instructions 42/42 first [(30, ('add', 'r5, r5, r4'), ('add', 'r4, r5, r4')), (31, ('lwz', 'r4, 0x220(r5)'), ('lwz', 'r5, 0x220(r4)')), (32, ('rlwimi', 'r0, r4, 0, 0x1a, 0x1f'), ('rlwimi', 'r0, r5, 0, 0x1a, 0x1f')), (33, ('stw', 'r0, 0x220(r5)'), ('stw', 'r0, 0x220(r4)'))]
|
||||
- TMCJPEG_814F0A58: phase-shared tile width uses unsigned int arithmetic: structural/exact (2, 2) instructions 475/475 first [(274, ('rlwinm', 'r0, r26, 0, 0, 0'), ('subfic', 'r6, r6, 8')), (275, ('subfic', 'r6, r6, 8'), ('rlwinm', 'r0, r26, 0, 0, 0'))]
|
||||
|
||||
## fz15g kbd_led_handler diagnosis
|
||||
Origin body unchanged; current structural/exact (13, 21), 24/25 instructions. Frame absent, 24/25 instructions. Target reads callback before device release, branches success-first and rematerializes callback index after result selection, then has a final blr. Test index lifetime and positive guard/helper boundaries.
|
||||
- kbd_led_handler: success-first switch with callback index cast at each use: structural/exact (10, 18) instructions 25/25
|
||||
- kbd_led_handler: success-first switch with signed int callback index: structural/exact (10, 18) instructions 25/25
|
||||
- kbd_led_handler: callback completion enclosed by positive presence branch: structural/exact (10, 18) instructions 25/25
|
||||
- kbd_led_handler: ordinary null callback guard with success-first switch: structural/exact (10, 18) instructions 25/25
|
||||
- kbd_led_handler: original callback argument owns final callback lookup: structural/exact (2, 20) instructions 26/25
|
||||
|
||||
## fz15g TMCJPEG_814F0A58 Limit expression/readonly helper change to chroma so exact luma phase is unchanged. Test shared assignment value, nested vertical bound and real factor snapshot.
|
||||
- kbd_led_handler: callback address snapshot before command release: structural/exact (10, 18) instructions 25/25
|
||||
- kbd_led_handler: inline completion helper uses readonly callback argument: structural/exact (9, 19) instructions 26/25
|
||||
- TMCJPEG_814F0A58: chroma count expression chained: structural/exact (2, 2) instructions 475/475 first [(274, ('rlwinm', 'r0, r26, 0, 0, 0'), ('subfic', 'r6, r6, 8')), (275, ('subfic', 'r6, r6, 8'), ('rlwinm', 'r0, r26, 0, 0, 0'))]
|
||||
- TMCJPEG_814F0A58: chroma count expression directbounds: structural/exact (2, 2) instructions 475/475 first [(274, ('rlwinm', 'r0, r26, 0, 0, 0'), ('subfic', 'r6, r6, 8')), (275, ('subfic', 'r6, r6, 8'), ('rlwinm', 'r0, r26, 0, 0, 0'))]
|
||||
- TMCJPEG_814F0A58: chroma count expression scale: structural/exact (2, 2) instructions 475/475 first [(274, ('rlwinm', 'r0, r26, 0, 0, 0'), ('subfic', 'r6, r6, 8')), (275, ('subfic', 'r6, r6, 8'), ('rlwinm', 'r0, r26, 0, 0, 0'))]
|
||||
- TMCJPEG_814F0A58: chroma count expression scoped: structural/exact (2, 2) instructions 475/475 first [(274, ('rlwinm', 'r0, r26, 0, 0, 0'), ('subfic', 'r6, r6, 8')), (275, ('subfic', 'r6, r6, 8'), ('rlwinm', 'r0, r26, 0, 0, 0'))]
|
||||
- TMCJPEG_814F0A58: chroma count expression helper: structural/exact (2, 2) instructions 475/475 first [(274, ('rlwinm', 'r0, r26, 0, 0, 0'), ('subfic', 'r6, r6, 8')), (275, ('subfic', 'r6, r6, 8'), ('rlwinm', 'r0, r26, 0, 0, 0'))]
|
||||
- TMCJPEG_814F0A58: chroma count expression ptrhelper: structural/exact (2, 2) instructions 475/475 first [(274, ('rlwinm', 'r0, r26, 0, 0, 0'), ('subfic', 'r6, r6, 8')), (275, ('subfic', 'r6, r6, 8'), ('rlwinm', 'r0, r26, 0, 0, 0'))]
|
||||
|
||||
## fz15g kbd_led_handler Original-argument tail lookup improved structural distance to two, with 26/25 instructions. Test integer conversion type and distinct completion index scope without casts on memory accesses.
|
||||
- kbd_led_handler: callback tail index representation unsignedint: structural/exact (2, 20) instructions 26/25
|
||||
- kbd_led_handler: callback tail index representation signedint: structural/exact (2, 20) instructions 26/25
|
||||
- kbd_led_handler: callback tail index representation ulong: structural/exact (2, 20) instructions 26/25
|
||||
- kbd_led_handler: callback tail index representation constvoid: structural/exact (2, 20) instructions 26/25
|
||||
- kbd_led_handler: callback tail index representation earlyint: structural/exact (2, 20) instructions 26/25
|
||||
- kbd_led_handler: callback tail index representation scopedidx: structural/exact (2, 20) instructions 26/25
|
||||
Best callback tail candidate disassembly pairs:
|
||||
```
|
||||
0 ('lis', 'r5, 0') | ('lis', 'r5, 0')
|
||||
1 ('lis', 'r7, 0') | ('lis', 'r6, 0')
|
||||
2 ('slwi', 'r0, r4, 3') | ('slwi', 'r0, r4, 3')
|
||||
3 ('li', 'r6, 0') | ('li', 'r8, 0')
|
||||
4 ('addi', 'r5, r5, 0') | ('addi', 'r5, r5, 0')
|
||||
5 ('slwi', 'r8, r4, 5') | ('slwi', 'r7, r4, 5')
|
||||
6 ('lwzx', 'r0, r5, r0') | ('lwzx', 'r0, r5, r0')
|
||||
7 ('addi', 'r7, r7, 0') | ('addi', 'r6, r6, 0')
|
||||
8 ('stwx', 'r6, r7, r8') | ('stwx', 'r8, r6, r7')
|
||||
9 ('cmplw', 'r0, r6') | ('cmplw', 'r0, r8')
|
||||
10 ('beqlr', '') | ('beqlr', '')
|
||||
11 ('cmpwi', 'r3, 1') | ('cmpwi', 'r3, 1')
|
||||
12 ('beq', '8') | ('bne', '12')
|
||||
13 ('b', '12') | ('li', 'r3, 0')
|
||||
14 ('li', 'r3, 0') | ('b', '8')
|
||||
15 ('b', '8') | ('li', 'r3, 7')
|
||||
16 ('li', 'r3, 7') | ('lis', 'r5, 0')
|
||||
17 ('lis', 'r5, 0') | ('slwi', 'r0, r4, 3')
|
||||
18 ('slwi', 'r0, r4, 3') | ('addi', 'r5, r5, 0')
|
||||
19 ('addi', 'r5, r5, 0') | ('lwzx', 'r12, r5, r0')
|
||||
20 ('lwzx', 'r12, r5, r0') | ('add', 'r4, r5, r0')
|
||||
21 ('add', 'r4, r5, r0') | ('lwz', 'r4, 4(r4)')
|
||||
22 ('lwz', 'r4, 4(r4)') | ('mtctr', 'r12')
|
||||
23 ('mtctr', 'r12') | ('bctr', '')
|
||||
24 ('bctr', '') | ('blr', '')
|
||||
25 ('blr', '') | None
|
||||
```
|
||||
|
||||
## fz15g Zi8PrepareMatch diagnosis
|
||||
Origin body unchanged; current structural/exact (36, 889), 939/940 instructions. Target frame 0x70, source 939 versus target 940 instructions. First context-mask init register differs, and target stores component presence at byte 0xf without later reads. Existing -opt off explains stack reloads, so no unsupported volatile/dummy flag added. Test readonly table/request views and scalar expression boundary.
|
||||
- Zi8PrepareMatch: all lookup table fields are readonly byte pointers: structural/exact (36, 897) instructions 938/940
|
||||
- Zi8PrepareMatch: read fields use const input while request count remains writable: structural/exact (43, 692) instructions 944/940
|
||||
- Zi8PrepareMatch: context mask stored as char with explicit unsigned view: structural/exact (37, 834) instructions 940/940
|
||||
- Zi8PrepareMatch: element index advance separated from halfword fetch: structural/exact (44, 889) instructions 939/940
|
||||
- Zi8PrepareMatch: component classifier uses direct boolean branch: structural/exact (36, 889) instructions 939/940
|
||||
|
||||
## fz15g KBDSetLedsAsync diagnosis
|
||||
Origin body unchanged; current structural/exact (14, 70), 80/81 instructions. Target frame 0x20. Reservation loop uses unsigned ordinal and byte offset/CTR; source caches channel multiplication across interrupts and uses 80/81 instructions. Test readonly input helper boundary and typed slot loop, preserving all command record layout.
|
||||
- KBDSetLedsAsync: slot helper rereads channel through const scalar pointer: structural/exact (20, 44) instructions 81/81
|
||||
- KBDSetLedsAsync: slot helper receives channel scalar value: structural/exact (19, 73) instructions 79/81
|
||||
- KBDSetLedsAsync: slot helper receives readonly channel object: structural/exact (19, 73) instructions 79/81
|
||||
- KBDSetLedsAsync: unsigned indexed slot loop uses record device fields: structural/exact (19, 72) instructions 79/81
|
||||
|
||||
## fz15g KBDSetLeds diagnosis
|
||||
Origin body unchanged; current structural/exact (19, 75), 75/79 instructions. Target frame 0x20. Reservation loop uses unsigned ordinal and byte offset/CTR; source caches channel multiplication across interrupts and uses 75/79 instructions. Test readonly input helper boundary and typed slot loop, preserving all command record layout.
|
||||
- KBDSetLeds: slot helper rereads channel through const scalar pointer: structural/exact (48, 75) instructions 82/79
|
||||
- KBDSetLeds: slot helper receives channel scalar value: structural/exact (19, 69) instructions 78/79
|
||||
- KBDSetLeds: slot helper receives readonly channel object: structural/exact (19, 69) instructions 78/79
|
||||
- KBDSetLeds: unsigned indexed slot loop uses record device fields: structural/exact (19, 68) instructions 78/79
|
||||
|
||||
## fz15g kbd_led_handler Combine target true-first if with original-argument index rematerialization. Previous isolated switch contains one extra unconditional branch; if should remove it while preserving final blr.
|
||||
- kbd_led_handler: true-first if plus original-argument completion base: structural/exact (30, 23) instructions 23/25
|
||||
- kbd_led_handler: true-first if plus original-argument completion null: structural/exact (30, 23) instructions 23/25
|
||||
- kbd_led_handler: true-first if plus original-argument completion zero: structural/exact (30, 23) instructions 23/25
|
||||
- kbd_led_handler: true-first if plus original-argument completion constzero: structural/exact (30, 23) instructions 23/25
|
||||
|
||||
## fz15g TMCJPEG_814F0A58 Test actual chroma sample signedness, source increment expression and pointer-add operand order at fixed chroma preheader dependency graph.
|
||||
- kbd_led_handler: true-first if plus original-argument completion callint: structural/exact (30, 23) instructions 23/25
|
||||
- kbd_led_handler: true-first if plus original-argument completion sdk: structural/exact (30, 23) instructions 23/25
|
||||
- TMCJPEG_814F0A58: chroma output pointer initialization nestedstore: structural/exact (101, 408) instructions 473/475
|
||||
- TMCJPEG_814F0A58: chroma output pointer initialization signedsample: structural/exact (2, 2) instructions 475/475 first [(274, ('rlwinm', 'r0, r26, 0, 0, 0'), ('subfic', 'r6, r6, 8')), (275, ('subfic', 'r6, r6, 8'), ('rlwinm', 'r0, r26, 0, 0, 0'))]
|
||||
- TMCJPEG_814F0A58: chroma output pointer initialization paddingneg: structural/exact (2, 2) instructions 475/475 first [(274, ('rlwinm', 'r0, r26, 0, 0, 0'), ('subfic', 'r6, r6, 8')), (275, ('subfic', 'r6, r6, 8'), ('rlwinm', 'r0, r26, 0, 0, 0'))]
|
||||
- TMCJPEG_814F0A58: chroma output pointer initialization pointeradd: structural/exact (2, 2) instructions 475/475 first [(274, ('rlwinm', 'r0, r26, 0, 0, 0'), ('subfic', 'r6, r6, 8')), (275, ('subfic', 'r6, r6, 8'), ('rlwinm', 'r0, r26, 0, 0, 0'))]
|
||||
|
||||
## fz15g TMCJPEG_814F0A58 Test signed-loop unroller boundary and explicit body/iterator forms at the two-instruction preheader plateau.
|
||||
- TMCJPEG_814F0A58: chroma loop shape while: structural/exact (2, 2) instructions 475/475 first [(274, ('rlwinm', 'r0, r26, 0, 0, 0'), ('subfic', 'r6, r6, 8')), (275, ('subfic', 'r6, r6, 8'), ('rlwinm', 'r0, r26, 0, 0, 0'))]
|
||||
- TMCJPEG_814F0A58: chroma loop shape do: structural/exact (204, 413) instructions 305/475
|
||||
|
||||
## fz15g kbd_led_handler Test callback BOOL result ownership and parameter mutation versus separate unsigned result; preserve original argument for final callback index.
|
||||
- TMCJPEG_814F0A58: chroma loop shape commute: structural/exact (2, 2) instructions 475/475 first [(274, ('rlwinm', 'r0, r26, 0, 0, 0'), ('subfic', 'r6, r6, 8')), (275, ('subfic', 'r6, r6, 8'), ('rlwinm', 'r0, r26, 0, 0, 0'))]
|
||||
- kbd_led_handler: completion result lifetime parameter: structural/exact (30, 23) instructions 23/25
|
||||
- kbd_led_handler: completion result lifetime ternary: structural/exact (30, 23) instructions 23/25
|
||||
- TMCJPEG_814F0A58: chroma loop shape ystepfirst: structural/exact (2, 2) instructions 475/475 first [(274, ('rlwinm', 'r0, r26, 0, 0, 0'), ('subfic', 'r6, r6, 8')), (275, ('subfic', 'r6, r6, 8'), ('rlwinm', 'r0, r26, 0, 0, 0'))]
|
||||
- kbd_led_handler: completion result lifetime BOOL: structural/exact (5, 9) instructions 25/25 first [(1, ('lis', 'r7, 0'), ('lis', 'r6, 0')), (3, ('li', 'r6, 0'), ('li', 'r8, 0')), (5, ('slwi', 'r8, r4, 5'), ('slwi', 'r7, r4, 5')), (7, ('addi', 'r7, r7, 0'), ('addi', 'r6, r6, 0'))]
|
||||
- kbd_led_handler: completion result lifetime switchsame: structural/exact (5, 9) instructions 25/25 first [(1, ('lis', 'r7, 0'), ('lis', 'r6, 0')), (3, ('li', 'r6, 0'), ('li', 'r8, 0')), (5, ('slwi', 'r8, r4, 5'), ('slwi', 'r7, r4, 5')), (7, ('addi', 'r7, r7, 0'), ('addi', 'r6, r6, 0'))]
|
||||
- TMCJPEG_814F0A58: chroma loop shape finishcount: structural/exact (2, 2) instructions 475/475 first [(274, ('rlwinm', 'r0, r26, 0, 0, 0'), ('subfic', 'r6, r6, 8')), (275, ('subfic', 'r6, r6, 8'), ('rlwinm', 'r0, r26, 0, 0, 0'))]
|
||||
- kbd_led_handler: completion result lifetime returnhelper: structural/exact (30, 23) instructions 23/25
|
||||
|
||||
## fz15g kbd_led_handler BOOL return representation removed the extra switch branch. Combine it with target positive-case layout, then vary command-address/zero ownership.
|
||||
- kbd_led_handler: callback BOOL result and positive switch base: structural/exact (2, 20) instructions 26/25
|
||||
- kbd_led_handler: callback BOOL result and positive switch null: structural/exact (9, 19) instructions 26/25
|
||||
- kbd_led_handler: callback BOOL result and positive switch cmdptr: structural/exact (2, 20) instructions 26/25
|
||||
- kbd_led_handler: callback BOOL result and positive switch earlyptr: structural/exact (2, 20) instructions 26/25
|
||||
- kbd_led_handler: callback BOOL result and positive switch zero: structural/exact (9, 19) instructions 26/25
|
||||
- kbd_led_handler: callback BOOL result and positive switch reloadguard: structural/exact (2, 20) instructions 26/25
|
||||
- kbd_led_handler: callback BOOL result and positive switch signedidx: structural/exact (2, 20) instructions 26/25
|
||||
- kbd_led_handler: callback BOOL result and positive switch param: structural/exact (2, 20) instructions 26/25
|
||||
|
||||
## fz15g kbd_led_handler The target retains final blr after tail call. Test a real shared exit and positive callback guard with direct if result selection.
|
||||
- kbd_led_handler: callback single exit shape goto: structural/exact (30, 23) instructions 23/25
|
||||
- kbd_led_handler: callback single exit shape positive: structural/exact (30, 23) instructions 23/25
|
||||
- kbd_led_handler: callback single exit shape positiveNULL: structural/exact (30, 23) instructions 23/25
|
||||
- kbd_led_handler: callback single exit shape dupcall: structural/exact (33, 23) instructions 26/25
|
||||
|
||||
## fz15g TMCJPEG_814F0A58 Reverse which source plane owns named row padding, and use the C int type rather than long. This distinguishes width use lifetime from explicit padding definition.
|
||||
- TMCJPEG_814F0A58: named row padding int in cr plane: structural/exact (0, 62) instructions 475/475
|
||||
- TMCJPEG_814F0A58: named row padding unsigned int in cr plane: structural/exact (0, 62) instructions 475/475
|
||||
- TMCJPEG_814F0A58: named row padding s32 in cr plane: structural/exact (0, 62) instructions 475/475
|
||||
- TMCJPEG_814F0A58: named row padding int in both plane: structural/exact (21, 220) instructions 475/475
|
||||
- TMCJPEG_814F0A58: named row padding unsigned int in both plane: structural/exact (21, 220) instructions 475/475
|
||||
- TMCJPEG_814F0A58: named row padding s32 in both plane: structural/exact (21, 220) instructions 475/475
|
||||
|
||||
## fz15g owned data and extents audit
|
||||
JPEG has no owned data sections; NWC 904/904 and keyboard 5296/5296 data bytes already pair exactly. No symbol rename or extent change justified there.
|
||||
target zprepare data relocations: 0->Zi8PrepareMatch+0x260, 4->Zi8PrepareMatch+0x1e4, 8->Zi8PrepareMatch+0x1f4, 12->Zi8PrepareMatch+0x204, 16->Zi8PrepareMatch+0x214, 20->Zi8PrepareMatch+0x224, 24->Zi8PrepareMatch+0x234, 28->Zi8PrepareMatch+0x244, 32->Zi8PrepareMatch+0x254, 36->Zi8PrepareMatch+0x260, 40->Zi8PrepareMatch+0x260, 44->Zi8PrepareMatch+0x204
|
||||
source zprepare data relocations: 0->Zi8PrepareMatch+0x250, 4->Zi8PrepareMatch+0x1d4, 8->Zi8PrepareMatch+0x1e4, 12->Zi8PrepareMatch+0x1f4, 16->Zi8PrepareMatch+0x204, 20->Zi8PrepareMatch+0x214, 24->Zi8PrepareMatch+0x224, 28->Zi8PrepareMatch+0x234, 32->Zi8PrepareMatch+0x244, 36->Zi8PrepareMatch+0x250, 40->Zi8PrepareMatch+0x250, 44->Zi8PrepareMatch+0x1f4
|
||||
Relocation proof: all twelve entries in target jumptable_8166B3D0 (48 bytes) point inside nonmatching Zi8PrepareMatch; source @230 is the corresponding compiler-generated switch table with different code offsets. This is a code-layout gap; @230 is not a stable real source object name, so no rename. Extab 8 bytes exact, extabindex 12 differs by nonmatching function extent; no data-type size correction.
|
||||
Zi8PrepareMatch extent 0x814850fc..0x81485fac, next CDBInit 0x81485fac, overlap 0.
|
||||
CheckMsgBoxSpace extent 0x814a731c..0x814a7698, next SynthesizeAddrStr 0x814a7698, overlap 0.
|
||||
WriteMIMEAttachHeader extent 0x814a8064..0x814a81d4, next WriteContentTypeField 0x814a81d4, overlap 0.
|
||||
TMCJPEGDEC_set_converterY8U8V8 extent 0x814efb9c..0x814efeac, next TMCJPEG_814EFEAC 0x814efeac, overlap 0.
|
||||
TMCJPEG_814F0A58 extent 0x814f0a58..0x814f11c4, next TMCJPEG_814F11C4 0x814f11c4, overlap 0.
|
||||
kbdEventHandler extent 0x815f34d8..0x815f37c0, next kbdRepeatHandler 0x815f37c0, overlap 0.
|
||||
kbdProcMod extent 0x815f3aa4..0x815f3ea4, next kbdSendKey 0x815f3ea4, overlap 0.
|
||||
kbd_led_handler extent 0x815f3fb4..0x815f4018, next KBDSetLedsAsync 0x815f4018, overlap 0.
|
||||
KBDSetLedsAsync extent 0x815f4018..0x815f415c, next KBDSetLeds 0x815f415c, overlap 0.
|
||||
KBDSetLeds extent 0x815f415c..0x815f4298, next kbdInitMap 0x815f4298, overlap 0.
|
||||
KBDSetModState extent 0x815f4664..0x815f470c, next KBDTranslateHidCode 0x815f470c, overlap 0.
|
||||
|
||||
## fz15g TMCJPEG_814F0A58 Continue already diagnosed chroma preheader. Retire dimension locals after bound formation, reuse them for real source padding, or use the prior row induction local; no dummy values.
|
||||
- TMCJPEG_814F0A58: chroma dimension lifetime widthpadding: structural/exact (21, 126) instructions 475/475
|
||||
- TMCJPEG_814F0A58: chroma dimension lifetime heightpadding: structural/exact (21, 126) instructions 475/475
|
||||
- TMCJPEG_814F0A58: chroma dimension lifetime reusebound: structural/exact (21, 140) instructions 475/475
|
||||
- TMCJPEG_814F0A58: chroma dimension lifetime rowvariable: structural/exact (0, 0) instructions 475/475 first []
|
||||
|
||||
## fz15g TMCJPEG_814F0A58 exact candidate
|
||||
Reusing the existing row induction variable for the chroma loop, rather than incrementing the incoming y parameter, resolves the last two preheader scheduling instructions after sharing xEnd/tileWidth and expressing source padding directly. Both loops use row=original y; y is not used after the chroma loop, so output semantics are unchanged. Raw source/target symbol bytes identical, 1900 bytes and 475/475 instructions; branch-correct declsearch score (0,0). ctxdiff still emits four false CR1-branch differences because its normalizer uses operand zero rather than the branch target, and the converter-setup function remains four bytes shorter. Existing tool bug also affects eleven pre-existing exact converters; no tool or symbol edits.
|
||||
The queued last-stage keyboard declaration check was cancelled before modifying source: shared git-fetch lock was occupied by another worker fetch for several minutes. Those functions already received their required origin fetch/check and distinct structural trials earlier this round.
|
||||
|
||||
JPEG candidate quick full-build gate: GATE PASS, objdiff 12/13 functions and code 15164/15948 (before 11/13, 13264/15948), no regressions/forbidden/readability warnings, DOL hash correct. Gate instruction-exact remains 2/13 solely because of the unchanged CR1 normalizer issue documented above; raw bytes prove the new converter exact. NWC remains 18/18 and 8532/8532 with 904/904 data.
|
||||
|
||||
## fz15g kbdEventHandler final declaration search
|
||||
Continue the function already fetched/diagnosed this round; its body still equals the fetched origin snapshot. Structural trials exhausted; test actual declaration block last.
|
||||
Declaration-search output for kbdEventHandler:
|
||||
```
|
||||
declaration block:
|
||||
KBDChannel* data;
|
||||
u8* bytes;
|
||||
u8 status;
|
||||
start (0, 5)
|
||||
best (0, 5) after 6 builds; source restored; best order was:
|
||||
KBDChannel* data;
|
||||
u8* bytes;
|
||||
u8 status;
|
||||
```
|
||||
|
||||
## fz15g kbdProcMod final declaration search
|
||||
Continue the function already fetched/diagnosed this round; its body still equals the fetched origin snapshot. Structural trials exhausted; test actual declaration block last.
|
||||
Declaration-search output for kbdProcMod:
|
||||
```
|
||||
declaration block:
|
||||
KBDChannel* data;
|
||||
u32 modState;
|
||||
s32 delta;
|
||||
u8 flags;
|
||||
start (0, 4)
|
||||
best (0, 4) after 13 builds; source restored; best order was:
|
||||
KBDChannel* data;
|
||||
u32 modState;
|
||||
s32 delta;
|
||||
u8 flags;
|
||||
```
|
||||
|
||||
## fz15g KBDSetModState final declaration search
|
||||
Continue the function already fetched/diagnosed this round; its body still equals the fetched origin snapshot. Structural trials exhausted; test actual declaration block last.
|
||||
Declaration-search output for KBDSetModState:
|
||||
```
|
||||
declaration block:
|
||||
BOOL interrupts;
|
||||
KBDModifierState oldState;
|
||||
KBDModifierState newState;
|
||||
start (0, 4)
|
||||
best (0, 4) after 6 builds; source restored; best order was:
|
||||
BOOL interrupts;
|
||||
KBDModifierState oldState;
|
||||
KBDModifierState newState;
|
||||
```
|
||||
|
||||
## fz15g TMCJPEGDEC_set_converterY8U8V8 Continue previously fetched and diagnosed converter setup. Test byte-buffer address ownership as integer SDK address arithmetic and readonly buffer view; every base remains the real convBuf member, without pinned labels or numeric work offsets.
|
||||
- TMCJPEGDEC_set_converterY8U8V8: shared conversion address representation address: structural/exact (41, 195) instructions 195/196
|
||||
- TMCJPEGDEC_set_converterY8U8V8: shared conversion address representation pointeraddress: structural/exact (41, 195) instructions 195/196
|
||||
- TMCJPEGDEC_set_converterY8U8V8: shared conversion address representation constaddress: structural/exact (41, 195) instructions 195/196
|
||||
|
||||
## fz15g pre-final completeness audit
|
||||
Only two source changes retained: exact WriteMIMEAttachHeader and TMCJPEG_814F0A58. All other source trials restored; no header/config/symbol changes. Every remaining function has at least three distinct valid compiled source trials this round. Count excludes the unsigned-HID bug in the first const-char trial and excludes compile failures.
|
||||
Zi8PrepareMatch: 5 distinct valid current-round compiled source trials; remains open.
|
||||
TMCJPEGDEC_set_converterY8U8V8: 10 distinct valid current-round compiled source trials; remains open.
|
||||
kbdEventHandler: 4 distinct valid current-round compiled source trials; remains open.
|
||||
kbdProcMod: 5 distinct valid current-round compiled source trials; remains open.
|
||||
kbd_led_handler: 36 distinct valid current-round compiled source trials; remains open.
|
||||
KBDSetLedsAsync: 4 distinct valid current-round compiled source trials; remains open.
|
||||
KBDSetLeds: 4 distinct valid current-round compiled source trials; remains open.
|
||||
KBDSetModState: 5 distinct valid current-round compiled source trials; remains open.
|
||||
Gate keyboard count 14/21 versus objdiff 15/21 is also a normalization artifact: KBDResetChannel raw symbol bytes are identical; odiff misnormalizes CR1 bne/beq at 5/26 from instruction address, yielding 24-byte false differences because earlier unmatched LED functions differ in length. Correct last-operand branch normalization scores (0,0). No tool changes.
|
||||
Commits so far: 36ff398b NWC header measurement expression; e4b0d291 JPEG row induction. Remote main advanced while other workers fetched; this branch remains on its authorized starting base, without rebase or unrelated changes.
|
||||
|
||||
## fz15g final full clean gate
|
||||
```
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] objdiff: code 8532/8532 data 904/904 functions 18/18 fuzzy 100.0000 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] instruction-exact functions: 18/18
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .bss size 64 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .data size 680 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .sbss size 8 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .sdata size 152 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .text size 8532 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] baseline: code 8164/8532 data 904 functions 17 fuzzy 99.9836
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] objdiff: code 15164/15948 data None/None functions 12/13 fuzzy 99.6453 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] instruction-exact functions: 2/13
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] section .text size 15948 match 99.64535
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEGDEC_set_converterY8U8V8 92.78571
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] baseline: code 13264/15948 data None functions 11 fuzzy 99.5275
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] objdiff: code 3088/5764 data 5296/5296 functions 15/21 fuzzy 97.7044 linked code 0
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] instruction-exact functions: 14/21
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] section .bss size 3968 match 100.0
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] section .data size 1304 match 100.0
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] section .sbss size 16 match 100.0
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] section .sdata size 8 match 100.0
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] section .text size 5764 match 97.70437
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] below 100: kbdEventHandler 99.83871
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] below 100: kbdProcMod 99.90234
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] below 100: kbd_led_handler 64.12
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] below 100: KBDSetLedsAsync 86.234566
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] below 100: KBDSetLeds 84.6076
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] below 100: KBDSetModState 99.40476
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] baseline: code 3088/5764 data 5296 functions 15 fuzzy 97.7044
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] objdiff: code None/3760 data 8/68 functions 0/1 fuzzy 96.3191 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] instruction-exact functions: 0/1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .data size 48 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .text size 3760 match 96.319145
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extabindex size 12 match 91.66667
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] below 100: Zi8PrepareMatch 96.319145
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] baseline: code None/3760 data 8 functions 0 fuzzy 96.3191
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 90.43582 -> 90.51154
|
||||
global fuzzy_match_percent: 99.56486 -> 99.56554
|
||||
global complete_code_percent: 70.30611 -> 70.30611
|
||||
global matched_data_percent: 99.36596 -> 99.36596
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
## fz15g final per-unit before -> after
|
||||
main/libs/RevoEX/src/nwc24/NWC24MsgCommit: objdiff exact functions 17 -> 18/18, code bytes 8164 -> 8532/8532, data bytes 904 -> 904/904.
|
||||
main/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8: objdiff exact functions 11 -> 12/13, code bytes 13264 -> 15164/15948, data bytes 0 -> 0/0.
|
||||
main/libs/RVL_SDK/src/kbd/kbd_lib: objdiff exact functions 15 -> 15/21, code bytes 3088 -> 3088/5764, data bytes 5296 -> 5296/5296.
|
||||
main/libs/RVLMiddleware/eZiText/src/clib/zprepare: objdiff exact functions 0 -> 0/1, code bytes 0 -> 0/3760, data bytes 8 -> 8/68.
|
||||
Gate instruction-exact counts NWC 17 -> 18, JPEG 2 -> 2, keyboard 14 -> 14, zprepare 0 -> 0. Branch-correct instruction equality and objdiff confirm JPEG 11 -> 12 and keyboard 15 -> 15; raw-byte proof and the existing CR1 normalizer artifact are documented above.
|
||||
|
||||
## fz15g final open functions and attempt audit
|
||||
TMCJPEGDEC_set_converterY8U8V8 92.78571%: shared convBuf address folded into case addresses, 195/196 instructions; dimension scheduling also differs; 10 distinct valid compiled current-round source trials.
|
||||
kbdEventHandler 99.83871%: initial report status uses r3 and table base r30 instead of r5 and r3; five operand differences, 186/186 instructions; 4 distinct valid compiled current-round source trials.
|
||||
kbdProcMod 99.90234%: inlined modifier setter address and old-state value swap r4/r5; four operands, 256/256 instructions; 5 distinct valid compiled current-round source trials.
|
||||
kbd_led_handler 64.12%: callback-index rematerialization and success/default branch shape; retained source 24/25 instructions, best rejected BOOL trial 25/25 with nine differences; 36 distinct valid compiled current-round source trials.
|
||||
KBDSetLedsAsync 86.234566%: channel-stride cached across interrupt calls and slot-loop address/ordinal form; retained source 80/81 instructions; 4 distinct valid compiled current-round source trials.
|
||||
KBDSetLeds 84.6076%: channel-stride caching and command-slot loop pointer form; retained source 75/79 instructions; 4 distinct valid compiled current-round source trials.
|
||||
KBDSetModState 99.40476%: modifier address and prior word swap r4/r5; four operand differences, 42/42 instructions; 5 distinct valid compiled current-round source trials.
|
||||
Zi8PrepareMatch 96.319145%: target component branch stores a local flag absent in source, plus local/branch scheduling; retained source 939/940 instructions, switch relocations remain code-dependent; 5 distinct valid compiled current-round source trials.
|
||||
|
||||
Changed files: libs/RevoEX/src/nwc24/NWC24MsgCommit.c; libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.c; tools/decomp-assist/fz15.attempts.md. Exact source commits: 36ff398b and e4b0d291. Final log-only commit follows this audit.
|
||||
Uncertainty: original source forms for converter shared-base preservation, keyboard allocator/LED loop behavior, and the zprepare component branch remain unresolved. No unsupported volatile declaration or dummy component flag added. zprepare data remains 8/68 because the unpaired compiler table points into nonexact code, with no legitimate stable source-name rename or extent correction.
|
||||
|
||||
@@ -1490,3 +1490,259 @@ Final authority lines:
|
||||
[libs/RVL_SDK/src/kpad/KPAD] instruction-exact functions: 21/29
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
# Round 6: HIGH, fresh structural investigation
|
||||
Fresh baseline after building all owned objects; pools address57/57, SD101/101, KPAD0/0 identical. Data already100% in all three; no unmatched data-name gap to rename. Prior medium source trials were restored, so this round checks different local types, scopes, inline helper boundaries and operand lifetimes.
|
||||
|
||||
## src/scene/address/iplAddressEdit create__Q33ipl5scene11AddressEditFv
|
||||
Fetch origin/main 5518cb16fda3091c727d974aacf477a2cf89b74a. Initial assembly diagnosis: (19, 323) structural/positional differences; instructions 820/820
|
||||
Remote source equals freshly built baseline; still open 97.44634%. Structural diagnosis: 820 instructions and identical frame; literal-base/boardFile saved-register inversion dominates. Inspect structural differences before hoisting declarations: constructor inline boundaries, vector initialization and switch dispatch.
|
||||
- ordinary TextBalloon allocation with separately declared position: (49, 803) structural/positional; instructions 804/820; restored.
|
||||
- retain event objects through EventHandler base views: (19, 323) structural/positional; instructions 820/820; restored.
|
||||
- keep animation variable local to each mode arm: (19, 323) structural/positional; instructions 820/820; restored.
|
||||
- ordinary balloon new with a constructor argument vector temporary: (37, 803) structural/positional; instructions 808/820; candidate kept.
|
||||
- ordinary balloon new with named margin locals before allocation: (23, 331) structural/positional; instructions 818/820; restored.
|
||||
- mutable text-buffer views through mode initialization: (19, 323) structural/positional; instructions 820/820; restored.
|
||||
|
||||
## src/scene/address/iplAddressEdit get_friendinfo__Q33ipl5scene11AddressEditFv
|
||||
Fetch origin/main 5518cb16fda3091c727d974aacf477a2cf89b74a. Initial assembly diagnosis: (10, 68) structural/positional differences; instructions 82/84
|
||||
Remote source equals freshly built baseline; still open 88.03571%. Structural diagnosis: Frame0x440 versus target0x450 follows missing two held text addresses; locals are actual arrays. Inspect memcpy argument alias class and UTF16 helper lifetime before declaration coloring.
|
||||
Frame diagnosis correction from disasm_fn: target frame is0x420, source also0x420;0x148/0x150 are code extents, not frame sizes. No extent overlap.
|
||||
- explicit first-element addresses for both text buffers: (10, 68) structural/positional; instructions 82/84; restored.
|
||||
- retain complete text array pointers before pane calls: (10, 68) structural/positional; instructions 82/84; restored.
|
||||
- use mutable views of copied friend and string fields: (10, 39) structural/positional; instructions 83/84; restored.
|
||||
|
||||
## src/scene/address/iplAddressEdit update_friendinfo__Q33ipl5scene11AddressEditFv
|
||||
Fetch origin/main 5518cb16fda3091c727d974aacf477a2cf89b74a. Initial assembly diagnosis: (2, 2) structural/positional differences; instructions 38/38
|
||||
Remote source equals freshly built baseline; still open 99.42105%. Structural diagnosis: Same frame and38 instructions; source/destination addi ordering at memcpy is the only difference. Check typed memcpy argument views before declaration search.
|
||||
Corrected prior-round diagnosis: relocation-resolved disasm proves the differing argument pair is wcsncpy(name), not memcpy(CreateID). Prior memcpy-only trials did not touch this mismatch.
|
||||
- name copy reads through a const String view: (2, 2) structural/positional; instructions 38/38; restored.
|
||||
- evaluate named source text before destination text: (2, 2) structural/positional; instructions 38/38; restored.
|
||||
- typed destination wchar array rather than source array decay: (2, 2) structural/positional; instructions 38/38; restored.
|
||||
|
||||
## src/scene/address/iplAddressEdit set_err_msg__Q33ipl5scene11AddressEditFPwUl8NWC24Err
|
||||
Fetch origin/main 5518cb16fda3091c727d974aacf477a2cf89b74a. Initial assembly diagnosis: (1, 30) structural/positional differences; instructions 76/75
|
||||
Remote source equals freshly built baseline; still open 98.666664%. Structural diagnosis: 76/75 instructions, extra safe default message initialization. Retain defined behavior for unsupported NWC24 errors. Test exhaustive known-error branch layout without undefined/uninitialized state.
|
||||
- normalize unrecognized errors to the existing server fallback before dispatch: (8, 37) structural/positional; instructions 83/75; restored.
|
||||
- initialize the safe fallback in the explicit default branch: (4, 22) structural/positional; instructions 77/75; restored.
|
||||
- compute the supported network fallback directly with a boolean choice: (18, 47) structural/positional; instructions 65/75; restored.
|
||||
|
||||
## src/scene/sdChannelSelect/iplSDChannelSelect create__Q33ipl5scene15SDChannelSelectFv
|
||||
Fetch origin/main 5518cb16fda3091c727d974aacf477a2cf89b74a. Initial assembly diagnosis: (4, 39) structural/positional differences; instructions 145/146
|
||||
Remote source equals freshly built baseline; still open 97.73972%. Structural diagnosis: 145/146; identical0x20 frame, target keeps BS2 global reload at loop entry. Compare basic block placement rather than tick arithmetic; all heap construction instructions align.
|
||||
- poll using equality-first completion and a continue arm: (9, 40) structural/positional; instructions 145/146; restored.
|
||||
- inline polling-state helper returning manager readiness: (4, 39) structural/positional; instructions 145/146; restored.
|
||||
- inline update helper separates manager argument from polling getter: (4, 39) structural/positional; instructions 145/146; restored.
|
||||
|
||||
## src/scene/sdChannelSelect/iplSDChannelSelect handleSDTitleListResult__Q33ipl5scene15SDChannelSelectFv
|
||||
Fetch origin/main 5518cb16fda3091c727d974aacf477a2cf89b74a. Initial assembly diagnosis: (4, 143) structural/positional differences; instructions 170/171
|
||||
Remote source equals freshly built baseline; still open 99.15205%. Structural diagnosis: 170/171, beq-plus-unconditional-branch result dispatch and error-compaction register order. Build branch arms from parsed brace boundaries, retaining common refresh in place.
|
||||
Corrected prior-round diagnosis: relocation-resolved target confirms the extra beq8/unconditional-return branch is the OSGetTime delay gate, not async-result dispatch. Result tests already match.
|
||||
- switch the elapsed-time boolean into the normal continuation: (0, 6) structural/positional; instructions 171/171; candidate kept.
|
||||
- declare scanned title before compaction counters: (0, 6) structural/positional; instructions 171/171; candidate kept.
|
||||
- compaction count uses the same unsigned type as title count: (1, 6) structural/positional; instructions 171/171; restored.
|
||||
- signed SDK count keeps native comparison width: (0, 6) structural/positional; instructions 171/171; restored.
|
||||
- write compacted title before advancing accepted count: (0, 6) structural/positional; instructions 171/171; restored.
|
||||
- separate destination-index advancement from the title store: (0, 6) structural/positional; instructions 171/171; restored.
|
||||
- Register-only declaration search on compaction title/count/index block: declaration block: | u32 titleId; | int channelCount = 0; | int channelIndex = 0; | u32 titleIndex = 0; | start (0, 6) | improved (0, 4) | best (0, 4) after 16 builds; kept in source: | u32 titleId; | u32 titleIndex = 0; | int channelIndex = 0; | int channelCount = 0; |
|
||||
- separate compaction declarations from zero assignments in target order: (0, 0) structural/positional; instructions 171/171; candidate kept.
|
||||
Exact handleSDTitleListResult: corrected the time-gate dispatch, then separated compaction declarations from assignments. Register search found the type/index/count order; preserving count/index/title zero assignments removed all6 differences. ctxdiff171/171 diffs0; exact-name objdiff100; all-unit quick gatePASS, data100%, pools identical,0 regressions/forbidden/readability. SD121 ->122; code28728 ->29412.
|
||||
|
||||
## src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl
|
||||
Fetch origin/main 5518cb16fda3091c727d974aacf477a2cf89b74a. Initial assembly diagnosis: (2, 4) structural/positional differences; instructions 101/101
|
||||
After local exact commit160e985a, remote duplicate checks compare origin/main source against original round baseline0c06b01c, not modified HEAD. origin/main5518cb16 has no owned-unit diff.
|
||||
|
||||
## src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl
|
||||
Fetch origin/main 5518cb16fda3091c727d974aacf477a2cf89b74a. Initial assembly diagnosis: (2, 4) structural/positional differences; instructions 101/101
|
||||
Remote source equals freshly built baseline; still open 97.81188%. Structural diagnosis: 101/101 and same frame; compare count-store versus requirement load ordering, then native signed arithmetic and legal signed counterpart views.
|
||||
- native signed intermediate for bounded accepted-title count: (2, 4) structural/positional; instructions 101/101; restored.
|
||||
- count uses a legal signed counterpart view for alias analysis: (2, 4) structural/positional; instructions 101/101; restored.
|
||||
- inline usage predicate with scalar input values: (24, 40) structural/positional; instructions 104/101; restored.
|
||||
- inline accepted-count update isolates the store boundary: (2, 4) structural/positional; instructions 101/101; restored.
|
||||
|
||||
## src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl
|
||||
Fetch origin/main 5518cb16fda3091c727d974aacf477a2cf89b74a. Initial assembly diagnosis: (2, 4) structural/positional differences; instructions 102/102
|
||||
Remote source equals freshly built baseline; still open 97.833336%. Structural diagnosis: 102/102. Same post-memcpy count/threshold scheduling as forward scan, confirmed by instruction diff; compare native intermediate type, inline store helper and a fixed-size requirement view.
|
||||
- native signed next-count local in reverse scan: (2, 4) structural/positional; instructions 102/102; restored.
|
||||
- inline count update using an output reference: (2, 4) structural/positional; instructions 102/102; restored.
|
||||
- two-element readonly usage view in reverse scan: (2, 4) structural/positional; instructions 102/102; restored.
|
||||
|
||||
## src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl
|
||||
Fetch origin/main bc303bc36e5ea826ef9da39d6e9c9ed9c79e4ba9. Initial assembly diagnosis: (2, 22) structural/positional differences; instructions 126/126
|
||||
Remote source equals freshly built baseline; still open 97.29365%. Structural diagnosis: 126/126; u64 titleId allocated after page/order counters causes saved-register inversion; count/store scheduling also differs. Hoist the real title ID separately before trying declaration coloring.
|
||||
- declare loaded title ID before traversal counters: (2, 7) structural/positional; instructions 126/126; restored.
|
||||
- explicit page-row view when looking up the channel entry: (2, 22) structural/positional; instructions 126/126; restored.
|
||||
- native signed next-count local in page-ordered scan: (2, 22) structural/positional; instructions 126/126; restored.
|
||||
|
||||
## src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl
|
||||
Fetch origin/main bc303bc36e5ea826ef9da39d6e9c9ed9c79e4ba9. Initial assembly diagnosis: (8, 16) structural/positional differences; instructions 361/361
|
||||
Remote source equals freshly built baseline; still open 97.55125%. Structural diagnosis: 361/361, four repeated count/store/threshold windows; no string or data difference. Test real intermediate width and mutable/aggregate read views, then reject any non-exact result.
|
||||
- native next-count locals for all special-channel append sites: (8, 16) structural/positional; instructions 361/361; restored.
|
||||
- fixed-size readonly second-usage view for special title scans: (8, 16) structural/positional; instructions 361/361; restored.
|
||||
- inline output-reference increments at special-channel boundaries: (8, 16) structural/positional; instructions 361/361; restored.
|
||||
Expanded volatility proof audit includes adjacent stfs/lfs and stfd/lfd, as well as stw/lwz; same-address store/reload pairs []. No unjustified volatile added.
|
||||
|
||||
## src/scene/sdChannelSelect/iplSDChannelSelect flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv
|
||||
Fetch origin/main 9077ef8c7a1ab5bf7605f439ed621214b97999e3. Initial assembly diagnosis: (2, 2) structural/positional differences; instructions 35/35
|
||||
Remote source equals freshly built baseline; still open 99.65714%. Structural diagnosis: 35/35. Target obtains Mem2App before SaveData receiver; compare readonly receiver helper and combined heap-before-flag lifetimes, no pointer-global mutation or volatility.
|
||||
- readonly save-manager input at inline flush boundary: (2, 2) structural/positional; instructions 35/35; restored.
|
||||
- heap declaration precedes the flag update with assignment at flush: (2, 2) structural/positional; instructions 35/35; restored.
|
||||
- application heap retained across the animation initialization: (15, 29) structural/positional; instructions 36/35; restored.
|
||||
|
||||
## src/scene/sdChannelSelect/iplSDChannelSelect setChannelScissor__Q33ipl5scene15SDChannelSelectCFPCQ33ipl5scene12SDChannelObj
|
||||
Fetch origin/main 2050ad7616acfcb7752e5a6da8b7f44f22c6cafd. Initial assembly diagnosis: (23, 68) structural/positional differences; instructions 233/233
|
||||
Remote source equals freshly built baseline; still open 93.4721%. Structural diagnosis: 233/233; matrix-call inputs are register differences, but framebuffer width/height conversion order and widthScale lifetime change scheduling. Target keeps projection width in f29, ours keeps its quotient there; remove quotient local first.
|
||||
- use the projection quotient directly in horizontal scissor arithmetic: (36, 71) structural/positional; instructions 233/233; restored.
|
||||
- compute framebuffer horizontal conversion before vertical arithmetic: (29, 64) structural/positional; instructions 233/233; restored.
|
||||
- keep framebuffer dimensions in unsigned arithmetic-width locals: (23, 68) structural/positional; instructions 233/233; restored.
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos
|
||||
Fetch origin/main 2050ad7616acfcb7752e5a6da8b7f44f22c6cafd. Initial assembly diagnosis: (0, 9) structural/positional differences; instructions 19/19
|
||||
Remote source equals freshly built baseline; still open 96.57895%. Structural diagnosis: Leaf19/19, no frame/branches. Target coalesces double correction in f0 and uses coefficient-first aspect multiplication. Combine those operand choices before declaration coloring.
|
||||
- coefficient-first aspect and inline double correction product: (0, 10) structural/positional; instructions 19/19; restored.
|
||||
- reuse each calibration coefficient in its own product local: build failed e/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RVL_SDK/src/kpad/KPAD.c -o build/43U/src/libs/RVL_SDK/src/kpad && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d ### mwcceppc.exe Compiler: # File: libs\RVL_SDK\src\kpad\KPAD.c # ------------------------------------- # 360: f32 x = src->x * halfHeight; # Error: ^^^ # (10141) expression syntax error # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. ; restored.
|
||||
- separate declarations then reuse calibrated scalar products: (0, 14) structural/positional; instructions 19/19; candidate kept.
|
||||
- give the shared aspect coefficient its own scalar lifetime: (0, 13) structural/positional; instructions 19/19; candidate kept.
|
||||
- Register-only last, reused-coefficient declaration search: declaration block: | f64 scaled; | f32 height; | f32 halfHeight; | f32 x; | f32 y; | f32 aspect; | start (0, 13) | improved (0, 11) | best (0, 11) after 40 builds; kept in source: | f32 aspect; | f32 height; | f32 halfHeight; | f32 x; | f32 y; | f64 scaled; |
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight
|
||||
Fetch origin/main 2050ad7616acfcb7752e5a6da8b7f44f22c6cafd. Initial assembly diagnosis: (0, 7) structural/positional differences; instructions 52/52
|
||||
Remote source equals freshly built baseline; still open 99.23077%. Structural diagnosis: 52/52,0 normalized differences. Base literal r4/r3 and zero/squared-height register coloring remain. Separate base and channel adjustment and compare min branch before declaration search.
|
||||
- initialize base state then apply the channel index: (4, 9) structural/positional; instructions 52/52; restored.
|
||||
- state address initialized in the leading declaration block: (0, 7) structural/positional; instructions 52/52; restored.
|
||||
- select the limiting extent with an explicit comparison arm: (2, 9) structural/positional; instructions 52/52; restored.
|
||||
- native int channel formal with a translation-unit-only declaration guard: (0, 7) structural/positional; instructions 52/52; restored.
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD calc_acc_horizon
|
||||
Fetch origin/main 2050ad7616acfcb7752e5a6da8b7f44f22c6cafd. Initial assembly diagnosis: (2, 35) structural/positional differences; instructions 101/101
|
||||
Remote source equals freshly built baseline; still open 97.27723%. Structural diagnosis: 101/101; raw .long floating compares inflate normalized score, but geometry math and branch targets align. Replace pairs of flattened scalar locals by meaningful Vec2 intermediates, preserving operation order.
|
||||
- group normalized acceleration components in a Vec2 local: (28, 91) structural/positional; instructions 105/101; restored.
|
||||
- group the smoothed horizon candidate in a Vec2 local: (23, 77) structural/positional; instructions 97/101; restored.
|
||||
- group normalized output axis components in a Vec2 local: (23, 78) structural/positional; instructions 103/101; restored.
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD read_kpad_acc
|
||||
Fetch origin/main 2050ad7616acfcb7752e5a6da8b7f44f22c6cafd. Initial assembly diagnosis: (16, 66) structural/positional differences; instructions 400/400
|
||||
Remote source equals freshly built baseline; still open 98.15%. Structural diagnosis: 400/400; clamp/smoothing inline helper boundaries determine FP temporaries. Test parameter order and a scalar-only smoothing helper, rather than merely reordering caller vector declarations.
|
||||
Structural correction before helpers: ctxdiff also shows two opposite error/device/format branch forms at206..212; isolate these before FP temporary experiments.
|
||||
- separate error/device guards and switch the two extension formats: (15, 63) structural/positional; instructions 400/400; candidate kept.
|
||||
- keep each accepted format as a distinct switch break arm: (15, 63) structural/positional; instructions 400/400; candidate kept.
|
||||
- switch the accepted-format boolean with default return first: (22, 230) structural/positional; instructions 404/400; candidate kept.
|
||||
- single-format switch only when the primary format is absent: (12, 60) structural/positional; instructions 400/400; candidate kept.
|
||||
- reuse the smoothing magnitude local through its absolute-value branch: (63, 302) structural/positional; instructions 394/400; restored.
|
||||
- declare smoothing magnitude before signed delta then assign in original order: (7, 25) structural/positional; instructions 400/400; kept.
|
||||
- assign smoothing magnitude directly in both sign branches: (1, 1) structural/positional; instructions 400/400; kept.
|
||||
- preserve unsigned comparison in the fallback format switch: (1, 1) structural/positional; instructions 400/400; restored.
|
||||
- boolean fallback-format dispatch keeps the comparison unsigned: (12, 197) structural/positional; instructions 403/400; restored.
|
||||
- two explicit accepted-format branches share the extension block: (10, 194) structural/positional; instructions 399/400; restored.
|
||||
- unsigned SDK-format case constant in the fallback switch: (1, 1) structural/positional; instructions 400/400; restored.
|
||||
- byte-relative fallback-format switch: (10, 198) structural/positional; instructions 401/400; restored.
|
||||
- accept either extension format through a single-pass block: (10, 194) structural/positional; instructions 399/400; restored.
|
||||
- place extension acceleration in the positive accepted-format branch: (12, 197) structural/positional; instructions 399/400; restored.
|
||||
- explicit unsupported-format else returns from extension branch: (12, 197) structural/positional; instructions 399/400; restored.
|
||||
- native unsigned switch discriminant for the byte format: (1, 1) structural/positional; instructions 400/400; restored.
|
||||
read_kpad_acc best partial400/400 differs only instruction210: cmpwi r0,5 versus target cmplwi r0,5. All60 original FP differences removed by declaring magnitude before delta and explicit sign branches; separate error/device guards plus nested format switch fixed branch form. Unsigned casts, case constant, positive-if/else and single-pass accepted-format alternatives did not remove the final comparator difference. Exact-only policy: restored partial source; reproducible candidate saved /tmp/fz16r6.readacc.near.c, not committed.
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD select_1obj_first
|
||||
Fetch origin/main c1183780c2b53e044f91775b29b580d306e4423e. Initial assembly diagnosis: (2, 26) structural/positional differences; instructions 109/109
|
||||
Remote source equals freshly built baseline; still open 98.348625%. Structural diagnosis: 109/109, source/target branch and frame align; register/operand differences reside in geometry scalar setup and paired candidate coordinates. Compare a reused tangent basis and scalar candidate variables before declaration search.
|
||||
- separate all seven geometry and traversal declarations from assignments: (2, 26) structural/positional; instructions 109/109; candidate kept.
|
||||
- declare candidate vectors before loading their scalar center coordinates: (2, 26) structural/positional; instructions 109/109; candidate kept.
|
||||
- treat the candidate-array boundary as a readonly object pointer: (2, 26) structural/positional; instructions 109/109; restored.
|
||||
- Register-only last, separated traversal/candidate block search: declaration block: | KPADDPDObject* object; | KPADDPDObject* end; | f32 scale; | f32 productX; | f32 productY; | f32 offsetX; | f32 offsetY; | start (2, 26) | best (2, 26) after 52 builds; source restored; best order was: | KPADDPDObject* object; | KPADDPDObject* end; | f32 scale; | f32 productX; | f32 productY; | f32 offsetX; | f32 offsetY; |
|
||||
- Register-only last, separated traversal/candidate block search: declaration block: | Vec2 leftPosition; | Vec2 rightPosition; | f32 x; | f32 y; | start (2, 26) | improved (2, 24) | best (2, 24) after 16 builds; kept in source: | Vec2 leftPosition; | f32 y; | f32 x; | Vec2 rightPosition; |
|
||||
|
||||
Verified frame/extent audit (authoritative corrections to any earlier guessed frame):
|
||||
create__Q33ipl5scene11AddressEditFv: extent 0x414..0x10e4 <= next 0x10e4; source/target first instruction (('stwu', 'r1, -0x60(r1)'), ('stwu', 'r1, -0x60(r1)'))
|
||||
get_friendinfo__Q33ipl5scene11AddressEditFv: extent 0x5604..0x5754 <= next 0x5754; source/target first instruction (('stwu', 'r1, -0x420(r1)'), ('stwu', 'r1, -0x420(r1)'))
|
||||
update_friendinfo__Q33ipl5scene11AddressEditFv: extent 0x5798..0x5830 <= next 0x5830; source/target first instruction (('stwu', 'r1, -0x10(r1)'), ('stwu', 'r1, -0x10(r1)'))
|
||||
set_err_msg__Q33ipl5scene11AddressEditFPwUl8NWC24Err: extent 0x6690..0x67bc <= next 0x67bc; source/target first instruction (('stwu', 'r1, -0x60(r1)'), ('stwu', 'r1, -0x60(r1)'))
|
||||
create__Q33ipl5scene15SDChannelSelectFv: extent 0x478..0x6c0 <= next 0x6c0; source/target first instruction (('stwu', 'r1, -0x20(r1)'), ('stwu', 'r1, -0x20(r1)'))
|
||||
handleSDTitleListResult__Q33ipl5scene15SDChannelSelectFv: extent 0x14d8..0x1784 <= next 0x1784; source/target first instruction (('stwu', 'r1, -0x30(r1)'), ('stwu', 'r1, -0x30(r1)'))
|
||||
collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl: extent 0x25a4..0x2738 <= next 0x2738; source/target first instruction (('stwu', 'r1, -0x40(r1)'), ('stwu', 'r1, -0x40(r1)'))
|
||||
collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl: extent 0x2738..0x28d0 <= next 0x28d0; source/target first instruction (('stwu', 'r1, -0x40(r1)'), ('stwu', 'r1, -0x40(r1)'))
|
||||
collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl: extent 0x28d0..0x2ac8 <= next 0x2ac8; source/target first instruction (('stwu', 'r1, -0x60(r1)'), ('stwu', 'r1, -0x60(r1)'))
|
||||
collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl: extent 0x2ac8..0x306c <= next 0x306c; source/target first instruction (('stwu', 'r1, -0x80(r1)'), ('stwu', 'r1, -0x80(r1)'))
|
||||
flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv: extent 0x31d0..0x325c <= next 0x325c; source/target first instruction (('stwu', 'r1, -0x10(r1)'), ('stwu', 'r1, -0x10(r1)'))
|
||||
setChannelScissor__Q33ipl5scene15SDChannelSelectCFPCQ33ipl5scene12SDChannelObj: extent 0x5d40..0x60e4 <= next 0x60e4; source/target first instruction (('stwu', 'r1, -0xe0(r1)'), ('stwu', 'r1, -0xe0(r1)'))
|
||||
KPADGetProjectionPos: extent 0x430..0x47c <= next 0x47c; source/target first instruction (('lfs', 'f3, 0xc(r5)'), ('lfs', 'f3, 0xc(r5)'))
|
||||
KPADSetSensorHeight: extent 0x47c..0x54c <= next 0x54c; source/target first instruction (('stwu', 'r1, -0x30(r1)'), ('stwu', 'r1, -0x30(r1)'))
|
||||
calc_acc_horizon: extent 0x6e0..0x874 <= next 0x874; source/target first instruction (('stwu', 'r1, -0x30(r1)'), ('stwu', 'r1, -0x30(r1)'))
|
||||
read_kpad_acc: extent 0x998..0xfd8 <= next 0xfd8; source/target first instruction (('stwu', 'r1, -0x50(r1)'), ('stwu', 'r1, -0x50(r1)'))
|
||||
select_1obj_first: extent 0x13e8..0x159c <= next 0x159c; source/target first instruction (('stwu', 'r1, -0x20(r1)'), ('stwu', 'r1, -0x20(r1)'))
|
||||
calc_dpd_variable: extent 0x1710..0x1af8 <= next 0x1af8; source/target first instruction (('stwu', 'r1, -0x20(r1)'), ('stwu', 'r1, -0x20(r1)'))
|
||||
KPADRead: extent 0x2514..0x2c40 <= next 0x2c40; source/target first instruction (('stwu', 'r1, -0xc0(r1)'), ('stwu', 'r1, -0xc0(r1)'))
|
||||
KPADInit: extent 0x2c40..0x2f24 <= next 0x2f24; source/target first instruction (('stwu', 'r1, -0x90(r1)'), ('stwu', 'r1, -0x90(r1)'))
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD calc_dpd_variable
|
||||
Fetch origin/main c1183780c2b53e044f91775b29b580d306e4423e. Initial assembly diagnosis: (14, 45) structural/positional differences; instructions 250/250
|
||||
Remote source equals freshly built baseline; still open 94.82%. Structural diagnosis: 250/250; target rotation multiplies direction components first, while ours uses tangent first; a distance-filter ternary also introduces a transient f1. Apply the explicit sign-branch lever established on read_kpad_acc before register search.
|
||||
- direction-first horizontal rotation products in positional projection: (12, 40) structural/positional; instructions 250/250; candidate kept.
|
||||
- distance-filter sign branches assign its magnitude local directly: (12, 40) structural/positional; instructions 250/250; candidate kept.
|
||||
- separate positional rotation/average declarations from assignments: (17, 41) structural/positional; instructions 250/250; candidate kept.
|
||||
- Register search after operand/sign-branch trials, block f32 magnitude;: declaration block: | f32 magnitude; | f32 dx; | f32 next; | start (17, 41) | best (17, 41) after 6 builds; source restored; best order was: | f32 magnitude; | f32 dx; | f32 next; |
|
||||
- Register search after operand/sign-branch trials, block f32 rotatedY;: declaration block: | f32 rotatedY; | f32 rotatedX; | f32 scaleX; | f32 scaleY; | start (17, 41) | improved (12, 40) | best (12, 40) after 13 builds; kept in source: | f32 rotatedX; | f32 rotatedY; | f32 scaleX; | f32 scaleY; |
|
||||
Extended PPC diagnostic decodes unsupported floating compares and paired-single save/load instructions in /tmp only; no source/target bytes or repository tools changed. It separates register differences from real load/branch scheduling:
|
||||
KPADGetProjectionPos decoded structure/register score (0, 9)
|
||||
KPADSetSensorHeight decoded structure/register score (0, 7)
|
||||
calc_acc_horizon decoded structure/register score (0, 35)
|
||||
read_kpad_acc decoded structure/register score (5, 66)
|
||||
select_1obj_first decoded structure/register score (0, 26)
|
||||
calc_dpd_variable decoded structure/register score (13, 45)
|
||||
KPADRead decoded structure/register score (11, 89)
|
||||
KPADInit decoded structure/register score (6, 81)
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD KPADRead
|
||||
Fetch origin/main ff90063ef9623d776c62711aeb89c7a225f7a3b5. Initial assembly diagnosis: (11, 89) structural/positional differences; instructions 459/459
|
||||
Remote source equals freshly built baseline; still open 97.52723%. Structural diagnosis: 459/459,0xc0 frame. Target copyOutput computes available*0x84 then subtracts0x84; ours computes (available-1)*0x84. Correct pointer-expression grouping and computation placement before register search.
|
||||
- form the output endpoint before subtracting one status: (46, 284) structural/positional; instructions 459/459; candidate kept.
|
||||
- initialize the output endpoint then decrement as a separate pointer operation: (46, 284) structural/positional; instructions 459/459; candidate kept.
|
||||
- copy older samples using a one-past cursor and the previous status slot: (75, 284) structural/positional; instructions 459/459; candidate kept.
|
||||
- prepare count and output endpoint before calculating the ring start: (40, 282) structural/positional; instructions 459/459; candidate kept.
|
||||
- signed available count matches the public signed return value: (11, 89) structural/positional; instructions 459/459; candidate kept.
|
||||
- signed count endpoint followed by status-pointer subtraction: (46, 284) structural/positional; instructions 459/459; restored.
|
||||
KPADRead structural trials: pointer-first endpoint forms computed available*0x84 as desired but increased source frame0xc0 ->0xd0 and shifted callee-save coloring; hoisting endpoint/count and using signed available did not cure it. Original0xc0 frame/459 instructions restored; register-only search deferred because cursor scheduling remains structural.
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD KPADInit
|
||||
Fetch origin/main 0d9b03878228a086954abc59b964164b0f7db5f2. Initial assembly diagnosis: (9, 81) structural/positional differences; instructions 185/185
|
||||
Remote source equals freshly built baseline; still open 96.51351%. Structural diagnosis: 185/185,0x90 frame; target constructs the40000 repeat delay earlier than ours, plus saved FP coloring. Name the real default delay, then compare matrix base and squared-diagonal temporaries before declaration search.
|
||||
- name and initialize the default repeat delay before controller setup: (9, 81) structural/positional; instructions 185/185; candidate kept.
|
||||
- initialize the first matrix element through the shared matrix pointer: (31, 110) structural/positional; instructions 185/185; restored.
|
||||
- name the sensor-diagonal square before the square-root boundary: (9, 81) structural/positional; instructions 185/185; candidate kept.
|
||||
- Register-only last on sixteen real scalar/pointer declarations with decoded PPC comparisons: declaration block: | KPADInside* kpad; | f32 distanceValue; | f32 sensorDistance; | f32 diagonalSquared; | f32 rotationElement; | f32 referenceWidth; | f32 referenceHeight; | f32 objectInterval; | f32 zero; | f32 degreesToRadians; | f32 one; | f32* matrix; | u32 i; | s32 chan; | BOOL enabled; | u16 repeatDelay; | start (6, 81) | improved (6, 70) | improved (6, 66) | improved (6, 62) | improved (6, 54) | improved (6, 51) | best (6, 51) after 388 builds; kept in source: | f32 referenceHeight; | f32 objectInterval; | f32 sensorDistance; | f32 diagonalSquared; | f32 rotationElement; | f32 referenceWidth; | KPADInside* kpad; | f32 distanceValue; | f32 zero; | f32 degreesToRadians; | f32 one; | u32 i; | f32* matrix; | s32 chan; | BOOL enabled; | u16 repeatDelay; |
|
||||
- share the named unit value with sensitivity initialization: (8, 51) structural/positional; instructions 185/185; candidate kept.
|
||||
KPADInit declaration search improved81 ->51 differences after388 builds, but early repeat-constant/global-base scheduling remained6 decoded structural differences. Sharing a named unit scalar with sensitivity initialization did not improve it. Partial source restored; source/target retain0x90 frame and185 instructions.
|
||||
|
||||
Pre-full-gate completeness audit: freshly regenerated report lists19 remaining non-matching functions; every one has >=3 successfully built distinct source trials in this HIGH round; failed build excluded.86 successful function trials and531 declaration-search builds logged; all non-exact candidates restored.
|
||||
|
||||
## Round6 final full clean gate and remaining-function audit
|
||||
Full non-quick gate over all3 units PASS; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d; all pools identical;0 regressions,0 forbidden additions,0 readability warnings. Owned data100%, no symbol name/extent edits. Remaining function ELF extents end before/equal next symbol. Stack adjacent store/reload proof pairs []; no definition-level volatile justified.
|
||||
src/scene/address/iplAddressEdit: fresh exact 90 ->90/94; code 23044 ->23044/27112; data 2560 ->2560/2560.
|
||||
src/scene/sdChannelSelect/iplSDChannelSelect: fresh exact 121 ->122/129; code 28728 ->29412/33828; data 2960 ->2960/2960.
|
||||
libs/RVL_SDK/src/kpad/KPAD: fresh exact 21 ->21/29; code 6756 ->6756/13056; data 8032 ->8032/8032.
|
||||
One exact SD title-result match committed160e985a this round. All unaccepted source/header experiments restored; the exact SD time-gate/compaction change and attempts log retained. None of the remaining functions is claimed complete. Every remaining function has at least3 successfully built distinct source trials this HIGH round, failed builds excluded. Uncertainty remains on unsupported NWC24 error defaults and compiler register/load scheduling; safe message initialization retained. All per-function fetches used the shared git lock; remote owned source equals fresh baseline0c06b01c throughout. Extents/data names untouched; no duplicate owned remote match.
|
||||
- src/scene/address/iplAddressEdit create__Q33ipl5scene11AddressEditFv 97.44634%; 6 successful distinct source trials; balloon construction null-guard/temporary boundary and retained name-pointer lifetimes; same820 instructions.
|
||||
- src/scene/address/iplAddressEdit get_friendinfo__Q33ipl5scene11AddressEditFv 88.03571%; 3 successful distinct source trials; text-array addresses folded until after pane lookup; target retains pointers across lookup,82/84.
|
||||
- src/scene/address/iplAddressEdit update_friendinfo__Q33ipl5scene11AddressEditFv 99.42105%; 3 successful distinct source trials; wcsncpy name-source versus destination address evaluation order,38/38; prior memcpy diagnosis corrected by resolved relocation.
|
||||
- src/scene/address/iplAddressEdit set_err_msg__Q33ipl5scene11AddressEditFPwUl8NWC24Err 98.666664%; 3 successful distinct source trials; extra safe default initialization; target appears to leave messageId undefined for unhandled error,76/75.
|
||||
- src/scene/sdChannelSelect/iplSDChannelSelect create__Q33ipl5scene15SDChannelSelectFv 97.73972%; 3 successful distinct source trials; BS2 polling body omits separate manager reload,145/146; loop/inline getter boundaries remain.
|
||||
- src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.81188%; 4 successful distinct source trials; threshold load hoisted before count store,101/101.
|
||||
- src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.833336%; 3 successful distinct source trials; threshold load hoisted before count store,102/102.
|
||||
- src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.29365%; 3 successful distinct source trials; threshold/count schedule plus loop coloring,126/126.
|
||||
- src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.55125%; 3 successful distinct source trials; four repeated threshold/count schedules,361/361.
|
||||
- src/scene/sdChannelSelect/iplSDChannelSelect flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv 99.65714%; 3 successful distinct source trials; save manager/heap argument load order,35/35.
|
||||
- src/scene/sdChannelSelect/iplSDChannelSelect setChannelScissor__Q33ipl5scene15SDChannelSelectCFPCQ33ipl5scene12SDChannelObj 93.4721%; 3 successful distinct source trials; matrix/scissor floating operand scheduling and temporaries,233/233.
|
||||
- libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos 96.57895%; 3 successful distinct source trials; floating coefficient registers and multiply operands,19/19; reused-coefficient declaration search best11 differences versus original9; all partial variants restored.
|
||||
- libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight 99.23077%; 4 successful distinct source trials; base-array register r4 versusr3 plus zero/squared-height float registers,52/52; native int index views unchanged.
|
||||
- libs/RVL_SDK/src/kpad/KPAD calc_acc_horizon 97.27723%; 3 successful distinct source trials; magnitude/interpolation and circle float-register lifetimes,101/101; Vec2 grouping produced97/103/105 instructions versus target101 and was restored; original35 FP differences remain.
|
||||
- libs/RVL_SDK/src/kpad/KPAD read_kpad_acc 98.15%; 16 successful distinct source trials; original branch/FP-helper differences remain; best structural/helper reconstruction400/400 had only cmpwi versus cmplwi at fallback-format comparison, restored pending exactness.
|
||||
- libs/RVL_SDK/src/kpad/KPAD select_1obj_first 98.348625%; 3 successful distinct source trials; geometry floating lifetimes and paired stores,109/109; separated declaration search best24 versus original26 differences, restored.
|
||||
- libs/RVL_SDK/src/kpad/KPAD calc_dpd_variable 94.82%; 3 successful distinct source trials; smoothing/projected geometry floating scheduling,250/250; direction-first operand variation best40 versus original45 differences, restored.
|
||||
- libs/RVL_SDK/src/kpad/KPAD KPADRead 97.52723%; 6 successful distinct source trials; sample loop/polling temporaries and branch scheduling,459/459.
|
||||
- libs/RVL_SDK/src/kpad/KPAD KPADInit 96.51351%; 4 successful distinct source trials; controller/ring initialization and floating scheduling,185/185; sixteen-local search best51 versus original81 differences after388 builds, restored.
|
||||
Final authority lines:
|
||||
```
|
||||
[src/scene/address/iplAddressEdit] instruction-exact functions: 90/94
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 122/129
|
||||
[libs/RVL_SDK/src/kpad/KPAD] instruction-exact functions: 21/29
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
@@ -869,3 +869,341 @@ GATE PASS
|
||||
|
||||
MAX before -> after, instruction-exact/code/data bytes: zi8cgetc 5/4168/144 -> 5/4168/144 (engine fuzzy 95.99054 -> 96.27482); NWC24MBoxCtrl 24/10376/192 -> 25/10604/192; pf_cache 35/6464/0 -> 35/6464/0 (no data sections). Full GATE PASS, exact DOL SHA1, pools identical, zero regressions and forbidden/readability failures. Owned instruction-exact total 64/69 -> 65/69. Local source commits: 25fabf7b and 93e82b61.
|
||||
Remaining open functions, with all source attempts exhausted this MAX round: ZiMatchZHSpelling98.80165% (29 register differences); zi8InternalGetZH96.27482% (return copies, missing halfword conversions, allocation); Zi8GetElementCount99.347824% (13 register differences); PFCACHE_DoWriteNumSectorAndFreeIfNeeded98.21889% (9 third-overlap arithmetic/scheduling differences). The correct engine temporary boundaries and paired phonetic-code interface widths remain uncertain. No new symbol rename/extent adjustment or linking investigation was needed.
|
||||
|
||||
# MAX continuation after mailbox landing, five units
|
||||
|
||||
libs/RVLMiddleware/eZiText/src/clib/zi8cgetc pool first: POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
libs/RVL_SDK/src/fa/pf_cache pool first: POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
libs/RVL_SDK/src/fa/pf_fat pool first: POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
src/scene/channelSelect/iplChannelObj pool first: POOL IDENTICAL up to 20 (mine=20 base=20)
|
||||
libs/NW4R/src/lyt/lyt_window pool first: POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] objdiff: code 4168/47816 data 144/536 functions 5/8 fuzzy 96.6547 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] instruction-exact functions: 5/8
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .data size 392 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .sbss2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .sdata2 size 16 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .text size 47816 match 96.65468
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section extab size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section extabindex size 72 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: ZiMatchZHSpelling 98.80165
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: zi8InternalGetZH 96.27482
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: Zi8GetElementCount 99.347824
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] baseline: code 4168/47816 data 144 functions 5 fuzzy 96.6547
|
||||
[libs/RVL_SDK/src/fa/pf_cache] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_cache] objdiff: code 6464/7396 data None/None functions 35/36 fuzzy 99.7755 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_cache] instruction-exact functions: 35/36
|
||||
[libs/RVL_SDK/src/fa/pf_cache] section .text size 7396 match 99.77555
|
||||
[libs/RVL_SDK/src/fa/pf_cache] below 100: PFCACHE_DoWriteNumSectorAndFreeIfNeeded 98.21889
|
||||
[libs/RVL_SDK/src/fa/pf_cache] baseline: code 6464/7396 data None functions 35 fuzzy 99.7755
|
||||
[libs/RVL_SDK/src/fa/pf_fat] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_fat] objdiff: code 11556/12572 data 64/64 functions 34/35 fuzzy 99.8346 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_fat] instruction-exact functions: 34/35
|
||||
[libs/RVL_SDK/src/fa/pf_fat] section .rodata size 64 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_fat] section .text size 12572 match 99.83456
|
||||
[libs/RVL_SDK/src/fa/pf_fat] below 100: PFFAT_FreeChain 97.95276
|
||||
[libs/RVL_SDK/src/fa/pf_fat] baseline: code 11556/12572 data 64 functions 34 fuzzy 99.8346
|
||||
[src/scene/channelSelect/iplChannelObj] pool: IDENTICAL
|
||||
[src/scene/channelSelect/iplChannelObj] objdiff: code 10144/10924 data 2216/2216 functions 55/56 fuzzy 99.7993 linked code 0
|
||||
[src/scene/channelSelect/iplChannelObj] instruction-exact functions: 54/56
|
||||
[src/scene/channelSelect/iplChannelObj] section .data size 1240 match 100.0
|
||||
[src/scene/channelSelect/iplChannelObj] section .rodata size 784 match 100.0
|
||||
[src/scene/channelSelect/iplChannelObj] section .sdata size 120 match 100.0
|
||||
[src/scene/channelSelect/iplChannelObj] section .sdata2 size 72 match 100.0
|
||||
[src/scene/channelSelect/iplChannelObj] section .text size 10924 match 99.79934
|
||||
[src/scene/channelSelect/iplChannelObj] below 100: setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object 97.18974
|
||||
[src/scene/channelSelect/iplChannelObj] baseline: code 10144/10924 data 2216 functions 55 fuzzy 99.7993
|
||||
[libs/NW4R/src/lyt/lyt_window] pool: IDENTICAL
|
||||
[libs/NW4R/src/lyt/lyt_window] objdiff: code 9848/11352 data 316/316 functions 20/21 fuzzy 99.7586 linked code 0
|
||||
[libs/NW4R/src/lyt/lyt_window] instruction-exact functions: 20/21
|
||||
[libs/NW4R/src/lyt/lyt_window] section .ctors size 4 match 100.0
|
||||
[libs/NW4R/src/lyt/lyt_window] section .data size 256 match 100.0
|
||||
[libs/NW4R/src/lyt/lyt_window] section .sbss size 8 match 100.0
|
||||
[libs/NW4R/src/lyt/lyt_window] section .sdata2 size 48 match 100.0
|
||||
[libs/NW4R/src/lyt/lyt_window] section .text size 11352 match 99.75864
|
||||
[libs/NW4R/src/lyt/lyt_window] below 100: DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc 98.17819
|
||||
[libs/NW4R/src/lyt/lyt_window] baseline: code 9848/11352 data 316 functions 20 fuzzy 99.7586
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 90.47482 -> 90.47482
|
||||
global fuzzy_match_percent: 99.57024 -> 99.57024
|
||||
global complete_code_percent: 70.30611 -> 70.30611
|
||||
global matched_data_percent: 99.36639 -> 99.36639
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
|
||||
MAX2 ZiMatchZHSpelling: fetched origin/main; owned source equals remote. Still 98.80165%, 121/121 instructions, frame0x130, identical stack buffers/branches/helpers/operands. Remaining29 are register allocation; no immediate store/reload volatile proof. Extent0x1e4 reaches the following engine exactly. Prior trials exhausted type/const variants; try scan-result branch form, traversal initialization, and count-result type before last declaration search.
|
||||
|
||||
- MAX2 s2_01 ZiMatchZHSpelling: use signed-long match and character count as natural word-sized state; insns 121/121, structural/exact diffs (0, 29), fuzzy 98.80165, code 4168, data 144. Restored pending gates.
|
||||
|
||||
- MAX2 s2_02 ZiMatchZHSpelling: separate nonzero candidate check from prefix mismatch check; insns 123/121, structural/exact diffs (6, 109), fuzzy 97.06612, code 4168, data 72. Restored pending gates.
|
||||
|
||||
- MAX2 s2_03 ZiMatchZHSpelling: initialize candidate and spelling cursors in reverse traversal order; insns 121/121, structural/exact diffs (2, 31), fuzzy 98.70248, code 4168, data 144. Restored pending gates.
|
||||
|
||||
- MAX2 s2_04 ZiMatchZHSpelling: make prefix scan a while loop with explicit increment; insns 121/121, structural/exact diffs (0, 29), fuzzy 98.80165, code 4168, data 144. Restored pending gates.
|
||||
|
||||
- MAX2 g2_01 zi8InternalGetZH: combine alternate cursor advancement with entry initialization; insns 10673/10676, structural/exact diffs (8353, 9799), fuzzy 95.613525, code 4168, data 24. Restored pending gates.
|
||||
|
||||
- MAX2 g2_02 zi8InternalGetZH: initialize duplicate pass ordinal and status through chained assignment; insns 10686/10676, structural/exact diffs (10284, 10653), fuzzy 95.704575, code 4168, data 24. Restored pending gates.
|
||||
|
||||
- MAX2 g2_03 zi8InternalGetZH: preserve readonly request element view for all engine reads with explicit legacy helper conversions; insns 10685/10676, structural/exact diffs (10224, 10655), fuzzy 95.70148, code 4168, data 24. Restored pending gates.
|
||||
|
||||
- MAX2 g2_04 zi8InternalGetZH: match actual phonetic-code interface width while grouping returned mask test operands; insns 10678/10676, structural/exact diffs (8713, 9803), fuzzy 96.492134, code 4168, data 72. Restored pending gates.
|
||||
|
||||
- MAX2 c2_01 Zi8GetElementCount: declare fixed element-count input const at its definition; insns 115/115, structural/exact diffs (2, 13), fuzzy 98.391304, code 3548, data 72. Restored pending gates.
|
||||
|
||||
- MAX2 c2_02 Zi8GetElementCount: put element exhaustion before character count in traversal condition; insns 115/115, structural/exact diffs (7, 19), fuzzy 96.347824, code 4168, data 144. Restored pending gates.
|
||||
|
||||
- MAX2 c2_03 Zi8GetElementCount: limit saved separator state lifetime to spacing operation; insns 118/115, structural/exact diffs (11, 113), fuzzy 90.68696, code 4168, data 24. Restored pending gates.
|
||||
|
||||
- MAX2 p2_01 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: recover proven staged request endpoint and inline partial-page accounting; insns 233/233, structural/exact diffs (0, 4), fuzzy 99.8927, code 6464, data None. Restored pending gates.
|
||||
|
||||
- MAX2 p2_02 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: keep helper request-end input signed while unsigned overlap remains native sector count; insns 233/233, structural/exact diffs (0, 4), fuzzy 99.8927, code 6464, data None. Restored pending gates.
|
||||
|
||||
MAX2 engine diagnosis: fetched origin/main; current landed chained table initializer remains96.27482%,10676/10676,0x4e0 frame. Branch-aware earlier disassembly proves returned-value copies and two missing narrow conversions before any allocation tuning; new immutable element view and chained lifetime probes rejected. Actual Zi8GetPCode returns ziU16, but correcting just that contract grows two instructions and regresses exception data. No volatile proof for changed definitions.
|
||||
|
||||
MAX2 GetElementCount diagnosis: fetched origin/main still99.347824%,115/115 and0x230 frame, all13 original differences are count/element-count register coloring. New const input definition also regresses an inlined caller; all trials restored. Saved separator load is separated from its store by a helper call and does not justify volatile.
|
||||
|
||||
MAX2 cache diagnosis: fetched origin/main still98.21889%,233/233 and0x30 frame. Nine differences solely third/right overlap arithmetic. Recovered prior MAX candidate from /tmp/fz4-max-pf-M19.c: staged endpoint addition and inline partial-page accounting have structurally identical instructions except four r4/r5 operand/register choices. No uninitialized or volatile state, same overlap range and flags. Re-test before considering new alias/lifetime boundaries. pf_cache has no allocated data; pf_fat64/64, ChannelObj2216/2216, lyt_window316/316 already exact data, no symbol rename or extent change is justified.
|
||||
|
||||
MAX2 spelling declaration search after four structural attempts: (0, 29) | best (0, 29) after 52 builds; source restored; best order was: | ziWChar* candidateCursor; | ziWChar* spellingCursor; | int index; | int matches; | int candidateLength; | ziWChar spacedSpelling[64]; | ziWChar spacedCandidate[64]; |
|
||||
|
||||
- MAX2 p2_03 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: return signed last-sector result from partial-page accounting helper; insns 233/233, structural/exact diffs (0, 4), fuzzy 99.8927, code 6464, data None. Restored pending gates.
|
||||
|
||||
- MAX2 p2_04 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: use const-qualified page pointer formal at helper definition; insns 233/233, structural/exact diffs (0, 4), fuzzy 99.8927, code 6464, data None. Restored pending gates.
|
||||
|
||||
- MAX2 p2_05 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: subtract page sector from helper endpoint in place after preserving last sector; insns 233/233, structural/exact diffs (0, 4), fuzzy 99.8927, code 6464, data None. Restored pending gates.
|
||||
|
||||
- MAX2 p2_06 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: use a signed last-sector local with unsigned overlap range; insns 233/233, structural/exact diffs (0, 4), fuzzy 99.8927, code 6464, data None. Restored pending gates.
|
||||
|
||||
MAX2 retained cache partial-page accounting helper: target/ours233/233, same branches and operands; only four r4/r5 differences. Fuzzy98.21889->99.8927, exact35/36 unchanged, code6464/7396, no data. Quick gate:
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/fa/pf_cache] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_cache] objdiff: code 6464/7396 data None/None functions 35/36 fuzzy 99.9865 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_cache] instruction-exact functions: 35/36
|
||||
[libs/RVL_SDK/src/fa/pf_cache] section .text size 7396 match 99.98648
|
||||
[libs/RVL_SDK/src/fa/pf_cache] below 100: PFCACHE_DoWriteNumSectorAndFreeIfNeeded 99.8927
|
||||
[libs/RVL_SDK/src/fa/pf_cache] baseline: code 6464/7396 data None functions 35 fuzzy 99.7755
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 90.47482 -> 90.47482
|
||||
global fuzzy_match_percent: 99.57024 -> 99.57076
|
||||
global complete_code_percent: 70.30611 -> 70.30611
|
||||
global matched_data_percent: 99.36639 -> 99.36639
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
|
||||
- MAX2 f2_01 PFFAT_FreeChain: preserve inline FAT-type dispatch return boundary for clear-entry result; insns 254/254, structural/exact diffs (0, 17), fuzzy 99.56693, code 11556, data 64. Restored pending gates.
|
||||
|
||||
- MAX2 f2_02 PFFAT_FreeChain: share inline dirty-page flush lifetime at both exit paths; insns 256/254, structural/exact diffs (21, 123), fuzzy 97.67716, code 11556, data 64. Restored pending gates.
|
||||
|
||||
- MAX2 f2_03 PFFAT_FreeChain: combine independent inline clear-entry and dirty-page flush boundaries; insns 254/254, structural/exact diffs (0, 30), fuzzy 99.291336, code 11556, data 64. Restored pending gates.
|
||||
|
||||
- MAX2 f2_04 PFFAT_FreeChain: read-only cached-page inputs at flush helper boundary; insns 254/254, structural/exact diffs (0, 24), fuzzy 99.44882, code 11556, data 64. Restored pending gates.
|
||||
|
||||
- MAX2 f2_05 PFFAT_FreeChain: page-first reusable inline flush helper; insns 254/254, structural/exact diffs (0, 30), fuzzy 99.291336, code 11556, data 64. Restored pending gates.
|
||||
|
||||
- MAX2 f2_06 PFFAT_FreeChain: clear helper cluster input first before volume selection; insns 254/254, structural/exact diffs (0, 17), fuzzy 99.56693, code 11556, data 64. Restored pending gates.
|
||||
|
||||
- MAX2 f2_07 PFFAT_FreeChain: share named flushing state declarations across both return paths; insns 254/254, structural/exact diffs (0, 17), fuzzy 99.56693, code 11556, data 64. Restored pending gates.
|
||||
|
||||
- MAX2 f2_08 PFFAT_FreeChain: use native unsigned-long sector and page copies at each flush boundary; insns 254/254, structural/exact diffs (0, 9), fuzzy 99.78346, code 11556, data 64. Restored pending gates.
|
||||
|
||||
- MAX2 f2_09 PFFAT_FreeChain: scope clear-entry result separately from chain-read and flushing errors; insns 254/254, structural/exact diffs (0, 13), fuzzy 99.64567, code 11556, data 64. Restored pending gates.
|
||||
|
||||
- MAX2 f2_10 PFFAT_FreeChain: combine separate write status with readonly flushing page views; insns 254/254, structural/exact diffs (0, 5), fuzzy 99.862206, code 11556, data 64. Restored pending gates.
|
||||
|
||||
- MAX2 f2_11 PFFAT_FreeChain: readonly flush page plus scoped signed-long write status; insns 254/254, structural/exact diffs (0, 5), fuzzy 99.862206, code 11556, data 64. Restored pending gates.
|
||||
|
||||
- MAX2 f2_12 PFFAT_FreeChain: preserve independent first flush error as signed long; insns 254/254, structural/exact diffs (0, 5), fuzzy 99.862206, code 11556, data 64. Restored pending gates.
|
||||
|
||||
- MAX2 f2_13 PFFAT_FreeChain: reuse the existing current page when flushing without a redundant copy; insns 254/254, structural/exact diffs (0, 13), fuzzy 99.64567, code 11556, data 64. Restored pending gates.
|
||||
|
||||
- MAX2 ch2_01 setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object: reconstruct ten four-byte language records, eight-byte RSO buffer, and first-match fallback termination; insns 195/195, structural/exact diffs (0, 4), fuzzy 99.89744, code 10144, data 2216. Restored pending gates.
|
||||
|
||||
- MAX2 ch2_02 setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object: make matched groups read-only views while visibility mutates their member panes; BUILD FAIL annelSelect\iplChannelObj.cpp # -------------------------------------------------- # 677: for (nw4r::lyt::PaneLinkList::Iterator it = group->GetPaneList().GetBeginIter(); it != group->GetPaneList().GetEndIter(); it++ # Error: ^ # (10248) function call '[const nw4r::lyt::Group].GetPaneList()' does not # match # 'nw4r::lyt::Group::GetPaneList()' (non-static) # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. . Restored pending gates.
|
||||
|
||||
- MAX2 ch2_03 setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object: scope named pane list reference inside each language visibility operation; BUILD FAIL data- # d1\src\scene\channelSelect\iplChannelObj.cpp:8) ### mwcceppc.exe Compiler: # File: src\scene\channelSelect\iplChannelObj.cpp # -------------------------------------------------- # 1249: for (nw4r::lyt::PaneLinkList::Iterator it = panes.GetBeginIter(); it != panes.GetEndIter(); it++) { # Error: ^^^^^ # (10140) undefined identifier 'panes' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. . Restored pending gates.
|
||||
|
||||
- MAX2 ch2_04 setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object: declare group returned by lookup as a fixed pointer at its definition; insns 195/195, structural/exact diffs (0, 4), fuzzy 99.89744, code 10144, data 2216. Restored pending gates.
|
||||
|
||||
MAX2 PFFAT_FreeChain diagnosis: fetched origin/main source unchanged. Target254/ours256, same0x40 frame, no adjacent-symbol overlap. Read FAT dispatch has per-case copies; write dispatch instead returns r3 through a common inline boundary before copying once. Shared error lifetimes color the second write status incorrectly. Inline clear-entry helper removes the extra two instructions; readonly flush page input fixes the final flushing register allocation, and scoped writeError fixes status allocation. Best f2_10 is254/254 with five register-only differences in the early flushing page/fat-sector locals. Data64/64 already exact; 60-byte fat_special_values plus trailing alignment, no symbol changes needed. Proceed to nested declaration search.
|
||||
|
||||
- MAX2 ch2_03b setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object: scope named pane-list reference inside the owned visibility operations; insns 195/195, structural/exact diffs (6, 6), fuzzy 97.23077, code 10144, data 2216. Restored pending gates.
|
||||
|
||||
- MAX2 ch2_05 setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object: read matched groups through const local view and explicit legacy mutable accessor; insns 195/195, structural/exact diffs (0, 4), fuzzy 99.89744, code 10144, data 2216. Restored pending gates.
|
||||
|
||||
- MAX2 ch2_06 setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object: lookup matching group directly as a pane list pointer; insns 195/195, structural/exact diffs (6, 6), fuzzy 97.23077, code 10144, data 2216. Restored pending gates.
|
||||
|
||||
MAX2 PFFAT_FreeChain EXACT: inline clear-entry return boundary removes per-case return copies; separate write-error scope allows reuse of target r23. Const cached-page views reproduce read-only flushing lifetimes. Nested declaration search swapped fatSector/flushPage ordering: six builds, structural/exact0/0. Final readable candidate254/254, ctxdiff0, objdiff100%, unit34/35->35/35, code11556->12572, data64/64. Quick gate:
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/fa/pf_fat] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_fat] objdiff: code 12572/12572 data 64/64 functions 35/35 fuzzy 100.0000 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_fat] instruction-exact functions: 35/35
|
||||
[libs/RVL_SDK/src/fa/pf_fat] section .rodata size 64 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_fat] section .text size 12572 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_fat] baseline: code 11556/12572 data 64 functions 34 fuzzy 99.8346
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 90.47482 -> 90.50874
|
||||
global fuzzy_match_percent: 99.57024 -> 99.57144
|
||||
global complete_code_percent: 70.30611 -> 70.30611
|
||||
global matched_data_percent: 99.36639 -> 99.36639
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
- MAX2 w2_01 DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc: return immutable texture-flip table reference and use readonly coordinate views; insns 376/376, structural/exact diffs (0, 119), fuzzy 98.17819, code 9848, data 316. Restored pending gates.
|
||||
|
||||
- MAX2 w2_02 DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc: allow natural local storage for vertex-color setup result without const qualifier; insns 376/376, structural/exact diffs (0, 119), fuzzy 98.17819, code 9848, data 316. Restored pending gates.
|
||||
|
||||
- MAX2 w2_03 DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc: use a single tex-coordinate object rather than one-element array; insns 376/376, structural/exact diffs (0, 119), fuzzy 98.17819, code 9848, data 316. Restored pending gates.
|
||||
|
||||
- MAX2 w2_04 DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc: scope texture dimensions as a mutable Size copied from actual texture state; insns 376/376, structural/exact diffs (0, 119), fuzzy 98.17819, code 9848, data 316. Restored pending gates.
|
||||
|
||||
- MAX2 w2_05 DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc: initialize white quad colors through an ordinary four-element constructor initializer; insns 376/376, structural/exact diffs (0, 119), fuzzy 98.17819, code 9848, data 316. Restored pending gates.
|
||||
|
||||
- MAX2 ch2_07 setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object: keep visible-pane traversal in a natural inline group helper with ch2_07; insns 153/195, structural/exact diffs (77, 103), fuzzy 78.30769, code 10144, data 2216. Restored pending gates.
|
||||
|
||||
- MAX2 ch2_08 setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object: keep visible-pane traversal in a natural inline group helper with ch2_08; insns 151/195, structural/exact diffs (80, 106), fuzzy 77.128204, code 10144, data 2216. Restored pending gates.
|
||||
|
||||
- MAX2 ch2_09 setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object: keep visible-pane traversal in a natural inline group helper with ch2_09; insns 153/195, structural/exact diffs (77, 103), fuzzy 78.30769, code 10144, data 2216. Restored pending gates.
|
||||
|
||||
- MAX2 ch2_10 setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object: keep visible-pane traversal in a natural inline group helper with ch2_10; insns 151/195, structural/exact diffs (80, 107), fuzzy 77.128204, code 10144, data 2216. Restored pending gates.
|
||||
|
||||
- MAX2 p2_07 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: partial-page accounting reads sector through a const page view; insns 233/233, structural/exact diffs (0, 4), fuzzy 99.8927, code 6464, data None. Restored pending gates.
|
||||
|
||||
- MAX2 p2_08 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: consume caller endpoint through an in-out overlap count parameter; insns 233/233, structural/exact diffs (0, 8), fuzzy 99.74249, code 6464, data None. Restored pending gates.
|
||||
|
||||
- MAX2 p2_09 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: keep last-sector output pointer in accounting helper rather than its scalar return; insns 233/233, structural/exact diffs (0, 4), fuzzy 99.8927, code 6464, data None. Restored pending gates.
|
||||
|
||||
- MAX2 p2_10 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: readonly endpoint pointer is an explicit helper input boundary; insns 233/233, structural/exact diffs (0, 4), fuzzy 99.8927, code 6464, data None. Restored pending gates.
|
||||
|
||||
- MAX2 p2_11 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: introduce readonly geometry input separately from mutable dirty-page state; insns 233/233, structural/exact diffs (0, 4), fuzzy 99.8927, code 6464, data None. Restored pending gates.
|
||||
|
||||
- MAX2 w2_06 DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc: read-only window geometry view at the frame-drawing boundary; insns 376/376, structural/exact diffs (0, 119), fuzzy 98.17819, code 9848, data 316. Restored pending gates.
|
||||
|
||||
- MAX2 w2_07 DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc: name window dimensions as a const reference used by all geometry helpers; insns 376/376, structural/exact diffs (0, 119), fuzzy 98.17819, code 9848, data 316. Restored pending gates.
|
||||
|
||||
- MAX2 w2_08 DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc: keep returned texture dimensions through const-reference lifetime extension; insns 376/376, structural/exact diffs (0, 119), fuzzy 98.17819, code 9848, data 316. Restored pending gates.
|
||||
|
||||
- MAX2 w2_09 DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc: declare vertex-color storage before querying texture dimensions; insns 372/376, structural/exact diffs (80, 372), fuzzy 84.32979, code 9848, data 316. Restored pending gates.
|
||||
|
||||
MAX2 ChannelObj setLangPane diagnosis: fresh fetch still97.18974%,195/195. Target0x90 frame; original language rows use stride4 and record base0x40, RSO buffer8; fallback stops at null and first visible match. ch2_01 corrects those structural errors to99.89744%; all remaining four differences are group-pointer r28/r30. Helpers did not inline the visibility loops and regress instruction count; readonly groups require a mutable legacy pane-list accessor and do not move registers. No immediate reload or neighbouring extent issue; all2216 data bytes pair exactly.
|
||||
|
||||
MAX2 Window DrawFrame diagnosis: fresh fetch still98.17819%,376/376 and0xe0 frame. Every119 difference is register-only: shared flip table r31/r21, shifted geometry/material/alpha GPRs, temporary colors; branch/call order and stack-local offsets agree. Const flip-table view, scope/storage/type trials leave instruction stream unchanged. No immediate reload volatile evidence. Extent0x5e0 does not overlap DrawFrame4; all316 target data bytes already matched, extra source weak data ignored.
|
||||
|
||||
MAX2 GetElementCount final declaration search: (0, 13) | best (0, 13) after 13 builds; source restored; best order was: | ziU8 spacedIndex; | ziU8 elementIndex; | ziU8 count; | ziWChar spacedElements[256]; |
|
||||
|
||||
- MAX2 p2_12 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: page overlap count computed with modulo-32 two-complement displacement; insns 235/233, structural/exact diffs (14, 107), fuzzy 98.81974, code 6464, data None. Restored pending gates.
|
||||
|
||||
- MAX2 p2_13 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: set last-sector input via decrement in place before count subtraction; insns 234/233, structural/exact diffs (15, 108), fuzzy 98.49356, code 6464, data None. Restored pending gates.
|
||||
|
||||
- MAX2 p2_14 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: use signed long difference at partial-page helper input boundary; insns 233/233, structural/exact diffs (0, 4), fuzzy 99.8927, code 6464, data None. Restored pending gates.
|
||||
|
||||
- MAX2 p2_15 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: start helper count with endpoint then update using a separate subtract statement; insns 233/233, structural/exact diffs (0, 4), fuzzy 99.8927, code 6464, data None. Restored pending gates.
|
||||
|
||||
- MAX2 p2_16 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: derive overlap from the inclusive last sector plus one; insns 234/233, structural/exact diffs (15, 108), fuzzy 98.49356, code 6464, data None. Restored pending gates.
|
||||
|
||||
MAX2 retained ChannelObj language-record layout and fallback exits. Target and ours195/195 with four surviving pointer-register differences,97.18974->99.89744%; data remains2216/2216. Last declaration search6 builds stayed0/4. Correct records and branch forms are useful gate-passing structural progress even while exact-count55/56 is unchanged (instruction counter54/56 has its existing calcCursorAnim branch-normalization artifact). Quick gate:
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/scene/channelSelect/iplChannelObj] pool: IDENTICAL
|
||||
[src/scene/channelSelect/iplChannelObj] objdiff: code 10144/10924 data 2216/2216 functions 55/56 fuzzy 99.9927 linked code 0
|
||||
[src/scene/channelSelect/iplChannelObj] instruction-exact functions: 54/56
|
||||
[src/scene/channelSelect/iplChannelObj] section .data size 1240 match 100.0
|
||||
[src/scene/channelSelect/iplChannelObj] section .rodata size 784 match 100.0
|
||||
[src/scene/channelSelect/iplChannelObj] section .sdata size 120 match 100.0
|
||||
[src/scene/channelSelect/iplChannelObj] section .sdata2 size 72 match 100.0
|
||||
[src/scene/channelSelect/iplChannelObj] section .text size 10924 match 99.992676
|
||||
[src/scene/channelSelect/iplChannelObj] below 100: setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object 99.89744
|
||||
[src/scene/channelSelect/iplChannelObj] baseline: code 10144/10924 data 2216 functions 55 fuzzy 99.7993
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 90.47482 -> 90.50874
|
||||
global fuzzy_match_percent: 99.57024 -> 99.57214
|
||||
global complete_code_percent: 70.30611 -> 70.30611
|
||||
global matched_data_percent: 99.36639 -> 99.36639
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
MAX2 final source/data/coverage audit before full gate:
|
||||
ZiMatchZHSpelling: 4 distinct successfully compiled source attempts this round; still open; every unsuccessful candidate restored.
|
||||
zi8InternalGetZH: 4 distinct successfully compiled source attempts this round; still open; every unsuccessful candidate restored.
|
||||
Zi8GetElementCount: 3 distinct successfully compiled source attempts this round; still open; every unsuccessful candidate restored.
|
||||
PFCACHE_DoWriteNumSectorAndFreeIfNeeded: 16 distinct successfully compiled source attempts this round; still open; every unsuccessful candidate restored.
|
||||
PFFAT_FreeChain: 13 distinct successfully compiled source attempts this round; EXACT and committed.
|
||||
setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object: 9 distinct successfully compiled source attempts this round; still open; every unsuccessful candidate restored.
|
||||
DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc: 9 distinct successfully compiled source attempts this round; still open; every unsuccessful candidate restored.
|
||||
Remaining exact counts: zi8cgetc5/8,pf_cache35/36,pf_fat35/35,ChannelObj54/56 instruction-exact (55/56 objdiff),lyt_window20/21. Total instruction-exact148->149; code52180->53196; data2740->2740.
|
||||
Final cache declaration searches: helper2 orders and caller52, both0/4 unchanged; final Window declaration search13 orders0/119 unchanged. Definition-level const was retained only on the FAT flushing page read views; no new volatile declarations/casts, inline assembly, data pinning, padding, raw offset casts, config or shared header changes.
|
||||
Data audit: cgetc four compiler-generated switch tables remain392 bytes with98 relocations in both objects, all refer into inexact zi8InternalGetZH. Compiler-internal labels are not real source names; no rename justified. Cache has no noncode sections. FAT, ChannelObj and Window named data are already100% paired; trailing alignment and target-unowned weak output need no edit.
|
||||
Uncertainty: engine narrow-return and copied-result helper boundaries remain unresolved; allocation causes for the remaining four cache/ChannelObj differences and119 Window differences are compiler ties after structural probes. Retained cache/channel structural progress does not claim exactness.
|
||||
|
||||
MAX2 final full non-quick gate over all five units:
|
||||
|
||||
```
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] objdiff: code 4168/47816 data 144/536 functions 5/8 fuzzy 96.6547 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] instruction-exact functions: 5/8
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .data size 392 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .sbss2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .sdata2 size 16 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .text size 47816 match 96.65468
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section extab size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section extabindex size 72 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: ZiMatchZHSpelling 98.80165
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: zi8InternalGetZH 96.27482
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: Zi8GetElementCount 99.347824
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] baseline: code 4168/47816 data 144 functions 5 fuzzy 96.6547
|
||||
[libs/RVL_SDK/src/fa/pf_cache] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_cache] objdiff: code 6464/7396 data None/None functions 35/36 fuzzy 99.9865 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_cache] instruction-exact functions: 35/36
|
||||
[libs/RVL_SDK/src/fa/pf_cache] section .text size 7396 match 99.98648
|
||||
[libs/RVL_SDK/src/fa/pf_cache] below 100: PFCACHE_DoWriteNumSectorAndFreeIfNeeded 99.8927
|
||||
[libs/RVL_SDK/src/fa/pf_cache] baseline: code 6464/7396 data None functions 35 fuzzy 99.7755
|
||||
[libs/RVL_SDK/src/fa/pf_fat] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_fat] objdiff: code 12572/12572 data 64/64 functions 35/35 fuzzy 100.0000 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_fat] instruction-exact functions: 35/35
|
||||
[libs/RVL_SDK/src/fa/pf_fat] section .rodata size 64 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_fat] section .text size 12572 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_fat] baseline: code 11556/12572 data 64 functions 34 fuzzy 99.8346
|
||||
[src/scene/channelSelect/iplChannelObj] pool: IDENTICAL
|
||||
[src/scene/channelSelect/iplChannelObj] objdiff: code 10144/10924 data 2216/2216 functions 55/56 fuzzy 99.9927 linked code 0
|
||||
[src/scene/channelSelect/iplChannelObj] instruction-exact functions: 54/56
|
||||
[src/scene/channelSelect/iplChannelObj] section .data size 1240 match 100.0
|
||||
[src/scene/channelSelect/iplChannelObj] section .rodata size 784 match 100.0
|
||||
[src/scene/channelSelect/iplChannelObj] section .sdata size 120 match 100.0
|
||||
[src/scene/channelSelect/iplChannelObj] section .sdata2 size 72 match 100.0
|
||||
[src/scene/channelSelect/iplChannelObj] section .text size 10924 match 99.992676
|
||||
[src/scene/channelSelect/iplChannelObj] below 100: setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object 99.89744
|
||||
[src/scene/channelSelect/iplChannelObj] baseline: code 10144/10924 data 2216 functions 55 fuzzy 99.7993
|
||||
[libs/NW4R/src/lyt/lyt_window] pool: IDENTICAL
|
||||
[libs/NW4R/src/lyt/lyt_window] objdiff: code 9848/11352 data 316/316 functions 20/21 fuzzy 99.7586 linked code 0
|
||||
[libs/NW4R/src/lyt/lyt_window] instruction-exact functions: 20/21
|
||||
[libs/NW4R/src/lyt/lyt_window] section .ctors size 4 match 100.0
|
||||
[libs/NW4R/src/lyt/lyt_window] section .data size 256 match 100.0
|
||||
[libs/NW4R/src/lyt/lyt_window] section .sbss size 8 match 100.0
|
||||
[libs/NW4R/src/lyt/lyt_window] section .sdata2 size 48 match 100.0
|
||||
[libs/NW4R/src/lyt/lyt_window] section .text size 11352 match 99.75864
|
||||
[libs/NW4R/src/lyt/lyt_window] below 100: DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc 98.17819
|
||||
[libs/NW4R/src/lyt/lyt_window] baseline: code 9848/11352 data 316 functions 20 fuzzy 99.7586
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 90.47482 -> 90.50874
|
||||
global fuzzy_match_percent: 99.57024 -> 99.57214
|
||||
global complete_code_percent: 70.30611 -> 70.30611
|
||||
global matched_data_percent: 99.36639 -> 99.36639
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
Verified before->after instruction-exact/code/data: zi8cgetc5/4168/144->5/4168/144; pf_cache35/6464/0->35/6464/0; pf_fat34/11556/64->35/12572/64; ChannelObj54/10144/2216->54/10144/2216; lyt_window20/9848/316->20/9848/316. All pools identical, full build succeeds, DOL SHA1 equals26116613f624061ba99c8d1a299aaa6efa85670d, zero regressions/forbidden/readability additions. One new exact function; all six remaining objdiff-open functions have3+ distinct source attempts logged. Source commits539696bc,45bc3cf5,9c7be675. Matching flags remain unchanged; no linking investigation.
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -644,3 +644,105 @@ forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
## IFD1 switch lowering — decoded model (verified)
|
||||
Orig tree: root cmpwi 0x132; left {11a};{111};{103};{128};{11c-edge};{12d}; right cmpw 0x8769;{202};{201};{213};{9101};{9000};{a004-edge}.
|
||||
- Node count = case labels; adjacent shared-fall-through labels merge into ONE counted node
|
||||
but emit as a range-check (upper-edge `cmpwi <last+1>; bgelr`).
|
||||
- `case X: ;` (empty body, == else arm) counts as a node but emits NOTHING (folded into
|
||||
parent's range branch) — orig's {111} emits `beqlr;bgelr` covering the folded {112}.
|
||||
- {a000,a001,a002,a003} shared empty labels = one range-node -> emits `cmpw 0xa004; bgelr`
|
||||
(orig's edge form). GNU `case a...b:` ranges compile but count differently — don't use.
|
||||
- Split pivot = index floor(n/2) over sorted node list (n includes merged ranges as 1).
|
||||
- Orig set: 14 real labels {103,111,11a,11b,128,12d,132,201,202,213,8769,9000,9101,a003}
|
||||
+ folded {112} + range {a000..a003} -> 12 nodes + else -> root {132}.
|
||||
- Residual (~6 insns): dead-blr cluster count, {103} leaf `bltlr` vs `blr`,
|
||||
body regalloc (r6 vs r8 homes in readU32-assemble bounds-checks).
|
||||
|
||||
## Session findings (if-else/switch emission, unroll)
|
||||
|
||||
- MWCC if-else vs switch on if-tag dispatch: `if (tag == X) return;` emits
|
||||
`cmpwi; beqlr` (folded conditional return, no body). `case X: return;` in a
|
||||
switch emits the same leaf PLUS a dead `blr` body per case (+1 insn each).
|
||||
- MWCC switch case-source-order controls body emission ORDER (not tree shape):
|
||||
orig's IFD1 bodies appear as {11a,11b,128,103,201,202} — reordering cases to
|
||||
that sequence matched orig's body layout (fuzzy 87.5 -> 95.9).
|
||||
- `case X: ;` empty arms fall into the next arm / switch-exit; adjacent empty
|
||||
labels merge into ONE range-node ({a000-a003} -> `cmpw 0xa004; bgelr`).
|
||||
Converting all return-arms to `;` over-merged the left tree (lost 3 folds).
|
||||
- `case X: break;` emits `beq -> epilogue`, not the beqlr fold — kills the leaf.
|
||||
- Large constants (>0x7fff): orig materializes `lis r6,1` + `addi r0,r6,-N`
|
||||
and merges `==`/`>=` compares into `cmpw; beqlr; bge`. MWCC prefers `cmplwi`
|
||||
for `==` regardless of u16/s16 decl or (u16) casts — prevents the merge.
|
||||
- MWCC loop unroll: single `for (; iter > 0; iter--)` under an `if (iter > 0)`
|
||||
guard produces orig's native x2 unroll (`rlwinm.` halve + `mtctr` pairs +
|
||||
`andi.`/`mtctr`/`bdnz` remainder) — replaces hand-written pairs+do-while.
|
||||
`if (r > 0)` (pre-shift var) gives `cmpwi r5` + `srwi` (orig's form) but the
|
||||
inner for-guard re-tests -> double branch. `for(inner=r;inner>0;inner-=8)`
|
||||
gives one `cmpwi r` guard but folds `done=iter<<3` to `rlwinm` on pre-shift.
|
||||
|
||||
## Phase 4 findings (Y8U8V8 chroma dual-path)
|
||||
|
||||
- MWCC unroll emits `if (span > 8) { ×8 mtctr body + scalar tail } else { scalar }` for
|
||||
`for (x = lo; x < hi; x++)` where span = hi-lo. Both paths RE-derive the row setup
|
||||
(`(y>>2)*stride`, `out + ((y&3)<<3)`) inside each branch — MWCC remats per-path
|
||||
instead of keeping the values live across the guard.
|
||||
- LEVER: writing row-setup as INLINE expressions in the store
|
||||
(`out0[((y & 3) << 3) + off + xo]`, `off = ((x>>3) + (y>>2)*stride) << 5`) stops
|
||||
MWCC from hoisting them into named temps — reproduces orig's per-path recompute.
|
||||
Applied to luma + chroma loops: unit gap 126 -> 70.
|
||||
- EXCEPTION: 420's `x_pos += 2` luma loop wants NAMED locals (hoisted) — inline
|
||||
collapsed it 467->335; kept named-locals there. MWCC's remat choice is per-fn.
|
||||
- The `lis -0x8000; addi -2; cmpw; bgt; li flag,1; cmpwi; beq` chains are MWCC's
|
||||
signed-wrap safety proofs for `end-8` bounds in the unrolled fast path — generated
|
||||
internally, NOT source-visible logic. Count varies with MWCC's analysis depth.
|
||||
- Explicit `if (span>8){...}else{...}` in source BALLOONS (MWCC adds its own guard
|
||||
on top of the manual split) — the dual-path must come from MWCC's unroller.
|
||||
- `x_pos != x_end` bound (not `<`) is what produces orig's count on 444/444e —
|
||||
`<` collapses unrolling entirely (99->260). Orig emits `bge` though; counts equal.
|
||||
- set_converter: orig keeps ONE callee reg (ob) for the whole fn; deferring `st`
|
||||
load / dropping `cc` made no difference — residual +5 is frame-size regalloc.
|
||||
|
||||
## exif_parse switch-emission decodes (wave-2 session)
|
||||
|
||||
MWCC switch-tree emission model, verified end-to-end on TMCJPEGDEC_IFD0/IFD1_tag_parse:
|
||||
- Balanced BST over sorted case values; pivot = element[floor(n/2)] per subtree.
|
||||
- `break`-bodies at subtree edges FOLD into the parent compare's bound (bgelr/bltlr);
|
||||
a `break` NOT adjacent to same-target cases counts as a node and emits its own compare.
|
||||
- `return`-bodies are distinct nodes emitting `cmpwi X;beqlr`.
|
||||
- KEY: `case 0x0111:return` + `case 0x0112:break` emits `cmpwi 0x111;beqlr;bgelr` exactly
|
||||
(break-child folds into parent's gt-bound).
|
||||
- `default:` presence changes tree balance/pivots.
|
||||
- Case-body emission order = SOURCE case order, not sorted order. Orig's IFD1 source has
|
||||
`case 0x0103` written AFTER `case 0x0132` (its body lands late at ~0x1270). Reordering
|
||||
source to match cut IFD1 normalized diffs to ~3 lines.
|
||||
- Merged `case A: case B:` group shares one body AND still emits one compare per value.
|
||||
|
||||
Landings this session (all verified, no shims):
|
||||
- IFD0: `s32 tag; u32 type;` + `tag/type = readU16()` — the u32 type makes MWCC hoist the
|
||||
u16 mask (`clrlwi`) to right after the root `cmpwi 0x201`, matching orig's phi-join
|
||||
placement, while keeping `cmplwi` unsigned compares (s32 flips them to cmpwi - wrong).
|
||||
- IFD0: `case 0x0103:`+`case 0x0111:` merged return-group kills one dead blr body.
|
||||
- IFD0: `case 0x0201/0x0202` grouped adjacent with `default:` at switch end keeps root
|
||||
pivot 0x201 AND folds their shared body - insn count now 482 = orig 482.
|
||||
- IFD0: `case 0x0102` REMOVED (default covers it) - with it present, {0x102} became a
|
||||
lt-edge child emitting `bgelr`; without it MWCC emits plain `blr`. Orig has `bltlr`.
|
||||
- IFD1: body-order decode (0x0103 after 0x0132) + `case 0x0111:return`/`0x0112:break`
|
||||
fold + `case 0x0103` real body + noop cases 0x012D/0x0132/0x0213/0x8769/0x9000/0x9101/
|
||||
0xA003 as breaks + `default:` -> only 2 normalized diff lines remain.
|
||||
|
||||
Remaining verified ties (documented walls, all source variants failed):
|
||||
- bltlr-vs-bgelr/bound-side at folded lt-edge children (~15 forms: break/return/group/
|
||||
default-placement/removal - MWCC picks a fixed emission side).
|
||||
- Leaf bound-form vs equality: orig `cmpw 0xA004;bgelr` for {0xA003}-leaf (bound at
|
||||
max+1); every source form emits `cmpw 0xA003;beqlr` + dead blr (IFD1, 2 lines).
|
||||
- stb-interleave: orig serializes lbz;stb per byte through ONE reg in the 4-byte
|
||||
version-string copies (exifVer/flashVer/flashPixVer); mine batches lbz x4;stb x4.
|
||||
u8*/s8* pointer locals, `*q++` walking pointer, for-loop, memcpy all fail to
|
||||
serialize (MWCC hoists). Scheduling artifact of differing webs.
|
||||
- 1 dead `blr` body remains in IFD0 after the merged-group fix (unfolded noop body);
|
||||
regname webs (tag r7-vs-r8, offset r6-vs-r8) are allocator-internal.
|
||||
|
||||
Scores after: IFD0 94.25->higher (482=482 insns), IFD1 98.76, exif_parse 99.43.
|
||||
Texture converter fns re-verified as pure regname webs (instruction multiset identical
|
||||
in converterYUV411toRGBA8 - 243=243 insns, all diffs are reg homes).
|
||||
|
||||
Reference in New Issue
Block a user