Compare commits

..

14 Commits

Author SHA1 Message Date
Devin AI
e9b09601af docs: get_friendinfo keep-vs-remat + member-call conversion notes
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 16:52:07 +00:00
Devin AI
5689681bc2 iplSDMemory: real member calls for SD notice APIs (drop extern-C address stubs)
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 16:50:05 +00:00
Devin AI
fc0074f0d0 docs: drawTransferTitles copy-temp decode
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 16:44:43 +00:00
Devin AI
cd0cd3c65a iplSDMemory: Color(x) arg temps decode drawTransferTitles copy pattern (451/451 insn-equal)
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 16:43:20 +00:00
Devin AI
fc3b22607c docs: deduplicated-weak-vtable decode for iplSDMemory .data tail
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 16:43:20 +00:00
Devin AI
52862f1c28 docs: iplSDMemory trailing .data zeros wall
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 16:43:20 +00:00
Devin AI
d2286df586 docs: switch-on-bool dispatch decode for u64< guards
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 16:43:13 +00:00
Devin AI
a93771c1b0 iplSDChannelSelect: switch-dispatch decode for u64< guard in handleSDTitleListResult (171/171 insn-equal)
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 16:43:13 +00:00
Devin AI
89c3c6f375 iplAddressEdit: dead-arm fossil decode (start_left_event exact), case-4 arm in start_point_event, friendText reuse in create
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 16:43:13 +00:00
Devin AI
a2c9b974a7 iplAddress: decode beq+b dispatch in onEventDerived + start_drag_event; movePane_onDrag +0.01 scope
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 16:42:58 +00:00
Devin AI
a2502a9294 iplSDChannelSelect: decode beq+b dispatch in anon onEventDerived via switch
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 16:42:58 +00:00
Devin AI
f02043a765 iplSDMemory: setTitleRowColors Color& signature + trivial-Color() decode for drawTransferTitles
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 16:42:43 +00:00
Devin AI
5453d7e49a sceneleft: iplAddress set_err_msg/movePane_onDrag decodes, SDChannelSelect static setEventHandler
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 16:42:43 +00:00
Devin AI
f2446827cd CDBRecord: reconstruct dead-stripped record-accessor API (.data 100%)
Orig .data contains diagnostics for ~14 accessor functions absent from
.text: they were dead-stripped by the linker while pooled literals
persisted. Reconstruct the functions (ReduceFileSize/ReduceDataSize,
SetFileType/GetFileType/GetGameCode/GetMakerCode, GetModifiedTime/
GetModifiedCount, SetName, GetKeyword/GetKey/GetCalendarTime,
Duplicate, PrivateChangeOwner) so the string pool emits in source
order; pool now byte-identical (.data fuzzy 100).

Also make CDBRecordGetFileSize's standalone emit match orig: it was
inlined into CDBRecordEncrypt in orig (bl to FileGetFileSize) - keep
as global so its literal pools at its source position.

Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 16:42:12 +00:00
32 changed files with 527 additions and 2919 deletions

View File

@@ -53,9 +53,9 @@ Progress
<!-- progress:start -->
| Decompiled | Matched | Linked | Data |
|:---:|:---:|:---:|:---:|
| 99.57% | 90.47% | 70.31% | 99.37% |
| 99.56% | 90.41% | 69.63% | 99.37% |
units 952/1027 complete, functions 12351/12563 matched.
units 951/1027 complete, functions 12347/12563 matched.
decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data
<!-- progress:end -->

View File

@@ -21841,7 +21841,7 @@ globalNames__Q23www9trasition = .sdata:0x81696300; // type:object size:0x8 scope
@1425 = .sdata:0x81696308; // type:object size:0x1 scope:local
gEnableDpd = .sdata:0x81696310; // type:object size:0x4 data:4byte
globalNames__Q23www10wiisetting = .sdata:0x81696314; // type:object size:0x8
@17315 = .sdata:0x8169631C; // type:object size:0x1 scope:local
lbl_8169631C = .sdata:0x8169631C; // type:object size:0x1
lbl_8169631D = .sdata:0x8169631D; // type:object size:0x8 data:string
lbl_81696325 = .sdata:0x81696325; // type:object size:0x4 data:string
lbl_81696329 = .sdata:0x81696329; // type:object size:0x8 data:string
@@ -23829,7 +23829,7 @@ result$1126 = .sbss:0x81698E48; // type:object size:0x4 data:4byte
soState = .sbss:0x81698E50; // type:object size:0x1 scope:local data:byte
soError = .sbss:0x81698E54; // type:object size:0x4 scope:local data:4byte
soRegistered = .sbss:0x81698E58; // type:object size:0x4 scope:local data:4byte
soSocketRegistered = .sbss:0x81698E60; // type:object size:0x4 scope:local data:4byte
soSocketRegistered = .sbss:0x81698E60; // type:object size:0x8 scope:local data:4byte
sslRegistered = .sbss:0x81698E68; // type:object size:0x4 scope:local data:4byte
l_initialized = .sbss:0x81698E6C; // type:object size:0x4 scope:local data:4byte
VFipf_sys_set = .sbss:0x81698E70; // type:object size:0x4 scope:global data:4byte

View File

@@ -197,6 +197,7 @@ namespace ipl {
friend class SDChannelSelectEventHandler;
friend class SDChannelSelectButtonEventHandler;
#endif
friend class SDMemory;
void enqueueStartNotice();
bool enqueueFinishNotice();
bool enqueueNotice(u32 highTitleId, u32 lowTitleId, u32 result);

View File

@@ -38,19 +38,6 @@ namespace EGG {
virtual void calc(); // 0x30
#ifdef EGG_AUDIO_EXPMGR_NO_INLINE_VIRTUALS
virtual bool startSound(nw4r::snd::SoundHandle* pHandle, u32 id); // 0x34
virtual bool startSound(nw4r::snd::SoundHandle* pHandle, unsigned int id); // 0x38
virtual bool startSound(nw4r::snd::SoundHandle* pHandle, const char* pName); // 0x3C
virtual bool prepareSound(nw4r::snd::SoundHandle* pHandle, u32 id); // 0x44
virtual bool prepareSound(nw4r::snd::SoundHandle* pHandle, unsigned int id); // 0x44
virtual bool prepareSound(nw4r::snd::SoundHandle* pHandle, const char* pName); // 0x48
virtual bool holdSound(nw4r::snd::SoundHandle* pHandle, u32 id); // 0x50
virtual bool holdSound(nw4r::snd::SoundHandle* pHandle, unsigned int id); // 0x50
virtual bool holdSound(nw4r::snd::SoundHandle* pHandle, const char* pName); // 0x58
#else
virtual bool startSound(nw4r::snd::SoundHandle* pHandle, u32 id) { return mSoundArchivePlayer.StartSound(pHandle, id); } // 0x34
virtual bool startSound(nw4r::snd::SoundHandle* pHandle, unsigned int id) { return mSoundArchivePlayer.StartSound(pHandle, id); } // 0x38
virtual bool startSound(nw4r::snd::SoundHandle* pHandle, const char* pName) NO_INLINE {
@@ -79,7 +66,6 @@ namespace EGG {
u32 id = changeNameToId(pName);
return mSoundArchivePlayer.HoldSound(pHandle, id);
} // 0x58
#endif
u32 changeNameToId(const char* pName) { return mpArchive->ConvertLabelStringToSoundId(pName); }
const char* changeIdToName(u32 id) { return mpArchive->GetSoundLabelString(id); }

View File

@@ -19,10 +19,6 @@ namespace EGG {
~SoundHeapMgr() { destroySoundHeap(); }
#ifdef EGG_AUDIO_EXPMGR_NO_INLINE_VIRTUALS
virtual bool loadState(s32 id); // 0x08
virtual s32 getCurrentLevel(); // 0x0C
#else
virtual bool loadState(s32 id) {
#ifdef IPL_SOUND_MATCHING
if (id > 0 && mHeap.GetCurrentLevel() >= id) {
@@ -39,7 +35,6 @@ namespace EGG {
} // 0x08
virtual s32 getCurrentLevel() { return mHeap.GetCurrentLevel(); } // 0x0C
#endif
s32 saveState() { return mHeap.SaveState(); }

View File

@@ -1,5 +1,3 @@
#define EGG_AUDIO_EXPMGR_NO_INLINE_VIRTUALS
#include <egg/core.h>
namespace EGG {

View File

@@ -24,7 +24,11 @@ namespace nw4r {
// Constructor
#ifdef IPL_SDMEMORY_TRIVIAL_COLOR_CTOR
Color() {}
#else
Color() { *this = WHITE; }
#endif
Color(u32 color) { *this = color; }
Color(const GXColor& color) { *this = color; }
Color(int red, int green, int blue, int alpha) { Set(red, green, blue, alpha); }

View File

@@ -19,13 +19,8 @@ namespace nw4r {
template <typename T>
class AutoLock : private NonCopyable {
public:
#ifdef EGG_AUDIO_EXPMGR_NO_INLINE_VIRTUALS
explicit AutoLock(T& rLockObj);
~AutoLock();
#else
explicit AutoLock(T& rLockObj) : mLockObj(rLockObj) { Lock(rLockObj); }
~AutoLock() { Unlock(mLockObj); }
#endif
private:
T& mLockObj; // 0x00

View File

@@ -10,12 +10,14 @@ static TMCHuffmanEntry readHuffmanEntry(const TMCHuffmanEntry* entries, u32 inde
return entries[index];
}
static void readHuffmanLimit(const TMCHuffmanEntry* entries, TMCHuffmanEntry* limit) {
limit->bitLength = entries->bitLength;
limit->symbol = entries->symbol;
static TMCHuffmanEntry readHuffmanLimit(const TMCHuffmanEntry* entries) {
TMCHuffmanEntry limit;
limit.bitLength = entries->bitLength;
limit.symbol = entries->symbol;
return limit;
}
static inline s32 decodeLongHuffman(s32 bitCount, const TMCHuffmanEntry* table, const u8* symbols, TMCCJPEGDecWork* work, TMCHuffmanEntry* limit, TMCHuffmanEntry* decoded) {
static inline s32 decodeLongHuffman(s32 bitCount, const TMCHuffmanEntry* table, const u8* symbols, TMCCJPEGDecWork* work) {
u32 bitData;
u32 code;
u32 length;
@@ -49,21 +51,17 @@ static inline s32 decodeLongHuffman(s32 bitCount, const TMCHuffmanEntry* table,
code |= (bitData >> bitCount) & 1;
read_entry:
{
readHuffmanLimit(entry, limit);
*decoded = *limit;
if (code > (u32)decoded->bitLength) {
TMCHuffmanEntry decoded = readHuffmanLimit(entry);
if (code > (u32)decoded.bitLength) {
continue;
}
{
u32 relativeCode = code - entry->bitLength;
u32 symbolIndex = relativeCode + entry->symbol;
return symbols[symbolIndex & 0xFF];
}
code = code - entry->bitLength + entry->symbol;
return symbols[code & 0xFF];
}
}
}
static inline s32 decodeACHuffman(s32 bitCount, const TMCHuffmanEntry* entry, const u8* symbols, TMCCJPEGDecWork* work, TMCHuffmanEntry* limit, TMCHuffmanEntry* decoded) {
static inline s32 decodeACHuffman(s32 bitCount, const TMCHuffmanEntry* entry, const u8* symbols, TMCCJPEGDecWork* work) {
u32 bitData;
u32 code;
u32 length;
@@ -96,26 +94,18 @@ static inline s32 decodeACHuffman(s32 bitCount, const TMCHuffmanEntry* entry, co
code |= (bitData >> bitCount) & 1;
read_entry:
{
readHuffmanLimit(entry, limit);
*decoded = *limit;
if (code > (u32)decoded->bitLength) {
TMCHuffmanEntry decoded = readHuffmanLimit(entry);
if (code > (u32)decoded.bitLength) {
continue;
}
{
u32 relativeCode = code - entry->bitLength;
u32 symbolIndex = relativeCode + entry->symbol;
return symbols[symbolIndex & 0xFF];
}
code = code - entry->bitLength + entry->symbol;
return symbols[code & 0xFF];
}
}
}
s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_ptr, TMCCJPEGDecWork* work) {
TMCHuffmanEntry dcEntry;
TMCHuffmanEntry dcDecoded;
TMCHuffmanEntry dcLimit;
TMCHuffmanEntry acDecoded;
TMCHuffmanEntry acLimit;
u8* huff_sym;
const TMCHuffmanEntry* ac_fast;
s32 idx;
@@ -157,7 +147,7 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p
} else {
huff_sym = work->pDCHuffSym;
huff_tbl = work->pDCHuffTbl;
r = decodeLongHuffman(bit_pos, (const TMCHuffmanEntry*)huff_tbl, huff_sym, work, &dcLimit, &dcDecoded);
r = decodeLongHuffman(bit_pos, (const TMCHuffmanEntry*)huff_tbl, huff_sym, work);
if (r < 0) {
return r;
}
@@ -217,7 +207,7 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p
r = acEntry.symbol;
} else {
bit_pos = work->bitCount;
r = decodeACHuffman(bit_pos, (const TMCHuffmanEntry*)huff_tbl, huff_sym, work, &acLimit, &acDecoded);
r = decodeACHuffman(bit_pos, (const TMCHuffmanEntry*)huff_tbl, huff_sym, work);
if (r < 0) {
return r;
}

View File

@@ -753,7 +753,8 @@ static int zi8InternalGetZH(ziGetParam* request, ZiChineseOptions* options, ziPt
if (!componentTable) {
componentCount = Zi8GetTableCount(1, 7, work);
componentOrdinals = (ziU8*)Zi8GetTableAddress(1, 7, work);
componentTable = componentCursor = (ziU8*)Zi8GetTableAddress(1, 2, work);
componentCursor = (ziU8*)Zi8GetTableAddress(1, 2, work);
componentTable = componentCursor;
componentCursor += 8;
--componentCount;
componentIndex = componentCount;

View File

@@ -397,8 +397,6 @@ s32 WADImportGetBlocks(char* path, MEMAllocator* allocator, WADLocation location
s32 result;
u32 fileOffset;
WADFileEntry* allocatedFiles;
void* fileNames;
void* titleList;
BOOL streamOpened;
u32 transferId;
u32 contentCount;
@@ -408,11 +406,9 @@ s32 WADImportGetBlocks(char* path, MEMAllocator* allocator, WADLocation location
u32 skipTitleMeta = flags & 4;
WADFileHeader* fileHeader;
fileOffset = 0;
fileNames = 0;
titleList = 0;
allocatedFiles = 0;
streamOpened = FALSE;
fileOffset = 0;
allocatedFiles = 0;
memset(&workspace.unpackInfo, 0, sizeof(WADUnpackInfo));
if (fileListOut != 0) {
*fileListOut = 0;
@@ -525,12 +521,6 @@ s32 WADImportGetBlocks(char* path, MEMAllocator* allocator, WADLocation location
cleanup:
_WADFreeMemory(&workspace.unpackInfo, allocator);
if (fileNames != 0) {
_WADMemFree(allocator, fileNames);
}
if (titleList != 0) {
_WADMemFree(allocator, titleList);
}
if ((fileListOut != 0) && (result != 0)) {
if (allocatedFiles != 0) {
_WADMemFree(allocator, allocatedFiles);
@@ -545,7 +535,7 @@ cleanup:
static s32 WAD_815BFFA8(WADImportLoopArgs* args) {
s32 fd = args->fd;
s32 result;
s32 result = 0;
u32 remaining = args->size;
WADImportTransfer* transfer = args->transfer;
u32 bufferIndex = 0;
@@ -571,7 +561,7 @@ static s32 WAD_815BFFA8(WADImportLoopArgs* args) {
s32 WADImportEx(char* path, MEMAllocator* allocator, WADLocation location, u32 offset, u32 flags,
WADProcessCallback processCallback) {
s32 result;
s32 result = 0;
ESHash* sharedContentHashes = 0;
ESContentId* installedContentIds = 0;
ESContentMeta* matchingContents = 0;
@@ -1191,7 +1181,7 @@ static s32 WAD_815C1288(WADExportLoopArgs* args) {
u32 remaining = args->size;
u32 bufferIndex = 0;
WADImportTransfer* transfer = args->transfer;
s32 result;
s32 result = 0;
for (; (remaining != 0) && (result == 0); bufferIndex ^= 1) {
OSMutex* mutex;
@@ -1267,7 +1257,6 @@ s32 WADBackupEx(u64 titleId, u32 flags, MEMAllocator* allocator, char* path, u32
s32 contentExportStarted;
s32 threadCreated = FALSE;
s32 fileFd;
WADBackupHeader* headerBlockHeader;
titleMetaSize = 0;
contentDataSize = 0;
@@ -1388,6 +1377,7 @@ s32 WADBackupEx(u64 titleId, u32 flags, MEMAllocator* allocator, char* path, u32
result = 0;
if (path == 0) {
*sizeOut = totalSize + 0x340;
result = 0;
goto cleanup;
}
outputBuffer = _WADMemAlloc(allocator, 0x10000);
@@ -1408,7 +1398,6 @@ s32 WADBackupEx(u64 titleId, u32 flags, MEMAllocator* allocator, char* path, u32
if (result != 0) {
goto cleanup;
}
headerBlockHeader = &headerBlock.header;
paddedSize = sizeof(headerBlock);
memset(&headerBlock, 0, paddedSize);
if ((u32)WADWriteStream(&stream, &headerBlock, paddedSize) != paddedSize) {
@@ -1425,12 +1414,12 @@ s32 WADBackupEx(u64 titleId, u32 flags, MEMAllocator* allocator, char* path, u32
headerBlock.header.fileSize = fileDataSize;
headerBlock.header.numFiles = fileCount;
headerBlock.header.backupAreaLen = totalSize + 0x340;
result = ES_GetDeviceId(&headerBlockHeader->deviceId);
result = ES_GetDeviceId(&headerBlock.header.deviceId);
if (result != 0) {
goto cleanup;
}
if ((flags & 1) != 0) {
memcpy(&headerBlockHeader->cidx, &existingContentMask, sizeof(existingContentMask));
memcpy(&headerBlock.header.cidx, &existingContentMask, sizeof(existingContentMask));
}
if ((flags & 2) != 0) {
u32 currentTitleLow;
@@ -1453,7 +1442,7 @@ s32 WADBackupEx(u64 titleId, u32 flags, MEMAllocator* allocator, char* path, u32
headerBlock.header.titleId = ((u64)currentTitleHigh << 32) | currentTitleLow;
}
if (_WADGetTransferId(transferMac) != 0) {
memcpy(headerBlockHeader->deviceMac, transferMac, sizeof(headerBlockHeader->deviceMac));
memcpy(headerBlock.header.deviceMac, transferMac, sizeof(headerBlock.header.deviceMac));
}
}
SHA1Reset(hashContext);
@@ -1694,13 +1683,9 @@ s32 WADBackupEx(u64 titleId, u32 flags, MEMAllocator* allocator, char* path, u32
}
}
file_done:
if (fileHeaderBuffer->flags[2] == 1) {
fileFd = -1;
}
if (fileOpened) {
NANDClose(&savedFile);
}
fileFd = -1;
if (result != 0) {
readSize = (fileHeaderBuffer->fileSize + 0x3F) & ~0x3F;
totalSize -= readSize;
@@ -2936,7 +2921,7 @@ static void _WADRandPad(void* buffer, u32 size) {
static s32 WAD_815C43E0(WADHashThreadArgs* args) {
void* context = args->context;
s32 result;
s32 result = 0;
u32 remaining = args->size;
WADImportTransfer* transfer = args->transfer;
u32 bufferIndex = 0;
@@ -3539,9 +3524,6 @@ s32 WADImportDVDExForBS(const char* path, void* buffer, u32 bufferSize) {
parts.titleMeta = readBuffer + sectionOffset;
sectionOffset += (header.tmdSize + 0x3F) & ~0x3F;
}
if (header.contentSize != 0) {
contentBuffer = readBuffer + sectionOffset;
}
contentBuffer = readBuffer + sectionOffset;
remainingBufferSize = bufferSize - sectionOffset;
if ((u32)sectionOffset > bufferSize) {

View File

@@ -393,6 +393,48 @@ CDBErr CDBRecordGetDataSize(CDBRecord* record, u32* size) {
return err;
}
CDBErr CDBRecordReduceFileSize(CDBRecord* record, u32 size) {
CDBErr err = CDB_ERROR_OK;
u32 fileSize;
CDBLock();
if (record->file == NULL) {
CDBReportError("can't reduce file size of the record ; the record is closed\n");
err = CDB_ERROR_27;
} else if (!CDBRecordBelongedDBOpenedAsRW(record)) {
CDBReportError("can't reduce file size of the record ; the record is opened as READONLY\n");
err = CDB_ERROR_ACCESS_DENIED;
} else {
err = CDBRecordFileGetFileSize(record, &fileSize);
if (size >= fileSize) {
CDBReportError("can't reduce file size of the record ; file size must be over %d bytes\n", fileSize);
err = CDB_ERROR_OUT_OF_RANGE;
}
}
CDBUnlock();
return err;
}
CDBErr CDBRecordReduceDataSize(CDBRecord* record, u32 size) {
CDBErr err = CDB_ERROR_OK;
u32 dataSize;
CDBLock();
if (record->file == NULL) {
CDBReportError("can't reduce data size of the record ; the record is closed\n");
err = CDB_ERROR_27;
} else if (!CDBRecordBelongedDBOpenedAsRW(record)) {
CDBReportError("can't reduce data size of the record ; the record is opened as READONLY\n");
err = CDB_ERROR_ACCESS_DENIED;
} else {
err = CDBRecordFileGetDataSize(record, &dataSize);
if (size >= dataSize) {
CDBReportError("can't reduce data size of the record; permission denied\n");
err = CDB_ERROR_ACCESS_DENIED;
}
}
CDBUnlock();
return err;
}
CDBErr CDBRecordRemove(CDBRecord* record) {
CDBErr err;
CDBLock();
@@ -424,6 +466,164 @@ CDBErr CDBRecordRemove_(CDBRecord* record) {
return result;
}
CDBErr CDBRecordSetFileType(CDBRecord* record, char* fileType) {
CDBErr err = CDB_ERROR_OK;
CDBRecordFile* recordFile;
CDBLock();
recordFile = record->file;
if ((((CDBRecordDatabaseState*)((CDBDatabase*)record->unk_0x00)->instance)->openFlags & 2) == 0) {
CDBReportError("can't set file type of the record; the database is opened as READONLY\n");
err = CDB_ERROR_26;
} else if (recordFile == NULL) {
CDBReportError("can't set file type of the record ; the record is closed\n");
err = CDB_ERROR_27;
} else if (!CDBRecordBelongedDBOpenedAsRW(record)) {
CDBReportError("can't set file type of the record ; the record is opened as READONLY\n");
err = CDB_ERROR_ACCESS_DENIED;
} else if (record->key.location != CDB_FS_LOCATION_NAND) {
CDBReportError("can't set file type of the record ; the record must exsist on NAND\n");
err = CDB_ERROR_ACCESS_DENIED;
}
CDBUnlock();
return err;
}
CDBErr CDBRecordGetFileType(CDBRecord* record, char* fileType) {
CDBErr err = CDB_ERROR_OK;
CDBLock();
if (record->file == NULL) {
CDBReportError("can't get file type of the record ; the record is closed\n");
err = CDB_ERROR_27;
} else {
CDBConvKeyStrToType(record->key.keyString, fileType);
}
CDBUnlock();
return err;
}
CDBErr CDBRecordGetGameCode(CDBRecord* record, char* gameCode) {
CDBErr err = CDB_ERROR_OK;
u32 value;
CDBLock();
if (record->file == NULL) {
CDBReportError("can't get game code of the record ; the record is closed\n");
err = CDB_ERROR_27;
} else {
CDBConvKeyStrToGameCode(record->key.keyString, &value);
CDBConvGCValueToGCStr(value, gameCode);
}
CDBUnlock();
return err;
}
CDBErr CDBRecordGetMakerCode(CDBRecord* record, u32* makerCode) {
CDBErr err = CDB_ERROR_OK;
CDBLock();
if (record->file == NULL) {
CDBReportError("can't get maker code of the record ; the record is closed\n");
err = CDB_ERROR_27;
} else {
CDBConvKeyStrToMakerCode(record->key.keyString, makerCode);
}
CDBUnlock();
return err;
}
CDBErr CDBRecordGetModifiedTime(CDBRecord* record, int* year, int* month, int* day, int* hour, int* min, int* sec) {
CDBErr err = CDB_ERROR_OK;
CDBRecordFile* recordFile;
CDBLock();
recordFile = record->file;
if (recordFile == NULL) {
CDBReportError("can't get modified time of the record; the record is closed\n");
err = CDB_ERROR_27;
} else {
CDBConvertCDBDateToCalendarTime((CDBDate)recordFile->attr.buf.lastModifiedDate, year, month, day, hour, min, sec);
}
CDBUnlock();
return err;
}
CDBErr CDBRecordGetModifiedCount(CDBRecord* record, u32* modifiedCount) {
CDBErr err = CDB_ERROR_OK;
CDBRecordFile* recordFile;
CDBLock();
recordFile = record->file;
if (recordFile == NULL) {
CDBReportError("can't get modified count of the record; the record is closed\n");
err = CDB_ERROR_27;
} else {
err = CDBAttrGetModifiedCount(&recordFile->attr, modifiedCount);
}
CDBUnlock();
return err;
}
CDBErr CDBRecordSetName(CDBRecord* record, char* name) {
CDBErr err = CDB_ERROR_OK;
CDBRecordFile* recordFile;
CDBLock();
recordFile = record->file;
if ((((CDBRecordDatabaseState*)((CDBDatabase*)record->unk_0x00)->instance)->openFlags & 2) == 0) {
CDBReportError("can't set a name of the record; the database is opened as READONLY\n");
err = CDB_ERROR_26;
} else if (!CDBRecordBelongedDBOpenedAsRW(record)) {
CDBReportError("can't add keyword to the record; permission denied\n");
err = CDB_ERROR_ACCESS_DENIED;
} else if (recordFile == NULL) {
CDBReportError("can't set a name of the record; the record is closed\n");
err = CDB_ERROR_27;
} else if ((recordFile->unk_0x1C & CDB_RECORD_ALLOC_WRITE) == 0) {
CDBReportError("can't set a name of the record; the record is opened as READONLY\n");
err = CDB_ERROR_ACCESS_DENIED;
}
CDBUnlock();
return err;
}
CDBErr CDBRecordGetKeyword(CDBRecord* record, char* keyword) {
CDBErr err = CDB_ERROR_OK;
CDBLock();
if (record->file == NULL) {
CDBReportError("can't get keyword from the record; the record is closed\n");
err = CDB_ERROR_27;
} else {
CDBRecordKeyGetKeyStr(&record->key, keyword);
}
CDBUnlock();
return err;
}
CDBErr CDBRecordGetKey(CDBRecord* record, CDBRecordKey* key) {
CDBErr err = CDB_ERROR_OK;
CDBLock();
if (record->file == NULL) {
CDBReportError("can't get key from the record; the record is closed\n");
err = CDB_ERROR_27;
} else {
CDBRecordKeyCopy(key, &record->key);
}
CDBUnlock();
return err;
}
CDBErr CDBRecordGetCalendarTime(CDBRecord* record, int* year, int* month, int* day, int* hour, int* min, int* sec) {
CDBErr err = CDB_ERROR_OK;
char epochString[64];
CDBDate epoch;
CDBLock();
if (record->file == NULL) {
CDBReportError("can't get calender time from the record; the record is closed\n");
err = CDB_ERROR_27;
} else {
CDBConvKeyStrToEpochStr(record->key.keyString, epochString);
CDBConvEpochStrToEpochValue(epochString, &epoch);
CDBConvEpochValueToDate(epoch, year, month, day, hour, min, sec);
}
CDBUnlock();
return err;
}
void CDBRecordGetTypeForce(CDBRecord* record, char* type) {
CDBLock();
CDBConvKeyStrToType(record->key.keyString, type);
@@ -622,6 +822,22 @@ CDBErr CDBRecordBackupToSD_(CDBRecord* record) {
return CDB_ERROR_OK;
}
CDBErr CDBRecordDuplicate(CDBRecord* record, CDBRecord* newRecord) {
CDBErr err;
CDBLock();
if (record->key.location != CDB_FS_LOCATION_NAND) {
OSPanic(__FILE__, 0x38B, "CDBRecordDuplicate invalud location\n");
}
err = CDBRecordAllocate(newRecord, CDB_RECORD_ALLOC_RW);
if (err == CDB_ERROR_OK) {
CDBRecordKeyCopy(&newRecord->key, &record->key);
newRecord->unk_0x00 = record->unk_0x00;
err = CDBRecordBackupToSD_(newRecord);
}
CDBUnlock();
return err;
}
CDBErr CDBCryptBuffer(void* buffer, u32 size, void* iv, u32* processedSize, BOOL encrypt) {
NETAESContext context ATTRIBUTE_ALIGN(64);
u32 offset;
@@ -960,3 +1176,11 @@ CDBErr CDBRecordDecrypt(CDBRecord* record, void* buffer, u32 size, u32* dataSize
}
return CDB_ERROR_OK;
}
void CDBRecordPrivateChangeOwner(CDBRecord* record, u64 preWiiId, u64 wiiId, char* path, char* path2) {
CDBReportInfo("CDBRecordPrivateChangeOwner\n");
CDBReportInfo(" i_pre-wiiid = %lX\n", preWiiId);
CDBReportInfo(" record-wiiid = %lX\n", wiiId);
CDBReportInfo("path =%s\n", path);
CDBReportInfo("path2=%s\n", path2);
}

View File

@@ -64,7 +64,7 @@ static NWC24Err ClearMBCEntry(MBCHeader* header, NWC24File* file, u32 offset);
static NWC24Err MountVFMBox(NWC24MBoxType type);
static NWC24Err CopyMsgObjToMBCFmt(const NWC24MsgObjPrivate* msg, MBCEntry* entry);
static NWC24Err CopyMsgObjToPrvFmt(const MBCEntry* entry, NWC24MsgObjPrivate* msg) NO_INLINE;
BOOL NWC24iIsMsgObjReadable(MBCEntry* entry) NO_INLINE;
BOOL NWC24iIsMsgObjReadable(const MBCEntry* entry) NO_INLINE;
NWC24Err NWC24CreateVF(const char* path, u32 size);
static inline NWC24Err MakeCtrlPath(char* path, NWC24MBoxType type) {
@@ -221,7 +221,7 @@ NWC24Err NWC24GetMsgObj(NWC24MsgObj* msg, NWC24MBoxType type, u32 id) {
return result;
}
BOOL NWC24iIsMsgObjReadable(MBCEntry* entry) {
BOOL NWC24iIsMsgObjReadable(const MBCEntry* entry) {
if (!(entry->type & 0x200000))
return FALSE;
if (entry->type & 0xFE000000)

View File

@@ -430,17 +430,14 @@ static NWC24Err CheckMsgObject(const NWC24MsgObjPrivate* msg) {
return NWC24_OK;
}
static inline u32 Base64StorageSize(const u32* byteCount) {
return (*byteCount * 4 + 2) / 3 + *byteCount / 57 * 2 + 4;
}
static NWC24Err CheckMsgBoxSpace(const NWC24MsgObjPrivate* msg, NWC24MBoxType type) {
u32 total = 0;
u32 textSize = 0;
s32 index;
NWC24Err err;
for (index = 0; index < msg->numAttached; ++index) {
total += Base64StorageSize(&msg->attachedSize[index]);
u32 size = msg->attachedSize[index];
total += (size * 4 + 2) / 3 + size / 57 * 2 + 4;
}
switch (msg->encoding) {
case NWC24_ENC_7BIT:

View File

@@ -138,9 +138,9 @@ int SOGetSockName(int socket, void* address) {
int size;
int result;
s32 rm;
NameRequest* request;
SOSockAddr* reply;
SOSockAddr* addr;
SOSockAddr* reply;
NameRequest* request;
addr=address;
if((result=SOiPrepare(NULL,&rm))==0) {
if(!addr || addr->len>8 || addr->len<8) result=-28;

1
report.json Normal file

File diff suppressed because one or more lines are too long

View File

@@ -1179,8 +1179,14 @@ namespace ipl {
return;
}
if (mState != STATE_NORMAL || mMode != 0) {
return;
switch (mState) {
case STATE_NORMAL:
if (mMode == 0) {
break;
}
// fallthrough
default:
return;
}
if (!mpFriendCache->isThere(buttonNo + mPage * BTN_MAX)) {
@@ -1425,10 +1431,7 @@ namespace ipl {
if (con->downTrg(controller::BTN_INTERACT)) {
Button* button = static_cast<Button*>(System::getScene(SCENE_BUTTON));
if (mState != STATE_COVER_NORMAL && mState != STATE_NORMAL) {
break;
}
if (mState == STATE_COVER_NORMAL || mState == STATE_NORMAL) {
if (Button::cmpButtonName(paneName, Button::BTN_EXIT) == 0) {
MailAddressSelect* mailAddrSel = static_cast<MailAddressSelect*>(System::getScene(SCENE_MAIL_ADDRESS_SELECT));
button->animation(Button::IDANIM_SELECT_CALENDAR_EXIT);
@@ -1477,7 +1480,7 @@ namespace ipl {
snd::getSystem()->startSE("WIPL_SE_FL_PAGE_DEC");
onPreviousPage();
}
break;
}
}
// fallthrough
}
@@ -1557,15 +1560,6 @@ namespace ipl {
}
}
static inline math::VEC2 scaledPageOffset(const math::VEC2& source, f32 factor) {
const f32 vertical = source.y * factor;
const f32 horizontal = source.x * factor;
math::VEC2 scaled;
scaled.y = vertical;
scaled.x = horizontal;
return scaled;
}
void Address::onPreviousPage() {
switch (mState) {
case STATE_NORMAL:
@@ -1595,7 +1589,10 @@ namespace ipl {
mPage = PAGE_MAX - 1;
mNextPageNum = 0;
mbCover = false;
add_translate(mpLayout->FindPaneByName("N_note_base"), scaledPageOffset(sPageOffset, PAGE_MAX));
math::VEC2 offset;
offset.y = sPageOffset.y * PAGE_MAX;
offset.x = sPageOffset.x * PAGE_MAX;
add_translate(mpLayout->FindPaneByName("N_note_base"), math::VEC2(offset));
mpLayout->getAnim(4)->setAnmType(0);
mpLayout->getAnim(4)->play();
set_page_text("T_nmbr_b", mPage + 1);
@@ -1783,16 +1780,17 @@ namespace ipl {
nw4r::math::VEC3 baseTrans = mpLayout->FindPaneByName("N_base_move")->GetTranslate();
math::VEC2 pos = System::getControllerManager()->getController(mDrag.mChan)->getDpdProjectionPos();
nw4r::lyt::TextBox* textBox = static_cast<nw4r::lyt::TextBox*>(mpLayout->FindPaneByName("T_name_move"));
const u16* name = mpFriendCache->getInfo(mDrag.mButton + mDrag.mPage * BTN_MAX).attr.name;
const NWC24FriendInfo& info = mpFriendCache->getInfo(mDrag.mButton + mDrag.mPage * BTN_MAX);
f32 width = 0.0f;
if (textBox != NULL && name != NULL) {
const u16* name;
if (textBox != NULL && (name = info.attr.name) != NULL) {
textBox->GetFont()->GetWidth();
for (; *name != 0; name++) {
width += textBox->GetFont()->GetCharWidth(*name);
}
width += 0.01f;
}
width += 0.01f;
nw4r::ut::Rect rect;
nw4r::ut::Rect rect4x3;
@@ -1946,11 +1944,10 @@ namespace ipl {
}
void FriendListCache::update(u32 index, const wchar_t* name, u64 fdId) {
NWC24FriendInfo* info = &mInfos[index];
info->attr.fdId = fdId;
memset(info->attr.name, 0, sizeof(info->attr.name));
wcsncpy((wchar_t*)info->attr.name, name, 10);
System::getNwc24Manager()->updateFriendInfo(info, index);
mInfos[index].attr.fdId = fdId;
memset(mInfos[index].attr.name, 0, sizeof(mInfos[index].attr.name));
wcsncpy((wchar_t*)mInfos[index].attr.name, name, 10);
System::getNwc24Manager()->updateFriendInfo(&mInfos[index], index);
}
void FriendListCache::del(u32 index) {

View File

@@ -521,7 +521,8 @@ void ipl::scene::AddressEdit::create() {
set_textbox(textPane, friendText);
textPane = (mpCodeLayout)
->getNW4RLyt()->GetRootPane()->FindPaneByName("T_frnd_crd_00", true);
set_textbox(textPane, mString.mDisplayText);
friendText = mString.mDisplayText;
set_textbox(textPane, friendText);
mState = 0;
break;
}
@@ -2118,6 +2119,8 @@ void ipl::scene::AddressEdit::start_point_event(
state0:
switch (buttonNo) {
case 4:
goto done;
case 0:
goto state0Button0;
case 1:
@@ -2226,6 +2229,8 @@ void ipl::scene::AddressEdit::start_left_event(const char* paneName) {
switch (mState) {
case 0:
switch (buttonNo) {
case 4:
break;
case 0: {
if (mpFriendCache->getInfo(mSelectedFriend).attr.status != 2) {
break;

View File

@@ -1,4 +1,5 @@
#define IPL_SDMEMORY_TITLE_CACHE_ACCESS
#define IPL_SDMEMORY_SCROLLER_INIT_OUT_OF_LINE
#define IPL_SDMEMORY_SET_TRANSLATE_OUT_OF_LINE
#define IPL_SDMEMORY_DIALOG_STATE_ACCESSOR
@@ -8,6 +9,7 @@
#define IPL_SDMEMORY_COMPLETION_PCT_ACCESSOR
#define IPL_SDMEMORY_DIALOG_PROGRESS_FRAME_ACCESSOR
#define IPL_SDMEMORY_SET_TEXT_COLORS
#define IPL_SDMEMORY_TRIVIAL_COLOR_CTOR
#define IPL_SDMEMORY_SCROLLER_STATE_ACCESSOR
#include "system/iplDialogWindow.h"
#undef IPL_SDMEMORY_DIALOG_PROGRESS_FRAME_ACCESSOR
@@ -28,23 +30,6 @@
#include "utility/iplLayout.h"
#include <revolution/os/OSTime.h>
extern "C" bool iplSDChannelSelect_813DDB74(ipl::scene::SDChannelSelect* channelSelect,
ipl::scene::SDMemory::TitleRange* nandTitles,
ipl::scene::SDMemory::TitleRange* sdTitles,
ESTitleId* titleIds, wchar_t* titleNames, u32* titleCount,
s32 state);
extern "C" bool iplSDChannelSelect_813DB5EC(ipl::scene::SDChannelSelect* channelSelect,
ESTitleId titleId);
extern "C" bool iplSDChannelSelect_813DB4D4(ipl::scene::SDChannelSelect* channelSelect,
ESTitleId titleId, u32 flags);
extern "C" bool iplSDChannelSelect_813DB530(ipl::scene::SDChannelSelect* channelSelect,
ESTitleId** titleNames, ESTitleId** secondaryTitles);
extern "C" bool iplSDChannelSelect_813DB478(ipl::scene::SDChannelSelect* channelSelect,
ESTitleId titleId);
extern "C" bool iplSDChannelSelect_813DB58C(ipl::scene::SDChannelSelect* channelSelect,
ESTitleId** titles, ESTitleId** secondaryTitles,
ESTitleId** names);
namespace ipl {
namespace scene {
typedef ::gui::Component GuiComponent;
@@ -723,8 +708,8 @@ namespace ipl {
if (!mpMainLayout->isPlaying(-1)) {
switch (mProcessState) {
case 0:
if (iplSDChannelSelect_813DDB74(mpSDChannelSelect, &mNandTitleRange, &mSDTitleRange,
mTitleIds, &mTitleNames[0][0], &mTitleCount, 2)) {
if (mpSDChannelSelect->collectTitlesForMode(&mNandTitleRange.mByteSize, &mSDTitleRange.mByteSize,
mTitleIds, (char*)&mTitleNames[0][0], &mTitleCount, 2)) {
mDialogState = 4;
mpTitleLayout->getAnim(0)->initAnmFrame();
mpTitleLayout->getAnim(0)->play();
@@ -922,8 +907,8 @@ namespace ipl {
return;
}
if (iplSDChannelSelect_813DB530(mpSDChannelSelect, &mTitleListState.mpNames,
&mTitleListState.mpSecondaryTitles)) {
if (mpSDChannelSelect->enqueueErrorNotice((u32)&mTitleListState.mpNames,
(u32)&mTitleListState.mpSecondaryTitles)) {
mDialogState = 19;
mCurrentTitleName[0] = L'\0';
mCurrentTitle = 0;
@@ -995,8 +980,8 @@ namespace ipl {
if (iplSDMemory_containsTitleId(this, mTitleIds[mCurrentTitle], mSDTitleIds, mTitleNameCount) ||
iplSDMemory_containsTitleId(this, mTitleIds[mCurrentTitle], mNandTitleIds, mNandTitleCount)) {
ESTitleId titleId = mTitleIds[mCurrentTitle];
if (iplSDChannelSelect_813DB478(mpSDChannelSelect, titleId)) {
ESTitleId* curTitleId = &mTitleIds[mCurrentTitle];
if (mpSDChannelSelect->enqueueMoveNotice((u32)curTitleId - offsetof(SDMemory, mTitleIds), ((u32*)curTitleId)[0], ((u32*)curTitleId)[1])) {
mDialogState = 14;
} else {
System::getDialog()->terminate();
@@ -1046,7 +1031,7 @@ namespace ipl {
void SDMemory::onDialogState16() {
if (mTitleCount > mCurrentTitle && System::isReceiveScheduleStopped()) {
if (iplSDChannelSelect_813DB4D4(mpSDChannelSelect, mTitleIds[mCurrentTitle], 0)) {
if (mpSDChannelSelect->enqueueStateNotice(mTitleIds[mCurrentTitle], 0)) {
mDialogState = 16;
} else {
System::getDialog()->terminate();
@@ -1101,7 +1086,9 @@ namespace ipl {
System::getDialog()->setTitleForSDMemory(mCurrentTitleName);
const ESTitleId titleId = mTitleIds[mCurrentTitle];
if (iplSDChannelSelect_813DB5EC(mpSDChannelSelect, titleId)) {
if (mpSDChannelSelect->enqueueDeleteNotice((u32)&mTitleIds[mCurrentTitle] - offsetof(SDMemory, mTitleIds),
((u32*)&mTitleIds[mCurrentTitle])[0],
((u32*)&mTitleIds[mCurrentTitle])[1])) {
mDialogState = 18;
} else {
System::getDialog()->terminate();
@@ -1263,13 +1250,12 @@ namespace ipl {
void SDMemory::drawTransferTitles() {
const nw4r::math::VEC3& translation = mpDialogLayout->FindPaneByName("N_Memo")->GetTranslate();
nw4r::math::VEC3 memoPosition;
f32 bodyY = translation.y;
memoPosition.x = translation.x;
memoPosition.y = translation.y;
memoPosition.y = bodyY;
memoPosition.z = translation.z;
mpDialogLayout->FindPaneByName("header_header");
nw4r::lyt::Pane* bodyPane = mpDialogLayout->FindPaneByName("header_body");
f32 bodyY = memoPosition.y;
if (bodyY < 500.0f) {
mpDialogLayout->draw("header_header");
}
@@ -1288,9 +1274,12 @@ namespace ipl {
if (mNandTitleCount != 0) {
const wchar_t* messageForCount = System::getMessage(0xCB);
const wchar_t* newline = wcsstr(messageForCount, L"\n");
while (newline != NULL) {
++lineCount;
newline = wcsstr(newline + 1, L"\n");
if (newline != NULL) {
const wchar_t* separator = L"\n";
while (newline != NULL) {
++lineCount;
newline = wcsstr(newline + 1, separator);
}
}
const wchar_t* messageLine = System::getMessage(0xCB);
@@ -1298,13 +1287,14 @@ namespace ipl {
mpDialogLayout->FindPaneByName("T_Header_body"));
s32 totalLines = lineCount + 1;
s32 lineIndex = 0;
const wchar_t* lineSeparator = L"\n";
if (lineIndex < totalLines) {
do {
const wchar_t* lineEnd = wcsstr(messageLine, L"\n");
while (lineIndex < totalLines) {
const wchar_t* lineEnd = wcsstr(messageLine, lineSeparator);
if (lineEnd == NULL) {
utility::layout::set_string(messageText, messageLine);
} else {
u32 lineLength = static_cast<u32>(lineEnd - messageLine);
s32 lineLength = lineEnd - messageLine;
wcsncpy(mCurrentTitleName, messageLine, lineLength);
mCurrentTitleName[lineLength] = L'\0';
utility::layout::set_string(messageText, mCurrentTitleName);
@@ -1320,7 +1310,7 @@ namespace ipl {
messageOffset -= bodyHeight;
++lineIndex;
} while (lineIndex < totalLines);
}
}
}
@@ -1344,20 +1334,14 @@ namespace ipl {
for (u32 titleIndex = 0; titleIndex < mTitleCount; ++titleIndex) {
utility::layout::set_string(titleText, mTitleNames[titleIndex]);
if (nandTitleIndex < mNandTitleCount && mTitleIds[titleIndex] == mNandTitleIds[nandTitleIndex]) {
GXColor gxActive;
writeFourFlagBytes(&gxActive.r, 0x34, 0xBE, 0xED, 0xFF);
nw4r::ut::Color activeColor;
writeFourFlagBytes(&activeColor.r, 0x34, 0xBE, 0xED, 0xFF);
++nandTitleIndex;
nw4r::ut::Color active0 = *reinterpret_cast<const nw4r::ut::Color*>(&gxActive);
setTitleRowColors(titleText,
nw4r::ut::Color(*reinterpret_cast<const nw4r::ut::Color*>(&gxActive)),
nw4r::ut::Color(*reinterpret_cast<const nw4r::ut::Color*>(&gxActive)));
setTitleRowColors(titleText, nw4r::ut::Color(activeColor), nw4r::ut::Color(activeColor));
} else {
GXColor gxInactive;
writeFourFlagBytes(&gxInactive.r, 0x64, 0x64, 0x64, 0xFF);
nw4r::ut::Color inactive0 = *reinterpret_cast<const nw4r::ut::Color*>(&gxInactive);
setTitleRowColors(titleText,
nw4r::ut::Color(*reinterpret_cast<const nw4r::ut::Color*>(&gxInactive)),
nw4r::ut::Color(*reinterpret_cast<const nw4r::ut::Color*>(&gxInactive)));
nw4r::ut::Color inactiveColor;
writeFourFlagBytes(&inactiveColor.r, 0x64, 0x64, 0x64, 0xFF);
setTitleRowColors(titleText, nw4r::ut::Color(inactiveColor), nw4r::ut::Color(inactiveColor));
}
nw4r::ut::Rect textRect = mpDialogLayout->getTextDrawRect("T_Letter");
@@ -1637,23 +1621,23 @@ namespace ipl {
switch (paneIndex) {
case 0:
animator = mpTitleLayout->getAnim(7);
iplSDChannelSelect_813DDB74(mpSDChannelSelect, &mNandTitleRange, &mSDTitleRange,
mTitleIds, &mTitleNames[0][0], &mTitleCount, 0);
mpSDChannelSelect->collectTitlesForMode(&mNandTitleRange.mByteSize, &mSDTitleRange.mByteSize,
mTitleIds, (char*)&mTitleNames[0][0], &mTitleCount, 0);
break;
case 1:
animator = mpTitleLayout->getAnim(10);
iplSDChannelSelect_813DDB74(mpSDChannelSelect, &mNandTitleRange, &mSDTitleRange,
mTitleIds, &mTitleNames[0][0], &mTitleCount, 1);
mpSDChannelSelect->collectTitlesForMode(&mNandTitleRange.mByteSize, &mSDTitleRange.mByteSize,
mTitleIds, (char*)&mTitleNames[0][0], &mTitleCount, 1);
break;
case 2:
animator = mpTitleLayout->getAnim(13);
iplSDChannelSelect_813DDB74(mpSDChannelSelect, &mNandTitleRange, &mSDTitleRange,
mTitleIds, &mTitleNames[0][0], &mTitleCount, 2);
mpSDChannelSelect->collectTitlesForMode(&mNandTitleRange.mByteSize, &mSDTitleRange.mByteSize,
mTitleIds, (char*)&mTitleNames[0][0], &mTitleCount, 2);
break;
case 3:
animator = mpTitleLayout->getAnim(16);
iplSDChannelSelect_813DDB74(mpSDChannelSelect, &mNandTitleRange, &mSDTitleRange,
mTitleIds, &mTitleNames[0][0], &mTitleCount, 3);
mpSDChannelSelect->collectTitlesForMode(&mNandTitleRange.mByteSize, &mSDTitleRange.mByteSize,
mTitleIds, (char*)&mTitleNames[0][0], &mTitleCount, 3);
break;
case 4:
animator = mpTitleLayout->getAnim(4);
@@ -1679,10 +1663,9 @@ namespace ipl {
mTitleListState.mSecondaryCount = 0;
mTitleListState.mpNames = mSDTitleIds;
mTitleListState.mNameCount = 0;
iplSDChannelSelect_813DB58C(mpSDChannelSelect,
&mTitleListState.mpTitles,
&mTitleListState.mpSecondaryTitles,
&mTitleListState.mpNames);
mpSDChannelSelect->enqueueCommandNotice((u32)&mTitleListState.mpTitles,
(u32)&mTitleListState.mpSecondaryTitles,
(u32)&mTitleListState.mpNames);
}
if (paneIndex == 4) {

View File

@@ -729,11 +729,10 @@ namespace ipl {
return;
}
if (OSGetTime() - mOperationStartTime < OS_TIMER_CLOCK) {
return;
}
setDialogMessage(1, 0);
int result = mpSDWorker->get_async_result();
switch (OSGetTime() - mOperationStartTime < OS_TIMER_CLOCK) {
default:
setDialogMessage(1, 0);
int result = mpSDWorker->get_async_result();
if (result == NandSDWorker::RESULT_OK ||
result == NandSDWorker::RESULT_SD_APP_LOC_NOT_FOUND) {
for (int channelIndex = 0; channelIndex < mPageCount * 12;
@@ -807,6 +806,10 @@ namespace ipl {
mbSDCardBroken = true;
}
refreshAfterSDTitleList();
break;
case true:
return;
}
}
void SDChannelSelect::handleSDMountComplete() {
@@ -1695,7 +1698,7 @@ namespace ipl {
if (mState == 2 && !mpLayout->isPlaying(0)) {
SDButton* button = static_cast<SDButton*>(System::getSceneManager()->getScene(0x24));
if (button != NULL) {
button->setEventHandler(mpButtonEventHandler);
button->setEventHandler((::gui::EventHandler*)button, mpButtonEventHandler);
mState = 3;
if (mCurrentPage > 0) {
button->initArrowAppearance(1, true);
@@ -2257,7 +2260,7 @@ namespace ipl {
mbRightArrowVisible = false;
}
button->setEventHandler(mpButtonEventHandler);
button->setEventHandler((::gui::EventHandler*)button, mpButtonEventHandler);
TVRCManager::getHandle()->setEnable(TRUE);
snd::getSystem()->startBGM("WIPL_BGM_MENU");
clearNoticeQueue();
@@ -2639,7 +2642,7 @@ namespace ipl {
button->animation(SDButton::IDANIM_ARROW_RIGHT_DISAPPEAR);
}
button->disableBtn();
button->setEventHandler(NULL);
button->setEventHandler((::gui::EventHandler*)button, NULL);
mCurrentChannelIndex = index;
mState = 5;
snd::getSystem()->startSE("WIPL_SE_BT_PUSH");
@@ -3464,53 +3467,49 @@ namespace ipl {
}
{
if (mpScene->mState == 1) {
if (System::getFader()->getStatus() == EGG::Fader::PREPARE_OUT) {
if (con != NULL) {
if (con->downTrg(0x00100800)) {
SDButton* button = static_cast<SDButton*>(
System::getSceneManager()->getScene(0x24));
if (strcmp(paneName,
SDButton::smButtonName[SDButton::BTN_HELP]) == 0) {
mpScene->mOperationResult = 0;
mpScene->mState = 26;
button->animation(4);
snd::getSystem()->startSE("WIPL_SE_DECIDE");
return;
}
if (strcmp(paneName,
SDButton::smButtonName[SDButton::BTN_WII_MENU]) == 0) {
button->setEventHandler(NULL);
mpScene->mState = 4;
snd::getSystem()->startSE("WIPL_SE_DECIDE");
return;
}
if (strcmp(paneName,
SDButton::smButtonName[SDButton::BTN_ARROW_LEFT]) == 0 &&
mpScene->mCurrentPage > 0) {
button->animation(7);
mpScene->setStateAndPlaySelectSound(8);
return;
}
if (strcmp(paneName,
SDButton::smButtonName[SDButton::BTN_ARROW_RIGHT]) == 0 &&
mpScene->mCurrentPage < mpScene->mPageCount - 1) {
button->animation(8);
mpScene->setStateAndPlaySelectSound(9);
}
} else {
if (System::getFader()->getStatus() == EGG::Fader::PREPARE_OUT) {
if (con != NULL) {
if (con->downTrg(0x00100800)) {
SDButton* button = static_cast<SDButton*>(
System::getSceneManager()->getScene(0x24));
if (strcmp(paneName,
SDButton::smButtonName[SDButton::BTN_HELP]) == 0) {
mpScene->mOperationResult = 0;
mpScene->mState = 26;
button->animation(4);
snd::getSystem()->startSE("WIPL_SE_DECIDE");
return;
}
} else {
return;
if (strcmp(paneName,
SDButton::smButtonName[SDButton::BTN_WII_MENU]) == 0) {
button->setEventHandler((::gui::EventHandler*)button, NULL);
mpScene->mState = 4;
snd::getSystem()->startSE("WIPL_SE_DECIDE");
return;
}
if (strcmp(paneName,
SDButton::smButtonName[SDButton::BTN_ARROW_LEFT]) == 0 &&
mpScene->mCurrentPage > 0) {
button->animation(7);
mpScene->setStateAndPlaySelectSound(8);
return;
}
if (strcmp(paneName,
SDButton::smButtonName[SDButton::BTN_ARROW_RIGHT]) == 0 &&
mpScene->mCurrentPage < mpScene->mPageCount - 1) {
button->animation(8);
mpScene->setStateAndPlaySelectSound(9);
}
}
}
}
}
}
void SDChannelSelect::startResetting() {
snd::getSystem()->resetAllSound();
clearCommandQueue();

View File

@@ -282,7 +282,7 @@ FaderSceneCommand SDChannelTitle::calcFadein() {
if (!mpFade->isPlaying()) {
iplSDChannelTitle_playBannerIntro(this);
SDButton* button = static_cast<SDButton*>(System::getScene(0x24));
button->setEventHandler(mpButtonEventHandler);
button->setEventHandler((::gui::EventHandler*)button, mpButtonEventHandler);
button->animation(13);
button->animation(14);
mState = 1;
@@ -344,7 +344,7 @@ void SDChannelTitle::initCalcFadeout() {
button->animation(15);
button->animation(16);
}
button->setEventHandler(NULL);
button->setEventHandler((::gui::EventHandler*)button, NULL);
}
FaderSceneCommand SDChannelTitle::calcFadeout() {
@@ -736,7 +736,8 @@ extern "C" void iplSDChannelTitle_startCopyProgress(SDChannelTitle* scene) {
if (channel->mStateFlags == 3) {
scene->mState = 26;
scene->mErrorMessage = 0xaf;
} else if (scene->mpChannelSelect->enqueueChannelNotice(scene->mTitleId, reinterpret_cast<u32>(&scene->mTitleRange))) {
} else if (scene->mpChannelSelect->enqueueChannelNotice(0, static_cast<u32>(scene->mTitleId >> 32),
static_cast<u32>(scene->mTitleId), reinterpret_cast<u32>(&scene->mTitleRange))) {
scene->mState = 20;
} else {
scene->mState = 26;
@@ -825,7 +826,8 @@ extern "C" void iplSDChannelTitle_updateCopyStart(SDChannelTitle* scene) {
ESTitleId temporaryTitle = SCGetTmpTitleID();
if (temporaryTitle && scene->mTitleId != temporaryTitle) {
if (System::isReceiveScheduleStopped()) {
if (scene->mpChannelSelect->enqueueStateNotice(temporaryTitle, 1)) {
if (scene->mpChannelSelect->enqueueStateNotice(0, static_cast<u32>(temporaryTitle >> 32),
static_cast<u32>(temporaryTitle), 1)) {
scene->mState = 16;
} else {
scene->mState = 26;
@@ -1354,8 +1356,7 @@ extern "C" void iplSDChannelTitle_flushSaveBeforeExit(SDChannelTitle* scene, int
System::getSaveData()->pushTitleCache(scene->mTitleId);
}
System::getSaveData()->getSDPrevPage() = scene->mPage;
EGG::Heap* saveHeap = System::getMem2App();
scene->mpSaveFile = System::getSaveData()->flushAsync(saveHeap);
scene->mpSaveFile = System::getSaveData()->flushAsync(System::getMem2App());
__WPADReconnect(TRUE);
}

View File

@@ -914,8 +914,7 @@ void CArGBAOdh::cdj_c_setQuantizationTable(SArCDJ_OdhMaster* master, u32 quality
for (i = 0; i < 64; i++) {
temp = ((const u16*)gArAANScales)[i];
temp *= quantization[table * 64 + i];
temp = 0x4000000 / temp;
master->quantizationTables[table * 64 + i] = temp;
master->quantizationTables[table * 64 + i] = 0x4000000 / temp;
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -3170,415 +3170,3 @@ CheckMsgBoxSpace 85.57399%: unrolled base64 size arithmetic dependency schedule;
WriteMIMEAttachHeader 99.61957%: type/disposition measurement coloring and sum coalescing; 5 operands differ.
Zi8PrepareMatch 96.319145%: original component-presence dead stores plus unoptimized expression scheduling; 939/940 instructions.
Uncertainty: the gate reports fewer instruction-exact functions than raw-byte equality in JPEG because of CR1 normalization. Keyboard's existing 14 instruction-exact versus 15 objdiff exact count is unchanged. No data symbol evidence supports a rename/extent change in these four units.
# Xhigh continuation fz15f
Fresh branch agent/w1002/sol-fz15f-xhigh at 1b942565. Prior five JPEG matches landed. AGENTS.md and unslop read; all four pools identical. Re-examine remaining structures before register search, preserve prior exact functions.
libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8 baseline {'fuzzy_match_percent': 99.527466, 'total_code': '15948', 'matched_code': '13264', 'matched_code_percent': 83.1703, 'matched_data_percent': 100.0, 'total_functions': 13, 'matched_functions': 11, 'matched_functions_percent': 84.61539, 'complete_data_percent': 100.0, 'total_units': 1}
Origin open TMCJPEGDEC_set_converterY8U8V8: 92.78571%, body unchanged
Origin open TMCJPEG_814F0A58: 99.01053%, body unchanged
libs/RVL_SDK/src/kbd/kbd_lib baseline {'fuzzy_match_percent': 97.70437, 'total_code': '5764', 'matched_code': '3088', 'matched_code_percent': 53.573906, 'total_data': '5296', 'matched_data': '5296', 'matched_data_percent': 100.0, 'total_functions': 21, 'matched_functions': 15, 'matched_functions_percent': 71.42857, 'total_units': 1}
Origin open kbdEventHandler: 99.83871%, body unchanged
Origin open kbdProcMod: 99.90234%, body unchanged
Origin open kbd_led_handler: 64.12%, body unchanged
Origin open KBDSetLedsAsync: 86.234566%, body unchanged
Origin open KBDSetLeds: 84.6076%, body unchanged
Origin open KBDSetModState: 99.40476%, body unchanged
libs/RevoEX/src/nwc24/NWC24MsgCommit baseline {'fuzzy_match_percent': 98.47539, 'total_code': '8532', 'matched_code': '7272', 'matched_code_percent': 85.23207, 'total_data': '904', 'matched_data': '904', 'matched_data_percent': 100.0, 'total_functions': 18, 'matched_functions': 16, 'matched_functions_percent': 88.88889, 'total_units': 1}
Origin open CheckMsgBoxSpace: 85.57399%, body unchanged
Origin open WriteMIMEAttachHeader: 99.61957%, body unchanged
libs/RVLMiddleware/eZiText/src/clib/zprepare baseline {'fuzzy_match_percent': 96.319145, 'total_code': '3760', 'total_data': '68', 'matched_data': '8', 'matched_data_percent': 11.764706, 'total_functions': 1, 'total_units': 1}
Origin open Zi8PrepareMatch: 96.319145%, body unchanged
## fz15f TMCJPEGDEC_set_converterY8U8V8 structure
Frame 0x10, 195/196 instructions. First missing target instruction 1 computes convBuf base into r4, source folds its immediate into per-case work member addresses. No adjacent stack store/reload evidence for volatile. Extent ends at next function 814EFEAC, no overlap. Test aliased row ownership and buffer layout helper boundaries.
## Xhigh TMCJPEGDEC_set_converterY8U8V8: fz15f row and array alias structure
- TMCJPEGDEC_set_converterY8U8V8: baseline: structural/exact (41, 195) instructions 195/196
- TMCJPEGDEC_set_converterY8U8V8: row pointer array view aliases the configured outputs: structural/exact (41, 195) instructions 195/196
- TMCJPEGDEC_set_converterY8U8V8: buffer byte offsets passed through planar row helper: structural/exact (41, 195) instructions 195/196
- TMCJPEGDEC_set_converterY8U8V8: complete converter buffer viewed as array object: structural/exact (41, 195) instructions 195/196
## fz15f TMCJPEG_814F0A58 structure
Frame 0x60, 475/475 instructions. First real difference 266 is chroma tile-width/column pair, removed by shared tileWidth and xEnd lifetime in prior round. Remaining first real difference 274 computes chroma row stride into r10 versus target r6. Source has an explicit chromaRowSkip and Cr recomputes the stride; target consumes the width register for padding. Remove that explicit temporary before more register search. No volatile reload evidence.
## Xhigh TMCJPEG_814F0A58: fz15f implicit stride and independent dimension lifetimes
- TMCJPEG_814F0A58: baseline: structural/exact (0, 77) instructions 475/475
- TMCJPEG_814F0A58: implicit padding expression, shared tile width and bound: structural/exact (2, 2) instructions 475/475
- TMCJPEG_814F0A58: implicit padding expression with original phase locals: structural/exact (2, 20) instructions 475/475
- TMCJPEG_814F0A58: independent chroma sample width with shared tile and bound: structural/exact (2, 2) instructions 475/475
- TMCJPEG_814F0A58: sample row traversal through inline helper: structural/exact (2, 2) instructions 475/475
## fz15f TMCJPEG_814F0A58 two-instruction schedule
Removing explicit chromaRowSkip, while sharing tileWidth/xEnd, resolves all register differences. Remaining real instructions 274/275 exchange subfic r6,r6,8 and rlwinm r0,r26,0,0,0, the latter compiler-generated signed-bound check. Score (2,2), 475/475; four additional ctxdiff differences are known CR1 normalization artifacts. Test source stride scope, definition qualifier and loop initialization before further register work.
## Xhigh TMCJPEG_814F0A58: fz15f stride definition and loop boundary
- TMCJPEG_814F0A58: baseline: structural/exact (2, 2) instructions 475/475
- TMCJPEG_814F0A58: stride definition const: structural/exact (21, 220) instructions 475/475
- TMCJPEG_814F0A58: stride definition scoped: structural/exact (21, 220) instructions 475/475
- TMCJPEG_814F0A58: stride definition init: structural/exact (21, 140) instructions 475/475
- TMCJPEG_814F0A58: stride definition consume: structural/exact (21, 126) instructions 475/475
- TMCJPEG_814F0A58: stride definition aggregate: structural/exact (6, 12) instructions 475/475
- TMCJPEG_814F0A58: chroma outer while loop with implicit padding: structural/exact (2, 2) instructions 475/475
- TMCJPEG_814F0A58: chroma inner loop increments in store expression: structural/exact (2, 2) instructions 475/475
## Xhigh TMCJPEG_814F0A58: fz15f shared source-plane stride and arithmetic trees
- TMCJPEG_814F0A58: baseline: structural/exact (2, 2) instructions 475/475
- TMCJPEG_814F0A58: row stride ownership phases: structural/exact (29, 225) instructions 475/475
- TMCJPEG_814F0A58: row stride ownership row: structural/exact (21, 125) instructions 475/475
- TMCJPEG_814F0A58: row stride ownership negative: structural/exact (2, 2) instructions 475/475
- TMCJPEG_814F0A58: row stride ownership ptrfirst: structural/exact (7, 201) instructions 476/475
- TMCJPEG_814F0A58: row stride ownership namedcb: structural/exact (2, 2) instructions 475/475
- TMCJPEG_814F0A58: row stride ownership unsigned: structural/exact (2, 2) instructions 475/475
## Xhigh TMCJPEG_814F0A58: fz15f loop postexpression and dependency schedule
- TMCJPEG_814F0A58: baseline: structural/exact (2, 2) instructions 475/475
- TMCJPEG_814F0A58: row input advances in outer loop postexpression: structural/exact (2, 2) instructions 475/475
- TMCJPEG_814F0A58: chroma tile metadata before sample dimensions: structural/exact (2, 2) instructions 475/475
## fz15f KBDSetModState and kbdProcMod structure
Setter frame 0x10, 42/42 instructions; inlined caller frame 0x20, 256/256 instructions. First differing setter instruction 30 and caller 245 forms state field address into r5 versus target r4, then word value occupies opposite register. No adjacent store/reload pairs in any of the six open keyboard functions; volatile lever unsupported except SDK LED fields. Test field-pointer ownership and actual modifier union field layout.
- TMCJPEG_814F0A58: vertical bound before horizontal bound in chroma preheader: structural/exact (2, 2) instructions 475/475
## Xhigh KBDSetModState: fz15f field pointer and union object ownership
- KBDSetModState: baseline: structural/exact (0, 4) instructions 42/42
- TMCJPEG_814F0A58: independent input pointer advances reverse source order: structural/exact (2, 4) instructions 475/475
- KBDSetModState: named pointer to modifier field owns load/store address: structural/exact (0, 7) instructions 42/42
- KBDSetModState: state field load/store in inline lock updater: structural/exact (0, 4) instructions 42/42
- KBDSetModState: modifier union is the channel field type: structural/exact (13, 24) instructions 44/42
## Xhigh kbdProcMod: fz15f field pointer and union object ownership
- kbdProcMod: baseline: structural/exact (0, 4) instructions 256/256
- kbdProcMod: named pointer to modifier field owns load/store address: structural/exact (15, 47) instructions 253/256
- kbdProcMod: state field load/store in inline lock updater: structural/exact (0, 4) instructions 256/256
- kbdProcMod: modifier union is the channel field type: structural/exact (56, 86) instructions 255/256
Corrected union-field trial to read the channel physical bitfield directly rather than assigning a partial local word. The discarded partial-word version was never promoted; no undefined value is retained or used in the corrected trial.
## Xhigh KBDSetModState: fz15f initialized bitfield ownership
- KBDSetModState: baseline: structural/exact (0, 4) instructions 42/42
- KBDSetModState: typed channel modifier field with direct physical read: structural/exact (0, 7) instructions 42/42
## Xhigh kbdProcMod: fz15f initialized bitfield ownership
- kbdProcMod: baseline: structural/exact (0, 4) instructions 256/256
- kbdProcMod: typed channel modifier field with direct physical read: structural/exact (15, 47) instructions 253/256
## fz15f kbdEventHandler structure
Frame 0x20, 186/186 instructions. First difference 35 loads report error code into r3 versus target r5; source then owns channel table base in r30 versus target r3 before computing result r30. All subsequent instructions identical. No store/reload volatile evidence. Test report error switch and partial handler inline boundary.
## Xhigh kbdEventHandler: fz15f error report discrimination and helper boundary
- kbdEventHandler: baseline: structural/exact (0, 5) instructions 186/186
- kbdEventHandler: error statuses use direct switch discrimination: structural/exact (8, 153) instructions 187/186
- kbdEventHandler: error statuses use biased switch discrimination: structural/exact (6, 151) instructions 189/186
- kbdEventHandler: error classification and flags handled in inline helper: structural/exact (8, 132) instructions 190/186
## fz15f Zi8PrepareMatch structure
Target frame 0x70, 939/940 instructions. First instruction difference 11 initializes contextMask in r3 versus target r0. Target dead component-presence stores to 0xf have no read; no dummy field added. Definition-volatility evidence: elementCount byte target 0x88 stb r3,0xe then 0x8c lbz r0,0xe; componentIndex pointer 0x15c stw r3,0x38 then 0x160 lwz r5,0x38, repeated at 0x178/0x17c; component pointer 0x1b4 stw r3,0x3c then 0x1b8 lwz r3,0x3c. Test only those proven fields and readable table-entry type.
## Xhigh Zi8PrepareMatch: fz15f proven volatile definitions and index entry structure
- Zi8PrepareMatch: baseline: structural/exact (36, 889) instructions 939/940
- Zi8PrepareMatch: elementCount definition volatile for adjacent target reload: structural/exact (38, 806) instructions 942/940
- Zi8PrepareMatch: component pointer field definitions volatile for adjacent target reloads: structural/exact (36, 889) instructions 939/940
- Zi8PrepareMatch: component index table represented by low/high byte entry: structural/exact (36, 889) instructions 939/940
- Zi8PrepareMatch: component element prefix count uses explicit subtraction: structural/exact (38, 909) instructions 939/940
## fz15f LED command ownership
Target async/sync reserve loop uses u32 index, CTR=12, a byte-offset register incremented 0x20 and lwzx/stwx on command device words. Current sync code uses a record pointer; async uses an existing raw byte cast. Test a readable union of twelve 32-byte command slots and 96 words, preserving object size/address and using words only for device reservation/release. SDK type version is authorized by USBKBDCmdLEDAsync layout and vu32 base.device/vu8 base.ledBits declarations. Callback target is 25 instructions versus source 24 and recomputes callback offset after result selection.
## Xhigh kbd_led_handler: fz15f command buffer layout and device view
- kbd_led_handler: baseline: structural/exact (13, 21) instructions 24/25
- kbd_led_handler: typed command word reservation view: structural/exact (13, 21) instructions 24/25
- kbd_led_handler: SDK command slots with word reservation view: structural/exact (13, 21) instructions 24/25
- kbd_led_handler: word view and true-first result switch: structural/exact (10, 18) instructions 25/25
## Xhigh KBDSetLedsAsync: fz15f command buffer layout and device view
- KBDSetLedsAsync: baseline: structural/exact (14, 70) instructions 80/81
- KBDSetLedsAsync: typed command word reservation view: structural/exact (18, 53) instructions 81/81
- KBDSetLedsAsync: SDK command slots with word reservation view: structural/exact (18, 53) instructions 81/81
- KBDSetLedsAsync: readonly channel view with word reservation loop: structural/exact (19, 74) instructions 77/81
## Xhigh KBDSetLeds: fz15f command buffer layout and device view
- KBDSetLeds: baseline: structural/exact (19, 75) instructions 75/79
- KBDSetLeds: typed command word reservation view: structural/exact (21, 76) instructions 80/79
- KBDSetLeds: SDK command slots with word reservation view: structural/exact (21, 76) instructions 80/79
- KBDSetLeds: readonly channel view with word reservation loop: structural/exact (27, 74) instructions 74/79
## fz15f CheckMsgBoxSpace structure
Frame 0x30, 223/223 instructions; first differing attachment load uses r26 instead of target r25. Eight-iteration unroll combines base64 rounding and line widths in different order, 67 structural differences. Input already const; test readonly size-pointer helper boundary and explicit encoded/line temporary dependencies.
## Xhigh CheckMsgBoxSpace: fz15f readonly helper input and arithmetic dependency
## Xhigh TMCJPEG_814F0A58: fz15f existing sample width lifetime becomes padding
- CheckMsgBoxSpace: baseline: structural/exact (67, 73) instructions 223/223
- CheckMsgBoxSpace: readonly size pointer owns base64 helper loads: structural/exact (0, 0) instructions 223/223
- TMCJPEG_814F0A58: baseline: structural/exact (2, 2) instructions 475/475
- TMCJPEG_814F0A58: reuse sample width as padding after tile metadata: structural/exact (21, 126) instructions 475/475
- TMCJPEG_814F0A58: reuse sample width as padding after bounds: structural/exact (21, 126) instructions 475/475
- TMCJPEG_814F0A58: reuse sample width as padding before bound expansion: structural/exact (32, 206) instructions 476/475
- TMCJPEG_814F0A58: inline padding computation before loop: structural/exact (21, 126) instructions 475/475
- TMCJPEG_814F0A58: equal chroma height owns row padding: structural/exact (2, 2) instructions 475/475
## fz15f CheckMsgBoxSpace exact
The readonly `const u32*` Base64StorageSize inline boundary preserves repeated input loads in the original expression instead of binding a scalar first. This changes the unrolled size/load dependency graph to the target: ctxdiff 223/223, diffs 0; pool 9/9 identical; objdiff 100.0. NWC quick gate PASS, exact 16 -> 17, code 7272 -> 8164/8532, data 904 unchanged, regressions/forbidden/readability 0. Shared headers unchanged; all other NWC exact functions preserved. Commit only this exact function and the attempts log; JPEG near scheduling candidate remains experimental.
## fz15f WriteMIMEAttachHeader structure
Frame 0x30, 92/92 instructions, five register-only differences at 25,28,30,32,33. Type-prefix length occupies r29 instead of target r30, disposition r30 instead of r29, prefix sum coalesces encoding r28 instead of target type r30; final mime sum operands reverse. Target stores no measurement locals, so no volatility proof. Test measured-length aggregate helper boundary and subtotal value ownership.
## Xhigh WriteMIMEAttachHeader: fz15f header measurement object and capacity subtotal lifetime
- WriteMIMEAttachHeader: baseline: structural/exact (0, 5) instructions 92/92
- WriteMIMEAttachHeader: capacity subtotal owned by final total local: structural/exact (2, 5) instructions 92/92
## Xhigh TMCJPEG_814F0A58: fz15f readonly sample alias view and inline boundaries
- WriteMIMEAttachHeader: capacity subtotal owned by first written length local: structural/exact (2, 5) instructions 92/92
- WriteMIMEAttachHeader: unsigned type-prefix length with signed capacity: structural/exact (0, 5) instructions 92/92
- TMCJPEG_814F0A58: baseline: structural/exact (2, 2) instructions 475/475
- WriteMIMEAttachHeader: unsigned transfer-prefix length with signed capacity: structural/exact (0, 5) instructions 92/92
- TMCJPEG_814F0A58: readonly decoder state view: structural/exact (2, 2) instructions 475/475
- WriteMIMEAttachHeader: encoding length owns concatenated prefix sum: structural/exact (0, 5) instructions 92/92
- TMCJPEG_814F0A58: readonly source sample pointers: structural/exact (21, 32) instructions 475/475
- WriteMIMEAttachHeader: measurement aggregate fields in caller: structural/exact (0, 5) instructions 92/92
- WriteMIMEAttachHeader: measurement aggregate owned by inline readonly-mime helper: structural/exact (0, 4) instructions 92/92
- TMCJPEG_814F0A58: unsigned sample width with signed stored bounds: structural/exact (2, 2) instructions 475/475
- TMCJPEG_814F0A58: unsigned sample height with signed stored bounds: structural/exact (2, 2) instructions 475/475
- TMCJPEG_814F0A58: sample bounds through inline end helper: structural/exact (2, 2) instructions 475/475
- TMCJPEG_814F0A58: chroma tiled address owned by inline helper: structural/exact (2, 2) instructions 475/475
## Xhigh WriteMIMEAttachHeader: fz15f readonly prefix and length pointer helper boundaries
- WriteMIMEAttachHeader: baseline: structural/exact (0, 5) instructions 92/92
- WriteMIMEAttachHeader: readonly prefix pointer helper for all three strlen inputs: structural/exact (0, 9) instructions 92/92
- WriteMIMEAttachHeader: readonly prefix pointer helper for type input: structural/exact (0, 9) instructions 92/92
- WriteMIMEAttachHeader: readonly prefix pointer helper for encoding input: structural/exact (0, 5) instructions 92/92
- WriteMIMEAttachHeader: readonly prefix pointer helper for disposition input: structural/exact (0, 5) instructions 92/92
- WriteMIMEAttachHeader: readonly length pointers own combined capacity arithmetic: structural/exact (2, 6) instructions 92/92
## Xhigh TMCJPEG_814F0A58: fz15f phase state coalescing and bound operand ordering
- TMCJPEG_814F0A58: baseline: structural/exact (2, 2) instructions 475/475
- TMCJPEG_814F0A58: padding owned by existing height local: structural/exact (21, 140) instructions 475/475
- TMCJPEG_814F0A58: padding owned by existing row local: structural/exact (21, 125) instructions 475/475
- TMCJPEG_814F0A58: padding owned by existing yEnd local: structural/exact (21, 133) instructions 475/475
- TMCJPEG_814F0A58: source padding shared between planes: structural/exact (29, 271) instructions 475/475
- TMCJPEG_814F0A58: chroma row bounds and padding paired structure: structural/exact (6, 12) instructions 475/475
- TMCJPEG_814F0A58: pointer row advances are for-loop postexpressions: structural/exact (2, 2) instructions 475/475
- TMCJPEG_814F0A58: commuted sample bound operands: structural/exact (2, 5) instructions 475/475
## Xhigh WriteMIMEAttachHeader: fz15f readonly metadata and prefix measurement boundaries
- WriteMIMEAttachHeader: baseline: structural/exact (0, 5) instructions 92/92
- WriteMIMEAttachHeader: readonly message input view with mutable output length: structural/exact (0, 5) instructions 92/92
- readonly attachment type array view: structural/exact (99999, 99999)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 # ----------------------------------------------- # 775: const u32* attachedTypes = msg->attachedType; # Error: ^ # (10209) illegal implicit conversion from 'NWC24MIMEType[2]' to # 'const unsigned long *' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed.
- WriteMIMEAttachHeader: output length owned by named field pointer: structural/exact (0, 5) instructions 92/92
- WriteMIMEAttachHeader: signed attachment subscript input: structural/exact (0, 5) instructions 92/92
- WriteMIMEAttachHeader: inline helper owns combined type prefix length: structural/exact (2, 74) instructions 91/92
- WriteMIMEAttachHeader: inline helper writes measured prefix lengths: structural/exact (2, 5) instructions 92/92
## Xhigh TMCJPEG_814F0A58: fz15f phase geometry structure field ownership
- TMCJPEG_814F0A58: baseline: structural/exact (2, 2) instructions 475/475
- TMCJPEG_814F0A58: chroma row padding precedes end in record: structural/exact (6, 12) instructions 475/475
- TMCJPEG_814F0A58: chroma row bounds expressed as two-element array: structural/exact (6, 12) instructions 475/475
- TMCJPEG_814F0A58: width and column bound share record across phases: structural/exact (8, 167) instructions 475/475
- TMCJPEG_814F0A58: height and row bound share record across phases: structural/exact (8, 150) instructions 475/475
## Xhigh TMCJPEG_814F0A58: fz15f padding expression and const width pointer ownership
- TMCJPEG_814F0A58: baseline: structural/exact (2, 2) instructions 475/475
- TMCJPEG_814F0A58: row padding expression division: structural/exact (42, 469) instructions 476/475
- TMCJPEG_814F0A58: row padding expression bound: structural/exact (2, 2) instructions 475/475
- TMCJPEG_814F0A58: row padding expression negate: structural/exact (25, 220) instructions 475/475
- TMCJPEG_814F0A58: row padding expression postscope: structural/exact (2, 2) instructions 475/475
- TMCJPEG_814F0A58: both source pointer advances owned by row helper: structural/exact (2, 2) instructions 475/475
- TMCJPEG_814F0A58: row helper reads sample width through const pointer: structural/exact (7, 201) instructions 476/475
## Xhigh WriteMIMEAttachHeader: fz15f measurement scope and operand ownership finish
- WriteMIMEAttachHeader: baseline: structural/exact (0, 5) instructions 92/92
- WriteMIMEAttachHeader: correct enum attachment type readonly view: structural/exact (0, 5) instructions 92/92
- WriteMIMEAttachHeader: length measurements have independent initializer scope: structural/exact (0, 5) instructions 92/92
- WriteMIMEAttachHeader: prefix type and combined length share union value: structural/exact (0, 5) instructions 92/92
- WriteMIMEAttachHeader: commuted concatenated prefix operands: structural/exact (0, 5) instructions 92/92
## Xhigh TMCJPEG_814F0A58: fz15f remaining phase bound lifetimes
- TMCJPEG_814F0A58: baseline: structural/exact (2, 2) instructions 475/475
- TMCJPEG_814F0A58: vertical bound local shared across luma and chroma: structural/exact (2, 2) instructions 475/475
- TMCJPEG_814F0A58: readonly chroma start coordinate in phase scope: structural/exact (23, 227) instructions 475/475
- TMCJPEG_814F0A58: completed luma row owns chroma start coordinate: structural/exact (23, 137) instructions 475/475
- TMCJPEG_814F0A58: sample bounds use unsigned intermediate addition: structural/exact (2, 2) instructions 475/475
## fz15f WriteMIMEAttachHeader register-only final search
Structural readonly/aggregate/helper trials leave four or five operand differences; only now run declsearch on split declarations, including written-length lifetimes. Compiler-failing wrong attachment enum pointer excluded from valid trial count and corrected above.
```
declaration block:
char* buffer;
const char* mime;
const char* suffix;
s32 typeLength;
s32 encodingLength;
s32 dispositionLength;
s32 mimeLength;
s32 first;
s32 second;
s32 third;
s32 total;
NWC24Err err;
start (0, 5)
best (0, 5) after 80 builds; source restored; best order was:
char* buffer;
const char* mime;
const char* suffix;
s32 typeLength;
s32 encodingLength;
s32 dispositionLength;
s32 mimeLength;
s32 first;
s32 second;
s32 third;
s32 total;
NWC24Err err;
```
## Xhigh kbd_led_handler: fz15f per-slot command array layout
- kbd_led_handler: baseline: structural/exact (13, 21) instructions 24/25
- kbd_led_handler: SDK command and device words share per-slot union: structural/exact (13, 21) instructions 24/25
- kbd_led_handler: command slots use native-size word arrays: structural/exact (13, 21) instructions 24/25
- kbd_led_handler: word array command layout with true-first completion switch: structural/exact (10, 18) instructions 25/25
## Xhigh KBDSetLedsAsync: fz15f per-slot command array layout
- KBDSetLedsAsync: baseline: structural/exact (14, 70) instructions 80/81
- KBDSetLedsAsync: SDK command and device words share per-slot union: structural/exact (19, 72) instructions 79/81
- KBDSetLedsAsync: command slots use native-size word arrays: structural/exact (19, 72) instructions 79/81
- KBDSetLedsAsync: word array command layout with true-first completion switch: structural/exact (19, 72) instructions 79/81
## Xhigh KBDSetLeds: fz15f per-slot command array layout
- KBDSetLeds: baseline: structural/exact (19, 75) instructions 75/79
- KBDSetLeds: SDK command and device words share per-slot union: structural/exact (19, 75) instructions 75/79
- KBDSetLeds: command slots use native-size word arrays: structural/exact (19, 68) instructions 78/79
- KBDSetLeds: word array command layout with true-first completion switch: structural/exact (19, 68) instructions 78/79
## Xhigh WriteMIMEAttachHeader: fz15f final aggregate field order register search
- WriteMIMEAttachHeader: baseline: structural/exact (0, 5) instructions 92/92
- WriteMIMEAttachHeader: measurement fields type,encoding,disposition inline helper: structural/exact (0, 4) instructions 92/92
## Xhigh KBDSetModState: fz15f readonly state versus fixed output pointer boundary
- WriteMIMEAttachHeader: measurement fields type,disposition,encoding inline helper: structural/exact (0, 4) instructions 92/92
- KBDSetModState: baseline: structural/exact (0, 4) instructions 42/42
- WriteMIMEAttachHeader: measurement fields encoding,type,disposition inline helper: structural/exact (0, 4) instructions 92/92
- KBDSetModState: physical state readonly input pointer: structural/exact (0, 7) instructions 42/42
- WriteMIMEAttachHeader: measurement fields encoding,disposition,type inline helper: structural/exact (0, 4) instructions 92/92
- KBDSetModState: channel readonly view within interrupt critical section: structural/exact (0, 7) instructions 42/42
- KBDSetModState: fixed mutable state pointer declared before disabling interrupts: structural/exact (5, 38) instructions 41/42
- WriteMIMEAttachHeader: measurement fields disposition,type,encoding inline helper: structural/exact (0, 4) instructions 92/92
- KBDSetModState: logical locks replace field in initialized prior union: structural/exact (1, 7) instructions 42/42
- WriteMIMEAttachHeader: measurement fields disposition,encoding,type inline helper: structural/exact (0, 4) instructions 92/92
- WriteMIMEAttachHeader: measurement fields type,encoding,disposition caller: structural/exact (0, 5) instructions 92/92
## Xhigh kbdProcMod: fz15f readonly state versus fixed output pointer boundary
- kbdProcMod: baseline: structural/exact (0, 4) instructions 256/256
- WriteMIMEAttachHeader: measurement fields type,disposition,encoding caller: structural/exact (0, 5) instructions 92/92
- kbdProcMod: physical state readonly input pointer: structural/exact (10, 250) instructions 258/256
- WriteMIMEAttachHeader: measurement fields encoding,type,disposition caller: structural/exact (0, 5) instructions 92/92
- kbdProcMod: channel readonly view within interrupt critical section: structural/exact (0, 4) instructions 256/256
- kbdProcMod: fixed mutable state pointer declared before disabling interrupts: structural/exact (15, 47) instructions 253/256
- WriteMIMEAttachHeader: measurement fields encoding,disposition,type caller: structural/exact (0, 5) instructions 92/92
- kbdProcMod: logical locks replace field in initialized prior union: structural/exact (1, 3) instructions 256/256
- WriteMIMEAttachHeader: measurement fields disposition,type,encoding caller: structural/exact (0, 5) instructions 92/92
- WriteMIMEAttachHeader: measurement fields disposition,encoding,type caller: structural/exact (0, 5) instructions 92/92
## fz15f owned data and extents audit
JPEG has no owned data sections; NWC 904/904 and keyboard 5296/5296 data bytes already pair exactly. No symbol rename or extent change justified there.
target zprepare data relocations: 0->Zi8PrepareMatch+0x260, 4->Zi8PrepareMatch+0x1e4, 8->Zi8PrepareMatch+0x1f4, 12->Zi8PrepareMatch+0x204, 16->Zi8PrepareMatch+0x214, 20->Zi8PrepareMatch+0x224, 24->Zi8PrepareMatch+0x234, 28->Zi8PrepareMatch+0x244, 32->Zi8PrepareMatch+0x254, 36->Zi8PrepareMatch+0x260, 40->Zi8PrepareMatch+0x260, 44->Zi8PrepareMatch+0x204
source zprepare data relocations: 0->Zi8PrepareMatch+0x250, 4->Zi8PrepareMatch+0x1d4, 8->Zi8PrepareMatch+0x1e4, 12->Zi8PrepareMatch+0x1f4, 16->Zi8PrepareMatch+0x204, 20->Zi8PrepareMatch+0x214, 24->Zi8PrepareMatch+0x224, 28->Zi8PrepareMatch+0x234, 32->Zi8PrepareMatch+0x244, 36->Zi8PrepareMatch+0x250, 40->Zi8PrepareMatch+0x250, 44->Zi8PrepareMatch+0x1f4
Relocation proof: all twelve entries in target jumptable_8166B3D0 (48 bytes) point inside nonmatching Zi8PrepareMatch; source @230 is the corresponding compiler-generated switch table with different code offsets. This is a code-layout gap; @230 is not a stable real source object name, so no rename. Extab 8 bytes exact, extabindex 12 differs by nonmatching function extent; no data-type size correction.
Zi8PrepareMatch extent 0x814850fc..0x81485fac, next CDBInit 0x81485fac, overlap 0.
CheckMsgBoxSpace extent 0x814a731c..0x814a7698, next SynthesizeAddrStr 0x814a7698, overlap 0.
WriteMIMEAttachHeader extent 0x814a8064..0x814a81d4, next WriteContentTypeField 0x814a81d4, overlap 0.
TMCJPEGDEC_set_converterY8U8V8 extent 0x814efb9c..0x814efeac, next TMCJPEG_814EFEAC 0x814efeac, overlap 0.
TMCJPEG_814F0A58 extent 0x814f0a58..0x814f11c4, next TMCJPEG_814F11C4 0x814f11c4, overlap 0.
kbdEventHandler extent 0x815f34d8..0x815f37c0, next kbdRepeatHandler 0x815f37c0, overlap 0.
kbdProcMod extent 0x815f3aa4..0x815f3ea4, next kbdSendKey 0x815f3ea4, overlap 0.
kbd_led_handler extent 0x815f3fb4..0x815f4018, next KBDSetLedsAsync 0x815f4018, overlap 0.
KBDSetLedsAsync extent 0x815f4018..0x815f415c, next KBDSetLeds 0x815f415c, overlap 0.
KBDSetLeds extent 0x815f415c..0x815f4298, next kbdInitMap 0x815f4298, overlap 0.
KBDSetModState extent 0x815f4664..0x815f470c, next KBDTranslateHidCode 0x815f470c, overlap 0.
## fz15f JPEG scheduling plateau
The best readable 0A58 trial resolves all register differences and leaves only subfic/high-bit-mask scheduling at 274/275, 475/475 instructions; all layout, alias, loop and helper variations measured above failed exact equality. Declaration search exhausted 65 builds. Restore the starting unmatched function; preserve all eleven landed exact functions. No fuzzy-only JPEG edit retained.
## fz15f remaining-function completeness audit
Independent object experiments appended entries concurrently; each measured entry is now labeled with its function using its unique target instruction count. Compiler-failing variants and the discarded partially initialized modifier union are excluded. Every remaining function has at least three distinct compiled source-level attempts this round; prior-round attempts are additional evidence.
TMCJPEGDEC_set_converterY8U8V8: 3 distinct compiled source-level trials; remains open.
TMCJPEG_814F0A58: 53 distinct compiled source-level trials; remains open.
kbdEventHandler: 3 distinct compiled source-level trials; remains open.
kbdProcMod: 7 distinct compiled source-level trials; remains open.
kbd_led_handler: 6 distinct compiled source-level trials; remains open.
KBDSetLedsAsync: 6 distinct compiled source-level trials; remains open.
KBDSetLeds: 6 distinct compiled source-level trials; remains open.
KBDSetModState: 7 distinct compiled source-level trials; remains open.
WriteMIMEAttachHeader: 33 distinct compiled source-level trials; remains open.
Zi8PrepareMatch: 4 distinct compiled source-level trials; remains open.
## fz15f final full clean 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 13264/15948 data None/None functions 11/13 fuzzy 99.5275 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.527466
[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_814F0A58 99.01053
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] baseline: code 13264/15948 data None functions 11 fuzzy 99.5275
[libs/RVL_SDK/src/kbd/kbd_lib] pool: IDENTICAL
[libs/RVL_SDK/src/kbd/kbd_lib] objdiff: code 3088/5764 data 5296/5296 functions 15/21 fuzzy 97.7044 linked code 0
[libs/RVL_SDK/src/kbd/kbd_lib] instruction-exact functions: 14/21
[libs/RVL_SDK/src/kbd/kbd_lib] section .bss size 3968 match 100.0
[libs/RVL_SDK/src/kbd/kbd_lib] section .data size 1304 match 100.0
[libs/RVL_SDK/src/kbd/kbd_lib] section .sbss size 16 match 100.0
[libs/RVL_SDK/src/kbd/kbd_lib] section .sdata size 8 match 100.0
[libs/RVL_SDK/src/kbd/kbd_lib] section .text size 5764 match 97.70437
[libs/RVL_SDK/src/kbd/kbd_lib] below 100: kbdEventHandler 99.83871
[libs/RVL_SDK/src/kbd/kbd_lib] below 100: kbdProcMod 99.90234
[libs/RVL_SDK/src/kbd/kbd_lib] below 100: kbd_led_handler 64.12
[libs/RVL_SDK/src/kbd/kbd_lib] below 100: KBDSetLedsAsync 86.234566
[libs/RVL_SDK/src/kbd/kbd_lib] below 100: KBDSetLeds 84.6076
[libs/RVL_SDK/src/kbd/kbd_lib] below 100: KBDSetModState 99.40476
[libs/RVL_SDK/src/kbd/kbd_lib] baseline: code 3088/5764 data 5296 functions 15 fuzzy 97.7044
[libs/RevoEX/src/nwc24/NWC24MsgCommit] pool: IDENTICAL
[libs/RevoEX/src/nwc24/NWC24MsgCommit] objdiff: code 8164/8532 data 904/904 functions 17/18 fuzzy 99.9836 linked code 0
[libs/RevoEX/src/nwc24/NWC24MsgCommit] instruction-exact functions: 17/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 99.98359
[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: WriteMIMEAttachHeader 99.61957
[libs/RevoEX/src/nwc24/NWC24MsgCommit] baseline: code 7272/8532 data 904 functions 16 fuzzy 98.4754
[libs/RVLMiddleware/eZiText/src/clib/zprepare] pool: IDENTICAL
[libs/RVLMiddleware/eZiText/src/clib/zprepare] objdiff: code None/3760 data 8/68 functions 0/1 fuzzy 96.3191 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/zprepare] instruction-exact functions: 0/1
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .data size 48 match None
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .text size 3760 match 96.319145
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extab size 8 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extabindex size 12 match 91.66667
[libs/RVLMiddleware/eZiText/src/clib/zprepare] below 100: Zi8PrepareMatch 96.319145
[libs/RVLMiddleware/eZiText/src/clib/zprepare] baseline: code None/3760 data 8 functions 0 fuzzy 96.3191
regressions vs baseline: 0
global matched_code_percent: 90.30241 -> 90.33218
global fuzzy_match_percent: 99.54864 -> 99.55293
global complete_code_percent: 69.30851 -> 69.30851
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
```
Before -> after objdiff exact functions: JPEG 11/13 -> 11/13; keyboard 15/21 -> 15/21; NWC 16/18 -> 17/18; zprepare 0/1 -> 0/1.
Before -> after gate instruction-exact functions: JPEG 2/13 -> 2/13; keyboard 14/21 -> 14/21; NWC 16/18 -> 17/18; zprepare 0/1 -> 0/1.
Before -> after exact code bytes: JPEG 13264 -> 13264/15948; keyboard 3088 -> 3088/5764; NWC 7272 -> 8164/8532; zprepare 0 -> 0/3760. Exact data bytes unchanged: JPEG none; keyboard 5296/5296; NWC 904/904; zprepare 8/68.
Fresh clean rebuild raw JPEG symbol-byte equality confirms eleven exact functions: TMCJPEG_814EFEAC, TMCJPEG_814F043C, TMCJPEG_814F11C4, TMCJPEG_814F17E0, TMCJPEG_814F1F48, TMCJPEG_814F2570, TMCJPEG_814F2B50, TMCJPEG_814F3158, TMCJPEG_814F32E4, TMCJPEG_814F34A4, TMCJPEG_814F372C. Gate retains known CR1 branch normalization false positives when object function offsets differ due to setup size gap. No tool changes. Keyboard existing 14 instruction-exact versus 15 objdiff exact discrepancy remains unchanged.
New CheckMsgBoxSpace clean rebuild: ctxdiff 223/223, diffs 0; pool 9/9 identical; objdiff 100.0. Only NWC source helper and this attempts log are retained; no header, symbols, data, configure or other translation-unit change.
## fz15f final remaining functions
TMCJPEGDEC_set_converterY8U8V8 92.78571%: shared convBuf base folded per case, 195/196 instructions, and integer schedule.
TMCJPEG_814F0A58 99.01053%: chroma state register allocation; best rejected trial only two independent preheader instructions swap.
kbdEventHandler 99.83871%: error byte versus channel base allocation, five operand differences.
kbdProcMod 99.90234%: inlined modifier address versus old value r4/r5 allocation, four operands.
kbd_led_handler 64.12%: completion branch form and callback address recomputation, 24/25 instructions.
KBDSetLedsAsync 86.234566%: reservation-loop address/index ownership and result branch, 80/81 instructions.
KBDSetLeds 84.6076%: reservation-loop record pointer versus indexed device word, 75/79 instructions.
KBDSetModState 99.40476%: modifier address versus old value r4/r5 allocation, four operands.
WriteMIMEAttachHeader 99.61957%: type versus disposition lengths and sum result coalescing, five operands.
Zi8PrepareMatch 96.319145%: local stack/code layout and component-presence stores without semantic reads, 939/940 instructions.
Uncertainty: original source construct responsible for the JPEG two-instruction schedule and zprepare dead component flag is unresolved. No unsupported volatility or dummy field retained. Current-round exact source commit: 7ea5a033.

View File

@@ -455,417 +455,3 @@ GATE PASS
```
HIGH before -> after, instruction-exact/code/data bytes: zi8cgetc 5/4168/144 -> 5/4168/144; zmtkey 3/1488/60 -> 3/1488/60; zconvert 3/1380/112 -> 3/1380/112; tiPcKeyboard 140/28064/18548 -> 140/28064/18564. The gate passes, DOL SHA1 is exact, no regressions. The required instruction-exact count increase is still unmet. The retained data correction makes keyboard data 100% without changing section size or any code.
## MAX continuation, 2026-10-02
HEAD 5518cb16fda3091c727d974aacf477a2cf89b74a; fetched origin/main; owned sources and symbol config equal origin/main. No source changes carried from XHIGH. Parked zmtkey/zconvert/tiPcKeyboard excluded.
Baseline quick gate:
```
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] pool: IDENTICAL
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] objdiff: code 4168/47816 data 144/536 functions 5/8 fuzzy 96.4008 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] instruction-exact functions: 5/8
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .data size 392 match None
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .sbss2 size 8 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .sdata2 size 16 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .text size 47816 match 96.40079
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section extab size 48 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section extabindex size 72 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: ZiMatchZHSpelling 98.80165
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: zi8InternalGetZH 95.99054
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: Zi8GetElementCount 99.347824
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] baseline: code 4168/47816 data 144 functions 5 fuzzy 96.4008
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] pool: IDENTICAL
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] objdiff: code 10376/10604 data 192/192 functions 24/25 fuzzy 99.8491 linked code 0
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] instruction-exact functions: 24/25
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] section .data size 168 match 100.0
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] section .sbss size 8 match 100.0
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] section .sdata size 16 match 100.0
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] section .text size 10604 match 99.84911
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] below 100: NWC24iIsMsgObjReadable 92.98245
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] baseline: code 10376/10604 data 192 functions 24 fuzzy 99.8491
[libs/RVL_SDK/src/fa/pf_cache] pool: IDENTICAL
[libs/RVL_SDK/src/fa/pf_cache] objdiff: code 6464/7396 data None/None functions 35/36 fuzzy 99.7755 linked code 0
[libs/RVL_SDK/src/fa/pf_cache] instruction-exact functions: 35/36
[libs/RVL_SDK/src/fa/pf_cache] section .text size 7396 match 99.77555
[libs/RVL_SDK/src/fa/pf_cache] below 100: PFCACHE_DoWriteNumSectorAndFreeIfNeeded 98.21889
[libs/RVL_SDK/src/fa/pf_cache] baseline: code 6464/7396 data None functions 35 fuzzy 99.7755
regressions vs baseline: 0
global matched_code_percent: 90.40604 -> 90.40604
global fuzzy_match_percent: 99.56056 -> 99.56056
global complete_code_percent: 70.30611 -> 70.30611
global matched_data_percent: 99.36596 -> 99.36596
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
GATE PASS
```
All three pools checked first: IDENTICAL (0/0, 8/8, 0/0).
MAX spelling diagnosis: 121/121 instructions, same 0x130 frame, array positions 0x88/0x8, branch operands and inline call boundaries. Only consistent coloring differs: candidate r27->r28, spelling r22->r23, length parameter r23->r24, work r28->r29, match r29->r27, candidateLength r24->r22. Function extent 0x1e4 ends exactly at next engine. No immediate stack store/reload; volatile unproven and excluded.
- MAX sM01 ZiMatchZHSpelling: keep candidate length as declared unsigned word returned by the counting helper; insns 121/121, structural/exact diffs (0, 29), fuzzy 98.80165, code 4168, data 144. Restored pending gates.
- MAX sM02 ZiMatchZHSpelling: keep prefix status as unsigned integer Boolean; insns 121/121, structural/exact diffs (0, 29), fuzzy 98.80165, code 4168, data 144. Restored pending gates.
- MAX sM03 ZiMatchZHSpelling: keep both prefix status and candidate count unsigned; insns 121/121, structural/exact diffs (0, 29), fuzzy 98.80165, code 4168, data 144. Restored pending gates.
- MAX sM04 ZiMatchZHSpelling: compute candidate length through a signed count conversion; insns 121/121, structural/exact diffs (0, 29), fuzzy 98.80165, code 4168, data 144. Restored pending gates.
- MAX sM05 ZiMatchZHSpelling: reuse prefix index as candidate length after prefix comparison; insns 122/121, structural/exact diffs (4, 92), fuzzy 97.31405, code 4168, data 72. Restored pending gates.
- MAX sM06 ZiMatchZHSpelling: initialize candidate cursor from incoming candidate before initial length call; insns 122/121, structural/exact diffs (1, 116), fuzzy 97.975204, code 4168, data 72. Restored pending gates.
- MAX sM07 ZiMatchZHSpelling: hold candidate length as signed long; insns 121/121, structural/exact diffs (0, 29), fuzzy 98.80165, code 4168, data 144. Restored pending gates.
- MAX sM08 ZiMatchZHSpelling: scope candidate length around both prefix and phonetic processing; insns 125/121, structural/exact diffs (16, 123), fuzzy 91.818184, code 4168, data 24. Restored pending gates.
- MAX sM09 ZiMatchZHSpelling: use caller-saved count result with a signed helper return declaration; insns 121/121, structural/exact diffs (0, 29), fuzzy 98.80165, code 4168, data 144. Restored pending gates.
- MAX sM10 ZiMatchZHSpelling: use a Boolean-byte prefix status with explicit full-word return; insns 122/121, structural/exact diffs (4, 98), fuzzy 97.06612, code 4168, data 72. Restored pending gates.
- MAX sM11 ZiMatchZHSpelling: use halfword candidate character count; insns 121/121, structural/exact diffs (1, 29), fuzzy 98.34711, code 4168, data 144. Restored pending gates.
- MAX sM12 ZiMatchZHSpelling: use narrow candidate character count matching space-helper argument; insns 121/121, structural/exact diffs (1, 29), fuzzy 98.34711, code 4168, data 144. Restored pending gates.
- MAX sM13 ZiMatchZHSpelling: reuse incoming candidate for phonetic traversal instead of a second pointer; insns 121/121, structural/exact diffs (0, 31), fuzzy 98.67769, code 4168, data 96. Restored pending gates.
- MAX sM14 ZiMatchZHSpelling: reuse incoming spelling for phonetic traversal instead of a second pointer; insns 121/121, structural/exact diffs (0, 34), fuzzy 98.59504, code 4168, data 96. Restored pending gates.
- MAX sM15 ZiMatchZHSpelling: derive prefix failure status from the compared candidate character; insns 134/121, structural/exact diffs (23, 122), fuzzy 87.181816, code 4168, data 24. Restored pending gates.
- MAX sM16 ZiMatchZHSpelling: scope candidate length to initial declaration and prefix status separately; insns 125/121, structural/exact diffs (16, 123), fuzzy 91.818184, code 4168, data 24. Restored pending gates.
MAX spelling declaration search after 16 source trials: declaration block: | ziWChar* candidateCursor; | ziWChar* spellingCursor; | int index; | int matches; | int candidateLength; | ziWChar spacedSpelling[64]; | ziWChar spacedCandidate[64]; | start (0, 29) | best (0, 29) after 52 builds; source restored; best order was: | ziWChar* candidateCursor; | ziWChar* spellingCursor; | int index; | int matches; | int candidateLength; | ziWChar spacedSpelling[64]; | ziWChar spacedCandidate[64]; |
MAX engine diagnosis: target/source 10676/10676 instructions, frame 0x4e0 and all local stack offsets identical. No neighbour overlap (0xa6d0 ends at Zi8NewMatchPhonetic). After branch-aware alignment and register normalization, the known residual structural stream comprises 12 extra and 10 missing return-register copies plus two missing halfword conversions. These are real code-generation differences; the four generated switch-table relocations refer into this inexact function, so their .data gap is code work. Prior width/cast correction alone grows by two instructions.
- MAX gM01 zi8InternalGetZH: spell traditional charset result as an explicit nonzero bit test; insns 10676/10676, structural/exact diffs (9080, 10068), fuzzy 95.99054, code 4168, data 144. Restored pending gates.
- MAX gM02 zi8InternalGetZH: invert traditional charset branch around the shared range reset; insns 10676/10676, structural/exact diffs (9080, 10068), fuzzy 95.99054, code 4168, data 144. Restored pending gates.
- MAX gM03 zi8InternalGetZH: perform traditional charset short-circuit through nested negative guard; insns 10676/10676, structural/exact diffs (9080, 10068), fuzzy 95.99054, code 4168, data 144. Restored pending gates.
- MAX gM04 zi8InternalGetZH: make component cursor a const pointer to const record data for read-only traversal; BUILD FAIL ext/src/clib/zi8cgetc.d build/43U/src/libs/RVLMiddleware/eZiText/src/clib/zi8cgetc.d ### mwcceppc.exe Compiler: # File: libs\RVLMiddleware\eZiText\src\clib\zi8cgetc.c # ------------------------------------------------------- # 757: componentTable = componentCursor; # 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. . Restored pending gates.
- MAX gM05 zi8InternalGetZH: give component cursor definition volatile storage shown by immediate stack reload after assignment; BUILD FAIL ddleware/eZiText/src/clib/zi8cgetc.d ### mwcceppc.exe Compiler: # File: libs\RVLMiddleware\eZiText\src\clib\zi8cgetc.c # ------------------------------------------------------- # 2106: &componentIndex, &componentCursor, work)) { # Error: ^ # (10209) illegal implicit conversion from 'unsigned char *volatile *' to # 'unsigned char **' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. . Restored pending gates.
- MAX gM06 zi8InternalGetZH: give frequency cursor definition volatile storage shown by immediate stack reload after table call; insns 10676/10676, structural/exact diffs (9080, 10068), fuzzy 95.99054, code 4168, data 144. Restored pending gates.
- MAX gM07 zi8InternalGetZH: narrow paired code returns and order masks on the left; insns 10678/10676, structural/exact diffs (10222, 10519), fuzzy 96.090294, code 4168, data 72. Restored pending gates.
- MAX gM08 zi8InternalGetZH: consume counted table address through one assignment to both cursor and table; insns 10676/10676, structural/exact diffs (7556, 9311), fuzzy 96.27482, code 4168, data 144. Restored pending gates.
- MAX gM09 zi8InternalGetZH: emit context character after advancing the emitted-word count separately; insns 10673/10676, structural/exact diffs (9040, 10045), fuzzy 95.96759, code 4168, data 72. Restored pending gates.
- MAX gM11 zi8InternalGetZH: use signed full-word result for phonetic-code interface without changing casts; insns 10676/10676, structural/exact diffs (9080, 10068), fuzzy 95.99054, code 4168, data 144. Restored pending gates.
- MAX gM12 zi8InternalGetZH: declare phonetic and context record tables as const input arrays; BUILD FAIL are/eZiText/src/clib/zi8cgetc.d ### mwcceppc.exe Compiler: # File: libs\RVLMiddleware\eZiText\src\clib\zi8cgetc.c # ------------------------------------------------------- # 874: match.phon[0], match.phon2[0], charset, work)) candidateStatus = 1; # Error: ^ # (10209) illegal implicit conversion from 'const unsigned char *' to # 'void *' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. . Restored pending gates.
- MAX gM10 zi8InternalGetZH: keep options parameter read-only in engine and private phonetic helper; insns 10676/10676, structural/exact diffs (7556, 9311), fuzzy 96.27482, code 4168, data 144. Restored pending gates.
- MAX gM13 zi8InternalGetZH: group all match scalars at their first use through initialized local declarations; insns 10676/10676, structural/exact diffs (7830, 9407), fuzzy 96.202415, code 4168, data 144. Restored pending gates.
MAX retained gM08: combine cursor/table initialization into the natural chained assignment. The two pointers intentionally receive the same dictionary address. Engine fuzzy 95.99054 -> 96.27482, instruction count still 10676/10676; no new exact function. Quick authority gate PASS, all exact functions preserved, data 144/536 unchanged, pool identical, DOL exact, no regressions/forbidden/readability failures.
```
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] pool: IDENTICAL
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] objdiff: code 4168/47816 data 144/536 functions 5/8 fuzzy 96.6547 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] instruction-exact functions: 5/8
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .data size 392 match None
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .sbss2 size 8 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .sdata2 size 16 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .text size 47816 match 96.65468
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section extab size 48 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section extabindex size 72 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: ZiMatchZHSpelling 98.80165
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: zi8InternalGetZH 96.27482
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: Zi8GetElementCount 99.347824
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] baseline: code 4168/47816 data 144 functions 5 fuzzy 96.4008
regressions vs baseline: 0
global matched_code_percent: 90.40604 -> 90.40604
global fuzzy_match_percent: 99.56056 -> 99.56462
global complete_code_percent: 70.30611 -> 70.30611
global matched_data_percent: 99.36596 -> 99.36596
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
GATE PASS
```
- MAX gM14 zi8InternalGetZH: on chained-table baseline, narrow both paired phonetic codes to target halfword width; insns 10678/10676, structural/exact diffs (8713, 9803), fuzzy 96.492134, code 4168, data 72. Restored pending gates.
- MAX gM15 zi8InternalGetZH: narrow paired codes and express simplified charset as separate branches; insns 10678/10676, structural/exact diffs (7258, 9196), fuzzy 96.048615, code 4168, data 72. Restored pending gates.
- MAX gM16 zi8InternalGetZH: narrow paired codes and express traditional charset as separate branches; insns 10678/10676, structural/exact diffs (7250, 9196), fuzzy 96.048615, code 4168, data 72. Restored pending gates.
- MAX gM17 zi8InternalGetZH: keep all table addresses as byte-pointer interface returns within this unit; BUILD FAIL zi8cgetc.d build/43U/src/libs/RVLMiddleware/eZiText/src/clib/zi8cgetc.d ### mwcceppc.exe Compiler: # File: libs\RVLMiddleware\eZiText\src\clib\zi8cgetc.c # ------------------------------------------------------- # 2648: phoneticOffsets = Zi8GetTableAddress(1, 13, work); # Error: ^ # (10209) illegal implicit conversion from 'unsigned char *' to # 'unsigned short *' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. . Restored pending gates.
- MAX gM18 zi8InternalGetZH: use native int return for secondary matcher while preserving byte truncation; insns 10676/10676, structural/exact diffs (7556, 9311), fuzzy 96.27482, code 4168, data 144. Restored pending gates.
- MAX gM19 zi8InternalGetZH: chained initialization of frequency table and its starting cursor; insns 10682/10676, structural/exact diffs (10304, 10644), fuzzy 95.96422, code 4168, data 24. Restored pending gates.
- MAX gM20 zi8InternalGetZH: replace phrase-pattern union integer member with native unsigned-long member; insns 10676/10676, structural/exact diffs (7556, 9311), fuzzy 96.27482, code 4168, data 144. Restored pending gates.
- MAX gM21 zi8InternalGetZH: correct phonetic-code return to ziU16 on chained table baseline; insns 10678/10676, structural/exact diffs (8713, 9803), fuzzy 96.492134, code 4168, data 72. Restored pending gates.
- MAX gM22 zi8InternalGetZH: use explicit narrow conversion at every returned format-version test; insns 10676/10676, structural/exact diffs (7556, 9311), fuzzy 96.27482, code 4168, data 144. Restored pending gates.
- MAX gM23 zi8InternalGetZH: split successful table presence and format-version conditions into nested checks; insns 10676/10676, structural/exact diffs (7556, 9311), fuzzy 96.27482, code 4168, data 144. Restored pending gates.
- MAX gM24 zi8InternalGetZH: spell primary matcher branch failure with an explicit byte comparison; insns 10676/10676, structural/exact diffs (7556, 9311), fuzzy 96.27482, code 4168, data 144. Restored pending gates.
- MAX gM25 zi8InternalGetZH: scope the option pointer as a read-only local view; BUILD FAIL ibs/RVLMiddleware/eZiText/src/clib/zi8cgetc.d ### mwcceppc.exe Compiler: # File: libs\RVLMiddleware\eZiText\src\clib\zi8cgetc.c # ------------------------------------------------------- # 2312: charsetFilter, output, work)) goto engine_finish; # Error: ^ # (10209) illegal implicit conversion from 'const struct *' to # 'struct *' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. . Restored pending gates.
- MAX gM04 zi8InternalGetZH: make component cursor a const pointer to const record data for read-only traversal; BUILD FAIL bs/RVLMiddleware/eZiText/src/clib/zi8cgetc.d ### mwcceppc.exe Compiler: # File: libs\RVLMiddleware\eZiText\src\clib\zi8cgetc.c # ------------------------------------------------------- # 756: tTable = componentCursor = (ziU8*)Zi8GetTableAddress(1, 2, work); # 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. . Restored pending gates.
- MAX gM05 zi8InternalGetZH: give component cursor definition volatile storage shown by immediate stack reload after assignment; insns 10676/10676, structural/exact diffs (7556, 9311), fuzzy 96.27482, code 4168, data 144. Restored pending gates.
- MAX gM12 zi8InternalGetZH: declare phonetic and context record tables as const input arrays; BUILD FAIL eware/eZiText/src/clib/zi8cgetc.d ### mwcceppc.exe Compiler: # File: libs\RVLMiddleware\eZiText\src\clib\zi8cgetc.c # ------------------------------------------------------- # 1619: phraseOrdinal, &candidateOrdinal, 0, work)) continue; # 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. . Restored pending gates.
MAX GetElementCount diagnosis: source/target 115/115 instructions, 0x230 frame and array/separator offsets identical, branch forms and all operand orders equal. Consistent count/elementCount r28/r27 swap gives 13 differences. No store followed immediately by reload at helper boundary (the saved separator reload follows a call), so no volatile. Extent 0x1cc reaches next symbol exactly. Prior return-elementIndex variation had one return-register difference, worth following with explicit count synchronization and initialization-order trials. Fetched origin/main again; still open.
- MAX cM01 Zi8GetElementCount: return the consumed-input index equivalent to the separately counted inputs; insns 115/115, structural/exact diffs (0, 1), fuzzy 99.95652, code 4168, data 144. Restored pending gates.
- MAX cM02 Zi8GetElementCount: synchronize consumed count from input index at return; insns 116/115, structural/exact diffs (3, 22), fuzzy 98.434784, code 4168, data 72. Restored pending gates.
- MAX cM03 Zi8GetElementCount: assign returned count from consumed index in the return expression; insns 116/115, structural/exact diffs (3, 22), fuzzy 98.434784, code 4168, data 72. Restored pending gates.
- MAX cM04 Zi8GetElementCount: initialize input traversal before result count in the chained zero assignment; insns 115/115, structural/exact diffs (0, 14), fuzzy 99.26087, code 4168, data 144. Restored pending gates.
- MAX cM05 Zi8GetElementCount: initialize result count last in source order of the chain; insns 115/115, structural/exact diffs (0, 14), fuzzy 99.21739, code 4168, data 144. Restored pending gates.
- MAX cM06 Zi8GetElementCount: start chained input indices at zero through result count assignment; insns 115/115, structural/exact diffs (0, 14), fuzzy 99.21739, code 4168, data 144. Restored pending gates.
- MAX cM07 Zi8GetElementCount: hold input element index as wider unsigned integer with explicit byte reads; insns 115/115, structural/exact diffs (1, 13), fuzzy 98.86957, code 4168, data 144. Restored pending gates.
- MAX cM08 Zi8GetElementCount: preserve incoming element limit as a const local byte; insns 116/115, structural/exact diffs (1, 108), fuzzy 98.478264, code 4168, data 24. Restored pending gates.
- MAX cM09 Zi8GetElementCount: derive count through consumed index only when the loop exits through its limit; insns 121/115, structural/exact diffs (9, 32), fuzzy 93.347824, code 4168, data 24. Restored pending gates.
- MAX cM10 Zi8GetElementCount: restore saved separator through an ordinary scalar instead of single-field state; insns 113/115, structural/exact diffs (8, 106), fuzzy 97.48695, code 4168, data 24. Restored pending gates.
- MAX cM11 Zi8GetElementCount: split the input-limit and character-remaining loop conditions without changing order; insns 115/115, structural/exact diffs (10, 56), fuzzy 92.17391, code 4168, data 144. Restored pending gates.
- MAX cM12 Zi8GetElementCount: return promoted consumed count through an enum-typed local; insns 115/115, structural/exact diffs (2, 13), fuzzy 98.391304, code 4168, data 144. Restored pending gates.
MAX GetElementCount declaration search: declaration block: | ziU8 spacedIndex; | ziU8 elementIndex; | ziU8 count; | ziWChar spacedElements[256]; | start (0, 13) | best (0, 13) after 13 builds; source restored; best order was: | ziU8 spacedIndex; | ziU8 elementIndex; | ziU8 count; | ziWChar spacedElements[256];
cM01 returns the equivalent elementIndex but leaves an unused count variable; rejected as an artificial partial improvement, not retained. Explicit synchronization adds an instruction and regresses exception data. All remaining candidates restored.
MAX NWC24iIsMsgObjReadable diagnosis: fetched origin/main, source unchanged there; open 92.98245%. 57/57 instructions, identical 0x10 frame, same branches, calls, field offsets and expression operands after prologue. Target saves LR/r31 and copies the input before loading type; source schedules the type load/mask through those three prologue operations. No immediate stack reload or neighbour overlap (0xe4 ends at next public function). Remaining unit data already 192/192 including corrected MountInfo extent; no data changes needed. Prior readonly views and full-body helper did not change this scheduling.
- MAX nM01 NWC24iIsMsgObjReadable: use an opaque constant input and explicit typed readonly mailbox view; insns 57/57, structural/exact diffs (4, 5), fuzzy 92.98245, code 10376, data 192. Restored pending gates.
- MAX nM02 NWC24iIsMsgObjReadable: use private message-object view for common type/app/LED header fields; insns 57/57, structural/exact diffs (4, 5), fuzzy 92.98245, code 10376, data 192. Restored pending gates.
- MAX nM03 NWC24iIsMsgObjReadable: use signed shift of readable type bit instead of mask predicate; insns 57/57, structural/exact diffs (4, 5), fuzzy 92.98245, code 10376, data 192. Restored pending gates.
- MAX nM04 NWC24iIsMsgObjReadable: scope read type and subsequent validation in explicit positive branch; insns 57/57, structural/exact diffs (15, 50), fuzzy 85.789474, code 10376, data 192. Restored pending gates.
- MAX nM05 NWC24iIsMsgObjReadable: make first type validity mask an enum-valued flag constant; insns 57/57, structural/exact diffs (4, 5), fuzzy 92.98245, code 10376, data 192. Restored pending gates.
- MAX nM06 NWC24iIsMsgObjReadable: use whole unsigned type word local for initial three type predicates only; insns 57/57, structural/exact diffs (4, 5), fuzzy 92.98245, code 10376, data 192. Restored pending gates.
- MAX nM07 NWC24iIsMsgObjReadable: return the Boolean app-mask comparison through an explicit local result; insns 57/57, structural/exact diffs (4, 5), fuzzy 92.98245, code 10376, data 192. Restored pending gates.
- MAX nM08 NWC24iIsMsgObjReadable: delay independent app/LED readonly view setup until after first type test; insns 57/57, structural/exact diffs (4, 5), fuzzy 92.98245, code 10376, data 192. Restored pending gates.
MAX PFCACHE_DoWriteNumSectorAndFreeIfNeeded diagnosis: fetched origin/main, still open 98.21889%. Both 233 instructions, same 0x30 frame, same saved GPRs and all branches. Only third overlap block differs at instructions 136-144: target reloads page start, recomputes num_sector+sector despite cached r31 request end, computes last_sector before success/remaining bookkeeping; source reuses r31 and reconstructs last sector from page start + overlap. No immediate stack store/reload for these scalars, so volatile is unproven. Extent 0x3a4 ends exactly at DoFlushCache. No data sections/pool in this unit. Try real signedness, input const qualification, transient-helper boundaries and range-variable structure before register search.
- MAX pM01 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: compute last sector using unsigned-int request operands rather than page cancellation; insns 232/233, structural/exact diffs (15, 228), fuzzy 95.40772, code 6464, data None. Restored pending gates.
- MAX pM02 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: compute last sector with reversed request addition and decrement grouped into count; insns 232/233, structural/exact diffs (15, 228), fuzzy 95.40772, code 6464, data None. Restored pending gates.
- MAX pM03 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: group last-sector decrement into starting sector; insns 232/233, structural/exact diffs (15, 228), fuzzy 95.40772, code 6464, data None. Restored pending gates.
- MAX pM04 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: make input head pointer read-only because this routine never replaces it; insns 233/233, structural/exact diffs (4, 9), fuzzy 98.21889, code 6464, data None. Restored pending gates.
- MAX pM05 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: preserve source buffer as const at every memory-copy call; insns 233/233, structural/exact diffs (4, 9), fuzzy 98.21889, code 6464, data None. Restored pending gates.
- MAX pM06 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: compute overlap and last sector using unsigned-int transient arithmetic; insns 232/233, structural/exact diffs (15, 228), fuzzy 95.53648, code 6464, data None. Restored pending gates.
- MAX pM07 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: derive last sector before overlap using the page-relative count expression; insns 232/233, structural/exact diffs (15, 228), fuzzy 95.40772, code 6464, data None. Restored pending gates.
- MAX pM08 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: declare half-open request end as a block-local named range value after memcpy; insns 232/233, structural/exact diffs (14, 106), fuzzy 98.62661, code 6464, data None. Restored pending gates.
- MAX pM09 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: reuse existing end-buffer arithmetic without a whole-sector last variable; insns 232/233, structural/exact diffs (14, 107), fuzzy 98.45493, code 6464, data None. Restored pending gates.
- MAX pM10 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: compute last sector from overlap before remainder-count mutation; insns 233/233, structural/exact diffs (4, 9), fuzzy 98.21889, code 6464, data None. Restored pending gates.
- MAX pM11 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: keep overlap count in a signed integer but convert at sector bookkeeping; insns 233/233, structural/exact diffs (4, 9), fuzzy 98.21889, code 6464, data None. Restored pending gates.
- MAX pM12 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: keep last-sector value in a signed integer but preserve sector subtraction; insns 233/233, structural/exact diffs (4, 9), fuzzy 98.21889, code 6464, data None. Restored pending gates.
- MAX pM13 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: read page sector through const page view for both overlap calculations; insns 233/233, structural/exact diffs (4, 9), fuzzy 98.21889, code 6464, data None. Restored pending gates.
- MAX pM14 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: order rest-sector update before success update in the right overlap; insns 233/233, structural/exact diffs (4, 9), fuzzy 98.21889, code 6464, data None. Restored pending gates.
- MAX pM15 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: calculate the last-sector buffer offset directly as overlap minus one; insns 230/233, structural/exact diffs (17, 107), fuzzy 97.48927, code 6464, data None. Restored pending gates.
- MAX pM16 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: keep overlap calculation inside a named range descriptor; insns 233/233, structural/exact diffs (4, 9), fuzzy 98.21889, code 6464, data None. Restored pending gates.
- MAX pM17 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: inline last-sector helper isolates request-end calculation from overlap arithmetic; insns 234/233, structural/exact diffs (17, 108), fuzzy 97.48927, code 6464, data None. Restored pending gates.
- MAX pM18 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: inline last-sector helper uses a named half-open end local; insns 234/233, structural/exact diffs (17, 108), fuzzy 97.48927, code 6464, data None. Restored pending gates.
- MAX pM19 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: inline last-sector helper keeps a signed 32-bit endpoint result; insns 234/233, structural/exact diffs (17, 108), fuzzy 97.48927, code 6464, data None. Restored pending gates.
- MAX pM20 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: inline last-sector helper groups count decrement before start; insns 234/233, structural/exact diffs (17, 108), fuzzy 97.48927, code 6464, data None. Restored pending gates.
- MAX pM21 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: inline last-sector helper combines with direct overlap-count expression; insns 234/233, structural/exact diffs (17, 108), fuzzy 97.48927, code 6464, data None. Restored pending gates.
- MAX pM22 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: inline last-sector helper receives page start and overlap instead of request input; insns 233/233, structural/exact diffs (5, 8), fuzzy 97.91846, code 6464, data None. Restored pending gates.
- MAX pM23 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: inline last-sector helper isolates request-end calculation from overlap arithmetic; allow normal helper inlining at this function boundary; insns 232/233, structural/exact diffs (15, 228), fuzzy 95.40772, code 6464, data None. Restored pending gates.
- MAX pM24 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: inline last-sector helper uses a named half-open end local; allow normal helper inlining at this function boundary; insns 232/233, structural/exact diffs (15, 228), fuzzy 95.40772, code 6464, data None. Restored pending gates.
- MAX pM25 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: inline last-sector helper keeps a signed 32-bit endpoint result; allow normal helper inlining at this function boundary; insns 232/233, structural/exact diffs (15, 228), fuzzy 95.40772, code 6464, data None. Restored pending gates.
- MAX pM26 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: inline last-sector helper groups count decrement before start; allow normal helper inlining at this function boundary; insns 232/233, structural/exact diffs (15, 228), fuzzy 95.40772, code 6464, data None. Restored pending gates.
- MAX pM27 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: inline last-sector helper combines with direct overlap-count expression; allow normal helper inlining at this function boundary; insns 232/233, structural/exact diffs (15, 228), fuzzy 95.40772, code 6464, data None. Restored pending gates.
- MAX pM28 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: inline last-sector helper receives page start and overlap instead of request input; allow normal helper inlining at this function boundary; insns 233/233, structural/exact diffs (4, 9), fuzzy 98.21889, code 6464, data None. Restored pending gates.
- MAX pM29 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: use natural equivalent sector-overlap expression num_sector - (p_page->sector - sector); insns 234/233, structural/exact diffs (15, 107), fuzzy 97.74678, code 6464, data None. Restored pending gates.
- MAX pM30 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: use natural equivalent sector-overlap expression (sector - p_page->sector) + num_sector; insns 234/233, structural/exact diffs (16, 107), fuzzy 97.6824, code 6464, data None. Restored pending gates.
- MAX pM31 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: use natural equivalent sector-overlap expression num_sector + (sector - p_page->sector); insns 234/233, structural/exact diffs (16, 107), fuzzy 97.6824, code 6464, data None. Restored pending gates.
- MAX pM32 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: use natural equivalent sector-overlap expression p_page->size - (p_page->sector + (p_page->size - num_sector) - sector); insns 233/233, structural/exact diffs (4, 9), fuzzy 98.21889, code 6464, data None. Restored pending gates.
- MAX pM33 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: use natural equivalent sector-overlap expression p_page->size + (num_sector + sector - (p_page->sector + p_page->size)); insns 234/233, structural/exact diffs (16, 107), fuzzy 97.6824, code 6464, data None. Restored pending gates.
- MAX pM34 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: use natural equivalent sector-overlap expression (num_sector + sector - (p_page->sector + p_page->size)) + p_page->size; insns 234/233, structural/exact diffs (16, 107), fuzzy 97.6824, code 6464, data None. Restored pending gates.
- MAX pM35 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: use natural equivalent sector-overlap expression num_sector - (p_page->sector + p_page->size - sector) + p_page->size; insns 234/233, structural/exact diffs (16, 107), fuzzy 97.6824, code 6464, data None. Restored pending gates.
- MAX pM36 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: use natural equivalent sector-overlap expression (num_sector - p_page->sector) + sector; insns 234/233, structural/exact diffs (16, 107), fuzzy 97.6824, code 6464, data None. Restored pending gates.
- MAX nM09 NWC24iIsMsgObjReadable: match a mutable mailbox-entry input view rather than the guessed const formal; insns 57/57, structural/exact diffs (0, 0), fuzzy 100.0, code 10604, data 192. Restored pending gates.
- MAX nM10 NWC24iIsMsgObjReadable: use a readonly pointer value to the mutable mailbox entry; insns 57/57, structural/exact diffs (0, 0), fuzzy 100.0, code 10604, data 192. Restored pending gates.
- MAX nM11 NWC24iIsMsgObjReadable: retain full entry constness while qualifying pointer value itself; insns 57/57, structural/exact diffs (4, 5), fuzzy 92.98245, code 10376, data 192. Restored pending gates.
- MAX nM12 NWC24iIsMsgObjReadable: introduce a common typed header view with the proven shared leading fields; insns 57/57, structural/exact diffs (4, 5), fuzzy 92.98245, code 10376, data 192. Restored pending gates.
- MAX nM13 NWC24iIsMsgObjReadable: use an inline common-header validation helper for the first readable type bit only; insns 57/57, structural/exact diffs (4, 5), fuzzy 92.98245, code 10376, data 192. Restored pending gates.
- MAX nM14 NWC24iIsMsgObjReadable: keep the app-id equality operation in its own inline read-only view helper; insns 57/57, structural/exact diffs (4, 5), fuzzy 92.98245, code 10376, data 192. Restored pending gates.
MAX exact nM09: NWC24iIsMsgObjReadable input was guessed pointer-to-const; the target was compiled with mutable MBCEntry*. Removing const only from this function declaration and definition moves the first type load/mask after LR/r31 saves exactly as target. 57/57 instructions, ctxdiff 0, 100% objdiff; whole unit 24/25 -> 25/25, code 10376/10604 -> 10604/10604, data unchanged 192/192. nM10 pointer-value const is also exact; use simpler nM09. All call sites already pass mutable MBCEntry*, no shared header change. Quick gate PASS, DOL exact, pools identical and zero regressions.
```
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] pool: IDENTICAL
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] objdiff: code 10604/10604 data 192/192 functions 25/25 fuzzy 100.0000 linked code 0
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] instruction-exact functions: 25/25
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] section .data size 168 match 100.0
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] section .sbss size 8 match 100.0
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] section .sdata size 16 match 100.0
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] section .text size 10604 match 100.0
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] baseline: code 10376/10604 data 192 functions 24 fuzzy 99.8491
regressions vs baseline: 0
global matched_code_percent: 90.40604 -> 90.41365
global fuzzy_match_percent: 99.56056 -> 99.56516
global complete_code_percent: 70.30611 -> 70.30611
global matched_data_percent: 99.36596 -> 99.36596
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
GATE PASS
```
- MAX pM37 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: match a mutable source-buffer formal from the older cache API; insns 233/233, structural/exact diffs (4, 9), fuzzy 98.21889, code 6464, data None. Restored pending gates.
- MAX pM38 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: read volume geometry through a const formal and retain explicit mutable driver call; insns 233/233, structural/exact diffs (17, 62), fuzzy 92.44635, code 6464, data None. Restored pending gates.
- MAX pM39 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: model memory-copy source as a mutable opaque pointer in this unit only; insns 233/233, structural/exact diffs (4, 9), fuzzy 98.21889, code 6464, data None. Restored pending gates.
- MAX pM40 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: scope overlap and last-sector locals directly in the partial-page branch; BUILD FAIL "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/fa/pf_cache.d build/43U/src/libs/RVL_SDK/src/fa/pf_cache.d ### mwcceppc.exe Compiler: # File: libs\RVL_SDK\src\fa\pf_cache.c # --------------------------------------- # 610: pf_u32 num_overlap = p_page->size - ((p_page->sector + p_page->size) - (num_sector + sector)); # Error: ^^^^^^ # (10141) expression syntax error # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. . Restored pending gates.
- MAX pM40 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: scope overlap and last-sector locals directly in the partial-page branch; insns 233/233, structural/exact diffs (4, 9), fuzzy 98.21889, code 6464, data None. Restored pending gates.
- MAX pM41 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: scope an initialized last requested sector after the copy; insns 232/233, structural/exact diffs (15, 228), fuzzy 95.40772, code 6464, data None. Restored pending gates.
- MAX pM42 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: derive a half-open request endpoint with wide intermediate arithmetic; insns 235/233, structural/exact diffs (17, 229), fuzzy 94.356224, code 6464, data None. Restored pending gates.
- MAX pM43 PFCACHE_DoWriteNumSectorAndFreeIfNeeded: derive overlap and last sector from a wide request endpoint local; insns 237/233, structural/exact diffs (15, 235), fuzzy 93.042915, code 6464, data None. Restored pending gates.
- MAX sM17 ZiMatchZHSpelling: declare candidate input const at the function definition and convert only for legacy helpers; insns 121/121, structural/exact diffs (0, 29), fuzzy 98.80165, code 4168, data 144. Restored pending gates.
- MAX sM18 ZiMatchZHSpelling: declare spelling input const at the function definition and convert only for legacy helper; insns 121/121, structural/exact diffs (0, 29), fuzzy 98.80165, code 4168, data 144. Restored pending gates.
- MAX sM19 ZiMatchZHSpelling: declare both candidate and spelling input arrays readonly; insns 121/121, structural/exact diffs (0, 29), fuzzy 98.80165, code 4168, data 144. Restored pending gates.
- MAX sM20 ZiMatchZHSpelling: give count helper a readonly word prototype while keeping matching input mutable; insns 121/121, structural/exact diffs (0, 29), fuzzy 98.80165, code 4168, data 144. Restored pending gates.
- MAX sM21 ZiMatchZHSpelling: give readonly candidate and count helper consistent const-qualified word types; insns 121/121, structural/exact diffs (0, 29), fuzzy 98.80165, code 4168, data 144. Restored pending gates.
- MAX sM22 ZiMatchZHSpelling: declare initial candidate length immutable after its one assignment; insns 121/121, structural/exact diffs (2, 30), fuzzy 97.19009, code 4168, data 144. Restored pending gates.
MAX cache structural follow-up: 43 distinct natural source trials, plus compiler-rejected unscoped declaration attempt. Mutable-buffer and readonly-head views preserve 9 differences; readonly volume regresses allocation/scheduling (62 differences). The closest fuzzy alternative pM08 has 232/233 instructions and greater branch-aware structural distance (14 vs 4), so reject it rather than trade the target instruction structure for a percentage gain. Wider arithmetic adds real instructions and is rejected. All cache source trials restored. No stack proof permits volatile.
MAX spelling follow-up after mailbox input-qualifier match: formal const candidate/spelling, consistent readonly count-helper prototype, and initialized immutable candidate length were all compiled. Const views reproduce the same 29 register differences. Local count scope changes instruction structure. Source restored; no proven volatile local evidence.
MAX final data proof: zi8cgetc .data is exactly 392 bytes in both objects, four compiler-generated switch tables, all 98 relocations resolve inside zi8InternalGetZH. No ordinary data symbol needs a real-name rename; these remain code work. Exception sections and the 16-byte constants/8-byte zero object are exact. NWC24MBoxCtrl has byte-identical ordinary strings and real MountInfo extent, matched data192/192; extracted trailing alignment remains unowned in source sections. pf_cache has no allocated non-code sections. No config or shared-header changes made.
MAX cache declaration search after structural/type/helper trials: declaration block: | PF_CACHE_PAGE* p_page = PF_NULL; | pf_s32 err; | pf_u32 num_rest_sector = num_sector; | pf_u8* p_sbuf; | pf_u8* p_ebuf; | pf_u32 num_overlap; | pf_u32 last_sector; | start (4, 9) | best (4, 9) after 52 builds; source restored; best order was: | PF_CACHE_PAGE* p_page = PF_NULL; | pf_s32 err; | pf_u32 num_rest_sector = num_sector; | pf_u8* p_sbuf; | pf_u8* p_ebuf; | pf_u32 num_overlap; | pf_u32 last_sector;
MAX coverage ZiMatchZHSpelling: 22 distinct successfully compiled source trials.
MAX coverage zi8InternalGetZH: 21 distinct successfully compiled source trials.
MAX coverage Zi8GetElementCount: 12 distinct successfully compiled source trials.
MAX coverage NWC24iIsMsgObjReadable: 14 distinct successfully compiled source trials.
MAX coverage PFCACHE_DoWriteNumSectorAndFreeIfNeeded: 43 distinct successfully compiled source trials.
Coverage complete: no untried owned function. NWC24iIsMsgObjReadable is exact and committed; all other mailbox trials restored. pf_cache source byte-identical to its MAX start. Spelling/GetElementCount source unchanged. The sole retained engine change is one natural chained table/cursor assignment; the engine remains open, and structural return-copy/conversion differences are not labelled a pure register tie.
MAX final full (non-quick) gate, all three owned units:
```
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] pool: IDENTICAL
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] objdiff: code 4168/47816 data 144/536 functions 5/8 fuzzy 96.6547 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] instruction-exact functions: 5/8
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .data size 392 match None
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .sbss2 size 8 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .sdata2 size 16 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .text size 47816 match 96.65468
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section extab size 48 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section extabindex size 72 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: ZiMatchZHSpelling 98.80165
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: zi8InternalGetZH 96.27482
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: Zi8GetElementCount 99.347824
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] baseline: code 4168/47816 data 144 functions 5 fuzzy 96.4008
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] pool: IDENTICAL
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] objdiff: code 10604/10604 data 192/192 functions 25/25 fuzzy 100.0000 linked code 0
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] instruction-exact functions: 25/25
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] section .data size 168 match 100.0
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] section .sbss size 8 match 100.0
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] section .sdata size 16 match 100.0
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] section .text size 10604 match 100.0
[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] baseline: code 10376/10604 data 192 functions 24 fuzzy 99.8491
[libs/RVL_SDK/src/fa/pf_cache] pool: IDENTICAL
[libs/RVL_SDK/src/fa/pf_cache] objdiff: code 6464/7396 data None/None functions 35/36 fuzzy 99.7755 linked code 0
[libs/RVL_SDK/src/fa/pf_cache] instruction-exact functions: 35/36
[libs/RVL_SDK/src/fa/pf_cache] section .text size 7396 match 99.77555
[libs/RVL_SDK/src/fa/pf_cache] below 100: PFCACHE_DoWriteNumSectorAndFreeIfNeeded 98.21889
[libs/RVL_SDK/src/fa/pf_cache] baseline: code 6464/7396 data None functions 35 fuzzy 99.7755
regressions vs baseline: 0
global matched_code_percent: 90.40604 -> 90.41365
global fuzzy_match_percent: 99.56056 -> 99.56516
global complete_code_percent: 70.30611 -> 70.30611
global matched_data_percent: 99.36596 -> 99.36596
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
GATE PASS
```
MAX before -> after, instruction-exact/code/data bytes: zi8cgetc 5/4168/144 -> 5/4168/144 (engine fuzzy 95.99054 -> 96.27482); NWC24MBoxCtrl 24/10376/192 -> 25/10604/192; pf_cache 35/6464/0 -> 35/6464/0 (no data sections). Full GATE PASS, exact DOL SHA1, pools identical, zero regressions and forbidden/readability failures. Owned instruction-exact total 64/69 -> 65/69. Local source commits: 25fabf7b and 93e82b61.
Remaining open functions, with all source attempts exhausted this MAX round: ZiMatchZHSpelling98.80165% (29 register differences); zi8InternalGetZH96.27482% (return copies, missing halfword conversions, allocation); Zi8GetElementCount99.347824% (13 register differences); PFCACHE_DoWriteNumSectorAndFreeIfNeeded98.21889% (9 third-overlap arithmetic/scheduling differences). The correct engine temporary boundaries and paired phonetic-code interface widths remain uncertain. No new symbol rename/extent adjustment or linking investigation was needed.

View File

@@ -1976,576 +1976,3 @@ R9 remaining | inputChar__Q39textinput8tistring9DecolatedFw | 90.132355% | 125/1
src/keyboard/tiSignWindow | exact 55/56 -> 55/56 | code bytes 6300 -> 6300/7184 | data bytes 3468 -> 3468/3468
R9 remaining | create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | 99.86425% | 221/221 frame0x50; all relocation-address/load orders nowexact, only6count22/slot31 operand differences vstargetcount31/slot22; first159lwz22vs31.54distinct source trials,12declaration evals.
R9 final files: libs/RVL_SDK/src/fa/pf_entry_iterator.c; src/keyboard/tiSignWindow.cpp; tools/decomp-assist/fz3.attempts.md. Source commits83182c27,2ee7e995. Exactcount+1,948matchedcodebytes. Allpoolsidentical/data100/correctDOL/0globalregression/forbidden/readability. No sourcechangesafterfullcleangate. Remaining original Hangul helper structure and SO/count/slot register choices uncertain, logged without fake completion. No symbolrenames/extentchanges/sharedheaders/configure switches, no out-of-scope sourcefiles. Finalcommit logonly.
# R10 XHIGH fresh branch, six owned units
HEAD 3cde45682d70991f4986a389b8cab1ae42a87468; origin 3cde45682d70991f4986a389b8cab1ae42a87468
libs/RevoEX/src/so/SOOption | R10 initial pool | POOL IDENTICAL up to 0 (mine=0 base=0)
libs/RevoEX/src/so/SOOption | R10 baseline open | {'name': 'SOGetInterfaceOpt', 'size': '476', 'fuzzy_match_percent': 99.78992, 'metadata': {}, 'address': '520'}
src/keyboard/tiString | R10 initial pool | POOL IDENTICAL up to 0 (mine=0 base=0)
src/keyboard/tiString | R10 baseline open | {'name': 'inputChar__Q39textinput8tistring9DecolatedFw', 'size': '544', 'fuzzy_match_percent': 90.132355, 'metadata': {'demangled_name': 'textinput::tistring::Decolated::inputChar(wchar_t)'}, 'address': '1740'}
src/keyboard/tiSignWindow | R10 initial pool | POOL IDENTICAL up to 30 (mine=30 base=30)
src/keyboard/tiSignWindow | R10 baseline open | {'name': 'create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator', 'size': '884', 'fuzzy_match_percent': 99.86425, 'metadata': {'demangled_name': 'textinput::keyboard::signwindow::LayoutByNW4R::create(MEMAllocator*)'}, 'address': '1096'}
libs/RevoEX/src/cdb/CDBRecord | R10 initial pool | FIRST DIVERGENCE at index 10
8 mine=0x1b0 base=0x1b0
M "can't get file size of the record ; the record is closed\n"
B "can't get file size of the record ; the record is closed\n"
9 mine=0x1ec base=0x1ec
M "can't get data size of the record ; the record is closed\n"
B "can't get data size of the record ; the record is closed\n"
* 10 mine=0x228 base=0x228
M "can't remove the record ; the record is opened\n"
B "can't reduce file size of the record ; the record is closed\n"
* 11 mine=0x258 base=0x268
M "can't remove the record ; permission denied\n"
B "can't reduce file size of the record ; the record is opened as READONL"
* 12 mine=0x288 base=0x2b8
M "can't get CDBId of the record ; the record is closed\n"
B "can't reduce file size of the record ; file size must be over %d bytes"
* 13 mine=0x2c0 base=0x300
M "can't get maker code of the record ; the record is closed\n"
B "can't reduce data size of the record ; the record is closed\n"
* 14 mine=0x2fc base=0x340
M "can't set modified time of the record; the database is opened as READO"
B "can't reduce data size of the record ; the record is opened as READONL"
mine has 19 strings, base has 47
libs/RevoEX/src/cdb/CDBRecord | R10 initial pool | FIRST DIVERGENCE at index 10 | 8 mine=0x1b0 base=0x1b0 | M "can't get file size of the record ; the record is closed\n" | B "can't get file size of the record ; the record is closed\n" | 9 mine=0x1ec base=0x1ec | M "can't get data size of the record ; the record is closed\n" | B "can't get data size of the record ; the record is closed\n" | * 10 mine=0x228 base=0x228 | M "can't remove the record ; the record is opened\n" | B "can't reduce file size of the record ; the record is closed\n" | * 11 mine=0x258 base=0x268 | M "can't remove the record ; permission denied\n" | B "can't reduce file size of the record ; the record is opened as READONL" | * 12 mine=0x288 base=0x2b8 | M "can't get CDBId of the record ; the record is closed\n" | B "can't reduce file size of the record ; file size must be over %d bytes" | * 13 mine=0x2c0 base=0x300 | M "can't get maker code of the record ; the record is closed\n" | B "can't reduce data size of the record ; the record is closed\n" | * 14 mine=0x2fc base=0x340 | M "can't set modified time of the record; the database is opened as READO" | B "can't reduce data size of the record ; the record is opened as READONL" | | mine has 19 strings, base has 47
libs/RevoEX/src/cdb/CDBRecord | R10 baseline open | {'name': 'CDBCryptBuffer', 'size': '476', 'fuzzy_match_percent': 99.97479, 'metadata': {}, 'address': '4592'}
libs/RevoEX/src/cdb/CDBRecord | R10 baseline open | {'name': 'CDBRecordEncrypt', 'size': '1136', 'fuzzy_match_percent': 99.19014, 'metadata': {}, 'address': '5068'}
libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32 | R10 initial pool | POOL IDENTICAL up to 0 (mine=0 base=0)
libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32 | R10 baseline open | {'name': 'TMCJPEGDEC_decode_iquant', 'size': '1104', 'fuzzy_match_percent': 99.10507, 'metadata': {}, 'address': '0'}
libs/RevoEX/src/so/SOBasic | R10 initial pool | POOL IDENTICAL up to 1 (mine=1 base=1)
libs/RevoEX/src/so/SOBasic | R10 baseline open | {'name': 'SOGetSockName', 'size': '252', 'fuzzy_match_percent': 95.95238, 'metadata': {}, 'address': '868'}
R10 CDB pool audit | firstmissingtargetstrings at0x228reducefile/data size;19source vs47target, gap not merely a name mismatch. Targetretail extraction keeps stringblocks for code/functions absenttarget29functions andabsentheaders (ReduceFileSize etc). No fakepadding/string blobs or deadfunction stubs will beintroduced. Inference of linkerdedup/gc explains mismatch, original dead API bodies unknown. Needretainpoolbaselinewhileownedcode attempts proceed; code-only cryptoffset gaps remain data work andunresolved.
SOGetInterfaceOpt | R10 fetched origin dea64a8c; source equal original=True; baseline open per fresh report, no duplicate remote match.
SOGetInterfaceOpt | R10 first5mr25vs26,119/119/frame0x30; five argumentlevel/selector registers only; rm/tempstackoffsets, branches, memcpy/pointer/load order exact. No adjacentstackreload proof orsymboloverlap. Try typed selector array view and response-side immutable limits before finaldeclsearch.
SOGetInterfaceOpt | R10 command selectors addressed through real union array fields | objdiff 99.78992; 119/119 instructions; structural/exact (0, 5); first (5, ('mr', 'r25, r4'), ('mr', 'r26, r4'))
SOGetInterfaceOpt | R10 returned length count read through readonly local alias after ioctl | objdiff 98.44538; 120/119 instructions; structural/exact (8, 27); first (5, ('mr', 'r25, r4'), ('mr', 'r26, r4'))
SOGetInterfaceOpt | R10 IPC allocation starts from typed command block as input selector pointer | objdiff 99.78992; 119/119 instructions; structural/exact (0, 5); first (5, ('mr', 'r25, r4'), ('mr', 'r26, r4'))
SOGetInterfaceOpt | R10 returned length and caller capacity compared by named signed locals | objdiff 99.78992; 119/119 instructions; structural/exact (0, 5); first (5, ('mr', 'r25, r4'), ('mr', 'r26, r4'))
SOGetInterfaceOpt | R10 requested output size read as typed length block before vector registration | objdiff 99.78992; 119/119 instructions; structural/exact (0, 5); first (5, ('mr', 'r25, r4'), ('mr', 'r26, r4'))
inputChar__Q39textinput8tistring9DecolatedFw | R10 fetched origin dea64a8c; source equal original=True; baseline open per fresh report, no duplicate remote match.
inputChar | R10 source125/136/frame0x30; firstbranch10 displacement reflectsmissing11Hangul instructions; targetcounter6indexedappend, duplicateinitialNUL anddeadch10compare; precedingKana andfollowingcursorblocksotherwiseexact. No targetadjacentstackreload proof, extentendsatconfirmKana. Previousnewline builders leaveextra livebranch; new actualOutput cursor type/helper/constructor trials follow.
inputChar__Q39textinput8tistring9DecolatedFw | R10 Output cursor initializes terminator then appends using mutable u32 index | objdiff 90.757355; 126/136 instructions; structural/exact (17, 73); first (10, ('beq', '432'), ('beq', '472'))
inputChar__Q39textinput8tistring9DecolatedFw | R10 Output cursor stores real buffer index as UTF16 count | objdiff 90.757355; 126/136 instructions; structural/exact (17, 73); first (10, ('beq', '432'), ('beq', '472'))
inputChar__Q39textinput8tistring9DecolatedFw | R10 Literal converter initializes destination via helper and returns indexed append count | objdiff 90.132355; 125/136 instructions; structural/exact (18, 73); first (10, ('beq', '428'), ('beq', '472'))
inputChar__Q39textinput8tistring9DecolatedFw | R10 Literal conversion output count returned through real stream length pointer | objdiff 90.132355; 125/136 instructions; structural/exact (18, 73); first (10, ('beq', '428'), ('beq', '472'))
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R10 fetched origin dea64a8c; source equal original=True; baseline open per fresh report, no duplicate remote match.
signcreate | R10 pool30identical/sourceequal;221/221frame0x50; first159bound lwz22vs31 and slot31vs22,6pure operands. Alladdresses/branches/constructors/stack/local ordering nowexact fromforloop gain. No adjacentstackreload orsymboloverlap. New traversal metadata aggregate and field-alias lifetimes beforedeclsearch.
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R10 animation metadata count returned as readonly field reference before scalar copy | objdiff 99.86425; 221/221 instructions; structural/exact (0, 6); first (159, ('lwz', 'r22, 0x18(r20)'), ('lwz', 'r31, 0x18(r20)'))
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R10 animation count shared by typed unsigned traversal bound object | objdiff 99.79638; 221/221 instructions; structural/exact (0, 9); first (157, ('lwz', 'r22, 0x1c(r20)'), ('lwz', 'r23, 0x1c(r20)'))
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R10 animation count cached through pointer to own unsigned loop bound | objdiff 99.095024; 221/221 instructions; structural/exact (0, 35); first (48, ('lis', 'r24, 0'), ('lis', 'r25, 0'))
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R10 animation resources declared before loop with readonly slot reference kept local | objdiff 99.70588; 221/221 instructions; structural/exact (0, 12); first (158, ('li', 'r17, 0'), ('li', 'r18, 0'))
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R10 animation count common scope ends together with readonly animation table reference | objdiff 99.86425; 221/221 instructions; structural/exact (0, 6); first (159, ('lwz', 'r22, 0x18(r20)'), ('lwz', 'r31, 0x18(r20)'))
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R10 outer traversal const owner view for pane metadata indexed row | objdiff 99.86425; 221/221 instructions; structural/exact (0, 6); first (159, ('lwz', 'r22, 0x18(r20)'), ('lwz', 'r31, 0x18(r20)'))
SOGetSockName | R10 fetched origin dea64a8c; source equal original=True; baseline open per fresh report, no duplicate remote match.
SOGetSockName | R10 63/63frame0x30; first6address29vstarget27 andrequest27vstarget29; call memcpyinputmove/load precedes outputmove targetvsoursdstfirst,3instructionorderdiffs plus8operands. Targetheaderrequestsocket0/address0x20; actualtypes NameRequest andSOSockAddr. New constinputview calleroutputdistinct logical pointer beforedeclsearch.
SOGetSockName | R10 readonly socket address input view with original mutable output argument | objdiff 95.71429; 63/63 instructions; structural/exact (2, 13); first (5, ('mr', 'r27, r4'), ('mr', 'r28, r3'))
SOGetSockName | R10 readonly socket address input immutable local pointer | objdiff 95.71429; 63/63 instructions; structural/exact (2, 13); first (5, ('mr', 'r27, r4'), ('mr', 'r28, r3'))
SOGetSockName | R10 copy helper reads const socket address length before output buffer input | objdiff 95.95238; 63/63 instructions; structural/exact (2, 11); first (6, ('mr', 'r29, r4'), ('mr', 'r27, r4'))
SOGetSockName | R10 immutable typed reply pointer in successful allocation scope | objdiff 95.55556; 63/63 instructions; structural/exact (2, 17); first (5, ('mr', 'r27, r3'), ('mr', 'r28, r3'))
SOGetSockName | R10 request descriptor assigned after successful allocation check | objdiff 95.95238; 63/63 instructions; structural/exact (2, 11); first (6, ('mr', 'r29, r4'), ('mr', 'r27, r4'))
SOGetSockName | R10 input address length consumed through unsigned byte temporary | objdiff 95.95238; 63/63 instructions; structural/exact (2, 11); first (6, ('mr', 'r29, r4'), ('mr', 'r27, r4'))
SOGetSockName | R10 reply field pointer derived before socket request initialization | objdiff 95.95238; 63/63 instructions; structural/exact (2, 11); first (6, ('mr', 'r29, r4'), ('mr', 'r27, r4'))
SOGetSockName | R10 request and incoming address pointer grouped as named request state | objdiff 95.0; 63/63 instructions; structural/exact (2, 24); first (5, ('mr', 'r27, r3'), ('mr', 'r28, r3'))
CDBCryptBuffer | R10 fetched origin dea64a8c; source equal original=True; baseline open per fresh report, no duplicate remote match.
CDBCryptBuffer | R10 119/119/frame aligned0x180? raw prologue targetexact; onlythree OSReport base+offset operands source388/398/3a8 versus90c/91c/92c. Structuralcode andglobals/key/bufferrelocationsotherwiseexact; confirmedpool19vs47missingearlierdeadAPIstrings. No fakepoolbytes. Three sourcegeometry/helper attempts leavepoolbaseline tocheckmustlogallopens.
CDBCryptBuffer | R10 typed const input buffer view for each AES chunk | objdiff 99.97479; 119/119 instructions; structural/exact (3, 3); first (32, ('addi', 'r3, r29, 0x388'), ('addi', 'r3, r29, 0x90c'))
CDBCryptBuffer | R10 chunk length helper separates boundary arithmetic | objdiff 96.90756; 122/119 instructions; structural/exact (11, 76); first (32, ('addi', 'r3, r29, 0x388'), ('addi', 'r3, r29, 0x90c'))
CDBCryptBuffer | R10 AES block cursor declared before aligned AES context | objdiff 99.97479; 119/119 instructions; structural/exact (3, 3); first (32, ('addi', 'r3, r29, 0x388'), ('addi', 'r3, r29, 0x90c'))
CDBRecordEncrypt | R10 fetched origin dea64a8c; source equal original=True; baseline open per fresh report, no duplicate remote match.
CDBRecordEncrypt | R10 284/284/frame0x400aligned64 andalllocalarrayaddressesexact;44pureoperanddifferences, first8poolbase31vstarget25, argsrecord25vs26,buff26vs27,key29vs24,size27vs28,out28vs29, tempFile24vstarget31. No branch/frame/inlineattribute boundary diffs, noadjacentstackreload forvolatility. FirstnewtempFiledeclarationlifetime beforedeclsearch; pooloffsetsusedwithinfunctionallbeforegapsoexactcodepossible butunitgatewillstillfailbaselinepool.
CDBRecordEncrypt | R10 temporary record file pointer declared at shared function scope | objdiff 99.19014; 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 temporary record file pointer declared before cached file and arguments use | objdiff 99.19014; 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 temporary file pointer input view immutable within Wii ID helper scope | objdiff 99.19014; 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 file tell result and saved offset share one meaningful function variable | objdiff 98.503525; 284/284 instructions; structural/exact (3, 47); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 cached attribute pointer scoped to readonly record file ownership | objdiff 97.193665; 285/284 instructions; structural/exact (6, 276); first (8, ('lwz', 'r24, 0x38(r3)'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 encryption authenticated extent created after cipher calculation | objdiff 99.19014; 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R10 declsearch #1: const char* forceName; / u32 animationCount; / u32 paneIndex = 0; | 221/221 instructions; structural/exact (0, 6); first (159, ('lwz', 'r22, 0x18(r20)'), ('lwz', 'r31, 0x18(r20)'))
CDBRecordEncrypt | R10 declsearch #1: CDBRecordFile* recordFile; / CDBErr err; / u32 dataSize; / u32 fileSize; / u32 cryptSize; / u32 authenticatedSize; / int fileOffset; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 declsearch #2: CDBErr err; / CDBRecordFile* recordFile; / u32 dataSize; / u32 fileSize; / u32 cryptSize; / u32 authenticatedSize; / int fileOffset; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 declsearch #3: u32 dataSize; / CDBErr err; / CDBRecordFile* recordFile; / u32 fileSize; / u32 cryptSize; / u32 authenticatedSize; / int fileOffset; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 declsearch #4: u32 fileSize; / CDBErr err; / u32 dataSize; / CDBRecordFile* recordFile; / u32 cryptSize; / u32 authenticatedSize; / int fileOffset; | 284/284 instructions; structural/exact (6, 50); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #1: int size; / int result; / s32 rm; / SOSockAddr* addr; / SOSockAddr* reply; / NameRequest* request; | 63/63 instructions; structural/exact (2, 11); first (6, ('mr', 'r29, r4'), ('mr', 'r27, r4'))
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R10 declsearch #2: u32 animationCount; / const char* forceName; / u32 paneIndex = 0; | 221/221 instructions; structural/exact (0, 9); first (157, ('lwz', 'r22, 0x1c(r20)'), ('lwz', 'r23, 0x1c(r20)'))
CDBRecordEncrypt | R10 declsearch #5: u32 cryptSize; / CDBErr err; / u32 dataSize; / u32 fileSize; / CDBRecordFile* recordFile; / u32 authenticatedSize; / int fileOffset; | 284/284 instructions; structural/exact (9, 53); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #2: int result; / int size; / s32 rm; / SOSockAddr* addr; / SOSockAddr* reply; / NameRequest* request; | 63/63 instructions; structural/exact (2, 18); first (6, ('mr', 'r29, r4'), ('mr', 'r27, r4'))
CDBRecordEncrypt | R10 declsearch #6: u32 authenticatedSize; / CDBErr err; / u32 dataSize; / u32 fileSize; / u32 cryptSize; / CDBRecordFile* recordFile; / int fileOffset; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #3: s32 rm; / int result; / int size; / SOSockAddr* addr; / SOSockAddr* reply; / NameRequest* request; | 63/63 instructions; structural/exact (2, 18); first (6, ('mr', 'r29, r4'), ('mr', 'r27, r4'))
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R10 declsearch #3: u32 paneIndex = 0; / u32 animationCount; / const char* forceName; | 221/221 instructions; structural/exact (0, 13); first (58, ('li', 'r23, 0'), ('li', 'r21, 0'))
SOGetSockName | R10 declsearch #4: SOSockAddr* addr; / int result; / s32 rm; / int size; / SOSockAddr* reply; / NameRequest* request; | 63/63 instructions; structural/exact (2, 14); first (6, ('mr', 'r31, r4'), ('mr', 'r27, r4'))
CDBRecordEncrypt | R10 declsearch #7: int fileOffset; / CDBErr err; / u32 dataSize; / u32 fileSize; / u32 cryptSize; / u32 authenticatedSize; / CDBRecordFile* recordFile; | 284/284 instructions; structural/exact (0, 50); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #5: SOSockAddr* reply; / int result; / s32 rm; / SOSockAddr* addr; / int size; / NameRequest* request; | 63/63 instructions; structural/exact (2, 20); first (5, ('mr', 'r30, r3'), ('mr', 'r28, r3'))
CDBRecordEncrypt | R10 declsearch #8: CDBRecordFile* recordFile; / u32 dataSize; / CDBErr err; / u32 fileSize; / u32 cryptSize; / u32 authenticatedSize; / int fileOffset; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #6: NameRequest* request; / int result; / s32 rm; / SOSockAddr* addr; / SOSockAddr* reply; / int size; | 63/63 instructions; structural/exact (2, 14); first (6, ('mr', 'r29, r4'), ('mr', 'r27, r4'))
CDBRecordEncrypt | R10 declsearch #9: CDBRecordFile* recordFile; / u32 fileSize; / u32 dataSize; / CDBErr err; / u32 cryptSize; / u32 authenticatedSize; / int fileOffset; | 284/284 instructions; structural/exact (6, 50); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R10 declsearch #4: const char* forceName; / u32 paneIndex = 0; / u32 animationCount; | 221/221 instructions; structural/exact (0, 10); first (58, ('li', 'r22, 0'), ('li', 'r21, 0'))
SOGetSockName | R10 declsearch #7: int size; / s32 rm; / int result; / SOSockAddr* addr; / SOSockAddr* reply; / NameRequest* request; | 63/63 instructions; structural/exact (2, 11); first (6, ('mr', 'r29, r4'), ('mr', 'r27, r4'))
CDBRecordEncrypt | R10 declsearch #10: CDBRecordFile* recordFile; / u32 cryptSize; / u32 dataSize; / u32 fileSize; / CDBErr err; / u32 authenticatedSize; / int fileOffset; | 284/284 instructions; structural/exact (9, 53); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #8: int size; / SOSockAddr* addr; / s32 rm; / int result; / SOSockAddr* reply; / NameRequest* request; | 63/63 instructions; structural/exact (2, 15); first (6, ('mr', 'r30, r4'), ('mr', 'r27, r4'))
CDBRecordEncrypt | R10 declsearch #11: CDBRecordFile* recordFile; / u32 authenticatedSize; / u32 dataSize; / u32 fileSize; / u32 cryptSize; / CDBErr err; / int fileOffset; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #9: int size; / SOSockAddr* reply; / s32 rm; / SOSockAddr* addr; / int result; / NameRequest* request; | 63/63 instructions; structural/exact (2, 19); first (6, ('mr', 'r29, r4'), ('mr', 'r27, r4'))
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R10 declsearch #5: u32 animationCount; / u32 paneIndex = 0; / const char* forceName; | 221/221 instructions; structural/exact (0, 13); first (58, ('li', 'r22, 0'), ('li', 'r21, 0'))
CDBRecordEncrypt | R10 declsearch #12: CDBRecordFile* recordFile; / int fileOffset; / u32 dataSize; / u32 fileSize; / u32 cryptSize; / u32 authenticatedSize; / CDBErr err; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #10: int size; / NameRequest* request; / s32 rm; / SOSockAddr* addr; / SOSockAddr* reply; / int result; | 63/63 instructions; structural/exact (2, 17); first (5, ('mr', 'r27, r3'), ('mr', 'r28, r3'))
SOGetSockName | R10 declsearch #11: int size; / int result; / SOSockAddr* addr; / s32 rm; / SOSockAddr* reply; / NameRequest* request; | 63/63 instructions; structural/exact (2, 11); first (6, ('mr', 'r29, r4'), ('mr', 'r27, r4'))
CDBRecordEncrypt | R10 declsearch #13: CDBRecordFile* recordFile; / CDBErr err; / u32 fileSize; / u32 dataSize; / u32 cryptSize; / u32 authenticatedSize; / int fileOffset; | 284/284 instructions; structural/exact (6, 50); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #12: int size; / int result; / SOSockAddr* reply; / SOSockAddr* addr; / s32 rm; / NameRequest* request; | 63/63 instructions; structural/exact (2, 17); first (5, ('mr', 'r29, r3'), ('mr', 'r28, r3'))
CDBRecordEncrypt | R10 declsearch #14: CDBRecordFile* recordFile; / CDBErr err; / u32 cryptSize; / u32 fileSize; / u32 dataSize; / u32 authenticatedSize; / int fileOffset; | 284/284 instructions; structural/exact (7, 51); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #13: int size; / int result; / NameRequest* request; / SOSockAddr* addr; / SOSockAddr* reply; / s32 rm; | 63/63 instructions; structural/exact (2, 14); first (5, ('mr', 'r27, r3'), ('mr', 'r28, r3'))
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R10 declsearch #6: u32 paneIndex = 0; / const char* forceName; / u32 animationCount; | 221/221 instructions; structural/exact (0, 13); first (58, ('li', 'r23, 0'), ('li', 'r21, 0'))
CDBRecordEncrypt | R10 declsearch #15: CDBRecordFile* recordFile; / CDBErr err; / u32 authenticatedSize; / u32 fileSize; / u32 cryptSize; / u32 dataSize; / int fileOffset; | 284/284 instructions; structural/exact (9, 53); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #14: int size; / int result; / s32 rm; / SOSockAddr* reply; / SOSockAddr* addr; / NameRequest* request; | 63/63 instructions; structural/exact (2, 17); first (5, ('mr', 'r29, r3'), ('mr', 'r28, r3'))
CDBRecordEncrypt | R10 declsearch #16: CDBRecordFile* recordFile; / CDBErr err; / int fileOffset; / u32 fileSize; / u32 cryptSize; / u32 authenticatedSize; / u32 dataSize; | 284/284 instructions; structural/exact (9, 53); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #15: int size; / int result; / s32 rm; / NameRequest* request; / SOSockAddr* reply; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
SOGetSockName | R10 declsearch #16: int result; / int size; / s32 rm; / NameRequest* request; / SOSockAddr* reply; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 10); first (18, ('li', 'r31, -0x1c'), ('li', 'r30, -0x1c'))
CDBRecordEncrypt | R10 declsearch #17: CDBRecordFile* recordFile; / CDBErr err; / u32 dataSize; / u32 cryptSize; / u32 fileSize; / u32 authenticatedSize; / int fileOffset; | 284/284 instructions; structural/exact (5, 49); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 declsearch #18: CDBRecordFile* recordFile; / CDBErr err; / u32 dataSize; / u32 authenticatedSize; / u32 cryptSize; / u32 fileSize; / int fileOffset; | 284/284 instructions; structural/exact (5, 49); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #17: s32 rm; / int result; / int size; / NameRequest* request; / SOSockAddr* reply; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 10); first (18, ('li', 'r31, -0x1c'), ('li', 'r30, -0x1c'))
SOGetSockName | R10 declsearch #18: NameRequest* request; / int result; / s32 rm; / int size; / SOSockAddr* reply; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 9); first (22, ('rlwinm', 'r29, r0, 0, 0, 0x1a'), ('rlwinm', 'r31, r0, 0, 0, 0x1a'))
CDBRecordEncrypt | R10 declsearch #19: CDBRecordFile* recordFile; / CDBErr err; / u32 dataSize; / int fileOffset; / u32 cryptSize; / u32 authenticatedSize; / u32 fileSize; | 284/284 instructions; structural/exact (5, 49); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R10 declsearch complete 6 evaluated permutations; no source change.
SOGetSockName | R10 declsearch #19: SOSockAddr* reply; / int result; / s32 rm; / NameRequest* request; / int size; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 12); first (5, ('mr', 'r30, r3'), ('mr', 'r28, r3'))
CDBRecordEncrypt | R10 declsearch #20: CDBRecordFile* recordFile; / CDBErr err; / u32 dataSize; / u32 fileSize; / u32 authenticatedSize; / u32 cryptSize; / int fileOffset; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #20: SOSockAddr* addr; / int result; / s32 rm; / NameRequest* request; / SOSockAddr* reply; / int size; | 63/63 instructions; structural/exact (2, 11); first (6, ('mr', 'r31, r4'), ('mr', 'r27, r4'))
CDBRecordEncrypt | R10 declsearch #21: CDBRecordFile* recordFile; / CDBErr err; / u32 dataSize; / u32 fileSize; / int fileOffset; / u32 authenticatedSize; / u32 cryptSize; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #21: int size; / s32 rm; / int result; / NameRequest* request; / SOSockAddr* reply; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
CDBRecordEncrypt | R10 declsearch #22: CDBRecordFile* recordFile; / CDBErr err; / u32 dataSize; / u32 fileSize; / u32 cryptSize; / int fileOffset; / u32 authenticatedSize; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #22: int size; / NameRequest* request; / s32 rm; / int result; / SOSockAddr* reply; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 10); first (18, ('li', 'r29, -0x1c'), ('li', 'r30, -0x1c'))
CDBRecordEncrypt | R10 declsearch #23: CDBErr err; / u32 dataSize; / CDBRecordFile* recordFile; / u32 fileSize; / u32 cryptSize; / u32 authenticatedSize; / int fileOffset; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #23: int size; / SOSockAddr* reply; / s32 rm; / NameRequest* request; / int result; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 11); first (18, ('li', 'r28, -0x1c'), ('li', 'r30, -0x1c'))
CDBRecordEncrypt | R10 declsearch #24: CDBErr err; / u32 dataSize; / u32 fileSize; / CDBRecordFile* recordFile; / u32 cryptSize; / u32 authenticatedSize; / int fileOffset; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #24: int size; / SOSockAddr* addr; / s32 rm; / NameRequest* request; / SOSockAddr* reply; / int result; | 63/63 instructions; structural/exact (2, 14); first (5, ('mr', 'r27, r3'), ('mr', 'r28, r3'))
CDBRecordEncrypt | R10 declsearch #25: CDBErr err; / u32 dataSize; / u32 fileSize; / u32 cryptSize; / CDBRecordFile* recordFile; / u32 authenticatedSize; / int fileOffset; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #25: int size; / int result; / NameRequest* request; / s32 rm; / SOSockAddr* reply; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
CDBRecordEncrypt | R10 declsearch #26: CDBErr err; / u32 dataSize; / u32 fileSize; / u32 cryptSize; / u32 authenticatedSize; / CDBRecordFile* recordFile; / int fileOffset; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #26: int size; / int result; / SOSockAddr* reply; / NameRequest* request; / s32 rm; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 12); first (5, ('mr', 'r29, r3'), ('mr', 'r28, r3'))
SOGetSockName | R10 declsearch #27: int size; / int result; / SOSockAddr* addr; / NameRequest* request; / SOSockAddr* reply; / s32 rm; | 63/63 instructions; structural/exact (2, 17); first (5, ('mr', 'r27, r3'), ('mr', 'r28, r3'))
CDBRecordEncrypt | R10 declsearch #27: CDBErr err; / u32 dataSize; / u32 fileSize; / u32 cryptSize; / u32 authenticatedSize; / int fileOffset; / CDBRecordFile* recordFile; | 284/284 instructions; structural/exact (0, 50); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 declsearch #28: CDBRecordFile* recordFile; / u32 dataSize; / u32 fileSize; / CDBErr err; / u32 cryptSize; / u32 authenticatedSize; / int fileOffset; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #28: int size; / int result; / s32 rm; / SOSockAddr* reply; / NameRequest* request; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 12); first (5, ('mr', 'r29, r3'), ('mr', 'r28, r3'))
SOGetSockName | R10 declsearch #29: int size; / int result; / s32 rm; / NameRequest* request; / SOSockAddr* addr; / SOSockAddr* reply; | 63/63 instructions; structural/exact (2, 14); first (5, ('mr', 'r27, r3'), ('mr', 'r28, r3'))
CDBRecordEncrypt | R10 declsearch #29: CDBRecordFile* recordFile; / u32 dataSize; / u32 fileSize; / u32 cryptSize; / CDBErr err; / u32 authenticatedSize; / int fileOffset; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #30: int result; / s32 rm; / int size; / NameRequest* request; / SOSockAddr* reply; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 10); first (18, ('li', 'r31, -0x1c'), ('li', 'r30, -0x1c'))
CDBRecordEncrypt | R10 declsearch #30: CDBRecordFile* recordFile; / u32 dataSize; / u32 fileSize; / u32 cryptSize; / u32 authenticatedSize; / CDBErr err; / int fileOffset; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #31: int result; / s32 rm; / NameRequest* request; / int size; / SOSockAddr* reply; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 13); first (18, ('li', 'r31, -0x1c'), ('li', 'r30, -0x1c'))
SOGetSockName | R10 declsearch #32: int result; / s32 rm; / NameRequest* request; / SOSockAddr* reply; / int size; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 19); first (5, ('mr', 'r29, r3'), ('mr', 'r28, r3'))
CDBRecordEncrypt | R10 declsearch #31: CDBRecordFile* recordFile; / u32 dataSize; / u32 fileSize; / u32 cryptSize; / u32 authenticatedSize; / int fileOffset; / CDBErr err; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #33: int result; / s32 rm; / NameRequest* request; / SOSockAddr* reply; / SOSockAddr* addr; / int size; | 63/63 instructions; structural/exact (2, 24); first (5, ('mr', 'r29, r3'), ('mr', 'r28, r3'))
CDBRecordEncrypt | R10 declsearch #32: u32 dataSize; / CDBRecordFile* recordFile; / CDBErr err; / u32 fileSize; / u32 cryptSize; / u32 authenticatedSize; / int fileOffset; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 declsearch #33: CDBRecordFile* recordFile; / CDBErr err; / u32 fileSize; / u32 cryptSize; / u32 dataSize; / u32 authenticatedSize; / int fileOffset; | 284/284 instructions; structural/exact (9, 53); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #34: int size; / s32 rm; / NameRequest* request; / int result; / SOSockAddr* reply; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 10); first (18, ('li', 'r29, -0x1c'), ('li', 'r30, -0x1c'))
SOGetSockName | R10 declsearch #35: int size; / s32 rm; / NameRequest* request; / SOSockAddr* reply; / int result; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 14); first (18, ('li', 'r28, -0x1c'), ('li', 'r30, -0x1c'))
CDBRecordEncrypt | R10 declsearch #34: CDBRecordFile* recordFile; / CDBErr err; / u32 fileSize; / u32 cryptSize; / u32 authenticatedSize; / u32 dataSize; / int fileOffset; | 284/284 instructions; structural/exact (9, 53); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #36: int size; / s32 rm; / NameRequest* request; / SOSockAddr* reply; / SOSockAddr* addr; / int result; | 63/63 instructions; structural/exact (2, 21); first (5, ('mr', 'r27, r3'), ('mr', 'r28, r3'))
CDBRecordEncrypt | R10 declsearch #35: CDBRecordFile* recordFile; / CDBErr err; / u32 fileSize; / u32 cryptSize; / u32 authenticatedSize; / int fileOffset; / u32 dataSize; | 284/284 instructions; structural/exact (9, 53); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #37: s32 rm; / int size; / int result; / NameRequest* request; / SOSockAddr* reply; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
CDBRecordEncrypt | R10 declsearch #36: u32 fileSize; / CDBRecordFile* recordFile; / CDBErr err; / u32 dataSize; / u32 cryptSize; / u32 authenticatedSize; / int fileOffset; | 284/284 instructions; structural/exact (6, 50); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #38: int size; / int result; / NameRequest* request; / SOSockAddr* reply; / s32 rm; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
CDBRecordEncrypt | R10 declsearch #37: CDBRecordFile* recordFile; / u32 fileSize; / CDBErr err; / u32 dataSize; / u32 cryptSize; / u32 authenticatedSize; / int fileOffset; | 284/284 instructions; structural/exact (6, 50); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #39: int size; / int result; / NameRequest* request; / SOSockAddr* reply; / SOSockAddr* addr; / s32 rm; | 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
CDBRecordEncrypt | R10 declsearch #38: CDBRecordFile* recordFile; / CDBErr err; / u32 dataSize; / u32 cryptSize; / u32 authenticatedSize; / u32 fileSize; / int fileOffset; | 284/284 instructions; structural/exact (5, 49); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #40: NameRequest* request; / int size; / int result; / s32 rm; / SOSockAddr* reply; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 13); first (18, ('li', 'r29, -0x1c'), ('li', 'r30, -0x1c'))
SOGetSockName | R10 declsearch #41: int size; / NameRequest* request; / int result; / s32 rm; / SOSockAddr* reply; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 10); first (18, ('li', 'r29, -0x1c'), ('li', 'r30, -0x1c'))
CDBRecordEncrypt | R10 declsearch #39: CDBRecordFile* recordFile; / CDBErr err; / u32 dataSize; / u32 cryptSize; / u32 authenticatedSize; / int fileOffset; / u32 fileSize; | 284/284 instructions; structural/exact (5, 49); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #42: SOSockAddr* reply; / int size; / int result; / s32 rm; / NameRequest* request; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 19); first (5, ('mr', 'r29, r3'), ('mr', 'r28, r3'))
CDBRecordEncrypt | R10 declsearch #40: u32 cryptSize; / CDBRecordFile* recordFile; / CDBErr err; / u32 dataSize; / u32 fileSize; / u32 authenticatedSize; / int fileOffset; | 284/284 instructions; structural/exact (9, 53); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 declsearch #41: CDBRecordFile* recordFile; / u32 cryptSize; / CDBErr err; / u32 dataSize; / u32 fileSize; / u32 authenticatedSize; / int fileOffset; | 284/284 instructions; structural/exact (9, 53); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #43: int size; / SOSockAddr* reply; / int result; / s32 rm; / NameRequest* request; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 16); first (5, ('mr', 'r29, r3'), ('mr', 'r28, r3'))
CDBRecordEncrypt | R10 declsearch #42: CDBRecordFile* recordFile; / CDBErr err; / u32 cryptSize; / u32 dataSize; / u32 fileSize; / u32 authenticatedSize; / int fileOffset; | 284/284 instructions; structural/exact (9, 53); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #44: int size; / int result; / SOSockAddr* reply; / s32 rm; / NameRequest* request; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 12); first (5, ('mr', 'r29, r3'), ('mr', 'r28, r3'))
CDBRecordEncrypt | R10 declsearch #43: CDBRecordFile* recordFile; / CDBErr err; / u32 dataSize; / u32 fileSize; / u32 authenticatedSize; / int fileOffset; / u32 cryptSize; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #45: SOSockAddr* addr; / int size; / int result; / s32 rm; / NameRequest* request; / SOSockAddr* reply; | 63/63 instructions; structural/exact (2, 24); first (5, ('mr', 'r27, r3'), ('mr', 'r28, r3'))
SOGetSockName | R10 declsearch #46: int size; / SOSockAddr* addr; / int result; / s32 rm; / NameRequest* request; / SOSockAddr* reply; | 63/63 instructions; structural/exact (2, 21); first (5, ('mr', 'r27, r3'), ('mr', 'r28, r3'))
CDBRecordEncrypt | R10 declsearch #44: u32 authenticatedSize; / CDBRecordFile* recordFile; / CDBErr err; / u32 dataSize; / u32 fileSize; / u32 cryptSize; / int fileOffset; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #47: int size; / int result; / SOSockAddr* addr; / s32 rm; / NameRequest* request; / SOSockAddr* reply; | 63/63 instructions; structural/exact (2, 17); first (5, ('mr', 'r27, r3'), ('mr', 'r28, r3'))
SOGetSockName | R10 declsearch #48: int size; / int result; / s32 rm; / SOSockAddr* addr; / NameRequest* request; / SOSockAddr* reply; | 63/63 instructions; structural/exact (2, 17); first (5, ('mr', 'r27, r3'), ('mr', 'r28, r3'))
CDBRecordEncrypt | R10 declsearch #45: CDBRecordFile* recordFile; / u32 authenticatedSize; / CDBErr err; / u32 dataSize; / u32 fileSize; / u32 cryptSize; / int fileOffset; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 declsearch #46: CDBRecordFile* recordFile; / CDBErr err; / u32 authenticatedSize; / u32 dataSize; / u32 fileSize; / u32 cryptSize; / int fileOffset; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch #49: int size; / int result; / s32 rm; / NameRequest* request; / SOSockAddr* reply; / SOSockAddr* addr; | 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
CDBRecordEncrypt | R10 declsearch #47: CDBRecordFile* recordFile; / CDBErr err; / u32 dataSize; / u32 authenticatedSize; / u32 fileSize; / u32 cryptSize; / int fileOffset; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
SOGetSockName | R10 declsearch final best confirmation | objdiff 96.666664; 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
CDBRecordEncrypt | R10 declsearch #48: int fileOffset; / CDBRecordFile* recordFile; / CDBErr err; / u32 dataSize; / u32 fileSize; / u32 cryptSize; / u32 authenticatedSize; | 284/284 instructions; structural/exact (0, 50); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 declsearch #49: CDBRecordFile* recordFile; / int fileOffset; / CDBErr err; / u32 dataSize; / u32 fileSize; / u32 cryptSize; / u32 authenticatedSize; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 declsearch #50: CDBRecordFile* recordFile; / CDBErr err; / int fileOffset; / u32 dataSize; / u32 fileSize; / u32 cryptSize; / u32 authenticatedSize; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 declsearch #51: CDBRecordFile* recordFile; / CDBErr err; / u32 dataSize; / int fileOffset; / u32 fileSize; / u32 cryptSize; / u32 authenticatedSize; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 declsearch #52: CDBRecordFile* recordFile; / CDBErr err; / u32 dataSize; / u32 fileSize; / int fileOffset; / u32 cryptSize; / u32 authenticatedSize; | 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 declsearch complete 52 evaluated permutations; no source change.
TMCJPEGDEC_decode_iquant | R10 fetched origin 5518cb16; source equal original=True; baseline open per fresh report, no duplicate remote match.
TMCJPEGDEC_decode_iquant | R10 pool first POOL IDENTICAL up to 0 (mine=0 base=0)
TMCJPEGDEC_decode_iquant | R10 first difference #42 DC long-table cursor r4 vs targetr7; 276/276/frame50. DC fast struct1c correct, DClimit14 correct, DCdecoded10 vs target18; ACfast18 vs target8; AClimitc correct, ACdecoded8 vs target10. The overlapping lifetimes and helper result scopes are structural; operand order #74 sum reversed and AC code #188 subf uses wrong source operand placement. No extent overlap, no literals/data. Try scope/aggregate helper/operands before declaration coloring.
TMCJPEGDEC_decode_iquant | R10 AC aggregate local within AC decoding scope | objdiff 99.10507; 276/276 instructions; structural/exact (12, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 DC aggregate local within DC fast lookup scope | objdiff 99.097824; 276/276 instructions; structural/exact (14, 48); first (26, ('sth', 'r0, 0x18(r1)'), ('sth', 'r0, 0x1c(r1)'))
TMCJPEGDEC_decode_iquant | R10 each fast aggregate local within its decoding scope | objdiff 99.10507; 276/276 instructions; structural/exact (12, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 AC aggregate declared before DC aggregate | objdiff 99.097824; 276/276 instructions; structural/exact (14, 48); first (26, ('sth', 'r0, 0x18(r1)'), ('sth', 'r0, 0x1c(r1)'))
TMCJPEGDEC_decode_iquant | R10 both aggregates declared together after scalar temporaries | objdiff 99.10507; 276/276 instructions; structural/exact (12, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 decoded helper return separated from assignment | objdiff 99.10507; 276/276 instructions; structural/exact (12, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 decoded helper return readonly aggregate | objdiff 99.10507; 276/276 instructions; structural/exact (12, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 decoded limit fields reused for symbol index | objdiff 98.30797; 278/276 instructions; structural/exact (25, 216); first (16, ('b', '1028'), ('b', '1020'))
TMCJPEGDEC_decode_iquant | R10 named relative code before symbol addition | objdiff 99.141304; 276/276 instructions; structural/exact (12, 45); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 named symbol base added to relative code | objdiff 99.141304; 276/276 instructions; structural/exact (12, 45); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 helper structure return via whole entry copy | objdiff 93.98913; 274/276 instructions; structural/exact (41, 219); first (16, ('b', '1012'), ('b', '1020'))
TMCJPEGDEC_decode_iquant | R10 helper limit structure initialized at definition | objdiff 93.98913; 274/276 instructions; structural/exact (41, 219); first (16, ('b', '1012'), ('b', '1020'))
TMCJPEGDEC_decode_iquant | R10 separate limit helper definitions for DC and AC | objdiff 99.10507; 276/276 instructions; structural/exact (12, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 DC helper input order work,table,symbols,bitCount | objdiff 99.10507; 276/276 instructions; structural/exact (12, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 DC helper input order table,symbols,work,bitCount | objdiff 99.10507; 276/276 instructions; structural/exact (12, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 DC helper input order symbols,bitCount,table,work | objdiff 99.10507; 276/276 instructions; structural/exact (12, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 readonly typed Huffman table pointer throughout main | objdiff 99.10507; 276/276 instructions; structural/exact (12, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 unsigned Huffman symbols readonly throughout main | objdiff 99.10507; 276/276 instructions; structural/exact (12, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 DC and AC readonly table input lifetimes separated by decoding scopes | objdiff 98.68841; 276/276 instructions; structural/exact (12, 65); first (33, ('lwz', 'r26, 0x4a0(r23)'), ('lwz', 'r29, 0x4a0(r23)'))
TMCJPEGDEC_decode_iquant | R10 DC sign extension power declared within DC phase | objdiff 99.06884; 276/276 instructions; structural/exact (12, 48); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 DC bit count consumed directly before shift mask | objdiff 99.10507; 276/276 instructions; structural/exact (12, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 AC helper code relative index separated from running bit code | BUILD FAIL ath -RTTI off -fp_contract on -str reuse -DSDK_IPL -D_REVOLUTION -DMEM_MANAGER_DIRECT -i include -i include/global -i libs/MetroTRK/include -i libs/Runtime/include -i libs/MSL/include -i libs/RVL_SDK/include -i libs/RevoEX/include -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -use_lmw_stmw on -lang=c -MMD -c libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32.c -o build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/b65 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32.d build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32.d ### mwcceppc.exe Compiler: # File: libs\RVLMiddleware\TMC_JPEG\src\b65\iqdec_b65_frv32.c # -------------------------------------------------------------- # 101: u32 relativeCode = code - entry->bitLength; # Error: ^^^ # (10141) expression syntax error # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed.
TMCJPEGDEC_decode_iquant | R10 structural phase best (99.141304, 'named relative code before symbol addition'); saved /tmp/fz3-r10-jpeg-best.c if improved; original restored before further diagnosis.
SOGetSockName | R10 request field used directly as first memcpy destination | objdiff 96.666664; 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
SOGetSockName | R10 original void address argument used as memcpy source | objdiff 96.349205; 63/63 instructions; structural/exact (2, 5); first (5, ('mr', 'r27, r4'), ('mr', 'r28, r3'))
SOGetSockName | R10 readonly source alias confined to memcpy expression | objdiff 96.666664; 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
SOGetSockName | R10 input copy helper source first and destination second | objdiff 96.666664; 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
SOGetSockName | R10 input copy helper source and length before destination | objdiff 96.666664; 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
SOGetSockName | R10 input copy helper destination last with signed length | objdiff 96.666664; 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
SOGetSockName | R10 input copy helper readonly destination owner request | objdiff 96.666664; 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
SOGetSockName | R10 input length local read before destination derivation | BUILD FAIL -nodefaults -proc gekko -align powerpc -enum int -fp hardware -Cpp_exceptions off -O4,p -inline auto -pragma "cats off" -pragma "warn_notinlined off" -maxerrors 1 -nosyspath -RTTI off -fp_contract on -str reuse -DSDK_IPL -D_REVOLUTION -DMEM_MANAGER_DIRECT -i include -i include/global -i libs/MetroTRK/include -i libs/Runtime/include -i libs/MSL/include -i libs/RVL_SDK/include -i libs/RevoEX/include -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RevoEX/src/so/SOBasic.c -o build/43U/src/libs/RevoEX/src/so && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/so/SOBasic.d build/43U/src/libs/RevoEX/src/so/SOBasic.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\so\SOBasic.c # ------------------------------------- # 153: u32 length = addr->len; # Error: ^^^ # (10141) expression syntax error # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed.
SOGetSockName | R10 input length local read after destination derivation | BUILD FAIL -nodefaults -proc gekko -align powerpc -enum int -fp hardware -Cpp_exceptions off -O4,p -inline auto -pragma "cats off" -pragma "warn_notinlined off" -maxerrors 1 -nosyspath -RTTI off -fp_contract on -str reuse -DSDK_IPL -D_REVOLUTION -DMEM_MANAGER_DIRECT -i include -i include/global -i libs/MetroTRK/include -i libs/Runtime/include -i libs/MSL/include -i libs/RVL_SDK/include -i libs/RevoEX/include -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RevoEX/src/so/SOBasic.c -o build/43U/src/libs/RevoEX/src/so && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/so/SOBasic.d build/43U/src/libs/RevoEX/src/so/SOBasic.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\so\SOBasic.c # ------------------------------------- # 154: u32 length = addr->len; # Error: ^^^ # (10141) expression syntax error # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed.
SOGetSockName | R10 request initialization occurs after derived reply pointer | objdiff 96.666664; 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
SOGetSockName | R10 input helper copies source bytes viewed through char pointer | objdiff 96.666664; 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
SOGetSockName | R10 input helper returns destination with unused memcpy result | objdiff 96.666664; 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
SOGetSockName | R10 readonly socket input with corrected allocation declaration order | objdiff 96.349205; 63/63 instructions; structural/exact (2, 5); first (5, ('mr', 'r27, r4'), ('mr', 'r28, r3'))
SOGetSockName | R10 immutable readonly socket input with corrected allocation declaration order | objdiff 96.349205; 63/63 instructions; structural/exact (2, 5); first (5, ('mr', 'r27, r4'), ('mr', 'r28, r3'))
SOGetSockName | R10 request address formed in first memcpy destination expression | objdiff 96.666664; 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
SOGetSockName | R10 input pointer local declared after output allocation locals | objdiff 96.666664; 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
SOGetSockName | R10 input byte length computed before output pointer local within real inner scope | objdiff 98.01588; 63/63 instructions; structural/exact (2, 3); first (5, ('mr', 'r30, r3'), ('mr', 'r28, r3'))
SOGetSockName | R10 input byte length uses external declaration with expression assigned before copy | objdiff 96.666664; 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
SOGetSockName | R10 reply pointer typed const address owner with mutable output field view | objdiff 96.666664; 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
SOGetSockName | R10 confirm scoped input length candidate for register allocation | objdiff 98.01588; 63/63 instructions; structural/exact (2, 3); first (5, ('mr', 'r30, r3'), ('mr', 'r28, r3'))
SOGetSockName | R10 input length block begins after socket request store before reply calculation | objdiff 96.666664; 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
SOGetSockName | R10 input length block begins after reply pointer derivation | objdiff 96.666664; 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
SOGetSockName | R10 input length declaration precedes allocation but assignment follows socket store | objdiff 96.666664; 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
SOGetSockName | R10 inner input readonly view uses shared count after socket store | objdiff 96.666664; 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
CDBRecordEncrypt | R10 immutable key pointer argument definition | objdiff 99.19014; 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 immutable record pointer argument definition | objdiff 99.19014; 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 immutable buffer pointer argument definition | objdiff 99.19014; 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 readonly record view for file field loads with mutable record API input retained | objdiff 99.19014; 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 record key parameter read through immutable typed local | objdiff 99.22535; 284/284 instructions; structural/exact (0, 42); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 Wii ID field validation as genuine inline helper boundary | objdiff 98.67958; 285/284 instructions; structural/exact (5, 255); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 Wii ID helper readonly record field input owner | objdiff 98.67958; 285/284 instructions; structural/exact (5, 255); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 Wii ID inline helper preserves explicit result variable and file lifetime | objdiff 99.22535; 284/284 instructions; structural/exact (0, 42); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 Wii ID validation declarations file before error result | objdiff 99.19014; 284/284 instructions; structural/exact (0, 44); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
CDBRecordEncrypt | R10 Wii ID validation result returned through persistent error status | objdiff 99.11972; 284/284 instructions; structural/exact (0, 48); first (8, ('lis', 'r31, 0'), ('lis', 'r25, 0'))
TMCJPEGDEC_decode_iquant | R10 volatility proof candidate: target DC at114 stw word to18(r1),118 lhz same18 immediately; AC2e0 stw to10(r1),2e4 lhz same10 immediately. Test decoded aggregate volatile at definition only; keep only if exact code and no added accesses.
TMCJPEGDEC_decode_iquant | R10 decoded aggregate volatile at definition with immediate reload proof | objdiff 99.10507; 276/276 instructions; structural/exact (12, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 DC decoded aggregate volatile only | objdiff 99.10507; 276/276 instructions; structural/exact (12, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 AC decoded aggregate volatile only | objdiff 99.10507; 276/276 instructions; structural/exact (12, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 limit caller receives structure through output argument helper | objdiff 99.10507; 276/276 instructions; structural/exact (12, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 fast entry fields explicitly copied in inline reader | objdiff 94.21377; 286/276 instructions; structural/exact (46, 269); first (0, ('stwu', 'r1, -0x60(r1)'), ('stwu', 'r1, -0x50(r1)'))
TMCJPEGDEC_decode_iquant | R10 fast entry output populated through typed pointer helper | objdiff 99.10507; 276/276 instructions; structural/exact (12, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 AC traversal in a distinct inline decoding phase | objdiff 97.1558; 276/276 instructions; structural/exact (5, 122); first (4, ('mr', 'r23, r3'), ('mr', 'r21, r3'))
TMCJPEGDEC_decode_iquant | R10 AC phase decoded aggregates volatile with immediate reload proof | objdiff 97.1558; 276/276 instructions; structural/exact (5, 122); first (4, ('mr', 'r23, r3'), ('mr', 'r21, r3'))
TMCJPEGDEC_decode_iquant | R10 AC phase relative code addition named before symbol offset | objdiff 97.19203; 276/276 instructions; structural/exact (5, 121); first (4, ('mr', 'r23, r3'), ('mr', 'r21, r3'))
TMCJPEGDEC_decode_iquant | R10 AC symbol index is separate from running bit code C90 block | objdiff 99.23189; 276/276 instructions; structural/exact (12, 43); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
SOGetInterfaceOpt | R10 immutable selector arguments level | objdiff 99.78992; 119/119 instructions; structural/exact (0, 5); first (5, ('mr', 'r25, r4'), ('mr', 'r26, r4'))
SOGetInterfaceOpt | R10 immutable selector arguments option | objdiff 99.78992; 119/119 instructions; structural/exact (0, 5); first (5, ('mr', 'r25, r4'), ('mr', 'r26, r4'))
SOGetInterfaceOpt | R10 immutable selector arguments level,option | objdiff 99.78992; 119/119 instructions; structural/exact (0, 5); first (5, ('mr', 'r25, r4'), ('mr', 'r26, r4'))
SOGetInterfaceOpt | R10 saved level local before command pointer declaration | objdiff 99.78992; 119/119 instructions; structural/exact (0, 5); first (5, ('mr', 'r25, r4'), ('mr', 'r26, r4'))
SOGetInterfaceOpt | R10 saved option local after command pointer declaration | objdiff 99.78992; 119/119 instructions; structural/exact (0, 5); first (5, ('mr', 'r25, r4'), ('mr', 'r26, r4'))
SOGetInterfaceOpt | R10 option code comparison through unsigned local | objdiff 99.78992; 119/119 instructions; structural/exact (0, 5); first (5, ('mr', 'r25, r4'), ('mr', 'r26, r4'))
SOGetInterfaceOpt | R10 selectors initialized by typed command setter inline helper | objdiff 99.78992; 119/119 instructions; structural/exact (0, 5); first (5, ('mr', 'r25, r4'), ('mr', 'r26, r4'))
SOGetInterfaceOpt | R10 selectors input first before output command in setter helper | objdiff 99.78992; 119/119 instructions; structural/exact (0, 5); first (5, ('mr', 'r25, r4'), ('mr', 'r26, r4'))
SOGetInterfaceOpt | R10 option selector validity named inline helper with immutable input | objdiff 93.36134; 124/119 instructions; structural/exact (9, 112); first (5, ('mr', 'r25, r4'), ('mr', 'r26, r4'))
TMCJPEGDEC_decode_iquant | R10 volatility proof candidate: target DC at114 stw word to18(r1),118 lhz same18 immediately; AC2e0 stw to10(r1),2e4 lhz same10 immediately. Test decoded aggregate volatile at definition only; keep only if exact code and no added accesses.
TMCJPEGDEC_decode_iquant | R10 AC phase candidate structural five before declaration search | objdiff 97.19203; 276/276 instructions; structural/exact (5, 121); first (4, ('mr', 'r23, r3'), ('mr', 'r21, r3'))
TMCJPEGDEC_decode_iquant | R10 stack-slot diagnosis: six real aggregate objects are allocated dcFast1c/acFast18/DCreturnLimit14/DCcopy10/ACreturnLimitc/ACcopy8. Target six corresponding objects dcFast1c/DCcopy18/DCreturnLimit14/ACcopy10/ACreturnLimitc/acFast8. Test explicit typed result workspaces and ordinary local declaration order; each field is consumed by actual lookup/copy, no extra objects.
TMCJPEGDEC_decode_iquant | R10 DC and AC aggregate result workspaces passed to inline decoders | objdiff 99.14855; 276/276 instructions; structural/exact (0, 34); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 aggregate copy destinations definition volatile dcDecoded | objdiff 99.14855; 276/276 instructions; structural/exact (0, 34); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 aggregate copy destinations definition volatile acDecoded | objdiff 99.14855; 276/276 instructions; structural/exact (0, 34); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 aggregate copy destinations definition volatile dcDecoded,acDecoded | objdiff 99.14855; 276/276 instructions; structural/exact (0, 34); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 one typed decoder scratch containing all six actual aggregate copies | objdiff 99.14855; 276/276 instructions; structural/exact (0, 34); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 typed scratch copy destination fields volatile with immediate reload proof | objdiff 99.14855; 276/276 instructions; structural/exact (0, 34); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
SOGetInterfaceOpt | R10 initial declsearch evaluated #1: s32 rm; / int temporary; / int size; / int result; / InterfaceOption* request; / InterfaceCommand* command; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #2: int temporary; / s32 rm; / int size; / int result; / InterfaceOption* request; / InterfaceCommand* command; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #3: int size; / int temporary; / s32 rm; / int result; / InterfaceOption* request; / InterfaceCommand* command; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #4: int result; / int temporary; / int size; / s32 rm; / InterfaceOption* request; / InterfaceCommand* command; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #5: InterfaceOption* request; / int temporary; / int size; / int result; / s32 rm; / InterfaceCommand* command; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #6: InterfaceCommand* command; / int temporary; / int size; / int result; / InterfaceOption* request; / s32 rm; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #7: int* returnedLength; / int temporary; / int size; / int result; / InterfaceOption* request; / InterfaceCommand* command; / s32 rm; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #8: u8* reply; / int temporary; / int size; / int result; / InterfaceOption* request; / InterfaceCommand* command; / int* returnedLength; / s32 rm; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #9: s32 rm; / int size; / int temporary; / int result; / InterfaceOption* request; / InterfaceCommand* command; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #10: s32 rm; / int result; / int size; / int temporary; / InterfaceOption* request; / InterfaceCommand* command; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #11: s32 rm; / InterfaceOption* request; / int size; / int result; / int temporary; / InterfaceCommand* command; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #12: s32 rm; / InterfaceCommand* command; / int size; / int result; / InterfaceOption* request; / int temporary; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #13: s32 rm; / int* returnedLength; / int size; / int result; / InterfaceOption* request; / InterfaceCommand* command; / int temporary; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #14: s32 rm; / u8* reply; / int size; / int result; / InterfaceOption* request; / InterfaceCommand* command; / int* returnedLength; / int temporary; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #15: s32 rm; / int temporary; / int result; / int size; / InterfaceOption* request; / InterfaceCommand* command; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #16: s32 rm; / int temporary; / InterfaceOption* request; / int result; / int size; / InterfaceCommand* command; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #17: s32 rm; / int temporary; / InterfaceCommand* command; / int result; / InterfaceOption* request; / int size; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #18: s32 rm; / int temporary; / int* returnedLength; / int result; / InterfaceOption* request; / InterfaceCommand* command; / int size; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #19: s32 rm; / int temporary; / u8* reply; / int result; / InterfaceOption* request; / InterfaceCommand* command; / int* returnedLength; / int size; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #20: s32 rm; / int temporary; / int size; / InterfaceOption* request; / int result; / InterfaceCommand* command; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #21: s32 rm; / int temporary; / int size; / InterfaceCommand* command; / InterfaceOption* request; / int result; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #22: s32 rm; / int temporary; / int size; / int* returnedLength; / InterfaceOption* request; / InterfaceCommand* command; / int result; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #23: s32 rm; / int temporary; / int size; / u8* reply; / InterfaceOption* request; / InterfaceCommand* command; / int* returnedLength; / int result; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #24: s32 rm; / int temporary; / int size; / int result; / InterfaceCommand* command; / InterfaceOption* request; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #25: s32 rm; / int temporary; / int size; / int result; / int* returnedLength; / InterfaceCommand* command; / InterfaceOption* request; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #26: s32 rm; / int temporary; / int size; / int result; / u8* reply; / InterfaceCommand* command; / int* returnedLength; / InterfaceOption* request; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #27: s32 rm; / int temporary; / int size; / int result; / InterfaceOption* request; / int* returnedLength; / InterfaceCommand* command; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #28: s32 rm; / int temporary; / int size; / int result; / InterfaceOption* request; / u8* reply; / int* returnedLength; / InterfaceCommand* command; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #29: s32 rm; / int temporary; / int size; / int result; / InterfaceOption* request; / InterfaceCommand* command; / u8* reply; / int* returnedLength; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #30: int temporary; / int size; / s32 rm; / int result; / InterfaceOption* request; / InterfaceCommand* command; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #31: int temporary; / int size; / int result; / s32 rm; / InterfaceOption* request; / InterfaceCommand* command; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #32: int temporary; / int size; / int result; / InterfaceOption* request; / s32 rm; / InterfaceCommand* command; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #33: int temporary; / int size; / int result; / InterfaceOption* request; / InterfaceCommand* command; / s32 rm; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #34: int temporary; / int size; / int result; / InterfaceOption* request; / InterfaceCommand* command; / int* returnedLength; / s32 rm; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #35: int temporary; / int size; / int result; / InterfaceOption* request; / InterfaceCommand* command; / int* returnedLength; / u8* reply; / s32 rm; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #36: s32 rm; / int size; / int result; / int temporary; / InterfaceOption* request; / InterfaceCommand* command; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #37: s32 rm; / int size; / int result; / InterfaceOption* request; / int temporary; / InterfaceCommand* command; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #38: s32 rm; / int size; / int result; / InterfaceOption* request; / InterfaceCommand* command; / int temporary; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #39: s32 rm; / int size; / int result; / InterfaceOption* request; / InterfaceCommand* command; / int* returnedLength; / int temporary; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #40: s32 rm; / int size; / int result; / InterfaceOption* request; / InterfaceCommand* command; / int* returnedLength; / u8* reply; / int temporary; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #41: int size; / s32 rm; / int temporary; / int result; / InterfaceOption* request; / InterfaceCommand* command; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #42: s32 rm; / int temporary; / int result; / InterfaceOption* request; / int size; / InterfaceCommand* command; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #43: s32 rm; / int temporary; / int result; / InterfaceOption* request; / InterfaceCommand* command; / int size; / int* returnedLength; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #44: s32 rm; / int temporary; / int result; / InterfaceOption* request; / InterfaceCommand* command; / int* returnedLength; / int size; / u8* reply; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
SOGetInterfaceOpt | R10 initial declsearch evaluated #45: s32 rm; / int temporary; / int result; / InterfaceOption* request; / InterfaceCommand* command; / int* returnedLength; / u8* reply; / int size; | structural/exact (0,5), no improvement; reconstructed evaluated order list from deterministic tool and saved stdout, not a new build.
R10 gate behavior correction: gate.py reports CDBRecord pre-existing pool divergence but does not append pool mismatches to its failure reasons; full gate can PASS while incomplete data remains. Never claim CDBRecord complete until pool fixed. Previous assumption that pool forces GATE FAIL was incorrect.
TMCJPEGDEC_decode_iquant | R10 stack-slot diagnosis: six real aggregate objects are allocated dcFast1c/acFast18/DCreturnLimit14/DCcopy10/ACreturnLimitc/ACcopy8. Target six corresponding objects dcFast1c/DCcopy18/DCreturnLimit14/ACcopy10/ACreturnLimitc/acFast8. Test explicit typed result workspaces and ordinary local declaration order; each field is consumed by actual lookup/copy, no extra objects.
TMCJPEGDEC_decode_iquant | R10 workspace relative code addition temporaries in both long decoders | objdiff 99.184784; 276/276 instructions; structural/exact (0, 33); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 workspace AC decoded symbol index separate from running bit code | objdiff 99.27536; 276/276 instructions; structural/exact (0, 31); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 workspace zigzag table immutable owner view at actual first use | objdiff 99.14855; 276/276 instructions; structural/exact (0, 34); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 workspace DC and AC table owners declared in respective scopes | objdiff 98.73189; 276/276 instructions; structural/exact (0, 53); first (33, ('lwz', 'r26, 0x4a0(r23)'), ('lwz', 'r29, 0x4a0(r23)'))
TMCJPEGDEC_decode_iquant | R10 workspace quantization input typed readonly pointer | objdiff 99.14855; 276/276 instructions; structural/exact (0, 34); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 workspace DC bit count input uses separate remaining count temporary | objdiff 99.0942; 276/276 instructions; structural/exact (0, 36); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 workspace GPR phase best structural/exact (0, 31)
TMCJPEGDEC_decode_iquant | R10 declsearch #1: u32 bitData; / u32 code; / u32 length; / const TMCHuffmanEntry* entry; | 276/276 instructions; structural/exact (0, 31); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #2: u32 code; / u32 bitData; / u32 length; / const TMCHuffmanEntry* entry; | 276/276 instructions; structural/exact (0, 31); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #3: u32 length; / u32 code; / u32 bitData; / const TMCHuffmanEntry* entry; | 276/276 instructions; structural/exact (0, 38); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #4: const TMCHuffmanEntry* entry; / u32 code; / u32 length; / u32 bitData; | 276/276 instructions; structural/exact (0, 38); first (42, ('addi', 'r6, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #5: u32 bitData; / u32 length; / u32 code; / const TMCHuffmanEntry* entry; | 276/276 instructions; structural/exact (0, 38); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #6: u32 bitData; / const TMCHuffmanEntry* entry; / u32 length; / u32 code; | 276/276 instructions; structural/exact (0, 35); first (42, ('addi', 'r6, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #7: u32 bitData; / u32 code; / const TMCHuffmanEntry* entry; / u32 length; | 276/276 instructions; structural/exact (0, 34); first (42, ('addi', 'r5, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #8: u32 code; / u32 length; / u32 bitData; / const TMCHuffmanEntry* entry; | 276/276 instructions; structural/exact (0, 31); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #9: u32 code; / u32 length; / const TMCHuffmanEntry* entry; / u32 bitData; | 276/276 instructions; structural/exact (0, 31); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #10: u32 bitData; / u32 length; / const TMCHuffmanEntry* entry; / u32 code; | 276/276 instructions; structural/exact (0, 38); first (42, ('addi', 'r5, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #11: u32 length; / u32 bitData; / u32 code; / const TMCHuffmanEntry* entry; | 276/276 instructions; structural/exact (0, 38); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #12: const TMCHuffmanEntry* entry; / u32 bitData; / u32 code; / u32 length; | 276/276 instructions; structural/exact (0, 38); first (42, ('addi', 'r6, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #13: u32 bitData; / const TMCHuffmanEntry* entry; / u32 code; / u32 length; | 276/276 instructions; structural/exact (0, 38); first (42, ('addi', 'r6, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch complete 13 evaluated permutations; no source change.
TMCJPEGDEC_decode_iquant | R10 declsearch #1: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 31); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #2: const TMCHuffmanEntry* ac_fast; / u8* huff_sym; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 33); first (33, ('lwz', 'r28, 0x4a0(r23)'), ('lwz', 'r29, 0x4a0(r23)'))
TMCJPEGDEC_decode_iquant | R10 declsearch #3: s32 idx; / const TMCHuffmanEntry* ac_fast; / u8* huff_sym; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 48); first (33, ('lwz', 'r27, 0x4a0(r23)'), ('lwz', 'r29, 0x4a0(r23)'))
TMCJPEGDEC_decode_iquant | R10 declsearch #4: u32* huff_tbl; / const TMCHuffmanEntry* ac_fast; / s32 idx; / u8* huff_sym; / s32 bit_pos; / u32 bit_data; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 33); first (33, ('lwz', 'r27, 0x4a0(r23)'), ('lwz', 'r29, 0x4a0(r23)'))
TMCJPEGDEC_decode_iquant | R10 declsearch #5: s32 bit_pos; / const TMCHuffmanEntry* ac_fast; / s32 idx; / u32* huff_tbl; / u8* huff_sym; / u32 bit_data; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 33); first (33, ('lwz', 'r27, 0x4a0(r23)'), ('lwz', 'r29, 0x4a0(r23)'))
TMCJPEGDEC_decode_iquant | R10 declsearch #6: u32 bit_data; / const TMCHuffmanEntry* ac_fast; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / u8* huff_sym; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 33); first (33, ('lwz', 'r27, 0x4a0(r23)'), ('lwz', 'r29, 0x4a0(r23)'))
TMCJPEGDEC_decode_iquant | R10 declsearch #7: u32 tmp; / const TMCHuffmanEntry* ac_fast; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / u8* huff_sym; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 37); first (33, ('lwz', 'r27, 0x4a0(r23)'), ('lwz', 'r29, 0x4a0(r23)'))
TMCJPEGDEC_decode_iquant | R10 declsearch #8: s32 r; / const TMCHuffmanEntry* ac_fast; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / u32 tmp; / u8* huff_sym; / s32 blk0; | 276/276 instructions; structural/exact (0, 33); first (33, ('lwz', 'r27, 0x4a0(r23)'), ('lwz', 'r29, 0x4a0(r23)'))
TMCJPEGDEC_decode_iquant | R10 declsearch #9: s32 blk0; / const TMCHuffmanEntry* ac_fast; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / u32 tmp; / s32 r; / u8* huff_sym; | 276/276 instructions; structural/exact (0, 35); first (33, ('lwz', 'r27, 0x4a0(r23)'), ('lwz', 'r29, 0x4a0(r23)'))
TMCJPEGDEC_decode_iquant | R10 declsearch #10: u8* huff_sym; / s32 idx; / const TMCHuffmanEntry* ac_fast; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #11: u8* huff_sym; / u32* huff_tbl; / s32 idx; / const TMCHuffmanEntry* ac_fast; / s32 bit_pos; / u32 bit_data; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #12: u8* huff_sym; / s32 bit_pos; / s32 idx; / u32* huff_tbl; / const TMCHuffmanEntry* ac_fast; / u32 bit_data; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #13: u8* huff_sym; / u32 bit_data; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / const TMCHuffmanEntry* ac_fast; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #14: u8* huff_sym; / u32 tmp; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / const TMCHuffmanEntry* ac_fast; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 50); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #15: u8* huff_sym; / s32 r; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / u32 tmp; / const TMCHuffmanEntry* ac_fast; / s32 blk0; | 276/276 instructions; structural/exact (0, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #16: u8* huff_sym; / s32 blk0; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / u32 tmp; / s32 r; / const TMCHuffmanEntry* ac_fast; | 276/276 instructions; structural/exact (0, 48); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #17: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / u32* huff_tbl; / s32 idx; / s32 bit_pos; / u32 bit_data; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 31); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #18: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / s32 bit_pos; / u32* huff_tbl; / s32 idx; / u32 bit_data; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 31); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #19: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / u32 bit_data; / u32* huff_tbl; / s32 bit_pos; / s32 idx; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 31); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #20: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / u32 tmp; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / s32 idx; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 35); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #21: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / s32 r; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / u32 tmp; / s32 idx; / s32 blk0; | 276/276 instructions; structural/exact (0, 31); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #22: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / s32 blk0; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / u32 tmp; / s32 r; / s32 idx; | 276/276 instructions; structural/exact (0, 33); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #23: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / s32 idx; / s32 bit_pos; / u32* huff_tbl; / u32 bit_data; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 31); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #24: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / s32 idx; / u32 bit_data; / s32 bit_pos; / u32* huff_tbl; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 31); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #25: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / s32 idx; / u32 tmp; / s32 bit_pos; / u32 bit_data; / u32* huff_tbl; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 35); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #26: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / s32 idx; / s32 r; / s32 bit_pos; / u32 bit_data; / u32 tmp; / u32* huff_tbl; / s32 blk0; | 276/276 instructions; structural/exact (0, 31); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #27: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / s32 idx; / s32 blk0; / s32 bit_pos; / u32 bit_data; / u32 tmp; / s32 r; / u32* huff_tbl; | 276/276 instructions; structural/exact (0, 33); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #28: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / s32 idx; / u32* huff_tbl; / u32 bit_data; / s32 bit_pos; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 31); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #29: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / s32 idx; / u32* huff_tbl; / u32 tmp; / u32 bit_data; / s32 bit_pos; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 35); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #30: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / s32 idx; / u32* huff_tbl; / s32 r; / u32 bit_data; / u32 tmp; / s32 bit_pos; / s32 blk0; | 276/276 instructions; structural/exact (0, 31); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #31: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / s32 idx; / u32* huff_tbl; / s32 blk0; / u32 bit_data; / u32 tmp; / s32 r; / s32 bit_pos; | 276/276 instructions; structural/exact (0, 33); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #32: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / u32 tmp; / u32 bit_data; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 35); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #33: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / s32 r; / u32 tmp; / u32 bit_data; / s32 blk0; | 276/276 instructions; structural/exact (0, 35); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #34: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / s32 blk0; / u32 tmp; / s32 r; / u32 bit_data; | 276/276 instructions; structural/exact (0, 37); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #35: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / s32 r; / u32 tmp; / s32 blk0; | 276/276 instructions; structural/exact (0, 31); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #36: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / s32 blk0; / s32 r; / u32 tmp; | 276/276 instructions; structural/exact (0, 33); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #37: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / u32 tmp; / s32 blk0; / s32 r; | 276/276 instructions; structural/exact (0, 31); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #38: const TMCHuffmanEntry* ac_fast; / s32 idx; / u8* huff_sym; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 33); first (33, ('lwz', 'r27, 0x4a0(r23)'), ('lwz', 'r29, 0x4a0(r23)'))
TMCJPEGDEC_decode_iquant | R10 declsearch #39: const TMCHuffmanEntry* ac_fast; / s32 idx; / u32* huff_tbl; / u8* huff_sym; / s32 bit_pos; / u32 bit_data; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 33); first (33, ('lwz', 'r27, 0x4a0(r23)'), ('lwz', 'r29, 0x4a0(r23)'))
TMCJPEGDEC_decode_iquant | R10 declsearch #40: const TMCHuffmanEntry* ac_fast; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / u8* huff_sym; / u32 bit_data; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 33); first (33, ('lwz', 'r27, 0x4a0(r23)'), ('lwz', 'r29, 0x4a0(r23)'))
TMCJPEGDEC_decode_iquant | R10 declsearch #41: const TMCHuffmanEntry* ac_fast; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / u8* huff_sym; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 33); first (33, ('lwz', 'r27, 0x4a0(r23)'), ('lwz', 'r29, 0x4a0(r23)'))
TMCJPEGDEC_decode_iquant | R10 declsearch #42: const TMCHuffmanEntry* ac_fast; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / u32 tmp; / u8* huff_sym; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 33); first (33, ('lwz', 'r27, 0x4a0(r23)'), ('lwz', 'r29, 0x4a0(r23)'))
TMCJPEGDEC_decode_iquant | R10 declsearch #43: const TMCHuffmanEntry* ac_fast; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / u32 tmp; / s32 r; / u8* huff_sym; / s32 blk0; | 276/276 instructions; structural/exact (0, 33); first (33, ('lwz', 'r27, 0x4a0(r23)'), ('lwz', 'r29, 0x4a0(r23)'))
TMCJPEGDEC_decode_iquant | R10 declsearch #44: const TMCHuffmanEntry* ac_fast; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / u32 tmp; / s32 r; / s32 blk0; / u8* huff_sym; | 276/276 instructions; structural/exact (0, 33); first (33, ('lwz', 'r27, 0x4a0(r23)'), ('lwz', 'r29, 0x4a0(r23)'))
TMCJPEGDEC_decode_iquant | R10 declsearch #45: u8* huff_sym; / s32 idx; / u32* huff_tbl; / const TMCHuffmanEntry* ac_fast; / s32 bit_pos; / u32 bit_data; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #46: u8* huff_sym; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / const TMCHuffmanEntry* ac_fast; / u32 bit_data; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #47: u8* huff_sym; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / const TMCHuffmanEntry* ac_fast; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #48: u8* huff_sym; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / u32 tmp; / const TMCHuffmanEntry* ac_fast; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #49: u8* huff_sym; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / u32 tmp; / s32 r; / const TMCHuffmanEntry* ac_fast; / s32 blk0; | 276/276 instructions; structural/exact (0, 46); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #50: u8* huff_sym; / s32 idx; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / u32 tmp; / s32 r; / s32 blk0; / const TMCHuffmanEntry* ac_fast; | 276/276 instructions; structural/exact (0, 48); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #51: s32 idx; / u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 48); first (33, ('lwz', 'r28, 0x4a0(r23)'), ('lwz', 'r29, 0x4a0(r23)'))
TMCJPEGDEC_decode_iquant | R10 declsearch #52: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / u32* huff_tbl; / s32 bit_pos; / s32 idx; / u32 bit_data; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 31); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #53: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / s32 idx; / u32 tmp; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 31); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #54: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / u32 tmp; / s32 idx; / s32 r; / s32 blk0; | 276/276 instructions; structural/exact (0, 31); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #55: u8* huff_sym; / const TMCHuffmanEntry* ac_fast; / u32* huff_tbl; / s32 bit_pos; / u32 bit_data; / u32 tmp; / s32 r; / s32 idx; / s32 blk0; | 276/276 instructions; structural/exact (0, 31); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch complete 55 evaluated permutations; no source change.
TMCJPEGDEC_decode_iquant | R10 both Huffman relative indices independent of running code | objdiff 99.31159; 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 both indices plus named limit and symbol scalar loads before aggregate writes | objdiff 99.31159; 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 limit and symbol readonly scalar inputs into aggregate helper | objdiff 99.31159; 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 DC and AC limit-copy pairs grouped as typed decode result objects | objdiff 99.26811; 276/276 instructions; structural/exact (12, 40); first (26, ('sth', 'r0, 0xc(r1)'), ('sth', 'r0, 0x1c(r1)'))
TMCJPEGDEC_decode_iquant | R10 typed results limit scalar inputs named before stores | objdiff 99.26811; 276/276 instructions; structural/exact (12, 40); first (26, ('sth', 'r0, 0xc(r1)'), ('sth', 'r0, 0x1c(r1)'))
TMCJPEGDEC_decode_iquant | R10 DC value bit count and bit data scoped to decoded coefficient | objdiff 99.25725; 276/276 instructions; structural/exact (0, 32); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 final representation phase best (0, 30)
SOBasic | R10 extent proof: soSocketRegistered at .sbss:81698E60 is source static int (ELF size4); target SOSocket lwz28/stw40 both relocate only offset0 of this scalar; next sslRegistered81698E68. Correct extent8->4 leaving81698E64..67 unowned alignment; address and .sbss section/split size8 unchanged. No function extent changes or symbol renames.
R10 owned data audit: tiString288/288 and tiSignWindow3468/3468 already exact; SOOption and JPEG no owned data; CDBRecord actual missing literal bytes19/47, not a proven object-name mismatch, retain all extents/names; SOBasic sole gap proven scalar alignment extent corrected above.
R10 retained state gate quick all six units: GATE PASS; DOL26116613f624061ba99c8d1a299aaa6efa85670d; regressions0/forbidden0/readability0. SOBasic .sbss100,data136->144; SOGetSockName eleven->three differing instructions (96.666664%); JPEG structural12->0,46->30 differing instructions (99.31159%). Instruction-exact counts unchanged, no new match claimed. All six actual Huffman aggregate fields mirror target load/store slots, no padding or retained volatility.
inputChar | R10 further structural trial: mode3 is literal conversion stub of the original Hangul stream, not a Hangul character-range test; target dead newline cmpl at7dc then indexed append count6. Previous R9 u32 reference used const character reference, u16 reference used value character, leaving alias/type alternatives unresolved. Try real count resets and append with signed/unsigned32 index and value/readonly input; retain only correct behavior, no empty newline helper.
inputChar__Q39textinput8tistring9DecolatedFw | R10 literal newline count reset u32 reference with wchar_t input | objdiff 93.60294; 135/136 instructions; structural/exact (15, 61); first (10, ('beq', '468'), ('beq', '472'))
inputChar__Q39textinput8tistring9DecolatedFw | R10 literal newline count reset u32 pointer with wchar_t input | objdiff 93.60294; 135/136 instructions; structural/exact (15, 61); first (10, ('beq', '468'), ('beq', '472'))
inputChar__Q39textinput8tistring9DecolatedFw | R10 literal newline count reset u32 reference with const wchar_t& input | objdiff 93.60294; 135/136 instructions; structural/exact (15, 61); first (10, ('beq', '468'), ('beq', '472'))
inputChar__Q39textinput8tistring9DecolatedFw | R10 literal newline count reset u32 pointer with const wchar_t& input | objdiff 93.60294; 135/136 instructions; structural/exact (15, 61); first (10, ('beq', '468'), ('beq', '472'))
inputChar__Q39textinput8tistring9DecolatedFw | R10 literal newline count reset s32 reference with wchar_t input | objdiff 93.60294; 135/136 instructions; structural/exact (15, 61); first (10, ('beq', '468'), ('beq', '472'))
inputChar__Q39textinput8tistring9DecolatedFw | R10 literal newline count reset s32 pointer with wchar_t input | objdiff 93.60294; 135/136 instructions; structural/exact (15, 61); first (10, ('beq', '468'), ('beq', '472'))
inputChar__Q39textinput8tistring9DecolatedFw | R10 literal newline count reset s32 reference with const wchar_t& input | objdiff 93.60294; 135/136 instructions; structural/exact (15, 61); first (10, ('beq', '468'), ('beq', '472'))
inputChar__Q39textinput8tistring9DecolatedFw | R10 literal newline count reset s32 pointer with const wchar_t& input | objdiff 93.60294; 135/136 instructions; structural/exact (15, 61); first (10, ('beq', '468'), ('beq', '472'))
inputChar__Q39textinput8tistring9DecolatedFw | R10 readonly old cursor input and mutable new cursor output views | objdiff 91.06618; 135/136 instructions; structural/exact (17, 62); first (10, ('beq', '468'), ('beq', '472'))
inputChar__Q39textinput8tistring9DecolatedFw | R10 literal stream cursor mutable class with by-value character append | objdiff 92.52941; 135/136 instructions; structural/exact (16, 61); first (10, ('beq', '468'), ('beq', '472'))
inputChar | R10 state variant phase best (93.60294, 'literal newline count reset u32 reference with wchar_t input'); original restored pending matching proof.
SOGetSockName | R10 input address length from readonly scalar accessor u8 | objdiff 96.666664; 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
SOGetSockName | R10 input address length from readonly scalar accessor u32 | objdiff 96.666664; 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
SOGetSockName | R10 input address length from readonly scalar accessor size_t | objdiff 96.666664; 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
SOGetSockName | R10 reply object derived through typed inline request accessor | objdiff 95.39683; 63/63 instructions; structural/exact (2, 19); first (5, ('mr', 'r29, r3'), ('mr', 'r28, r3'))
SOGetSockName | R10 input object bytes through readonly inline source view | objdiff 96.666664; 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
SOGetSockName | R10 input object representation uses unsigned byte view for copy | objdiff 96.666664; 63/63 instructions; structural/exact (2, 3); first (32, ('mr', 'r3, r28'), ('mr', 'r4, r27'))
TMCJPEGDEC_decode_iquant | R10 declsearch #1: s32 q; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; / / bit_pos = work->bitCount; / dc_fast = (const TMCHuffmanEntry*)work->pDCFast; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #2: const TMCHuffmanEntry* dc_fast; / s32 q; / const u8* zztbl; / / bit_pos = work->bitCount; / dc_fast = (const TMCHuffmanEntry*)work->pDCFast; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #3: const u8* zztbl; / const TMCHuffmanEntry* dc_fast; / s32 q; / / bit_pos = work->bitCount; / dc_fast = (const TMCHuffmanEntry*)work->pDCFast; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #4: / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; / s32 q; / bit_pos = work->bitCount; / dc_fast = (const TMCHuffmanEntry*)work->pDCFast; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #5: s32 q; / const u8* zztbl; / const TMCHuffmanEntry* dc_fast; / / bit_pos = work->bitCount; / dc_fast = (const TMCHuffmanEntry*)work->pDCFast; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #6: s32 q; / / const u8* zztbl; / const TMCHuffmanEntry* dc_fast; / bit_pos = work->bitCount; / dc_fast = (const TMCHuffmanEntry*)work->pDCFast; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #7: s32 q; / const TMCHuffmanEntry* dc_fast; / / const u8* zztbl; / bit_pos = work->bitCount; / dc_fast = (const TMCHuffmanEntry*)work->pDCFast; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #8: s32 q; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; / bit_pos = work->bitCount; / / dc_fast = (const TMCHuffmanEntry*)work->pDCFast; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #9: s32 q; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; / dc_fast = (const TMCHuffmanEntry*)work->pDCFast; / bit_pos = work->bitCount; / | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #10: s32 q; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; / / dc_fast = (const TMCHuffmanEntry*)work->pDCFast; / bit_pos = work->bitCount; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #11: const TMCHuffmanEntry* dc_fast; / const u8* zztbl; / s32 q; / / bit_pos = work->bitCount; / dc_fast = (const TMCHuffmanEntry*)work->pDCFast; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #12: const TMCHuffmanEntry* dc_fast; / const u8* zztbl; / / s32 q; / bit_pos = work->bitCount; / dc_fast = (const TMCHuffmanEntry*)work->pDCFast; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #13: s32 q; / const u8* zztbl; / / const TMCHuffmanEntry* dc_fast; / bit_pos = work->bitCount; / dc_fast = (const TMCHuffmanEntry*)work->pDCFast; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #14: const u8* zztbl; / s32 q; / const TMCHuffmanEntry* dc_fast; / / bit_pos = work->bitCount; / dc_fast = (const TMCHuffmanEntry*)work->pDCFast; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #15: / s32 q; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; / bit_pos = work->bitCount; / dc_fast = (const TMCHuffmanEntry*)work->pDCFast; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #16: s32 q; / / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; / bit_pos = work->bitCount; / dc_fast = (const TMCHuffmanEntry*)work->pDCFast; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #17: s32 q; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; / bit_pos = work->bitCount; / dc_fast = (const TMCHuffmanEntry*)work->pDCFast; / | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #18: s32 q; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; / dc_fast = (const TMCHuffmanEntry*)work->pDCFast; / / bit_pos = work->bitCount; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch complete 18 evaluated permutations; no source change.
R10 JPEG final declaration range correction: initially selected132..137, which accidentally included two following statements; discarded all candidate changes and restored accepted commit source before rerunning correct declaration-only129..134. No candidate from mistaken range retained or counted toward structural matching.
TMCJPEGDEC_decode_iquant | R10 declsearch #1: s32 extra; / s32 t; / s32 zz; / s32 q; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #2: s32 t; / s32 extra; / s32 zz; / s32 q; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #3: s32 zz; / s32 t; / s32 extra; / s32 q; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; | 276/276 instructions; structural/exact (0, 33); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #4: s32 q; / s32 t; / s32 zz; / s32 extra; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #5: const TMCHuffmanEntry* dc_fast; / s32 t; / s32 zz; / s32 q; / s32 extra; / const u8* zztbl; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #6: const u8* zztbl; / s32 t; / s32 zz; / s32 q; / const TMCHuffmanEntry* dc_fast; / s32 extra; | 276/276 instructions; structural/exact (0, 33); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #7: s32 extra; / s32 zz; / s32 t; / s32 q; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; | 276/276 instructions; structural/exact (0, 33); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #8: s32 extra; / s32 q; / s32 zz; / s32 t; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; | 276/276 instructions; structural/exact (0, 33); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #9: s32 extra; / const TMCHuffmanEntry* dc_fast; / s32 zz; / s32 q; / s32 t; / const u8* zztbl; | 276/276 instructions; structural/exact (0, 33); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #10: s32 extra; / const u8* zztbl; / s32 zz; / s32 q; / const TMCHuffmanEntry* dc_fast; / s32 t; | 276/276 instructions; structural/exact (0, 33); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #11: s32 extra; / s32 t; / s32 q; / s32 zz; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #12: s32 extra; / s32 t; / const TMCHuffmanEntry* dc_fast; / s32 q; / s32 zz; / const u8* zztbl; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #13: s32 extra; / s32 t; / const u8* zztbl; / s32 q; / const TMCHuffmanEntry* dc_fast; / s32 zz; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #14: s32 extra; / s32 t; / s32 zz; / const TMCHuffmanEntry* dc_fast; / s32 q; / const u8* zztbl; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #15: s32 extra; / s32 t; / s32 zz; / const u8* zztbl; / const TMCHuffmanEntry* dc_fast; / s32 q; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #16: s32 extra; / s32 t; / s32 zz; / s32 q; / const u8* zztbl; / const TMCHuffmanEntry* dc_fast; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #17: s32 t; / s32 zz; / s32 extra; / s32 q; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #18: s32 t; / s32 zz; / s32 q; / s32 extra; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #19: s32 t; / s32 zz; / s32 q; / const TMCHuffmanEntry* dc_fast; / s32 extra; / const u8* zztbl; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #20: s32 t; / s32 zz; / s32 q; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; / s32 extra; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #21: s32 extra; / s32 zz; / s32 q; / s32 t; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; | 276/276 instructions; structural/exact (0, 33); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #22: s32 extra; / s32 zz; / s32 q; / const TMCHuffmanEntry* dc_fast; / s32 t; / const u8* zztbl; | 276/276 instructions; structural/exact (0, 33); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #23: s32 extra; / s32 zz; / s32 q; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; / s32 t; | 276/276 instructions; structural/exact (0, 33); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #24: s32 zz; / s32 extra; / s32 t; / s32 q; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; | 276/276 instructions; structural/exact (0, 33); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #25: s32 extra; / s32 t; / s32 q; / const TMCHuffmanEntry* dc_fast; / s32 zz; / const u8* zztbl; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #26: s32 extra; / s32 t; / s32 q; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; / s32 zz; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #27: s32 q; / s32 extra; / s32 t; / s32 zz; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #28: s32 extra; / s32 q; / s32 t; / s32 zz; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #29: s32 extra; / s32 t; / s32 zz; / const TMCHuffmanEntry* dc_fast; / const u8* zztbl; / s32 q; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #30: const TMCHuffmanEntry* dc_fast; / s32 extra; / s32 t; / s32 zz; / s32 q; / const u8* zztbl; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #31: s32 extra; / const TMCHuffmanEntry* dc_fast; / s32 t; / s32 zz; / s32 q; / const u8* zztbl; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #32: s32 extra; / s32 t; / const TMCHuffmanEntry* dc_fast; / s32 zz; / s32 q; / const u8* zztbl; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #33: const u8* zztbl; / s32 extra; / s32 t; / s32 zz; / s32 q; / const TMCHuffmanEntry* dc_fast; | 276/276 instructions; structural/exact (0, 33); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #34: s32 extra; / const u8* zztbl; / s32 t; / s32 zz; / s32 q; / const TMCHuffmanEntry* dc_fast; | 276/276 instructions; structural/exact (0, 33); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #35: s32 extra; / s32 t; / const u8* zztbl; / s32 zz; / s32 q; / const TMCHuffmanEntry* dc_fast; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch #36: s32 extra; / s32 t; / s32 zz; / const u8* zztbl; / s32 q; / const TMCHuffmanEntry* dc_fast; | 276/276 instructions; structural/exact (0, 30); first (42, ('addi', 'r4, r25, 0x24'), ('addi', 'r7, r25, 0x24'))
TMCJPEGDEC_decode_iquant | R10 declsearch complete 36 evaluated permutations; no source change.
R10 final open audit | create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | 99.86425% | 6 compiled distinct source-level attempts plus logged declaration permutations | six animation-count/slot registers, identical221/frame50
R10 final open audit | inputChar__Q39textinput8tistring9DecolatedFw | 90.132355% | 14 compiled distinct source-level attempts plus logged declaration permutations | literal converter helper boundary, indexed cursor and dead newline compare,125/136
R10 final open audit | CDBCryptBuffer | 99.97479% | 3 compiled distinct source-level attempts plus logged declaration permutations | three OSReport literal offsets caused by missing earlier28literals;119/119otherwise
R10 final open audit | CDBRecordEncrypt | 99.19014% | 16 compiled distinct source-level attempts plus logged declaration permutations | 44GPR operands,284/284alignedframe400 exact; metadata origin unresolved
R10 final open audit | SOGetSockName | 96.666664% | 35 compiled distinct source-level attempts plus logged declaration permutations | first memcpy three argument setup instructions rotate;63/63otherwise exact; data144/144 nowexact
R10 final open audit | SOGetInterfaceOpt | 99.78992% | 14 compiled distinct source-level attempts plus logged declaration permutations | five parameter allocation operands, identical119/frame30
R10 final open audit | TMCJPEGDEC_decode_iquant | 99.31159% | 50 compiled distinct source-level attempts plus logged declaration permutations | 30GPR operands,276/276frame50andallaggregatecopyaddresses nowexact
R10 completion boundary: zero new exact functions; eight matched data bytes recovered by verified SOBasic extent correction. Every seven remaining functions has >=3 compiled source attempts; all rejected variants restored. Remaining CDBRecord literal provenance (retained APIs linker-stripped or extraction grouping) is still an inference, not proved; no speculative strings/functions/renames added. Final clean gate all six units follows.
### R10 final clean full gate, all six owned units
```
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[libs/RevoEX/src/so/SOOption] pool: IDENTICAL
[libs/RevoEX/src/so/SOOption] objdiff: code 816/1292 data None/None functions 3/4 fuzzy 99.9226 linked code 0
[libs/RevoEX/src/so/SOOption] instruction-exact functions: 3/4
[libs/RevoEX/src/so/SOOption] section .text size 1292 match 99.9226
[libs/RevoEX/src/so/SOOption] below 100: SOGetInterfaceOpt 99.78992
[libs/RevoEX/src/so/SOOption] baseline: code 816/1292 data None functions 3 fuzzy 99.9226
[src/keyboard/tiString] pool: IDENTICAL
[src/keyboard/tiString] objdiff: code 4632/5176 data 288/288 functions 41/42 fuzzy 98.9629 linked code 0
[src/keyboard/tiString] instruction-exact functions: 41/42
[src/keyboard/tiString] section .data size 288 match 100.0
[src/keyboard/tiString] section .text size 5176 match 98.962906
[src/keyboard/tiString] below 100: inputChar__Q39textinput8tistring9DecolatedFw 90.132355
[src/keyboard/tiString] baseline: code 4632/5176 data 288 functions 41 fuzzy 98.9629
[src/keyboard/tiSignWindow] pool: IDENTICAL
[src/keyboard/tiSignWindow] objdiff: code 6300/7184 data 3468/3468 functions 55/56 fuzzy 99.9833 linked code 0
[src/keyboard/tiSignWindow] instruction-exact functions: 55/56
[src/keyboard/tiSignWindow] section .ctors size 4 match 100.0
[src/keyboard/tiSignWindow] section .data size 2672 match 100.0
[src/keyboard/tiSignWindow] section .rodata size 784 match 100.0
[src/keyboard/tiSignWindow] section .sdata size 8 match 100.0
[src/keyboard/tiSignWindow] section .text size 7184 match 99.9833
[src/keyboard/tiSignWindow] below 100: create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator 99.86425
[src/keyboard/tiSignWindow] baseline: code 6300/7184 data 3468 functions 55 fuzzy 99.9833
[libs/RevoEX/src/cdb/CDBRecord] pool: DIVERGES at string 10 (mine=19 orig=47)
[libs/RevoEX/src/cdb/CDBRecord] objdiff: code 5464/7076 data 144/2640 functions 27/29 fuzzy 99.8683 linked code 0
[libs/RevoEX/src/cdb/CDBRecord] instruction-exact functions: 27/29
[libs/RevoEX/src/cdb/CDBRecord] section .bss size 128 match 100.0
[libs/RevoEX/src/cdb/CDBRecord] section .data size 2496 match 52.795387
[libs/RevoEX/src/cdb/CDBRecord] section .rodata size 16 match 100.0
[libs/RevoEX/src/cdb/CDBRecord] section .text size 7076 match 99.868286
[libs/RevoEX/src/cdb/CDBRecord] below 100: CDBCryptBuffer 99.97479
[libs/RevoEX/src/cdb/CDBRecord] below 100: CDBRecordEncrypt 99.19014
[libs/RevoEX/src/cdb/CDBRecord] baseline: code 5464/7076 data 144 functions 27 fuzzy 99.8683
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] pool: IDENTICAL
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] objdiff: code None/1104 data None/None functions 0/1 fuzzy 99.3116 linked code 0
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] instruction-exact functions: 0/1
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] section .text size 1104 match 99.31159
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] below 100: TMCJPEGDEC_decode_iquant 99.31159
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] baseline: code None/1104 data None functions 0 fuzzy 99.1051
[libs/RevoEX/src/so/SOBasic] pool: IDENTICAL
[libs/RevoEX/src/so/SOBasic] objdiff: code 3836/4088 data 144/144 functions 21/22 fuzzy 99.7945 linked code 0
[libs/RevoEX/src/so/SOBasic] instruction-exact functions: 21/22
[libs/RevoEX/src/so/SOBasic] section .bss size 40 match 100.0
[libs/RevoEX/src/so/SOBasic] section .data size 88 match 100.0
[libs/RevoEX/src/so/SOBasic] section .sbss size 8 match 100.0
[libs/RevoEX/src/so/SOBasic] section .sdata size 8 match 100.0
[libs/RevoEX/src/so/SOBasic] section .text size 4088 match 99.79452
[libs/RevoEX/src/so/SOBasic] below 100: SOGetSockName 96.666664
[libs/RevoEX/src/so/SOBasic] baseline: code 3836/4088 data 136 functions 21 fuzzy 99.7505
regressions vs baseline: 0
global matched_code_percent: 90.37653 -> 90.37653
global fuzzy_match_percent: 99.55215 -> 99.55229
global complete_code_percent: 69.36874 -> 69.36874
global matched_data_percent: 99.36508 -> 99.36552
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
GATE PASS
```
R10 before -> after (instruction-exact functions, objdiff matched code bytes, objdiff matched data bytes):
libs/RevoEX/src/so/SOOption | functions 3/4 -> 3/4 | code 816/1292 -> 816/1292 | data 0/0 -> None/None
src/keyboard/tiString | functions 41/42 -> 41/42 | code 4632/5176 -> 4632/5176 | data 288/288 -> 288/288
src/keyboard/tiSignWindow | functions 55/56 -> 55/56 | code 6300/7184 -> 6300/7184 | data 3468/3468 -> 3468/3468
libs/RevoEX/src/cdb/CDBRecord | functions 27/29 -> 27/29 | code 5464/7076 -> 5464/7076 | data 144/2640 -> 144/2640
libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32 | functions 0/1 -> 0/1 | code 0/1104 -> None/1104 | data 0/0 -> None/None
libs/RevoEX/src/so/SOBasic | functions 21/22 -> 21/22 | code 3836/4088 -> 3836/4088 | data 136/144 -> 144/144
R10 final scope: changed only config/43U/symbols.txt, libs/RevoEX/src/so/SOBasic.c, libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32.c and this attempts log; commit64e181a4 carries verified data/structural improvements. No new exact code function; no linked flags changed. Seven remaining functions all logged with >=3 compiled attempts and first-difference diagnoses; all rejects restored. CDBRecord pool provenance remains uncertain. Full gate PASS is a regression/build/hash result, not full unit completion.

View File

@@ -0,0 +1,6 @@
## beq+b inside onEventDerived (solved — switch-dispatch + case-fallthrough structure)
- Orig's ON_TRIG case: `if (con == NULL) break;` (real break → switch join), `if (con->downTrg(...)) { if (mState == STATE_COVER_NORMAL || mState == STATE_NORMAL) {buttons} }` — arms and failed guards FALL THROUGH to ON_POINT code (0x31c) — no break after the if-chain; the positive `||` mState-guard emits `beq body` + `bne ON_POINT`.
- start_drag_event: `switch (mState) { case STATE_NORMAL: if (mMode == 0) break; /*fall*/ default: return; }` reproduces `beq fwd / b ret` per clause — the `b` is default's arm edge placed between dispatch test and case body. Sequential `if`s, `||`, goto, if/else all fold to single `bne`.
- Residual: pure reg-web coloring (orig this→r29/con→r30/paneName→r31 vs mine r27/r28/r30) — liveness-priority coloring, no source lever (keep-vs-remat wall family).
- movePane_onDrag: `width += 0.01f` was INSIDE the `if (textBox && name)` block in orig (b 0x164 skips it). `&&` clause polarity `bne fwd / b end` still folded in mine (block-layout tie).

View File

@@ -0,0 +1,8 @@
## get_friendinfo keep-vs-remat (88%)
Orig caches mString.mName (this+0x2b4) and mString.mDisplayText (this+0x2cc)
pointers in r29 across the FindPaneByName+set_textbox calls (extra addi + mr
reuse, +2 insns); mine rematerializes the member addresses inline at the call.
Orig this=r28, ptr webs=r29 (reused sequentially for both ptrs). Mine this=r29,
no ptr webs - the callee-reg web rotation differs by one position. Same
documented keep-vs-remat + web-ordering wall family as create/CDBRecordEncrypt.

View File

@@ -7,3 +7,29 @@
- **setEventHandler r5 mystery (documented):** orig calls `setEventHandler__Q33ipl5scene8SDButtonFPQ23gui12EventHandlerPQ23gui12EventHandler` (2-param) at 4 sites in iplSDChannelSelect + 2 in iplSDChannelTitle with r5 NEVER materialized (no li/lwz/mr r5 in the 4-insn window before bl; callee is non-static so this=r3, event=r4, optOutEvent=r5 garbage). MWCC always emits `li r5,0` for the =NULL default (verified: both `(h, NULL)` and `(h)` call forms emit it in mine). iplAddress.o Button callers DO emit `li r5,0` for the analogous Button decl. No C++ source model reproduces a 2-param bl with unset r5 (1-arg call to a defaulted 2-param decl emits the default; a 1-param decl would mangle differently). Left as `(h, NULL)` explicit; ~4 insn residual across create/selectChannel/initializeNormalPage/calcCommon/onEventDerived.
- kpr_lib: orig's `once$2281` is an 8-byte fn-local accessed via lbz/stb → decoded as `static union { u64 align; u8 flag; }` inside KPRInitQueue — gives size-8 `once$` + .sbss 0x10 and .sbss scored 100%. Orig's .sbss ordering [DeadKeys@0,Romaji@4,once@8] vs mine [once@0,Romaji@4,DeadKeys@8] is MWCC reverse-decl-order emission; objdiff .sbss scores 100 anyway. kpr_lib now 8/9 fns, all data 100.
- iplSDMemory: removed dead `#pragma inline_max_total_size` (no effect). drawTransferTitles: orig re-materializes f32 consts from sdata (`lfs f0,const@sda21`) where mine spills/reloads stack copies — frame-lever not found. create: 1064 vs 1060, mostly lbl_/@N symbol-name + r30/r31 data-base home.
## beq+b two-way dispatch — SOLVED (onEventDerived)
Orig emits `beq fwd / b end` pairs where single-branch guards were expected.
Produced by a real `switch (event) { case 0: BODY; break; default: break; }`
dispatch — MWCC keeps the 2-arm dispatch layout instead of folding to `bne`.
`if`/`else` and `goto` forms all fold back to a single `bne`; only `switch`
reproduces it. Applied at the `event == 0` check in the anon
SDChannelSelectButtonEventHandler::onEventDerived → 144/144 insn-identical.
The same pair inside a u64 `<` compare (handleSDTitleListResult `neg.` hi-test)
has no applicable source form — that one stays a wall.
## switch-on-bool dispatch (handleSDTitleListResult)
Orig emits `beq fwd-body / b ret` where a plain `if (u64 < K) return;` folds to single `bne ret`.
Decode: `switch (x < K) { default: BODY; break; case true: return; }` — `default` arm FIRST
(source order) with the bool-compare as discriminant → MWCC emits the two-arm dispatch
(171/171 insn-equal). `case false:` regresses (jump-table range dispatch), if/else folds.
Residual: orig uses `neg.` flags directly (`beq`); mine emits `neg` + `cmpwi 1` + `beq` —
same insn count, operand-level diff only.
## Dead-arm fossil (iplAddressEdit, earlier)
An unreachable empty `case N:` arm in a switch materializes a dead `b end` between
dispatch and bodies: `case 4: break;` in start_left_event → EXACT 96/96;
`case 4: goto done;` in start_point_event → 182/182. Only works in range-mapped
dispatch (table/dense compare); every listed case in a compare-chain gets its own
cmpwi level — the trick cannot produce extra `b` edges there (set_err_msg stays +1).

View File

@@ -0,0 +1,94 @@
## drawTransferTitles — setTitleRowColors decode (session cont.)
- Helper signature: `setTitleRowColors(TextBox*, const ut::Color&, const ut::Color&)` — mangle `RCQ34nw4r2ut5Color` proven via orig .text symbol.
- Orig callsite: `Color c; writeFourFlagBytes(&c.r,...); Color a=c; Color b=c; setTitleRowColors(tb,a,b)` — 3 memberwise byte-copies (lbz/stb x4) from the same source.
- DECODE: orig's `ut::Color()` ctor was TRIVIAL in this TU — orig emits no WHITE-init `stw` anywhere in drawTransferTitles and no `__ct__Color` weak def. Gated via `IPL_SDMEMORY_TRIVIAL_COLOR_CTOR` -> `Color() {}`. Produces exact 451-insn instruction stream (structure identical; residual = stack slot numbering + sched + regalloc).
- WALL: weak-emission asymmetry — orig UND-references `__as__Color`/`__dt__PaneManager`/`__ct__PaneManager`/`__dt__Interface`/`__dt__scroller`/`__dt__Scroller`/`__dt__BScroller` (emitted weak in OTHER TUs); ours emits them as weak defs here -> extra .text bytes. Same family as iplGCWindow's weak-dtor backup wall.
- Result: drawTransferTitles 96.99 fuzzy, create 99.13 (1064/1064 reg-home tie). Unit stays NonMatching.
## Weak-emission asymmetry — decl-only gating (session cont. 2)
- Mechanism: orig's TU sees many gui/nw4r members DECL-ONLY while ours inlines/emits weak defs. Orig .o UND-references: EventHandler{onEvent,setManager,setLatestEventCtrlNo,getLatestEventCtrlNo}, scene::scroller{calc,is_busy,~scroller}, Pane::SetVisible, Pane::SetTranslate, ipl::gui::PaneManager{ctor,~}, Color::operator=(const Color&), iplSDChannelTitle_copyTitleRange.
- Orig emits the 3 handler vtables as unnamed .data objects (4 slots each: onEvent + 3 UND EventHandler slots).
- Gates applied: IPL_SDMEMORY_PANEMANAGER_DECL_ONLY (iplGuiManager.h ctor+~PaneManager), IPL_SDMEMORY_DECL_ONLY_GUI (GUIManager.h EventHandler 4 virtuals + Pane::SetVisible), IPL_SDMEMORY_DECL_ONLY_SCROLLER (iplFocusObject.h ~scroller+calc+is_busy), IPL_SDMEMORY_TRIVIAL_COLOR_CTOR (Color() trivial + operator=(const Color&) decl + ~Color undec'd, ~Rect undec'd).
- DECODE: setTitleLists calls free fn iplSDChannelTitle_copyTitleRange(&dst,&src) x2 — NOT operator= (53/53 insn-equal now).
- Result: extra weak defs 28 -> 4 (__dt__Scroller, __dt__Rect, getPane__PaneComponent, offPoint__Component — all unreferenced emission fossils; the getPane/offPoint CALLSITES are identical virtual dispatches vs orig). .text 21012 vs orig 20920 (+92B fossils).
- create regalloc rotation noise (r30 vs r31 home) after layout shift — count-equal family.
## Decl-only gating cont. — weak-emission fully resolved (session cont. 3)
- All 28 extra weak defs eliminated: additional gates = offPoint/getPane decl-only (GUIManager.h under IPL_SDMEMORY_DECL_ONLY_GUI — the virtual CALLSITES are byte-identical bctrl dispatches vs orig; only the weak DEF emission differed) + scroller ctor teardown (decl-only ~scroller/calc/is_busy kills __dt__Scroller fossil) + ~Rect undec kills __dt__Rect fossil + setTitleLists now calls iplSDChannelTitle_copyTitleRange (kills __as__TitleRange).
- .text now 20836 vs orig 20920 (-84B). .data relocs byte-identical incl. the 3 handler vtables at same offsets with UND slot targets = orig.
- REGRESSION to document: .data shrank 3144 -> 2996 (-148B). Orig's .data has a 148B ALL-ZERO tail after the last vtable (no relocs) — provenance unknown (link slack from split? a zero .data object our reconstruction lacks?). Pre-gate .data was coincidentally filled by the weak-vtable emission region (zero bytes + relocs). matched_data dropped 100 -> 5.98 as a side effect of removing the wrong vtables; .data fuzzy = 97.59.
- create fuzzy 98.07 (reg-homing rotation after layout shift), drawTransferTitles 96.99.
---
## Weak-emission asymmetry — decl-only gating (session cont. 2)
- Mechanism: orig's TU sees many gui/nw4r members DECL-ONLY while ours inlines/emits weak defs. Orig .o UND-references: EventHandler{onEvent,setManager,setLatestEventCtrlNo,getLatestEventCtrlNo}, scene::scroller{calc,is_busy,~scroller}, Pane::SetVisible, Pane::SetTranslate, ipl::gui::PaneManager{ctor,~}, Color::operator=(const Color&), iplSDChannelTitle_copyTitleRange.
- Orig emits the 3 handler vtables as unnamed .data objects (4 slots each: onEvent + 3 UND EventHandler slots).
- Gates applied: IPL_SDMEMORY_PANEMANAGER_DECL_ONLY (iplGuiManager.h ctor+~PaneManager), IPL_SDMEMORY_DECL_ONLY_GUI (GUIManager.h EventHandler 4 virtuals + Pane::SetVisible), IPL_SDMEMORY_DECL_ONLY_SCROLLER (iplFocusObject.h ~scroller+calc+is_busy), IPL_SDMEMORY_TRIVIAL_COLOR_CTOR (Color() trivial + operator=(const Color&) decl + ~Color undec'd, ~Rect undec'd).
- DECODE: setTitleLists calls free fn iplSDChannelTitle_copyTitleRange(&dst,&src) x2 — NOT operator= (53/53 insn-equal now).
- Result: extra weak defs 28 -> 4 (__dt__Scroller, __dt__Rect, getPane__PaneComponent, offPoint__Component — all unreferenced emission fossils; the getPane/offPoint CALLSITES are identical virtual dispatches vs orig). .text 21012 vs orig 20920 (+92B fossils).
- create regalloc rotation noise (r30 vs r31 home) after layout shift — count-equal family.
## Decl-only gating cont. — weak-emission fully resolved (session cont. 3)
- All 28 extra weak defs eliminated: additional gates = offPoint/getPane decl-only (GUIManager.h under IPL_SDMEMORY_DECL_ONLY_GUI — the virtual CALLSITES are byte-identical bctrl dispatches vs orig; only the weak DEF emission differed) + scroller ctor teardown (decl-only ~scroller/calc/is_busy kills __dt__Scroller fossil) + ~Rect undec kills __dt__Rect fossil + setTitleLists now calls iplSDChannelTitle_copyTitleRange (kills __as__TitleRange).
- .text now 20836 vs orig 20920 (-84B). .data relocs byte-identical incl. the 3 handler vtables at same offsets with UND slot targets = orig.
- REGRESSION to document: .data shrank 3144 -> 2996 (-148B). Orig's .data has a 148B ALL-ZERO tail after the last vtable (no relocs) — provenance unknown (link slack from split? a zero .data object our reconstruction lacks?). Pre-gate .data was coincidentally filled by the weak-vtable emission region (zero bytes + relocs). matched_data dropped 100 -> 5.98 as a side effect of removing the wrong vtables; .data fuzzy = 97.59.
- create fuzzy 98.07 (reg-homing rotation after layout shift), drawTransferTitles 96.99.
## Trailing .data zeros (148B) — unrecreateable
Orig `.data` ends at 0xc48; ours at 0xbb4 — ours is a strict byte-identical prefix.
The missing 148B is an all-zero object dtk merged into `lbl_8165683C` (0xac = the
0x18 ControlPaneEventHandler vtable + 148B trailing zeros), emitted AFTER the
three event-handler vtables, unreferenced, no relocs.
Micro-test results (mwcceppc 3.0a5.2): EVERY all-zero decl goes to .bss —
`static u32 a[37] = {0}`, `= {}`, `static char b[148] = ""`, POD struct zero-init,
`__declspec(section ".data")`, `#pragma section ".data"` — all .bss.
So the zeros cannot be a standalone source-level object. Two remaining theories:
(1) pure-pad vtable slots (MCM precedent) — contradicted by `new
ControlPaneEventHandler` compiling in the same TU (abstract can't instantiate);
(2) same wall as MyTiLetterForm's "six trailing target zeros were not recreated
with padding" — an accepted tail artifact.
## Trailing .data zeros SOLVED — deduplicated weak vtables
The 148B all-zero tail = three weak vtables emitted in this TU then deduplicated
at link (dtk extraction shows zeros+no relocs, consistent with the MyTiInputForm
and iplSetting findings in data-d3/data-d4):
__vt__ipl::gui::PaneManager 0x5c (bb4..c10)
__vt__gui::EventHandler 0x18 (c10..c28)
__vt__gui::Interface 0x20 (c28..c48)
Earlier decl-only gates (IPL_SDMEMORY_DECL_ONLY_GUI /
IPL_SDMEMORY_PANEMANAGER_DECL_ONLY / IPL_SDMEMORY_DECL_ONLY_SCROLLER) suppressed
the weak emission; removing them emits the vtables in the same tail order and
.data becomes byte-identical (3144B, data 100%). Lesson: an orig data region of
zeros with no relocs after vtables = deduplicated weak vtable, NOT an all-zero
object — .bss-promotion analysis was the wrong frame.
## drawTransferTitles: copy-temp decode (451/451 insn-equal)
Orig's callsite copies the built Color into THREE disjoint stack slots per call
(4 lbz + 12 stb) — decoded as `Color(x)` copy-ctor temporaries:
`setTitleRowColors(titleText, Color(c), Color(c))` reproduces all three
materializations (MWCC emits a third dead temp in the arg area). The callee
still calls out-of-line `__as__Color` for its member copies — consistent with
decl-only `operator=(const Color&)` + inlined implicit copy-ctor in this TU.
Direct pass (`setTitleRowColors(t, c, c)`) removes 32 insns; named copies emit
`bl __as__` instead of memberwise bytes — neither matches. Remaining residual:
frame +0x20 slot layout + reg-web coloring (insn-equal tie).
## enqueue*/collect member-call conversion (post-rebase cleanup)
Removed the six `extern "C" bool iplSDChannelSelect_813Dxxxx` address-suffixed
stubs (banned identifier style). All 10 call sites now call real private member
fns via `mpSDChannelSelect->` with `friend class SDMemory` added to
iplSDChannelSelect.h (orig must have granted SDMemory access to the private
enqueue* members). Arg semantics decoded from callee impls: enqueue*Notice
page/index params are the u64 titleId halves (caller passes ((u32*)&entry)[0/1]
for the two-u32-arg callees; the raw u64 for enqueueStateNotice(u64,u32) which
emits pad-r4 + u64 in r5:r6 exactly as orig). The arg1 = this+i*8 pointer for
the 3-u32 callees is reproduced via `(u32)&mTitleIds[i] - offsetof(SDMemory,
mTitleIds)`. All call sites byte-identical after conversion.

View File

@@ -1,99 +0,0 @@
# linkgap-audio: eggAudioExpMgr — Equivalent-but-unlinkable analysis
Branch: agent/w1005/linkgap-audio. Unit stays **Equivalent**.
## Status
Per-symbol match is complete: all 8 .text fns + the 0x78 vtable match orig
(fuzzy 100.0 code+data, every fn individually 100). The .o emit set now
matches orig's exactly (see gates below).
**Remaining linker-visible diff: secondary-vt thunk emit order.**
- orig `.text` tail: `[@52@__dt__SimpleAudioMgrWithFx @+1fc][@52@calc__SimpleAudioMgr @+204]`
- mine: `[@52@calc @+1fc][@52@__dt__ @+204]` (swapped)
Both thunks are byte-identical bodies, so objdiff fn-level fuzzy is 100 for
each — but the .o's symbol order carries into the linked DOL, so flipping
Matching fails the DOL hash. This is the *only* blocker.
## Emit-set gates (kept)
`EGG_AUDIO_EXPMGR_NO_INLINE_VIRTUALS` is defined at the top of
eggAudioExpMgr.cpp and gates these headers (TU-local: other TUs are
unaffected since the macro is only defined in this .cpp):
- `libs/EGG/include/egg/core/eggAudioArcPlayerMgr.h` — 9 ArcPlayer virtuals
(openArchive/openDvd/openNand/setupMemory/close/loadGroup/startSound/
prepareSound/holdSound families) -> non-inline decls for this TU.
- `libs/EGG/include/egg/core/eggAudioHeapMgr.h` — SoundHeapMgr
`loadState`/`getCurrentLevel` -> decls.
- `libs/NW4R/include/nw4r/ut/Lock.h` — `detail::AutoLock<OSMutex>` ct/dt ->
decls.
Without the gates MWCC weak-emits 10 extra inline fns (ArcPlayer
hold/prepare/startSound x9 + NonCopyable/AutoLock/SoundHeap helpers) that
orig's .o does not contain. With gates the emit set is byte-for-byte orig:
same 8 .text syms at the same offsets/sizes + `__vt__` at .data+0x0/0x78.
Residual cosmetic diff (does not affect the link): orig's
`__ct__AudioFxMgrArg` and `SaveState` are STB_GLOBAL; mine STB_WEAK.
Both dedup/resolve identically at link.
## Thunk-order mechanism (decoded)
Surveyed every orig .o with >=2 `@N@` adjustor thunks; my compiler
reproduces orig's order in ALL of them (iplSound, iplGCWindow,
iplMemoryCard, MyTiBg, tiCellPhone, iplBoard, ...) EXCEPT this unit.
Best-fit model for orig's ordering: thunks emit in the order the
*overriding virtuals are declared in the most-derived class*, with
thunks for inherited overrides emitted after the class's own declared
virtuals:
- SimpleAudioMgrWithFx declares `[~dtor, initialize]` -> own dtor thunk
first, then the inherited `SimpleAudioMgr::calc` thunk -> [dt][calc] = orig
- ipl::snd::System declares `calc` before `~System` -> [calc][dt] = orig
- iplMemoryCard `[onTrig,onLeft,onPoint,~dt]` -> that order = orig
(NOT .text def order, which is [onPoint,onLeft,onTrig])
- tiCellPhone `[~dt,updateInput,calc,draw,init]` = orig
My build instead emits thunks in *reverse secondary-vt slot order*
(the .rela.data stream is written backward — observable on every unit;
extraction .os sort relocs so orig's real write order is unknowable).
The two orders coincide for every surveyed unit except this one — it is
the only unit where a derived-declared dtor and an ancestor-declared
override (`SimpleAudioMgr::calc`, declared in the base) disagree.
## What flips it (and why it was vetoed)
Adding ANY second polymorphic class whose vt is built in this TU and
*shares* the secondary base flips the pair to orig's [dt][calc]:
verified with `class Sample : public SimpleAudioMgrWithFx` (emit
`[dt_WithFx][calc][dt_Sample]` — the parent's set comes out in forward
slot order once WithFx's vt is built as a parent). An unrelated
polymorphic class (no shared base) does NOT flip it; a declared-but-
never-defined derived class does NOT flip it (vt never built).
Mechanistically: orig's TU very likely caused WithFx's vt to be built
*as a parent* (a second derived class whose vt anchored elsewhere —
e.g. EGG's real `ipl::snd::System`-style class compiled in another TU
is the only known retail derivee), which emits the parent's thunks in
forward slot order. Any such class is invented here -> owner veto
(not in retail symbols). Orig's .o emits exactly one vtable, so no
second polymorphic class was ODR-emitted in the real TU either — the
trigger lived in code we cannot see (or is a compiler-version artifact).
## Tried and rejected (all still [calc][dt])
- dtor declared after `initialize` in the class decl
- dtor DEFINITION moved before/after ctor in the .cpp
- unrelated polymorphic class (no shared secondary base)
- derived class declared but never defined (no vt build)
## What would close it
A legitimate source construct that causes a second vt-build sharing
the ArcPlayer secondary vtable in this TU, or a linker-level symbol
ordering mechanism (none exists: symbols.txt is label-only, linker lays
out .text in .o symbol order). Until then: Equivalent.

View File

@@ -1,31 +0,0 @@
## WADBackupEx decode (this leaf session)
- file_done region: orig CFG has inner `goto file_done` edges landing PAST a `flags[2]==1`
check (goto-specialized entries). Faithful source = label inside the flags-if:
`if (hdr->flags[2]==1) { file_done: if (fileOpened) NANDClose(&savedFile); }`.
Orig folds the outer if to a dead lbz+cmplwi fossil (no bne) via edge-prop that
fileOpened==0 on the flags!=1 path; our MWCC emits the bne (+4B).
- result=0 at file-loop head: orig keeps ZERO in dedicated callee reg (r31);
ours spills an extra zero to stack slot (extra stw+lwz). keep-vs-remat wall.
- Several base+offset addi folds (0x340+8 vs 0x348 etc.) = documented fold family.
- GetBlocks vestigial NULL ptr locals + conditional frees = orig-faithful decode (solved).
- DVDExForBS `if (header.contentSize != 0)` dead-check fossil = conditional-assign
overwritten by later unconditional assign (solved).
## WADBackupEx decode round 2 (fossil + ptr web)
- Dead-compare fossil SOLVED: `if (A) { X = v; } ... X = v;` — conditional assign whose
store is killed by a later unconditional assign → MWCC keeps lbz+cmplwi, drops bne.
Applied: `if (flags[2]==1) { fileFd = -1; } if (fileOpened) NANDClose; fileFd = -1;`
reproduces orig's exact `lbz;cmplwi;lwz;cmpwi;beq` sequence (-8B wall gone).
- file_done label placement: label sits BEFORE the flags-if (inner gotos land past it,
outer bne/beq edges land on it) — `file_done:` above the fossil if.
- result=0 redundant-store dedup inside `if (path==0)` arm: orig omits it (already 0).
- &headerBlock member-address chains: orig emits `addi r3,r1,0x340; addi r3,r3,+off`
(remat base + member offset) for deviceId/cidx/deviceMac args. Best source form =
`WADBackupHeader* headerBlockHeader = &headerBlock.header` used for the three
member args → `addi r3,r18,+off` (structurally right; r18-kept vs orig remat =
keep-vs-remat wall). `(&x)->y` and `x.y` fold to absolute; per-site ptr assigns
fold remat+offset — all worse.
- Remaining diffs (all documented keep-vs-remat/web-coloring): `li 0;stw` vs `li;mr`
for result head store, `addi r1,0x340` remats vs r18/mr, stw 0x814/lwz 0x80c spill
webs, `li -1` fileFd slot, addi+0x80 loop-IV position, `addi r1,0x3c0` remat order.