From 981318a144ef1d7aede1bfab15551ae782101f06 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 11:18:03 +0000 Subject: [PATCH] match(Texture_MCUtoY8U8V8 6/13, NWC24MsgCommit 16/18) (fz15c) (worker c264f4a8) --- .../src/texturecvtr/Texture_MCUtoY8U8V8.c | 23 +- libs/RVL_SDK/src/kbd/kbd_lib.c | 4 +- libs/RevoEX/src/nwc24/NWC24MsgCommit.c | 43 +- tools/decomp-assist/fz15.attempts.md | 1788 +++++++++++++++++ 4 files changed, 1827 insertions(+), 31 deletions(-) create mode 100644 tools/decomp-assist/fz15.attempts.md diff --git a/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.c b/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.c index cb518b55..962a58ce 100644 --- a/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.c +++ b/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.c @@ -428,21 +428,21 @@ static void TMCJPEG_814F11C4(TMCCJPEGDecWork* work, s32 x, s32 y) { } static void TMCJPEG_814F17E0(TMCCJPEGDecWork* work, s32 x, s32 y) { - s32 height; - s32 chromaYEnd; - s32 column; - u8* lumaTexture; s32 chromaXEnd; - u8* luminance; + s32 chromaYEnd; + u8* lumaTexture; + s32 height; u32 chromaTileWidth; + u8* luminance; + s32 column; u8* cbTexture; - s32 width; + s32 xEnd; u8* crTexture; u32 tileWidth; u8* cb; TMCCJPEGDecState* state; s32 yEnd; - s32 xEnd; + s32 width; u8* cr; s32 row; @@ -554,9 +554,8 @@ static void TMCJPEG_814F1F48(TMCCJPEGDecWork* work, s32 x, s32 y) { } static void TMCJPEG_814F2570(TMCCJPEGDecWork* work, s32 x, s32 y) { - u32 chromaTileWidth; - TMCCJPEGDecState* state; u8* lumaTexture; + TMCCJPEGDecState* state; u8* luminance; s32 column; s32 row; @@ -596,13 +595,13 @@ static void TMCJPEG_814F2570(TMCCJPEGDecWork* work, s32 x, s32 y) { luminance += 8 - width; } y = (u32)y >> 1; - chromaTileWidth = state->chromaWidth >> 3; + tileWidth = state->chromaWidth >> 3; chromaEnd = y + 8 / state->scaleFactor; for (; y < chromaEnd; y++) { for (column = x; column < xEnd; column += 1) { - (cbTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * chromaTileWidth) << 5)] = *cb + 128; + (cbTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * tileWidth) << 5)] = *cb + 128; cb++; - (crTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * chromaTileWidth) << 5)] = *cr + 128; + (crTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * tileWidth) << 5)] = *cr + 128; cr++; } cb += 8 - width; diff --git a/libs/RVL_SDK/src/kbd/kbd_lib.c b/libs/RVL_SDK/src/kbd/kbd_lib.c index 6513f43a..fd542af6 100644 --- a/libs/RVL_SDK/src/kbd/kbd_lib.c +++ b/libs/RVL_SDK/src/kbd/kbd_lib.c @@ -562,11 +562,13 @@ static inline u32 kbdChannelFlags(u32 channel) { } static void kbd_led_handler(BOOL success, void* callbackArg) { + const KBDLEDCallbackData* callback; u32 index; u32 err; index = (u32)callbackArg; + callback = &kbdLCBuf[index]; kbdCmdBuf[index].device = 0; - if (kbdLCBuf[index].callbackAddress == (USBKBDCmdLEDCallback)(u32)kbdCmdBuf[index].device) { + if (callback->callbackAddress == (USBKBDCmdLEDCallback)(u32)kbdCmdBuf[index].device) { return; } switch (success) { diff --git a/libs/RevoEX/src/nwc24/NWC24MsgCommit.c b/libs/RevoEX/src/nwc24/NWC24MsgCommit.c index ae83afd3..977f96e1 100644 --- a/libs/RevoEX/src/nwc24/NWC24MsgCommit.c +++ b/libs/RevoEX/src/nwc24/NWC24MsgCommit.c @@ -202,33 +202,40 @@ static inline NWC24Err WriteMBNoReplyField(NWC24MsgObjPrivate* msg) { return err; } -static inline NWC24Err WriteMBRegDateField(NWC24MsgObjPrivate* msg, u32 flags) { +typedef struct { + u32 flags; + char* buffer; +} MBFieldWork; + +static inline NWC24Err WriteMBRegDateField(NWC24MsgObjPrivate* msg) { + MBFieldWork field; NWC24Err err; s32 length; - char* buffer; - if (!flags) + field.flags = msg->msgBoardFlags.raw & 0xFFFF; + if (!field.flags) return NWC24_OK; - buffer = NWC24WorkP->stringWork; - Mail_memset(buffer, 0, 1024); - Mail_sprintf(buffer, "X-Wii-MB-RegDate: %04X\r\n", flags); - length = STD_strnlen(buffer, 1024); - err = NWC24FWrite(buffer, length, m_pFile); + field.buffer = NWC24WorkP->stringWork; + Mail_memset(field.buffer, 0, 1024); + Mail_sprintf(field.buffer, "X-Wii-MB-RegDate: %04X\r\n", field.flags); + length = STD_strnlen(field.buffer, 1024); + err = NWC24FWrite(field.buffer, length, m_pFile); if (err == NWC24_OK) msg->length += length; return err; } -static inline NWC24Err WriteMBDelayField(NWC24MsgObjPrivate* msg, u32 flags) { +static inline NWC24Err WriteMBDelayField(NWC24MsgObjPrivate* msg) { + MBFieldWork field; NWC24Err err; s32 length; - char* buffer; - if (!flags) + field.flags = msg->msgBoardFlags.raw & 0xFF0000; + if (!field.flags) return NWC24_OK; - buffer = NWC24WorkP->stringWork; - Mail_memset(buffer, 0, 1024); - Mail_sprintf(buffer, "X-Wii-MB-Delay: %02X\r\n", flags >> 16); - length = STD_strnlen(buffer, 1024); - err = NWC24FWrite(buffer, length, m_pFile); + field.buffer = NWC24WorkP->stringWork; + Mail_memset(field.buffer, 0, 1024); + Mail_sprintf(field.buffer, "X-Wii-MB-Delay: %02X\r\n", field.flags >> 16); + length = STD_strnlen(field.buffer, 1024); + err = NWC24FWrite(field.buffer, length, m_pFile); if (err == NWC24_OK) msg->length += length; return err; @@ -306,8 +313,8 @@ static NWC24Err NWC24CommitMsgInternal(NWC24MsgObjPrivate* msg, NWC24MBoxType ty CHECK_WRITE(WriteIconNewField(msg)); if (msg->msgBoardFlags.raw != 0) { CHECK_WRITE(WriteMBNoReplyField(msg)); - { u16 dateFlags = msg->msgBoardFlags.raw; CHECK_WRITE(WriteMBRegDateField(msg, dateFlags)); } - CHECK_WRITE(WriteMBDelayField(msg, msg->msgBoardFlags.raw & 0xFF0000)); + CHECK_WRITE(WriteMBRegDateField(msg)); + CHECK_WRITE(WriteMBDelayField(msg)); } } CHECK_WRITE(WriteExtraFields(msg)); diff --git a/tools/decomp-assist/fz15.attempts.md b/tools/decomp-assist/fz15.attempts.md new file mode 100644 index 00000000..bf232340 --- /dev/null +++ b/tools/decomp-assist/fz15.attempts.md @@ -0,0 +1,1788 @@ +# fz15 attempts + +Baseline full quick gate: +``` +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] objdiff: code 3736/15948 data None/None functions 5/13 fuzzy 99.1976 linked code 0 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] instruction-exact functions: 2/13 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] objdiff: code 3964/8532 data 904/904 functions 15/18 fuzzy 98.4426 linked code 0 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] instruction-exact functions: 15/18 +[libs/RVL_SDK/src/kbd/kbd_lib] objdiff: code 3088/5764 data 5296/5296 functions 15/21 fuzzy 97.6523 linked code 0 +[libs/RVL_SDK/src/kbd/kbd_lib] instruction-exact functions: 14/21 +[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 +regressions vs baseline: 0 +GATE PASS +``` + +libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8 pool: POOL IDENTICAL up to 0 (mine=0 base=0) + +libs/RevoEX/src/nwc24/NWC24MsgCommit pool: POOL IDENTICAL up to 9 (mine=9 base=9) + +libs/RVL_SDK/src/kbd/kbd_lib pool: POOL IDENTICAL up to 0 (mine=0 base=0) + +libs/RVLMiddleware/eZiText/src/clib/zprepare pool: POOL IDENTICAL up to 0 (mine=0 base=0) + +## TMCJPEGDEC_set_converterY8U8V8 +Origin check: owned source unchanged on origin/main +Diagnosis: +``` +src 0x30c base 0x310 insns 195/196 +--- insert mine 1:1 base 1:2 + B 1 addi r4, r3, 0x1858 +--- replace mine 3:4 base 4:5 + M 3 lwz r4, 0x19e4(r3) + B 4 lwz r5, 0x19e4(r3) +--- replace mine 18:19 base 19:108 +Additional instruction differences omitted. +``` + +## TMCJPEG_814EFEAC +Origin check: owned source unchanged on origin/main +Diagnosis: +``` +src 0x590 base 0x590 insns 356/356 +diffs 20: [147, 160, 161, 169, 208, 216, 218, 225, 229, 240, 246, 255, 301, 313, 324, 325, 329, 332, 334, 336] + 147 M srwi r25, r6, 3 + B srwi r27, r6, 3 + 160 M mr r27, r4 + B mr r25, r4 + 161 M bge -1411 +Additional instruction differences omitted. +``` + +## TMCJPEG_814F043C +Origin check: owned source unchanged on origin/main +Diagnosis: +``` +src 0x61c base 0x61c insns 391/391 +diffs 40: [14, 18, 27, 29, 33, 35, 38, 40, 42, 48, 50, 158, 161, 177, 181, 183, 184, 187, 194, 195] + 14 M lbz r25, 0x16(r15) + B lbz r20, 0x16(r15) + 18 M divw r25, r3, r0 + B divw r20, r3, r0 + 27 M add r20, r4, r25 +Additional instruction differences omitted. +``` + +## TMCJPEG_814F0A58 +Origin check: owned source unchanged on origin/main +Diagnosis: +``` +src 0x76c base 0x76c insns 475/475 +diffs 81: [36, 45, 266, 274, 279, 280, 284, 285, 286, 287, 288, 293, 294, 300, 301, 306, 307, 310, 316, 317] + 36 M bge -3899 + B bge -3903 + 45 M bgt -3935 + B bgt -3939 + 266 M srwi r25, r3, 3 +Additional instruction differences omitted. +``` + +## TMCJPEG_814F11C4 +Origin check: owned source unchanged on origin/main +Diagnosis: +``` +src 0x61c base 0x61c insns 391/391 +diffs 40: [14, 18, 27, 29, 33, 35, 38, 40, 42, 48, 50, 158, 161, 177, 181, 183, 184, 187, 194, 195] + 14 M lbz r25, 0x16(r15) + B lbz r20, 0x16(r15) + 18 M divw r25, r3, r0 + B divw r20, r3, r0 + 27 M add r20, r4, r25 +Additional instruction differences omitted. +``` + +## TMCJPEG_814F17E0 +Origin check: owned source unchanged on origin/main +Diagnosis: +``` +src 0x768 base 0x768 insns 474/474 +diffs 89: [3, 6, 16, 18, 20, 21, 22, 29, 32, 33, 34, 36, 43, 45, 86, 87, 89, 90, 95, 98] + 3 M addi r16, r3, 0x185c + B addi r15, r3, 0x185c + 6 M mr r20, r5 + B mr r17, r5 + 16 M lwz r15, 0x3c(r6) +Additional instruction differences omitted. +``` + +## TMCJPEG_814F1F48 +Origin check: owned source unchanged on origin/main +Diagnosis: +``` +src 0x628 base 0x628 insns 394/394 +diffs 35: [14, 18, 27, 32, 35, 40, 48, 175, 177, 183, 186, 188, 194, 197, 198, 199, 201, 207, 210, 246] + 14 M lbz r25, 0x16(r14) + B lbz r19, 0x16(r14) + 18 M divw r25, r3, r0 + B divw r19, r3, r0 + 27 M add r20, r4, r25 +Additional instruction differences omitted. +``` + +## TMCJPEG_814F2570 +Origin check: owned source unchanged on origin/main +Diagnosis: +``` +src 0x5e0 base 0x5e0 insns 376/376 +diffs 32: [10, 12, 13, 15, 16, 19, 31, 39, 75, 150, 168, 170, 173, 178, 179, 187, 225, 234, 236, 243] + 10 M lwz r12, 0x19e4(r3) + B lwz r15, 0x19e4(r3) + 12 M lbz r8, 0x20(r12) + B lbz r8, 0x20(r15) + 13 M lwz r7, 0x2c(r12) +Additional instruction differences omitted. +``` + +## NWC24CommitMsgInternal +Origin check: owned source unchanged on origin/main +Diagnosis: +``` +src 0xcec base 0xcec insns 827/827 +diffs 14: [426, 430, 433, 435, 436, 440, 445, 461, 465, 468, 470, 472, 475, 480] + 426 M clrlwi. r24, r0, 0x10 + B clrlwi. r23, r0, 0x10 + 430 M lwz r23, 0(0) + B lwz r24, 0(0) + 433 M mr r3, r23 +Additional instruction differences omitted. +``` + +## CheckMsgBoxSpace +Origin check: owned source unchanged on origin/main +Diagnosis: +``` +src 0x37c base 0x37c insns 223/223 +diffs 73: [32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51] + 32 M lwz r26, 0x78(r7) + B lwz r25, 0x78(r7) + 33 M lwz r12, 0x7c(r7) + B lwz r8, 0x7c(r7) + 34 M mulhwu r24, r0, r26 +Additional instruction differences omitted. +``` + +## WriteMIMEAttachHeader +Origin check: owned source unchanged on origin/main +Diagnosis: +``` +src 0x170 base 0x170 insns 92/92 +diffs 5: [25, 28, 30, 32, 33] + 25 M mr r29, r3 + B mr r30, r3 + 28 M mr r30, r3 + B mr r29, r3 + 30 M add r28, r29, r28 +Additional instruction differences omitted. +``` + +## kbdEventHandler +Origin check: owned source unchanged on origin/main +Diagnosis: +``` +src 0x2e8 base 0x2e8 insns 186/186 +diffs 5: [35, 36, 38, 39, 42] + 35 M lbz r3, 2(r4) + B lbz r5, 2(r4) + 36 M lis r30, 0 + B lis r3, 0 + 38 M addi r0, r3, 0xff +Additional instruction differences omitted. +``` + +## kbdProcMod +Origin check: owned source unchanged on origin/main +Diagnosis: +``` +src 0x400 base 0x400 insns 256/256 +diffs 4: [245, 246, 247, 248] + 245 M add r5, r4, r31 + B add r4, r4, r31 + 246 M lwz r4, 0x220(r5) + B lwz r5, 0x220(r4) + 247 M rlwimi r0, r4, 0, 0x1a, 0x1f +Additional instruction differences omitted. +``` + +## kbd_led_handler +Origin check: owned source unchanged on origin/main +Diagnosis: +``` +src 0x5c base 0x64 insns 23/25 +--- replace mine 1:2 base 1:4 + M 1 slwi r7, r4, 3 + B 1 lis r6, 0 + B 2 slwi r0, r4, 3 + B 3 li r8, 0 +--- replace mine 3:7 base 5:7 +Additional instruction differences omitted. +``` + +## KBDSetLedsAsync +Origin check: owned source unchanged on origin/main +Diagnosis: +``` +src 0x140 base 0x144 insns 80/81 +--- replace mine 7:9 base 7:9 + M 7 mr r26, r5 + M 8 mr r27, r6 + B 7 mr r26, r3 + B 8 mr r27, r5 +--- insert mine 10:10 base 10:11 +Additional instruction differences omitted. +``` + +## KBDSetLeds +Origin check: owned source unchanged on origin/main +Diagnosis: +``` +src 0x12c base 0x13c insns 75/79 +--- insert mine 4:4 base 4:5 + B 4 mr r31, r3 +--- replace mine 10:11 base 11:12 + M 10 b 232 + B 11 b 244 +--- replace mine 14:16 base 15:17 +Additional instruction differences omitted. +``` + +## KBDSetModState +Origin check: owned source unchanged on origin/main +Diagnosis: +``` +src 0xa8 base 0xa8 insns 42/42 +diffs 4: [30, 31, 32, 33] + 30 M add r5, r5, r4 + B add r4, r5, r4 + 31 M lwz r4, 0x220(r5) + B lwz r5, 0x220(r4) + 32 M rlwimi r0, r4, 0, 0x1a, 0x1f +Additional instruction differences omitted. +``` + +## Zi8PrepareMatch +Origin check: owned source unchanged on origin/main +Diagnosis: +``` +src 0xeac base 0xeb0 insns 939/940 +--- replace mine 11:13 base 11:13 + M 11 li r3, 0x20 + M 12 stb r3, 0xb(r1) + B 11 li r0, 0x20 + B 12 stb r0, 0xb(r1) +--- insert mine 17:17 base 17:19 +Additional instruction differences omitted. +``` + +## TMCJPEG_814EFEAC declaration search +``` +start (0, 18) +best (0, 18) after 300 builds; source restored; best order was: +``` + +Declaration searches capped at 60 builds after the first 300-build search found no improvement. The interrupted second search restored its source. + +## TMCJPEG_814F043C declaration search +``` +start (0, 36) +best (0, 36) after 60 builds; source restored; best order was: +``` + +## Data ownership audit +Texture converter has no owned data sections. NWC24MsgCommit owns 904/904 exact data bytes and kbd_lib owns 5296/5296 exact data bytes at baseline; no symbol correction is needed. zprepare owns a 48-byte, 12-entry compiler-generated jump table. Target .text offsets 0x1ce/0x1d2 reference jumptable_8166B3D0; source offsets 0x1be/0x1c2 reference @230. Both tables contain twelve relocations to Zi8PrepareMatch, with source addends 0x10 earlier than target. This is a code-layout gap, not a named source object; no rename or extent change made. extab is exact and extabindex references the non-exact function extent. + +## TMCJPEG_814F0A58 declaration search +``` +start (0, 77) +best (0, 77) after 60 builds; source restored; best order was: +``` + +## TMCJPEG_814F11C4 declaration search +``` +start (0, 36) +best (0, 36) after 60 builds; source restored; best order was: +``` + +## TMCJPEG_814F17E0 declaration search +``` +start (0, 85) +improved (0, 82) +improved (0, 69) +improved (0, 63) +improved (0, 37) +best (0, 37) after 60 builds; kept in source: +``` + +## TMCJPEG_814F1F48 declaration search +``` +start (0, 31) +best (0, 31) after 60 builds; source restored; best order was: +``` + +## TMCJPEG_814F2570 declaration search +``` +start (0, 28) +improved (0, 18) +best (0, 18) after 60 builds; kept in source: +``` + +## NWC24CommitMsgInternal declaration search +``` +start (0, 14) +best (0, 14) after 13 builds; source restored; best order was: +``` + +## WriteMIMEAttachHeader declaration search +``` +start (0, 5) +best (0, 5) after 6 builds; source restored; best order was: +``` + +## kbdEventHandler declaration search +``` +fewer than two leading declarations; pass --lines START END +``` + +## kbdProcMod declaration search +``` +start (0, 4) +best (0, 4) after 13 builds; source restored; best order was: +``` + +## KBDSetModState declaration search +``` +fewer than two leading declarations; pass --lines START END +``` + +## TMCJPEG_814EFEAC source trials +Baseline structural/exact differences (0, 18) +- reverse tile-row multiplication operands: (0, 19) +- load state before converter input pointers: (0, 18) +- postincrement chroma input at store: (102, 322) + +## TMCJPEG_814F043C source trials +Baseline structural/exact differences (0, 36) +- reverse tile-row multiplication operands: (0, 38) +- load state before converter input pointers: (0, 36) +- postincrement chroma input at store: (114, 347) + +## TMCJPEG_814F0A58 source trials +Baseline structural/exact differences (0, 77) +- reverse tile-row multiplication operands: (0, 79) +- load state before converter input pointers: (0, 77) +- postincrement chroma input at store: (101, 408) + +## TMCJPEG_814F11C4 source trials +Baseline structural/exact differences (0, 36) +- reverse tile-row multiplication operands: (0, 38) +- load state before converter input pointers: (0, 36) +- postincrement chroma input at store: (114, 347) + +## TMCJPEG_814F17E0 source trials +Baseline structural/exact differences (0, 37) +- reverse tile-row multiplication operands: (0, 37) +- load state before converter input pointers: (0, 37) +- postincrement chroma input at store: (96, 406) + +## TMCJPEG_814F1F48 source trials +Baseline structural/exact differences (0, 31) +- reverse tile-row multiplication operands: (0, 33) +- load state before converter input pointers: (0, 31) +- postincrement chroma input at store: (113, 342) + +## TMCJPEG_814F2570 source trials +Baseline structural/exact differences (0, 18) +- reverse tile-row multiplication operands: (0, 20) +- load state before converter input pointers: (0, 18) +- postincrement chroma input at store: (112, 374) + +## WriteMIMEAttachHeader source trials +Baseline structural/exact differences (0, 5) +- accumulate measured MIME overhead in encoding local: (0, 5) +- retain measured encoding before type in sum: (0, 5) +- sum type and encoding in separate total: (2, 5) + +## NWC24CommitMsgInternal source trials +Baseline structural/exact differences (0, 14) +- cache face size before inline helper call: (20, 480) +- cache alt-name size before inline helper call: (19, 488) +- explicit text-result branch: (0, 14) + +## CheckMsgBoxSpace source trials +Baseline structural/exact differences (67, 73) +- text size declared after loop accumulator: (67, 73) +- commute base64 numerator operands: (99999, 99999) compiler rejection -str reuse -DSDK_IPL -D_REVOLUTION -DMEM_MANAGER_DIRECT -i include -i include/global -i libs/MetroTRK/include -i libs/Runtime/include -i libs/MSL/include -i libs/RVL_SDK/include -i libs/RevoEX/include -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RevoEX/src/nwc24/NWC24MsgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d +### mwcceppc.exe Compiler: +# File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c +# ----------------------------------------------- +# 441: textSize = (msg->text.2 + size * 4) / 3 + msg->text.size / 57 * 2 + 4; +# Error: ^^ +# (10115) ')' expected +# Too many errors printed, aborting program + +User break, cancelled... +ninja: build stopped: subcommand failed. + +- attachment size signed division intermediates: (183, 232) + +## Zi8PrepareMatch source trials +Baseline structural/exact differences (36, 889) +- count-controlled wildcard scan while loop: (36, 889) +- count decrement assignment: (38, 909) +- component nibble count uses explicit unsigned sum: (36, 889) + +## KBDSetModState source trials +Baseline structural/exact differences (0, 4) +- channel pointer named after interrupt exclusion: (0, 7) +- physical bits merged using scalar mask: (3, 7) +- read physical state before lock-state mask: (0, 4) + +## kbdProcMod source trials +Baseline structural/exact differences (0, 4) +- inline setter input without final temporary: (0, 4) +- counter delta with explicit positive branch: (0, 4) +- counter addition operand order: (0, 10) + +## kbdEventHandler source trials +Baseline structural/exact differences (0, 5) +- direct indexed channel pointer: (0, 6) +- use saved report status for error classification: (3, 148) +- status declaration before byte pointer: (0, 5) + +## kbd_led_handler source trials +Baseline structural/exact differences (30, 20) +- success branch with unsigned zero comparison: (29, 22) +- callback pointer read before command release: (24, 19) +- signed error temporary: (30, 20) + +## KBDSetLedsAsync source trials +Baseline structural/exact differences (14, 70) +- cache channel flags once for validation: (14, 70) +- unsigned reservation index matches target comparison: (13, 69) +- read channel through narrowed device index: (18, 58) + +## KBDSetLeds source trials +Baseline structural/exact differences (19, 75) +- cache channel flags once for validation: (19, 75) +- unsigned reservation index matches target comparison: (20, 75) +- read channel through narrowed device index: (29, 52) + +## TMCJPEGDEC_set_converterY8U8V8 source trials +Baseline structural/exact differences (41, 195) +- case-local converter function pointers: (41, 195) +- state loaded before component count: (41, 195) +- component switch directly reads member: (41, 195) + +## converter setup inline boundary +Pass buffer and state through a readable setup helper. +``` +[1/1] MWCC build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.o +src 0x30c base 0x310 insns 195/196 +--- insert mine 1:1 base 1:2 + B 1 addi r4, r3, 0x1858 +--- replace mine 3:4 base 4:5 + M 3 lwz r4, 0x19e4(r3) + B 4 lwz r5, 0x19e4(r3) +Additional instruction differences omitted. +``` + +## WriteMIMEAttachHeader source trials +Baseline structural/exact differences (0, 5) +- reuse content type length for formatted field length: (0, 5) +- reuse all three header lengths after formatting: (0, 5) +- reuse type length and preserve MIME-first addition: (0, 5) + +## KBDSetModState source trials +Baseline structural/exact differences (0, 4) +- write lock bitfield through named modifier view: (2, 7) +- merge scalar masks through named modifier view: (3, 7) +- read state through named modifier view before merge: (0, 7) + +## TMCJPEG_814EFEAC source trials +Baseline structural/exact differences (0, 18) +- signed chroma tile width: (156, 351) +- independent chroma column lifetime: (0, 18) +- load chroma tile width after chroma bounds: (2, 26) + +## TMCJPEG_814F043C source trials +Baseline structural/exact differences (0, 36) +- signed chroma tile width: (251, 392) +- independent chroma column lifetime: (0, 36) +- load chroma tile width after chroma bounds: (0, 36) + +## TMCJPEG_814F0A58 source trials +Baseline structural/exact differences (0, 77) +- signed chroma tile width: (236, 446) +- independent chroma column lifetime: (0, 77) +- load chroma tile width after chroma bounds: inapplicable + +## TMCJPEG_814F11C4 source trials +Baseline structural/exact differences (0, 36) +- signed chroma tile width: (251, 392) +- independent chroma column lifetime: (0, 36) +- load chroma tile width after chroma bounds: (0, 36) + +## TMCJPEG_814F17E0 source trials +Baseline structural/exact differences (0, 37) +- signed chroma tile width: (246, 445) +- independent chroma column lifetime: (0, 37) +- load chroma tile width after chroma bounds: inapplicable + +## TMCJPEG_814F1F48 source trials +Baseline structural/exact differences (0, 31) +- signed chroma tile width: (169, 393) +- independent chroma column lifetime: (0, 31) +- load chroma tile width after chroma bounds: (0, 31) + +## TMCJPEG_814F2570 source trials +Baseline structural/exact differences (0, 18) +- signed chroma tile width: (180, 376) +- independent chroma column lifetime: inapplicable +- load chroma tile width after chroma bounds: (0, 23) + +## WriteMIMEAttachHeader source trials +Baseline structural/exact differences (0, 5) +- sequential measured overhead additions: (0, 7) +- combine overhead before separate four-byte terminator: (0, 6) +- unsigned overhead value with signed final capacity: (0, 5) +- explicit header subtotal temporary: (0, 6) + +## kbdEventHandler source trials +Baseline structural/exact differences (0, 5) +- channel index as pointer addition left operand: (0, 6) +- signed byte report status local: (5, 152) +- range guard written as lower and upper report statuses: (5, 8) + +## KBDSetModState source trials +Baseline structural/exact differences (0, 4) +- old and new modifier declaration order reversed: (0, 4) +- merge modifier state directly into old union: (1, 7) +- scalar physical modifier temporary: (0, 4) + +## CheckMsgBoxSpace source trials +Baseline structural/exact differences (67, 73) +- commute base64 arithmetic without member-token changes: (67, 73) + +NWC24CommitMsgInternal read registration and delay flags inside inline writers: (9999, 9999) +include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RevoEX/src/nwc24/NWC24MsgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d +### mwcceppc.exe Compiler: +# File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c +# ----------------------------------------------- +# 311: { u16 dateFlags = msg->msgBoardFlags.raw; iteMBRegDateField(msg, dateFlags)); if (err != NWC24_OK) { NWC24FClos +# Error: ^ +# (10248) function call 'WriteMBRegDateField(struct NWC24MsgObjPrivate *, +# unsigned short)' does not match +# 'WriteMBRegDateField(struct NWC24MsgObjPrivate *)' +# Too many errors printed, aborting program + +User break, cancelled... +ninja: build stopped: subcommand failed. + +NWC24CommitMsgInternal inline writer buffer parameter before flags: (0, 14) + +NWC24CommitMsgInternal inline writer flags through existing message field: (0, 14) + +NWC24CommitMsgInternal read registration and delay flags inside inline writers: (0, 14) + +NWC24CommitMsgInternal inline writer buffer parameter before flags: (0, 14) + +NWC24CommitMsgInternal inline writer flags through existing message field: (0, 14) + +## kbd_led_handler source trials +Baseline structural/exact differences (30, 20) +- tail callback duplicated in success and failure arms: (31, 21) +- callback address read through callback record pointer: (29, 22) +- success switch explicit error fallback case: (30, 20) + +## Completeness audit +TMCJPEGDEC_set_converterY8U8V8: 3 logged distinct source trials; remains open pending exact code. +TMCJPEG_814EFEAC: 6 logged distinct source trials; remains open pending exact code. +TMCJPEG_814F043C: 6 logged distinct source trials; remains open pending exact code. +TMCJPEG_814F0A58: 5 logged distinct source trials; remains open pending exact code. +TMCJPEG_814F11C4: 6 logged distinct source trials; remains open pending exact code. +TMCJPEG_814F17E0: 5 logged distinct source trials; remains open pending exact code. +TMCJPEG_814F1F48: 6 logged distinct source trials; remains open pending exact code. +TMCJPEG_814F2570: 5 logged distinct source trials; remains open pending exact code. +NWC24CommitMsgInternal: 3 logged distinct source trials; remains open pending exact code. +CheckMsgBoxSpace: 4 logged distinct source trials; remains open pending exact code. +WriteMIMEAttachHeader: 10 logged distinct source trials; remains open pending exact code. +kbdEventHandler: 6 logged distinct source trials; remains open pending exact code. +kbdProcMod: 3 logged distinct source trials; remains open pending exact code. +kbd_led_handler: 6 logged distinct source trials; remains open pending exact code. +KBDSetLedsAsync: 3 logged distinct source trials; remains open pending exact code. +KBDSetLeds: 3 logged distinct source trials; remains open pending exact code. +KBDSetModState: 9 logged distinct source trials; remains open pending exact code. +Zi8PrepareMatch: 3 logged distinct source trials; remains open pending exact code. +No new symbol names, sizes, section ownership, data objects, asm, volatile declarations or shared-header changes. No data score change. The quick gate passes with zero regressions and no style/forbidden patterns. Only declaration-order improvements in two converter functions are retained; these are fuzzy improvements, not new exact matches. + +## Residual structural findings +TMCJPEGDEC_set_converterY8U8V8: target retains the shared converter-buffer base before its switch; source folds it into individual member addresses and loses one instruction. Helper extraction and local converter pointer variants did not fix it. +CheckMsgBoxSpace: equal instruction counts but different scheduling/allocation in the compiler-unrolled attachment-size estimates; signed estimates and expression regrouping regress. +kbd_led_handler: target has a 25-instruction success/error branch and tail callback; switch and if/else variants yield 22-24 instructions or a different branch shape. +KBDSetLedsAsync and KBDSetLeds: allocation, induction and inline channel-lookup boundaries differ; the target repeats channel arithmetic at the reservation and transfer boundaries. Signedness, narrowed indices and flag caching did not reach exact code. +Zi8PrepareMatch: target initializes a component-presence byte and stores it after recognizing a component, but never loads that byte. No dummy local was introduced to reproduce those dead stores. Existing loop and pointer-temporary schedules also differ. +Other remaining converter and keyboard diffs are instruction-count-equal register allocation or scheduling residuals. NWC24CommitMsgInternal retains swapped flag/buffer registers inside the registration/delay writers. WriteMIMEAttachHeader retains different live-range coalescing and addition order around its capacity estimate. +The instruction-exact gate counts fewer functions than objdiff for the converter and keyboard units at baseline; this discrepancy is unchanged and no tooling was altered. + +TMCJPEG_814F17E0 additional declaration search: start (0, 37); improved (0, 36); best (0, 36) after 150 builds; kept in source: + +TMCJPEG_814F2570 additional declaration search: start (0, 18); best (0, 18) after 150 builds; source restored; best order was: + +## Final full gate +``` +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] pool: IDENTICAL +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] objdiff: code 3736/15948 data None/None functions 5/13 fuzzy 99.2817 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.28166 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEGDEC_set_converterY8U8V8 92.78571 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814EFEAC 99.7191 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F043C 99.4757 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F0A58 99.01053 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F11C4 99.4757 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F17E0 99.58861 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F1F48 99.55584 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F2570 99.73404 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] baseline: code 3736/15948 data None functions 5 fuzzy 99.1976 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24MsgCommit] objdiff: code 3964/8532 data 904/904 functions 15/18 fuzzy 98.4426 linked code 0 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] instruction-exact functions: 15/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 98.442566 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: NWC24CommitMsgInternal 99.91536 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: CheckMsgBoxSpace 85.57399 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: WriteMIMEAttachHeader 99.61957 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] baseline: code 3964/8532 data 904 functions 15 fuzzy 98.4426 +[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.6523 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.65233 +[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 61.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.6523 +[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: 89.06976 -> 89.06976 +global fuzzy_match_percent: 99.50240 -> 99.50285 +global complete_code_percent: 65.95913 -> 65.95913 +global matched_data_percent: 99.35985 -> 99.35985 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + +## Final open-function audit +TMCJPEGDEC_set_converterY8U8V8 92.78571%: shared-buffer folding and store scheduling, 195/196 instructions; at least three distinct source trials logged. +TMCJPEG_814EFEAC 99.7191%: count-equal register allocation and instruction scheduling; at least three distinct source trials logged. +TMCJPEG_814F043C 99.4757%: count-equal register allocation and instruction scheduling; at least three distinct source trials logged. +TMCJPEG_814F0A58 99.01053%: count-equal register allocation and instruction scheduling; at least three distinct source trials logged. +TMCJPEG_814F11C4 99.4757%: count-equal register allocation and instruction scheduling; at least three distinct source trials logged. +TMCJPEG_814F17E0 99.58861%: count-equal register allocation and instruction scheduling; at least three distinct source trials logged. +TMCJPEG_814F1F48 99.55584%: count-equal register allocation and instruction scheduling; at least three distinct source trials logged. +TMCJPEG_814F2570 99.73404%: count-equal register allocation and instruction scheduling; at least three distinct source trials logged. +NWC24CommitMsgInternal 99.91536%: flag and buffer register allocation in inline field writers, 827/827 instructions; at least three distinct source trials logged. +CheckMsgBoxSpace 85.57399%: unrolled arithmetic scheduling and allocation, 223/223 instructions; at least three distinct source trials logged. +WriteMIMEAttachHeader 99.61957%: capacity-estimate operand ordering and register coalescing, 92/92 instructions; at least three distinct source trials logged. +kbdEventHandler 99.83871%: count-equal register allocation and instruction scheduling; at least three distinct source trials logged. +kbdProcMod 99.90234%: count-equal register allocation and instruction scheduling; at least three distinct source trials logged. +kbd_led_handler 61.12%: branch shape and callback load scheduling, 23/25 instructions; at least three distinct source trials logged. +KBDSetLedsAsync 86.234566%: channel arithmetic, induction and allocation; at least three distinct source trials logged. +KBDSetLeds 84.6076%: channel arithmetic, induction and allocation; at least three distinct source trials logged. +KBDSetModState 99.40476%: count-equal register allocation and instruction scheduling; at least three distinct source trials logged. +Zi8PrepareMatch 96.319145%: stack-byte stores, loop structure and temporary scheduling, 939/940 instructions; at least three distinct source trials logged. + +Before -> after instruction-exact counts: converter 2/13 -> 2/13; commit 15/18 -> 15/18; keyboard 14/21 -> 14/21; prepare 0/1 -> 0/1. Objdiff exact counts remain 5/13, 15/18, 15/21 and 0/1. Matched code bytes remain 3736, 3964, 3088 and 0. Matched data bytes remain not applicable, 904, 5296 and 8. Converter fuzzy 99.19764 -> 99.28166. No new exact function; the requested exact-count improvement condition is not achieved. Retained declaration changes are only a gate-passing fuzzy improvement. + +# High round + +Continue af06cd06. New levers: read-only views, target-proven definition-level volatile, and extent audit. + +libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8 pool POOL IDENTICAL up to 0 (mine=0 base=0) +Function extents: no overlapping target function extents + +libs/RevoEX/src/nwc24/NWC24MsgCommit pool POOL IDENTICAL up to 9 (mine=9 base=9) +Function extents: no overlapping target function extents + +libs/RVL_SDK/src/kbd/kbd_lib pool POOL IDENTICAL up to 0 (mine=0 base=0) +Function extents: no overlapping target function extents + +libs/RVLMiddleware/eZiText/src/clib/zprepare pool POOL IDENTICAL up to 0 (mine=0 base=0) +Function extents: no overlapping target function extents +Origin check TMCJPEGDEC_set_converterY8U8V8: owned source differs from origin, compare changes +Origin check TMCJPEG_814EFEAC: owned source differs from origin, compare changes +Origin check TMCJPEG_814F043C: owned source differs from origin, compare changes +Origin check TMCJPEG_814F0A58: owned source differs from origin, compare changes +Origin check TMCJPEG_814F11C4: owned source differs from origin, compare changes +Origin check TMCJPEG_814F17E0: owned source differs from origin, compare changes +Origin check TMCJPEG_814F1F48: owned source differs from origin, compare changes +Origin check TMCJPEG_814F2570: owned source differs from origin, compare changes +Origin check NWC24CommitMsgInternal: owned source unchanged +Origin check CheckMsgBoxSpace: owned source unchanged +Origin check WriteMIMEAttachHeader: owned source unchanged +Origin check kbdEventHandler: owned source unchanged +Origin check kbdProcMod: owned source unchanged +Origin check kbd_led_handler: owned source unchanged +Origin check KBDSetLedsAsync: owned source unchanged +Origin check KBDSetLeds: owned source unchanged +Origin check KBDSetModState: owned source unchanged +Origin check Zi8PrepareMatch: owned source unchanged + +## TMCJPEG_814EFEAC source trials +Baseline structural/exact differences (0, 18) +- const decoder state view: (0, 18) +- const luminance and chroma input pointers: (0, 18) +- const decoder work view for metadata loads: (99999, 99999) compiler rejection lude -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -use_lmw_stmw on -lang=c -MMD -c libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.c -o build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.d build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.d +### mwcceppc.exe Compiler: +# File: libs\RVLMiddleware\TMC_JPEG\src\texturecvtr\Texture_MCUtoY8U8V8.c +# -------------------------------------------------------------------------- +# 195: luminance = input->convBuf + 4; +# Error: ^ +# (10209) illegal implicit conversion from 'const unsigned char *' to +# 'unsigned char *' +# Too many errors printed, aborting program + +User break, cancelled... +ninja: build stopped: subcommand failed. + +- const state and input pixels together: (0, 18) + +## TMCJPEG_814F043C source trials +Baseline structural/exact differences (0, 36) +- const decoder state view: (0, 36) +- const luminance and chroma input pointers: (0, 36) +- const decoder work view for metadata loads: (99999, 99999) compiler rejection lude -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -use_lmw_stmw on -lang=c -MMD -c libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.c -o build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.d build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.d +### mwcceppc.exe Compiler: +# File: libs\RVLMiddleware\TMC_JPEG\src\texturecvtr\Texture_MCUtoY8U8V8.c +# -------------------------------------------------------------------------- +# 259: luminance = input->convBuf + 4; +# Error: ^ +# (10209) illegal implicit conversion from 'const unsigned char *' to +# 'unsigned char *' +# Too many errors printed, aborting program + +User break, cancelled... +ninja: build stopped: subcommand failed. + +- const state and input pixels together: (0, 36) + +## TMCJPEG_814F0A58 source trials +Baseline structural/exact differences (0, 77) +- const decoder state view: (0, 77) +- const luminance and chroma input pointers: (19, 107) +- const decoder work view for metadata loads: (99999, 99999) compiler rejection lude -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -use_lmw_stmw on -lang=c -MMD -c libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.c -o build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.d build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.d +### mwcceppc.exe Compiler: +# File: libs\RVLMiddleware\TMC_JPEG\src\texturecvtr\Texture_MCUtoY8U8V8.c +# -------------------------------------------------------------------------- +# 326: luminance = input->convBuf + 4; +# Error: ^ +# (10209) illegal implicit conversion from 'const unsigned char *' to +# 'unsigned char *' +# Too many errors printed, aborting program + +User break, cancelled... +ninja: build stopped: subcommand failed. + +- const state and input pixels together: (19, 107) + +## TMCJPEG_814F11C4 source trials +Baseline structural/exact differences (0, 36) +- const decoder state view: (0, 36) +- const luminance and chroma input pointers: (0, 36) +- const decoder work view for metadata loads: (99999, 99999) compiler rejection lude -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -use_lmw_stmw on -lang=c -MMD -c libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.c -o build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.d build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.d +### mwcceppc.exe Compiler: +# File: libs\RVLMiddleware\TMC_JPEG\src\texturecvtr\Texture_MCUtoY8U8V8.c +# -------------------------------------------------------------------------- +# 385: luminance = input->convBuf + 4; +# Error: ^ +# (10209) illegal implicit conversion from 'const unsigned char *' to +# 'unsigned char *' +# Too many errors printed, aborting program + +User break, cancelled... +ninja: build stopped: subcommand failed. + +- const state and input pixels together: (0, 36) + +## TMCJPEG_814F17E0 source trials +Baseline structural/exact differences (0, 36) +- const decoder state view: (0, 36) +- const luminance and chroma input pointers: (19, 66) +- const decoder work view for metadata loads: (99999, 99999) compiler rejection lude -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -use_lmw_stmw on -lang=c -MMD -c libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.c -o build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.d build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.d +### mwcceppc.exe Compiler: +# File: libs\RVLMiddleware\TMC_JPEG\src\texturecvtr\Texture_MCUtoY8U8V8.c +# -------------------------------------------------------------------------- +# 451: luminance = input->convBuf + 4; +# Error: ^ +# (10209) illegal implicit conversion from 'const unsigned char *' to +# 'unsigned char *' +# Too many errors printed, aborting program + +User break, cancelled... +ninja: build stopped: subcommand failed. + +- const state and input pixels together: (19, 66) + +## TMCJPEG_814F1F48 source trials +Baseline structural/exact differences (0, 31) +- const decoder state view: (0, 31) +- const luminance and chroma input pointers: (0, 31) +- const decoder work view for metadata loads: (99999, 99999) compiler rejection lude -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -use_lmw_stmw on -lang=c -MMD -c libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.c -o build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.d build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.d +### mwcceppc.exe Compiler: +# File: libs\RVLMiddleware\TMC_JPEG\src\texturecvtr\Texture_MCUtoY8U8V8.c +# -------------------------------------------------------------------------- +# 510: luminance = input->convBuf + 4; +# Error: ^ +# (10209) illegal implicit conversion from 'const unsigned char *' to +# 'unsigned char *' +# Too many errors printed, aborting program + +User break, cancelled... +ninja: build stopped: subcommand failed. + +- const state and input pixels together: (0, 31) + +## TMCJPEG_814F2570 source trials +Baseline structural/exact differences (0, 18) +- const decoder state view: (0, 18) +- const luminance and chroma input pointers: (0, 18) +- const decoder work view for metadata loads: (99999, 99999) compiler rejection lude -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -use_lmw_stmw on -lang=c -MMD -c libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.c -o build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.d build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.d +### mwcceppc.exe Compiler: +# File: libs\RVLMiddleware\TMC_JPEG\src\texturecvtr\Texture_MCUtoY8U8V8.c +# -------------------------------------------------------------------------- +# 578: luminance = input->convBuf + 4; +# Error: ^ +# (10209) illegal implicit conversion from 'const unsigned char *' to +# 'unsigned char *' +# Too many errors printed, aborting program + +User break, cancelled... +ninja: build stopped: subcommand failed. + +- const state and input pixels together: (0, 18) + +## kbdEventHandler source trials +Baseline structural/exact differences (0, 5) +- const report byte pointer: (0, 5) +- const device comparison view: (0, 5) +- const report view with channel pointer on left: (0, 6) + +## WriteMIMEAttachHeader source trials +Baseline structural/exact differences (0, 5) +- const attachment metadata view: (0, 5) +- const suffix and MIME pointer objects: (13, 18) +- const metadata view with pointer indexed attachment type: (0, 5) + +High volatile proofs: target stb/lbz at 0x88/0x8c for elementCount; stw/lwz at 0x15c/0x160 and 0x178/0x17c for componentIndex; stw/lwz at 0x1b4/0x1b8 for component; stb/lbz at 0x3cc/0x3d0 and 0x3e0/0x3e4 for mode; sth/lhz at 0x4b0/0x4b4 for element; stb/lbz at 0x5d8/0x5dc and 0xaf4/0xaf8 for stroke; sth/lhz at 0xe50/0xe54 for phoneticLength. All are adjacent stack stores and reloads with no intervening instruction. + +## Zi8PrepareMatch source trials +Baseline structural/exact differences (36, 889) +- target-proven volatile elementCount: (38, 806) +- target-proven volatile componentIndex: (36, 889) +- target-proven volatile component: (36, 889) +- target-proven volatile mode: (36, 892) +- target-proven volatile element: (39, 649) +- target-proven volatile stroke: (36, 889) +- target-proven volatile phoneticLength: (36, 889) +- target-proven volatile component pointer fields together: (36, 889) + +## TMCJPEG_814EFEAC source trials +Baseline structural/exact differences (0, 18) +- complete const work and pixel read view: (0, 18) +- const work plus decoder state view: (0, 18) + +## TMCJPEG_814F043C source trials +Baseline structural/exact differences (0, 36) +- complete const work and pixel read view: (0, 36) +- const work plus decoder state view: (0, 36) + +## TMCJPEG_814F0A58 source trials +Baseline structural/exact differences (0, 77) +- complete const work and pixel read view: (19, 107) +- const work plus decoder state view: (19, 107) + +## TMCJPEG_814F11C4 source trials +Baseline structural/exact differences (0, 36) +- complete const work and pixel read view: (0, 36) +- const work plus decoder state view: (0, 36) + +## TMCJPEG_814F17E0 source trials +Baseline structural/exact differences (0, 36) +- complete const work and pixel read view: (19, 66) +- const work plus decoder state view: (19, 66) + +## TMCJPEG_814F1F48 source trials +Baseline structural/exact differences (0, 31) +- complete const work and pixel read view: (0, 31) +- const work plus decoder state view: (0, 31) + +## TMCJPEG_814F2570 source trials +Baseline structural/exact differences (0, 18) +- complete const work and pixel read view: (0, 18) +- const work plus decoder state view: (0, 18) + +## WriteMIMEAttachHeader source trials +Baseline structural/exact differences (0, 5) +- separate header-length declarations in call order: (0, 5) +- separate header lengths in target live-range order: (0, 5) +- use one total length from measured header overhead to output: (2, 5) + +## KBDSetModState source trials +Baseline structural/exact differences (0, 4) +- const modifier source field view: (0, 7) +- const channel source view with union physical extraction: (0, 7) +- old modifier view uses signed pointer index: (0, 7) +- const physical state scalar before bitfield insertion: (0, 7) + +## kbdProcMod source trials +Baseline structural/exact differences (0, 4) +- const key-map flags view: (0, 9) +- const channel view for lock-state reads: (0, 4) +- signed channel indexing at modifier setter: (14, 254) + +## KBDSetLedsAsync source trials +Baseline structural/exact differences (14, 70) +- const device source view: (20, 74) +- const command readiness view beside mutable reservation: (25, 57) +- volatile command record device proven external callback update: inapplicable +- signed readiness test using existing flags word: (16, 70) + +## KBDSetLeds source trials +Baseline structural/exact differences (19, 75) +- const device source view: (27, 75) +- const command readiness view beside mutable reservation: (27, 62) +- volatile command record device proven external callback update: inapplicable +- signed readiness test using existing flags word: (21, 75) + +## kbd_led_handler source trials +Baseline structural/exact differences (30, 20) +- const callback record view: (29, 22) +- const argument view for command index: (30, 20) +- read callback in const pointer before releasing command: (13, 21) + +## WriteMIMEAttachHeader source trials +Baseline structural/exact differences (0, 5) +- measured MIME sum ((typeLength + encodingLength) + dispositionLength) + mimeLength: (2, 5) +- measured MIME sum (typeLength + (encodingLength + dispositionLength)) + mimeLength: (2, 5) +- measured MIME sum typeLength + ((encodingLength + dispositionLength) + mimeLength): (2, 6) +- measured MIME sum typeLength + (encodingLength + (dispositionLength + mimeLength)): (2, 5) +- measured MIME sum (typeLength + encodingLength) + (dispositionLength + mimeLength): (2, 6) +- measured MIME sum ((typeLength + encodingLength) + mimeLength) + dispositionLength: (2, 6) +- measured MIME sum (typeLength + (encodingLength + mimeLength)) + dispositionLength: (2, 5) +- measured MIME sum typeLength + ((encodingLength + mimeLength) + dispositionLength): (2, 5) +- measured MIME sum typeLength + (encodingLength + (mimeLength + dispositionLength)): (2, 6) +- measured MIME sum (typeLength + encodingLength) + (mimeLength + dispositionLength): (2, 6) +- measured MIME sum ((typeLength + dispositionLength) + encodingLength) + mimeLength: (2, 5) +- measured MIME sum (typeLength + (dispositionLength + encodingLength)) + mimeLength: (2, 4) +- measured MIME sum typeLength + ((dispositionLength + encodingLength) + mimeLength): (2, 6) +- measured MIME sum typeLength + (dispositionLength + (encodingLength + mimeLength)): (2, 5) +- measured MIME sum (typeLength + dispositionLength) + (encodingLength + mimeLength): (2, 6) +- measured MIME sum ((typeLength + dispositionLength) + mimeLength) + encodingLength: (2, 6) +- measured MIME sum (typeLength + (dispositionLength + mimeLength)) + encodingLength: (2, 4) +- measured MIME sum typeLength + ((dispositionLength + mimeLength) + encodingLength): (2, 5) +- measured MIME sum typeLength + (dispositionLength + (mimeLength + encodingLength)): (2, 6) +- measured MIME sum (typeLength + dispositionLength) + (mimeLength + encodingLength): (2, 6) +- measured MIME sum ((typeLength + mimeLength) + encodingLength) + dispositionLength: (2, 5) +- measured MIME sum (typeLength + (mimeLength + encodingLength)) + dispositionLength: (2, 6) +- measured MIME sum typeLength + ((mimeLength + encodingLength) + dispositionLength): (2, 6) +- measured MIME sum typeLength + (mimeLength + (encodingLength + dispositionLength)): (2, 6) +- measured MIME sum (typeLength + mimeLength) + (encodingLength + dispositionLength): (2, 5) +- measured MIME sum ((typeLength + mimeLength) + dispositionLength) + encodingLength: (2, 5) +- measured MIME sum (typeLength + (mimeLength + dispositionLength)) + encodingLength: (2, 6) +- measured MIME sum typeLength + ((mimeLength + dispositionLength) + encodingLength): (2, 6) +- measured MIME sum typeLength + (mimeLength + (dispositionLength + encodingLength)): (2, 6) +- measured MIME sum (typeLength + mimeLength) + (dispositionLength + encodingLength): (2, 5) +- measured MIME sum ((encodingLength + typeLength) + dispositionLength) + mimeLength: (2, 5) +- measured MIME sum (encodingLength + (typeLength + dispositionLength)) + mimeLength: (2, 5) +- measured MIME sum encodingLength + ((typeLength + dispositionLength) + mimeLength): (2, 6) +- measured MIME sum encodingLength + (typeLength + (dispositionLength + mimeLength)): (2, 4) +- measured MIME sum (encodingLength + typeLength) + (dispositionLength + mimeLength): (2, 6) +- measured MIME sum ((encodingLength + typeLength) + mimeLength) + dispositionLength: (2, 6) +- measured MIME sum (encodingLength + (typeLength + mimeLength)) + dispositionLength: (2, 5) +- measured MIME sum encodingLength + ((typeLength + mimeLength) + dispositionLength): (2, 5) +- measured MIME sum encodingLength + (typeLength + (mimeLength + dispositionLength)): (2, 6) +- measured MIME sum (encodingLength + typeLength) + (mimeLength + dispositionLength): (2, 6) +- measured MIME sum ((encodingLength + dispositionLength) + typeLength) + mimeLength: (2, 5) +- measured MIME sum (encodingLength + (dispositionLength + typeLength)) + mimeLength: (2, 5) +- measured MIME sum encodingLength + ((dispositionLength + typeLength) + mimeLength): (2, 6) +- measured MIME sum encodingLength + (dispositionLength + (typeLength + mimeLength)): (2, 5) +- measured MIME sum (encodingLength + dispositionLength) + (typeLength + mimeLength): (2, 6) +- measured MIME sum ((encodingLength + dispositionLength) + mimeLength) + typeLength: (2, 6) +- measured MIME sum (encodingLength + (dispositionLength + mimeLength)) + typeLength: (2, 5) +- measured MIME sum encodingLength + ((dispositionLength + mimeLength) + typeLength): (2, 4) +- measured MIME sum encodingLength + (dispositionLength + (mimeLength + typeLength)): (2, 6) +- measured MIME sum (encodingLength + dispositionLength) + (mimeLength + typeLength): (2, 6) +- measured MIME sum ((encodingLength + mimeLength) + typeLength) + dispositionLength: (2, 5) +- measured MIME sum (encodingLength + (mimeLength + typeLength)) + dispositionLength: (2, 6) +- measured MIME sum encodingLength + ((mimeLength + typeLength) + dispositionLength): (2, 6) +- measured MIME sum encodingLength + (mimeLength + (typeLength + dispositionLength)): (2, 6) +- measured MIME sum (encodingLength + mimeLength) + (typeLength + dispositionLength): (2, 4) +- measured MIME sum ((encodingLength + mimeLength) + dispositionLength) + typeLength: (2, 5) +- measured MIME sum (encodingLength + (mimeLength + dispositionLength)) + typeLength: (2, 6) +- measured MIME sum encodingLength + ((mimeLength + dispositionLength) + typeLength): (2, 6) +- measured MIME sum encodingLength + (mimeLength + (dispositionLength + typeLength)): (2, 6) +- measured MIME sum (encodingLength + mimeLength) + (dispositionLength + typeLength): (2, 5) +- measured MIME sum ((dispositionLength + typeLength) + encodingLength) + mimeLength: (2, 5) +- measured MIME sum (dispositionLength + (typeLength + encodingLength)) + mimeLength: (2, 5) +- measured MIME sum dispositionLength + ((typeLength + encodingLength) + mimeLength): (2, 6) +- measured MIME sum dispositionLength + (typeLength + (encodingLength + mimeLength)): (2, 5) +- measured MIME sum (dispositionLength + typeLength) + (encodingLength + mimeLength): (2, 6) +- measured MIME sum ((dispositionLength + typeLength) + mimeLength) + encodingLength: (2, 6) +- measured MIME sum (dispositionLength + (typeLength + mimeLength)) + encodingLength: (2, 5) +- measured MIME sum dispositionLength + ((typeLength + mimeLength) + encodingLength): (2, 5) +- measured MIME sum dispositionLength + (typeLength + (mimeLength + encodingLength)): (2, 6) +- measured MIME sum (dispositionLength + typeLength) + (mimeLength + encodingLength): (2, 6) +- measured MIME sum ((dispositionLength + encodingLength) + typeLength) + mimeLength: (2, 4) +- measured MIME sum (dispositionLength + (encodingLength + typeLength)) + mimeLength: (2, 5) +- measured MIME sum dispositionLength + ((encodingLength + typeLength) + mimeLength): (2, 6) +- measured MIME sum dispositionLength + (encodingLength + (typeLength + mimeLength)): (2, 5) +- measured MIME sum (dispositionLength + encodingLength) + (typeLength + mimeLength): (2, 6) +- measured MIME sum ((dispositionLength + encodingLength) + mimeLength) + typeLength: (2, 6) +- measured MIME sum (dispositionLength + (encodingLength + mimeLength)) + typeLength: (2, 5) +- measured MIME sum dispositionLength + ((encodingLength + mimeLength) + typeLength): (2, 5) +- measured MIME sum dispositionLength + (encodingLength + (mimeLength + typeLength)): (2, 6) +- measured MIME sum (dispositionLength + encodingLength) + (mimeLength + typeLength): (2, 6) +- measured MIME sum ((dispositionLength + mimeLength) + typeLength) + encodingLength: (2, 4) +- measured MIME sum (dispositionLength + (mimeLength + typeLength)) + encodingLength: (2, 6) +- measured MIME sum dispositionLength + ((mimeLength + typeLength) + encodingLength): (2, 6) +- measured MIME sum dispositionLength + (mimeLength + (typeLength + encodingLength)): (2, 6) +- measured MIME sum (dispositionLength + mimeLength) + (typeLength + encodingLength): (2, 5) +- measured MIME sum ((dispositionLength + mimeLength) + encodingLength) + typeLength: (2, 5) +- measured MIME sum (dispositionLength + (mimeLength + encodingLength)) + typeLength: (2, 6) +- measured MIME sum dispositionLength + ((mimeLength + encodingLength) + typeLength): (2, 6) +- measured MIME sum dispositionLength + (mimeLength + (encodingLength + typeLength)): (2, 6) +- measured MIME sum (dispositionLength + mimeLength) + (encodingLength + typeLength): (2, 5) +- measured MIME sum ((mimeLength + typeLength) + encodingLength) + dispositionLength: (2, 6) +- measured MIME sum (mimeLength + (typeLength + encodingLength)) + dispositionLength: (2, 6) +- measured MIME sum mimeLength + ((typeLength + encodingLength) + dispositionLength): (2, 5) +- measured MIME sum mimeLength + (typeLength + (encodingLength + dispositionLength)): (2, 5) +- measured MIME sum (mimeLength + typeLength) + (encodingLength + dispositionLength): (2, 5) +- measured MIME sum ((mimeLength + typeLength) + dispositionLength) + encodingLength: (2, 6) +- measured MIME sum (mimeLength + (typeLength + dispositionLength)) + encodingLength: (2, 6) +- measured MIME sum mimeLength + ((typeLength + dispositionLength) + encodingLength): (2, 5) +- measured MIME sum mimeLength + (typeLength + (dispositionLength + encodingLength)): (2, 4) +- measured MIME sum (mimeLength + typeLength) + (dispositionLength + encodingLength): (2, 5) +- measured MIME sum ((mimeLength + encodingLength) + typeLength) + dispositionLength: (2, 6) +- measured MIME sum (mimeLength + (encodingLength + typeLength)) + dispositionLength: (2, 6) +- measured MIME sum mimeLength + ((encodingLength + typeLength) + dispositionLength): (2, 5) +- measured MIME sum mimeLength + (encodingLength + (typeLength + dispositionLength)): (2, 5) +- measured MIME sum (mimeLength + encodingLength) + (typeLength + dispositionLength): (2, 4) +- measured MIME sum ((mimeLength + encodingLength) + dispositionLength) + typeLength: (2, 6) +- measured MIME sum (mimeLength + (encodingLength + dispositionLength)) + typeLength: (2, 6) +- measured MIME sum mimeLength + ((encodingLength + dispositionLength) + typeLength): (2, 5) +- measured MIME sum mimeLength + (encodingLength + (dispositionLength + typeLength)): (2, 5) +- measured MIME sum (mimeLength + encodingLength) + (dispositionLength + typeLength): (2, 5) +- measured MIME sum ((mimeLength + dispositionLength) + typeLength) + encodingLength: (2, 6) +- measured MIME sum (mimeLength + (dispositionLength + typeLength)) + encodingLength: (2, 6) +- measured MIME sum mimeLength + ((dispositionLength + typeLength) + encodingLength): (2, 5) +- measured MIME sum mimeLength + (dispositionLength + (typeLength + encodingLength)): (2, 5) +- measured MIME sum (mimeLength + dispositionLength) + (typeLength + encodingLength): (2, 5) +- measured MIME sum ((mimeLength + dispositionLength) + encodingLength) + typeLength: (2, 6) +- measured MIME sum (mimeLength + (dispositionLength + encodingLength)) + typeLength: (2, 6) +- measured MIME sum mimeLength + ((dispositionLength + encodingLength) + typeLength): (2, 4) +- measured MIME sum mimeLength + (dispositionLength + (encodingLength + typeLength)): (2, 5) +- measured MIME sum (mimeLength + dispositionLength) + (encodingLength + typeLength): (2, 5) + +## TMCJPEGDEC_set_converterY8U8V8 source trials +Baseline structural/exact differences (41, 195) +- array-address converter base: (41, 195) +- explicit first-element converter base: (41, 195) +- void converter base with byte views at each row: (41, 195) +- word-sized IDCT mode locals: (41, 195) +- signed IDCT mode locals: (41, 195) +- converter base lifetime starts after metadata reads: (41, 195) +- output state declared before converter base: (41, 195) +- row pointers written in calculation order: (45, 194) + +## NWC24CommitMsgInternal source trials +Baseline structural/exact differences (0, 14) +- read board registration date through named bitfield: (0, 14) +- registration flags word local before inline writer: (0, 14) +- registration flags const word local before inline writer: (0, 14) +- const message view for board flag reads: (21, 451) +- delay extracted from named bitfield and shifted to mask: (0, 14) +- registration and delay use named bitfields: (0, 14) + +## CheckMsgBoxSpace source trials +Baseline structural/exact differences (67, 73) +- const attachment-size array view: (101, 221) +- const text-size and encoding view before estimates: (67, 73) +- unsigned accumulation using explicit line count: (67, 73) +- line overhead grouped with encoded byte count: (67, 73) +- attachment index declared unsigned: (85, 213) +- text encoding uses independent capacity temporary: (67, 73) + +## TMCJPEG_814EFEAC source trials +Baseline structural/exact differences (0, 18) +- tile multiplication before column tile addition: (0, 18) +- column and row byte offsets swapped: (0, 18) +- signed tile-count local with unsigned multiply view: (0, 18) +- column locals scoped to independent row loops: (298, 354) +- store bias added before input pixel: (0, 18) + +## TMCJPEG_814F043C source trials +Baseline structural/exact differences (0, 36) +- tile multiplication before column tile addition: (0, 36) +- column and row byte offsets swapped: (0, 36) +- signed tile-count local with unsigned multiply view: (0, 36) +- column locals scoped to independent row loops: (223, 379) +- store bias added before input pixel: (0, 36) + +## TMCJPEG_814F0A58 source trials +Baseline structural/exact differences (0, 77) +- tile multiplication before column tile addition: (0, 77) +- column and row byte offsets swapped: (0, 77) +- signed tile-count local with unsigned multiply view: (0, 77) +- column locals scoped to independent row loops: (361, 474) +- store bias added before input pixel: (0, 77) + +## TMCJPEG_814F11C4 source trials +Baseline structural/exact differences (0, 36) +- tile multiplication before column tile addition: (0, 36) +- column and row byte offsets swapped: (0, 36) +- signed tile-count local with unsigned multiply view: (0, 36) +- column locals scoped to independent row loops: (223, 379) +- store bias added before input pixel: (0, 36) + +## TMCJPEG_814F17E0 source trials +Baseline structural/exact differences (0, 36) +- tile multiplication before column tile addition: (0, 36) +- column and row byte offsets swapped: (0, 36) +- signed tile-count local with unsigned multiply view: (0, 36) +- column locals scoped to independent row loops: (361, 473) +- store bias added before input pixel: (0, 36) + +## TMCJPEG_814F1F48 source trials +Baseline structural/exact differences (0, 31) +- tile multiplication before column tile addition: (0, 31) +- column and row byte offsets swapped: (0, 31) +- signed tile-count local with unsigned multiply view: (0, 31) +- column locals scoped to independent row loops: (231, 384) +- store bias added before input pixel: (0, 31) + +## TMCJPEG_814F2570 source trials +Baseline structural/exact differences (0, 18) +- tile multiplication before column tile addition: (0, 18) +- column and row byte offsets swapped: (0, 18) +- signed tile-count local with unsigned multiply view: (0, 18) +- column locals scoped to independent row loops: (224, 375) +- store bias added before input pixel: (0, 18) + +## Const formal decoder work +Guarded callback typedef with a macro defined only by owned source; all twelve decoder converter functions take const work and const input pixels. +TMCJPEG_814EFEAC: (339, 384) +TMCJPEG_814F043C: (579, 446) +TMCJPEG_814F0A58: (515, 541) +TMCJPEG_814F11C4: (579, 446) +TMCJPEG_814F17E0: (505, 546) +TMCJPEG_814F1F48: (592, 454) +TMCJPEG_814F2570: (359, 426) +mutable mailbox estimate input: (67, 73) +const MIME metadata formal with mutable output view: (0, 5) + +## WriteMIMEAttachHeader source trials +Baseline structural/exact differences (0, 5) +- sum after encoding subtotal (typeLength + dispositionLength) + mimeLength: (0, 5) +- sum after encoding subtotal typeLength + (dispositionLength + mimeLength): (0, 5) +- sum after encoding subtotal (typeLength + mimeLength) + dispositionLength: (0, 5) +- sum after encoding subtotal typeLength + (mimeLength + dispositionLength): (0, 5) +- sum after encoding subtotal (dispositionLength + typeLength) + mimeLength: inapplicable +- sum after encoding subtotal dispositionLength + (typeLength + mimeLength): (0, 5) +- sum after encoding subtotal (dispositionLength + mimeLength) + typeLength: (0, 5) +- sum after encoding subtotal dispositionLength + (mimeLength + typeLength): (0, 5) +- sum after encoding subtotal (mimeLength + typeLength) + dispositionLength: (0, 5) +- sum after encoding subtotal mimeLength + (typeLength + dispositionLength): (0, 5) +- sum after encoding subtotal (mimeLength + dispositionLength) + typeLength: (0, 5) +- sum after encoding subtotal mimeLength + (dispositionLength + typeLength): (0, 5) + +## KBDSetModState source trials +Baseline structural/exact differences (0, 4) +- direct physical bitfield from channel word: (0, 4) +- direct physical bitfield with explicit six-bit mask: (0, 4) +- physical field read through existing union type: (0, 7) +- direct physical bitfield through left-added channel address: (0, 4) + +## kbd_led_handler source trials +Baseline structural/exact differences (13, 21) +- signed callback command slot index: (13, 21) +- success result conditional expression: (30, 23) +- initialize success then set failure result: (10, 22) +- initialize failure then set success result: (13, 22) + +kbd_led_handler inline result-helper boundary: (10, 22) + +## Global neighbour extent proof +Zi8PrepareMatch: extent 0x814850FC..0x81485FAC, next CDBInit 0x81485FAC, overlap=0 +NWC24CommitMsgInternal: extent 0x814A6590..0x814A727C, next CheckMsgObject 0x814A727C, 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_814EFEAC: extent 0x814EFEAC..0x814F043C, next TMCJPEG_814F043C 0x814F043C, overlap=0 +TMCJPEG_814F043C: extent 0x814F043C..0x814F0A58, next TMCJPEG_814F0A58 0x814F0A58, overlap=0 +TMCJPEG_814F0A58: extent 0x814F0A58..0x814F11C4, next TMCJPEG_814F11C4 0x814F11C4, overlap=0 +TMCJPEG_814F11C4: extent 0x814F11C4..0x814F17E0, next TMCJPEG_814F17E0 0x814F17E0, overlap=0 +TMCJPEG_814F17E0: extent 0x814F17E0..0x814F1F48, next TMCJPEG_814F1F48 0x814F1F48, overlap=0 +TMCJPEG_814F1F48: extent 0x814F1F48..0x814F2570, next TMCJPEG_814F2570 0x814F2570, overlap=0 +TMCJPEG_814F2570: extent 0x814F2570..0x814F2B50, next TMCJPEG_814F2B50 0x814F2B50, 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 + +LED follow-up: instruction alignment score selected a 23-instruction branch variation, but objdiff dropped the function to 51.96%; rejected it. Restored the earlier const callback guard view, measured at 64.12% versus 61.12% before this round. This is a fuzzy-only improvement, not an exact candidate. + +## High-round coverage audit +269 measured source variants, plus formal-parameter/typedef and inline-helper experiments. +TMCJPEGDEC_set_converterY8U8V8: 8 high-round source variants measured. +TMCJPEG_814EFEAC: 11 high-round source variants measured. +TMCJPEG_814F043C: 11 high-round source variants measured. +TMCJPEG_814F0A58: 11 high-round source variants measured. +TMCJPEG_814F11C4: 11 high-round source variants measured. +TMCJPEG_814F17E0: 11 high-round source variants measured. +TMCJPEG_814F1F48: 11 high-round source variants measured. +TMCJPEG_814F2570: 11 high-round source variants measured. +NWC24CommitMsgInternal: 6 high-round source variants measured. +CheckMsgBoxSpace: 6 high-round source variants measured. +WriteMIMEAttachHeader: 137 high-round source variants measured. +kbdEventHandler: 3 high-round source variants measured. +kbdProcMod: 3 high-round source variants measured. +kbd_led_handler: 7 high-round source variants measured. +KBDSetLedsAsync: 3 high-round source variants measured. +KBDSetLeds: 3 high-round source variants measured. +KBDSetModState: 8 high-round source variants measured. +Zi8PrepareMatch: 8 high-round source variants measured. +All eighteen open functions received at least three fresh high-round source variants. All global function extents end at their immediate neighbour; no size corrections are justified. Const views and target-proven volatile definitions were tested; no volatile declaration was retained. zprepare uses -opt off, so adjacent stack stores/reloads alone do not establish that its original locals were volatile. No data or symbol changes are retained. + +## High final full gate +``` +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] pool: IDENTICAL +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] objdiff: code 3736/15948 data None/None functions 5/13 fuzzy 99.2817 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.28166 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEGDEC_set_converterY8U8V8 92.78571 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814EFEAC 99.7191 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F043C 99.4757 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F0A58 99.01053 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F11C4 99.4757 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F17E0 99.58861 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F1F48 99.55584 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F2570 99.73404 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] baseline: code 3736/15948 data None functions 5 fuzzy 99.1976 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24MsgCommit] objdiff: code 3964/8532 data 904/904 functions 15/18 fuzzy 98.4426 linked code 0 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] instruction-exact functions: 15/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 98.442566 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: NWC24CommitMsgInternal 99.91536 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: CheckMsgBoxSpace 85.57399 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: WriteMIMEAttachHeader 99.61957 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] baseline: code 3964/8532 data 904 functions 15 fuzzy 98.4426 +[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.6523 +[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: 89.06976 -> 89.06976 +global fuzzy_match_percent: 99.50240 -> 99.50295 +global complete_code_percent: 65.95913 -> 65.95913 +global matched_data_percent: 99.35985 -> 99.35985 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + +High before -> after: instruction-exact 2/13 -> 2/13, 15/18 -> 15/18, 14/21 -> 14/21, 0/1 -> 0/1. Objdiff-exact 5/13 -> 5/13, 15/18 -> 15/18, 15/21 -> 15/21, 0/1 -> 0/1. Matched code bytes unchanged at 3736, 3964, 3088 and 0; matched data unchanged at not applicable, 904, 5296 and 8. kbd_led_handler 61.12 -> 64.12%; kbd_lib fuzzy 97.65233 -> 97.70437%. New exact functions: zero. + +## High remaining functions +TMCJPEGDEC_set_converterY8U8V8 92.78571%: shared buffer base folding and case scheduling. +TMCJPEG_814EFEAC 99.7191%: register allocation and operand scheduling. +TMCJPEG_814F043C 99.4757%: register allocation and operand scheduling. +TMCJPEG_814F0A58 99.01053%: register allocation and operand scheduling. +TMCJPEG_814F11C4 99.4757%: register allocation and operand scheduling. +TMCJPEG_814F17E0 99.58861%: register allocation and operand scheduling. +TMCJPEG_814F1F48 99.55584%: register allocation and operand scheduling. +TMCJPEG_814F2570 99.73404%: register allocation and operand scheduling. +NWC24CommitMsgInternal 99.91536%: register allocation and operand scheduling. +CheckMsgBoxSpace 85.57399%: unrolled estimate load/arithmetic scheduling. +WriteMIMEAttachHeader 99.61957%: register allocation and operand scheduling. +kbdEventHandler 99.83871%: register allocation and operand scheduling. +kbdProcMod 99.90234%: register allocation and operand scheduling. +kbd_led_handler 64.12%: branch direction, command-release ordering and index rematerialization. +KBDSetLedsAsync 86.234566%: command-slot loop and channel lookup boundaries. +KBDSetLeds 84.6076%: command-slot loop and channel lookup boundaries. +KBDSetModState 99.40476%: register allocation and operand scheduling. +Zi8PrepareMatch 96.319145%: missing original dead stores and unoptimized expression temporary ordering. + +# Xhigh round +Selected closest four open functions: NWC24CommitMsgInternal 99.91536, kbdProcMod 99.90234, kbdEventHandler 99.83871, TMCJPEG_814F2570 99.73404. Fresh origin/main check: source differences are only previously committed local fuzzy improvements, no new matching implementation. No symbol extent overlap in selected functions. Data: JPEG has none; NWC and kbd exact; zprepare switch-table relocations refer to nonexact code, not a naming gap. +libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8: POOL IDENTICAL up to 0 (mine=0 base=0) +libs/RevoEX/src/nwc24/NWC24MsgCommit: POOL IDENTICAL up to 9 (mine=9 base=9) +libs/RVL_SDK/src/kbd/kbd_lib: POOL IDENTICAL up to 0 (mine=0 base=0) +libs/RVLMiddleware/eZiText/src/clib/zprepare: POOL IDENTICAL up to 0 (mine=0 base=0) + +First differing instruction 426 (target offset 0x770): clrlwi. r23,r0,16 versus ours r24. Maps to dateFlags = low 16 bits of msg->msgBoardFlags.raw crossing the WriteMBRegDateField inline boundary. Stack frame, branches, loads and calls already identical; buffer allocation then differs at 430. Delay starts at 461 with flags r28 versus target r23. No adjacent store/reload proving volatile in either region. Test flags ownership and formatting/helper boundaries. + +## Xhigh NWC24CommitMsgInternal: inline field and flush boundaries +- baseline: structural/exact (0, 14) instructions 827/827 +- WriteMBRegDateField flags owned by helper: structural/exact (0, 14) instructions 827/827 +- WriteMBDelayField flags owned by helper: structural/exact (0, 14) instructions 827/827 +- both inline helpers own flags: structural/exact (0, 14) instructions 827/827 +- flatten WriteMBRegDateField: structural/exact (2, 24) instructions 827/827 +- flatten WriteMBDelayField: structural/exact (2, 24) instructions 827/827 +- flatten WriteMBRegDateField and WriteMBDelayField: structural/exact (4, 34) instructions 827/827 +- generic formatted MB writer inline boundary: structural/exact (99999, 99999)3U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 213: Mail_sprintf(buffer, format, value); # Error: ^ # (10209) illegal implicit conversion from 'const char *' to # 'char *' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- bounded string flush helper boundary: structural/exact (0, 14) instructions 827/827 +- registration helper takes u16 field: structural/exact (0, 14) instructions 827/827 +- signed board formatting flags: structural/exact (0, 14) instructions 827/827 +- caller owns zero guards: structural/exact (32, 413) instructions 823/827 + +First differing instruction 426 (target offset 0x770): clrlwi. r23,r0,16 versus ours r24. Maps to dateFlags = low 16 bits of msg->msgBoardFlags.raw crossing the WriteMBRegDateField inline boundary. Stack frame, branches, loads and calls already identical; buffer allocation then differs at 430. Delay starts at 461 with flags r28 versus target r23. No adjacent store/reload proving volatile in either region. Test flags ownership and formatting/helper boundaries. + +## Xhigh NWC24CommitMsgInternal: formatted helper argument lifetimes and aggregate ownership +- baseline: structural/exact (0, 14) instructions 827/827 +- generic formatted MB writer corrected API: structural/exact (26, 415) instructions 829/827 +- generic helper argument layout u32 flags, char* format, NWC24MsgObjPrivate* msg, u32 value: structural/exact (26, 415) instructions 829/827 +- generic helper argument layout NWC24MsgObjPrivate* msg, u32 flags, char* format, u32 value: structural/exact (26, 415) instructions 829/827 +- generic helper argument layout char* format, u32 flags, u32 value, NWC24MsgObjPrivate* msg: structural/exact (26, 415) instructions 829/827 +- flatten field blocks with narrow registration storage: structural/exact (4, 34) instructions 827/827 +- inline field work aggregate owns flags and scratch buffer: structural/exact (0, 7) instructions 827/827 + +Aggregate flags+buffer ownership fixes all seven registration-field differences (827 instructions unchanged); delay remains seven differences at 461,465,468,470,472,475,480. Hypothesis: coalescing delay flags and flush result arises from helper scratch ownership. Extend aggregate to actual length/error values; test independently per field. + +## Xhigh NWC24CommitMsgInternal: functional aggregate scratch layout +- baseline: structural/exact (0, 14) instructions 827/827 +- header aggregate flags,buffer,length: structural/exact (99999, 99999)sgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 219: msg->field.length += field.length; # Error: ^ # (10393) 'field' is not a member of class 'struct NWC24MsgObjPrivate' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- header aggregate flags,buffer,err: structural/exact (54, 94) instructions 827/827 +- header aggregate flags,buffer,length,err: structural/exact (99999, 99999)sgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 218: msg->field.length += field.length; # Error: ^ # (10393) 'field' is not a member of class 'struct NWC24MsgObjPrivate' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- header aggregate buffer,length: structural/exact (99999, 99999)sgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 218: msg->field.length += field.length; # Error: ^ # (10393) 'field' is not a member of class 'struct NWC24MsgObjPrivate' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- header aggregate buffer,length,err: structural/exact (99999, 99999)sgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 217: msg->field.length += field.length; # Error: ^ # (10393) 'field' is not a member of class 'struct NWC24MsgObjPrivate' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- header aggregate flags,length: structural/exact (99999, 99999)sgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 220: msg->field.length += field.length; # Error: ^ # (10393) 'field' is not a member of class 'struct NWC24MsgObjPrivate' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- header aggregate flags,err: structural/exact (76, 110) instructions 827/827 +- header aggregate flags,length,err: structural/exact (99999, 99999)sgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 219: msg->field.length += field.length; # Error: ^ # (10393) 'field' is not a member of class 'struct NWC24MsgObjPrivate' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- separate delay scratch type flags,buffer,length: structural/exact (99999, 99999)24/NWC24MsgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 235: field.length = STD_strnlen(field.buffer, 1024); # Error: ^ # (10393) 'length' is not a member of class 'struct ' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- separate delay scratch type flags,length: structural/exact (99999, 99999)X/src/nwc24/NWC24MsgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 216: field.buffer = NWC24WorkP->stringWork; # Error: ^ # (10393) 'buffer' is not a member of class 'struct ' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- separate delay scratch type buffer,length,err: structural/exact (99999, 99999) -c libs/RevoEX/src/nwc24/NWC24MsgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 213: field.flags = field.flags; # Error: ^ # (10393) 'flags' is not a member of class 'struct ' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- scratch aggregate reads flags from message: structural/exact (26, 414) instructions 825/827 +- signed flag aggregate with unsigned delay extraction: structural/exact (26, 414) instructions 825/827 + +First kbdProcMod difference 245 (target 0xb60): add r4,r4,r31 versus ours add r5,r4,r31. Maps to KBDSetModState inlined physical-state merge after OSDisableInterrupts. Field loads use offset 0x220, channel stride 0x268, frame 0x20, all identical. The target uses address r4 and old-word r5; ours uses address r5 and old-word r4. No extent overlap; test a typed modifier field and merge helper boundaries rather than permutations. + +## Xhigh kbdProcMod: typed modifier storage and inline physical merge +- baseline: structural/exact (0, 4) instructions 256/256 +- channel modifier storage typed as its bitfield union: structural/exact (0, 4) instructions 256/256 +- typed channel physical field copied directly: structural/exact (15, 47) instructions 253/256 +- typed channel lock field updated in place: structural/exact (15, 48) instructions 253/256 +- physical state merged in inline helper using value: structural/exact (0, 4) instructions 256/256 +- physical state merged in inline helper using pointer: structural/exact (0, 4) instructions 256/256 +- physical state merged in inline helper using field: structural/exact (0, 4) instructions 256/256 +- physical merge scratch fields grouped in update object: structural/exact (6, 18) instructions 259/256 +- copy typed modifier then update only locks: structural/exact (2, 7) instructions 256/256 +- signed modifier bitfield storage: structural/exact (5, 16) instructions 258/256 +- physical modifier field declared byte bitfield: structural/exact (48, 59) instructions 262/256 + +Scratch generator corrected: avoid replacing msg->length, and initialize field.flags from input flags rather than self-assignment. Broken generated variants were discarded and source restored; they provide no semantic evidence. Repeat valid layouts below. + +Aggregate flags+buffer ownership fixes all seven registration-field differences (827 instructions unchanged); delay remains seven differences at 461,465,468,470,472,475,480. Hypothesis: coalescing delay flags and flush result arises from helper scratch ownership. Extend aggregate to actual length/error values; test independently per field. + +## Xhigh NWC24CommitMsgInternal: functional aggregate scratch layout +- baseline: structural/exact (0, 14) instructions 827/827 +- header aggregate flags,buffer,length: structural/exact (0, 8) instructions 827/827 +- header aggregate flags,buffer,err: structural/exact (72, 416) instructions 829/827 +- header aggregate flags,buffer,length,err: structural/exact (72, 418) instructions 829/827 +- header aggregate buffer,length: structural/exact (0, 8) instructions 827/827 +- header aggregate buffer,length,err: structural/exact (72, 418) instructions 829/827 +- header aggregate flags,length: structural/exact (0, 8) instructions 827/827 +- header aggregate flags,err: structural/exact (94, 425) instructions 829/827 +- header aggregate flags,length,err: structural/exact (72, 418) instructions 829/827 +- scratch aggregate reads flags from message: structural/exact (0, 0) instructions 827/827 + +NWC24CommitMsgInternal exact: helper owns flags+buffer scratch aggregate and reads flags inside its boundary. The date mask and delay mask now both allocate r23, scratch buffer r24; 827/827 instructions, ctxdiff 0, objdiff 100%. Pool identical, all NWC data 904/904. Full clean gate below. +``` +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RevoEX/src/nwc24/NWC24MsgCommit] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24MsgCommit] objdiff: code 7272/8532 data 904/904 functions 16/18 fuzzy 98.4754 linked code 0 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] instruction-exact functions: 16/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 98.47539 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: CheckMsgBoxSpace 85.57399 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: WriteMIMEAttachHeader 99.61957 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] baseline: code 3964/8532 data 904 functions 15 fuzzy 98.4426 +regressions vs baseline: 0 +global matched_code_percent: 89.06976 -> 89.18020 +global fuzzy_match_percent: 99.50240 -> 99.50304 +global complete_code_percent: 65.95913 -> 65.95913 +global matched_data_percent: 99.35985 -> 99.35985 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + +## Xhigh kbdProcMod: address construction and state update ownership +- baseline: structural/exact (0, 4) instructions 256/256 +- channel address formed by split: structural/exact (31, 254) instructions 232/256 +- channel address formed by postincrement: structural/exact (15, 47) instructions 253/256 +- channel address formed by offsetfirst: structural/exact (12, 254) instructions 258/256 +- modifier update aggregate data,previous: structural/exact (31, 254) instructions 232/256 +- modifier update aggregate data,desired: structural/exact (31, 254) instructions 232/256 +- modifier update aggregate data,previous,desired: structural/exact (31, 254) instructions 232/256 +- modifier update aggregate interrupts,previous: structural/exact (5, 16) instructions 258/256 +- modifier update aggregate interrupts,desired: structural/exact (6, 18) instructions 259/256 +- modifier update aggregate data,interrupts,desired: structural/exact (31, 254) instructions 232/256 +- physical bitfield RHS shift: structural/exact (0, 4) instructions 256/256 +- physical bitfield RHS byte: structural/exact (0, 4) instructions 256/256 +- physical bitfield RHS mask: structural/exact (0, 4) instructions 256/256 +- physical bitfield RHS bool: structural/exact (0, 4) instructions 256/256 + +First kbdEventHandler difference 35 (target 0x24c): lbz r5,2(r4) versus ours r3. Target keeps keyboard-array base in r3 until add r30,r3,r4 at 42; ours forms base in r30 at 36. This maps to report error classification and data=kbdData; data+=channel. Frame, unrolled channel lookup, branch and all subsequent instructions identical. Test report layout, predicate helper boundary, and channel address ownership; keep status reread after OSCancelAlarm because target loads it there. + +## Xhigh kbdEventHandler: input report and classification boundaries +- baseline: structural/exact (0, 5) instructions 186/186 +- status temporary used only by initial classification: structural/exact (0, 5) instructions 186/186 +- remove unused status local and read: structural/exact (0, 5) instructions 186/186 +- classify before channel address arithmetic: structural/exact (0, 5) instructions 186/186 +- typed report False const False: structural/exact (0, 5) instructions 186/186 +- typed report False const True: structural/exact (0, 5) instructions 186/186 +- typed report True const False: structural/exact (0, 5) instructions 186/186 +- typed report True const True: structural/exact (0, 5) instructions 186/186 +- report classification helper byte: structural/exact (0, 5) instructions 186/186 +- report classification helper pointer: structural/exact (0, 5) instructions 186/186 +- report classification helper mutable: structural/exact (0, 5) instructions 186/186 +- channel pointer inline accessor index: structural/exact (0, 41) instructions 186/186 +- channel pointer inline accessor split: structural/exact (0, 41) instructions 186/186 +- channel index signed in final address: structural/exact (0, 6) instructions 186/186 +- event input groups report and channel pointers: structural/exact (0, 41) instructions 186/186 + +First real TMCJPEG_814F2570 difference 173 (target 0x2c88): srwi r26,r6,3 versus ours r25. Maps to chromaTileWidth = state->chromaWidth >> 3. Chroma column at 178 uses target r25 versus ours r26. Frame 0x60 and 376 instructions identical; all 18 function-relative differences exchange this tile-width/column pair. Four additional ctxdiff branch differences are the known CR1 offset normalization issue. Test phase ownership, row/column loop shape and pixel helper boundaries. + +## Xhigh TMCJPEG_814F2570: phase state and pixel addressing boundaries +- baseline: structural/exact (0, 18) instructions 376/376 +- chroma phase aggregate chromaTileWidth,column: structural/exact (25, 254) instructions 376/376 +- chroma phase aggregate chromaTileWidth,chromaEnd: structural/exact (25, 187) instructions 376/376 +- chroma phase aggregate chromaTileWidth,cb,cr: structural/exact (33, 299) instructions 376/376 +- chroma phase aggregate chromaTileWidth,cbTexture,crTexture: structural/exact (32, 190) instructions 376/376 +- chroma phase aggregate cb,cr: structural/exact (17, 276) instructions 376/376 +- chroma phase aggregate column,chromaEnd: structural/exact (0, 111) instructions 376/376 +- chroma column and tile width scoped to phase aggregate: structural/exact (28, 230) instructions 376/376 +- chroma inner while loop: structural/exact (0, 18) instructions 376/376 +- luma inner while loop: structural/exact (0, 18) instructions 376/376 +- both inner while loop: structural/exact (0, 18) instructions 376/376 +- chroma outer while loop: structural/exact (0, 18) instructions 376/376 +- independent chroma row state: structural/exact (0, 18) instructions 376/376 +- chroma tile offset inline helper: structural/exact (180, 376) instructions 382/376 +- entire chroma pixel address inline helper: structural/exact (180, 376) instructions 382/376 +- biased chroma pixel store inline helper: structural/exact (0, 18) instructions 376/376 +- chroma tile row cached at outer loop boundary: structural/exact (48, 338) instructions 373/376 + +## Xhigh kbdEventHandler: full helper, channel lookup and input scratch boundaries +- baseline: structural/exact (0, 5) instructions 186/186 +- entire report processing inline helper mutable: structural/exact (0, 51) instructions 186/186 +- entire report processing inline helper const: structural/exact (0, 51) instructions 186/186 +- channel search inline helper boundary: structural/exact (0, 5) instructions 186/186 +- separate array base and channel address: structural/exact (0, 6) instructions 186/186 +- array pointer view preserves table extent: structural/exact (0, 6) instructions 186/186 +- classify report before channel base bool: structural/exact (0, 5) instructions 186/186 +- classify report before channel base unsigned: structural/exact (0, 5) instructions 186/186 +- report classification range written subtract one: structural/exact (1, 5) instructions 186/186 +- report status using unsigned char value: structural/exact (0, 5) instructions 186/186 +- channel pointer ownership in each status branch: structural/exact (15, 150) instructions 190/186 +- input scratch aggregate base: structural/exact (0, 41) instructions 186/186 +- input scratch aggregate report: structural/exact (0, 5) instructions 186/186 +- input scratch aggregate input: structural/exact (0, 41) instructions 186/186 + +## Xhigh TMCJPEG_814F2570: row helper boundaries and source traversal form +- baseline: structural/exact (0, 18) instructions 376/376 +- chroma outer loop inline helper scalars: structural/exact (9, 177) instructions 376/376 +- chroma outer loop inline helper state: structural/exact (59, 348) instructions 376/376 +- chroma outer loop inline helper work: structural/exact (64, 373) instructions 377/376 +- chroma helper with const decoder state: structural/exact (59, 348) instructions 376/376 +- chroma helper inputs const pixel pointers: structural/exact (9, 177) instructions 376/376 +- signed tile-offset inline helper: structural/exact (0, 18) instructions 376/376 +- signed pixel-offset inline helper: structural/exact (0, 18) instructions 376/376 +- reuse plane tile-width state between phases: structural/exact (0, 0) instructions 376/376 + +## Xhigh kbdEventHandler: lookup loop and address lifetime +- baseline: structural/exact (0, 5) instructions 186/186 +- channel loop ends at equality: structural/exact (0, 5) instructions 186/186 +- channel loop signed index: structural/exact (1, 6) instructions 186/186 +- device lookup without byte index truncation: structural/exact (22, 172) instructions 178/186 +- channel lookup do while loop: structural/exact (21, 181) instructions 171/186 +- channel lookup while loop: structural/exact (0, 5) instructions 186/186 +- channel pointer scope includes lookup: structural/exact (0, 5) instructions 186/186 +- table base owned by lookup and error handling: structural/exact (3, 152) instructions 184/186 +- const report view created before channel lookup: structural/exact (0, 5) instructions 186/186 +- direct channel address with single status snapshot: structural/exact (0, 6) instructions 186/186 + +TMCJPEG_814F2570 exact: reuse tileWidth between sequential luma/chroma phases instead of a separate chromaTileWidth lifetime. All 1504 function bytes are byte-identical, 376/376 instructions, objdiff 100%. Function-relative disassembly differences 0. ctxdiff still prints four false CR1 branch differences because odiff normalizes a branch destination from the CR number rather than its actual immediate; gate reports instruction-exact 2/13 despite byte equality. No tool changed to hide this. Pool identical. Quick gate below; final full gate will cover all four units. +``` +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] pool: IDENTICAL +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] objdiff: code 5240/15948 data None/None functions 6/13 fuzzy 99.3067 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.30675 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEGDEC_set_converterY8U8V8 92.78571 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814EFEAC 99.7191 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F043C 99.4757 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F0A58 99.01053 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F11C4 99.4757 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F17E0 99.58861 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F1F48 99.55584 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] baseline: code 3736/15948 data None functions 5 fuzzy 99.1976 +regressions vs baseline: 0 +global matched_code_percent: 89.06976 -> 89.23041 +global fuzzy_match_percent: 99.50240 -> 99.50319 +global complete_code_percent: 65.95913 -> 65.95913 +global matched_data_percent: 99.35985 -> 99.35985 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + +## Xhigh kbdProcMod: bitfield initialization and logical-modifier store boundary +- baseline: structural/exact (0, 4) instructions 256/256 +- new modifier initialized using both named bitfields locksfirst: structural/exact (45, 58) instructions 258/256 +- new modifier initialized using both named bitfields physicalfirst: structural/exact (45, 58) instructions 258/256 +- named lock bits initialized from masked value: structural/exact (45, 58) instructions 258/256 +- zero-initialized modifier followed by lock-field assignment: structural/exact (6, 17) instructions 258/256 +- logical modifier store helper byindex: structural/exact (0, 4) instructions 256/256 +- logical modifier store helper channelptr: structural/exact (0, 4) instructions 256/256 +- logical modifier store helper stateptr: structural/exact (0, 4) instructions 256/256 +- modifier overlay low halfword bits: structural/exact (48, 59) instructions 262/256 + +## Xhigh kbdProcMod: caller modifier lifetime and const request boundary +- baseline: structural/exact (0, 4) instructions 256/256 +- caller modifier state owned as union: structural/exact (0, 4) instructions 256/256 +- caller modifier state owned as final: structural/exact (4, 31) instructions 257/256 +- caller modifier state owned as flags: structural/exact (32, 237) instructions 259/256 +- caller modifier state owned as value: structural/exact (47, 213) instructions 262/256 +- logical modifier update from const request object: structural/exact (12, 254) instructions 258/256 +- logical modifier update from request value: structural/exact (22, 261) instructions 262/256 +- setter value composed in two operations: structural/exact (0, 6) instructions 256/256 +- caller modifier local reused for setter value: structural/exact (4, 31) instructions 257/256 +- old modifier through const channel lookup scope: structural/exact (31, 254) instructions 232/256 + +## Xhigh kbdEventHandler: base versus status expression ownership and narrow predicate result +- baseline: structural/exact (0, 5) instructions 186/186 +- channel base and status evaluation separated updateafterread: structural/exact (0, 5) instructions 186/186 +- channel base and status evaluation separated baseafterread: structural/exact (0, 5) instructions 186/186 +- channel base and status evaluation separated baseandaddress: structural/exact (0, 6) instructions 186/186 +- channel index snapshot and indexed address: structural/exact (0, 6) instructions 186/186 +- report status unsigned word snapshot: structural/exact (0, 5) instructions 186/186 +- const device lookup array view lookup: structural/exact (0, 5) instructions 186/186 +- const device lookup array view both: structural/exact (3, 152) instructions 184/186 +- const lookup result converted for channel updates: structural/exact (0, 6) instructions 186/186 +- report error class narrow helper result u8: structural/exact (0, 5) instructions 186/186 +- report error class narrow helper result u32: structural/exact (0, 5) instructions 186/186 + +## Xhigh kbdProcMod: interrupt helper and const modifier copy boundary +- baseline: structural/exact (0, 4) instructions 256/256 +- entire interrupt-protected lock update inline helper plain: structural/exact (0, 4) instructions 256/256 +- entire interrupt-protected lock update inline helper reverse: structural/exact (0, 4) instructions 256/256 +- entire interrupt-protected lock update inline helper aggregate: structural/exact (12, 254) instructions 258/256 +- physical modifier copy helper ptr: structural/exact (0, 4) instructions 256/256 +- physical modifier copy helper value: structural/exact (0, 4) instructions 256/256 +- signed channel index in physical-state update only: structural/exact (12, 254) instructions 258/256 + +## Xhigh final open-function audit +The two selected exact candidates are NWC24CommitMsgInternal and TMCJPEG_814F2570. All other open functions retain at least three distinct source attempts from this and prior rounds. Selected keyboard functions retain the original source; no failed experiments retained. +Zi8PrepareMatch 96.319145%: 11 distinct logged source labels across the cumulative rounds. +CheckMsgBoxSpace 85.57399%: 9 distinct logged source labels across the cumulative rounds. +WriteMIMEAttachHeader 99.61957%: 147 distinct logged source labels across the cumulative rounds. +TMCJPEGDEC_set_converterY8U8V8 92.78571%: 11 distinct logged source labels across the cumulative rounds. +TMCJPEG_814EFEAC 99.7191%: 16 distinct logged source labels across the cumulative rounds. +TMCJPEG_814F043C 99.4757%: 16 distinct logged source labels across the cumulative rounds. +TMCJPEG_814F0A58 99.01053%: 15 distinct logged source labels across the cumulative rounds. +TMCJPEG_814F11C4 99.4757%: 16 distinct logged source labels across the cumulative rounds. +TMCJPEG_814F17E0 99.58861%: 15 distinct logged source labels across the cumulative rounds. +TMCJPEG_814F1F48 99.55584%: 16 distinct logged source labels across the cumulative rounds. +kbdEventHandler 99.83871%: 55 distinct logged source labels across the cumulative rounds. +kbdProcMod 99.90234%: 52 distinct logged source labels across the cumulative rounds. +kbd_led_handler 64.12%: 13 distinct logged source labels across the cumulative rounds. +KBDSetLedsAsync 86.234566%: 6 distinct logged source labels across the cumulative rounds. +KBDSetLeds 84.6076%: 6 distinct logged source labels across the cumulative rounds. +KBDSetModState 99.40476%: 17 distinct logged source labels across the cumulative rounds. +No symbol/data renames or extents changed. NWC and kbd data exact; JPEG has no owned data. zprepare remaining switch-table and extabindex gaps depend on the nonexact function. + +## Xhigh final full gate +``` +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] pool: IDENTICAL +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] objdiff: code 5240/15948 data None/None functions 6/13 fuzzy 99.3067 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.30675 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEGDEC_set_converterY8U8V8 92.78571 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814EFEAC 99.7191 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F043C 99.4757 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F0A58 99.01053 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F11C4 99.4757 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F17E0 99.58861 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F1F48 99.55584 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] baseline: code 3736/15948 data None functions 5 fuzzy 99.1976 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24MsgCommit] objdiff: code 7272/8532 data 904/904 functions 16/18 fuzzy 98.4754 linked code 0 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] instruction-exact functions: 16/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 98.47539 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: CheckMsgBoxSpace 85.57399 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: WriteMIMEAttachHeader 99.61957 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] baseline: code 3964/8532 data 904 functions 15 fuzzy 98.4426 +[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.6523 +[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: 89.06976 -> 89.23041 +global fuzzy_match_percent: 99.50240 -> 99.50319 +global complete_code_percent: 65.95913 -> 65.95913 +global matched_data_percent: 99.35985 -> 99.35985 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + +Xhigh before -> after by unit: +Texture_MCUtoY8U8V8: objdiff exact 5/13 -> 6/13, gate instruction-exact 2/13 -> 2/13, matched code 3736 -> 5240 bytes, no data. TMCJPEG_814F2570 raw symbol is identical after clean build, 1504 bytes, normalized instruction differences 0; gate undercounts because of preexisting CR1 branch normalization. +NWC24MsgCommit: objdiff exact 15/18 -> 16/18, gate instruction-exact 15/18 -> 16/18, code 3964 -> 7272 bytes, data 904 -> 904. +kbd_lib: objdiff exact 15/21 -> 15/21, gate instruction-exact 14/21 -> 14/21, code 3088 -> 3088 bytes, data 5296 -> 5296. +zprepare: objdiff exact 0/1 -> 0/1, gate instruction-exact 0/1 -> 0/1, code 0 -> 0 bytes, data 8 -> 8. +Two new exact functions. Selected unresolved kbdProcMod retains four r4/r5 address-versus-value differences in the inlined physical modifier update after 46 xhigh variants; kbdEventHandler retains five status-versus-array-base allocation differences after 46 xhigh variants. No regressions, all pools identical, forbidden/readability scans 0, DOL SHA1 correct. All sixteen remaining open functions have at least three distinct cumulative logged source attempts. + +## Rebased compile-failure follow-up +Current HEAD 6bba081f rebased by orchestrator. Checked current and origin/main NWC24MsgObjPrivate definition: length is a direct u32 member at offset 0x08, msgBoardFlags.raw remains at 0xCC; no field member exists. Current committed helpers already use msg->length += length; no source msg->field or field.length reference or length macro is present. The reported invalid expression appears only in discarded scratch-layout generator diagnostics in this attempts log. Initial ninja reports no work, so force rebuilding the owned objects before evaluating current source. +Fresh fetch origin/main 9c81288c: header is identical to the rebased worktree. Forced NWC and JPEG object rebuilds succeeded without source/header edits. NWC24CommitMsgInternal ctxdiff 827/827, differences 0. JPEG remains 376/376; four known CR1 disassembler normalization artifacts only. Proceed with clean full gate against current origin/main. + +Clean full gate after rebase against origin/main 9c81288c: PASS. No source/header change was necessary: the reported expression is absent from the committed source and the current struct still has direct length at 0x08. Fresh full-build NWC24CommitMsgInternal is 100%, 827/827 instructions, ctxdiff 0; fresh JPEG function is 100% and all 1504 raw symbol bytes are identical. Unit exact/code/data counts unchanged from the last accepted local state. Full gate below. +``` +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] pool: IDENTICAL +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] objdiff: code 5240/15948 data None/None functions 6/13 fuzzy 99.3067 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.30675 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEGDEC_set_converterY8U8V8 92.78571 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814EFEAC 99.7191 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F043C 99.4757 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F0A58 99.01053 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F11C4 99.4757 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F17E0 99.58861 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F1F48 99.55584 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] baseline: code 3736/15948 data None functions 5 fuzzy 99.1976 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24MsgCommit] objdiff: code 7272/8532 data 904/904 functions 16/18 fuzzy 98.4754 linked code 0 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] instruction-exact functions: 16/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 98.47539 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: CheckMsgBoxSpace 85.57399 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: WriteMIMEAttachHeader 99.61957 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] baseline: code 3964/8532 data 904 functions 15 fuzzy 98.4426 +[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.6523 +[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: 89.38760 -> 89.54826 +global fuzzy_match_percent: 99.52749 -> 99.52827 +global complete_code_percent: 67.23291 -> 67.23291 +global matched_data_percent: 99.36508 -> 99.36508 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` -- 2.49.1