Compare commits
5 Commits
agent/w092
...
agent/fix/
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d5a629567 | ||
|
|
22e6bbed24 | ||
|
|
f49f337c6b | ||
|
|
c3cad09b66 | ||
|
|
11dd7f505a |
@@ -897,13 +897,16 @@ src/scene/setting/iplRakuRakuThread.cpp:
|
||||
.sbss start:0x81698C60 end:0x81698C70
|
||||
|
||||
src/scene/setting/AOSS.c:
|
||||
.bss start:0x810BDEF8 end:0x810BECA0
|
||||
.bss start:0x810BDEF8 end:0x810BE838
|
||||
.text start:0x813FE27C end:0x814021BC
|
||||
.data start:0x81657C48 end:0x81657DB8
|
||||
.sdata2 start:0x81694C78 end:0x81694C80
|
||||
.sdata start:0x81697200 end:0x81697218
|
||||
.sbss start:0x81698C70 end:0x81698C90
|
||||
|
||||
src/scene/setting/AOSSData.c:
|
||||
.bss start:0x810BE838 end:0x810BECA0
|
||||
|
||||
src/scene/setting/ATERM.c:
|
||||
.bss start:0x810BECA0 end:0x810C0C80
|
||||
.text start:0x814021BC end:0x81406CC0
|
||||
|
||||
@@ -93,8 +93,8 @@ sRakuMsgQueue = .bss:0x810BDED4; // type:object size:0x20
|
||||
AOSS_810BDEF8 = .bss:0x810BDEF8; // type:object size:0x20 data:4byte
|
||||
AOSS_810BDF18 = .bss:0x810BDF18; // type:object size:0x6A0
|
||||
AOSS_810BE5B8 = .bss:0x810BE5B8; // type:object size:0x280
|
||||
AOSS_810BE838 = .bss:0x810BE838; // type:object size:0x68
|
||||
AOSS_810BE8A0 = .bss:0x810BE8A0; // type:object size:0x400
|
||||
s_packetState = .bss:0x810BE838; // type:object size:0x68
|
||||
s_crcTable = .bss:0x810BE8A0; // type:object size:0x400
|
||||
gAtermIpConfig = .bss:0x810BECA0; // type:object size:0x7C4 data:4byte
|
||||
gAtermIfConfig = .bss:0x810BF464; // type:object size:0x15E
|
||||
ATERM_810BF5C4 = .bss:0x810BF5C4; // type:object size:0x24
|
||||
|
||||
@@ -678,7 +678,7 @@ config.libs = [
|
||||
Object(Matching, "utility/iplThread.cpp"),
|
||||
Object(Matching, "utility/iplMessageBase.cpp"),
|
||||
Object(Matching, "utility/iplJpegDecoder.cpp"),
|
||||
Object(NonMatching, "utility/iplESMisc.cpp"),
|
||||
Object(Matching, "utility/iplESMisc.cpp"),
|
||||
Object(Matching, "utility/iplCSFlags.cpp"),
|
||||
]
|
||||
),
|
||||
@@ -879,6 +879,7 @@ config.libs = [
|
||||
Object(NonMatching, "scene/setting/AOSSLink.c"),
|
||||
Object(Matching, "scene/setting/iplRakuRakuThread.cpp"),
|
||||
Object(NonMatching, "scene/setting/AOSS.c", extra_cflags=["-O4,p", "-inline off"]),
|
||||
Object(Matching, "scene/setting/AOSSData.c"),
|
||||
Object(NonMatching, "scene/setting/ATERM.c", extra_cflags=["-O4,p", "-inline on"]),
|
||||
]
|
||||
),
|
||||
@@ -917,7 +918,7 @@ config.libs = [
|
||||
Object(Matching, "keyboard/tiSignWindow.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(NonMatching, "keyboard/tiString.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(NonMatching, "keyboard/tiAtokString.cpp", extra_cflags=["-O4,p"]), # for 4.3J
|
||||
Object(NonMatching, "keyboard/tiZiString.cpp", extra_cflags=["-O4,p"]), # for 4.3U and 4.3E
|
||||
Object(Matching, "keyboard/tiZiString.cpp", extra_cflags=["-O4,p"]), # for 4.3U and 4.3E
|
||||
Object(Matching, "keyboard/tiTextDrawer.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(Matching, "keyboard/tiNw4rManager.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(Matching, "keyboard/tiKeyboard.cpp", extra_cflags=["-O4,p"]),
|
||||
@@ -1854,7 +1855,7 @@ config.libs = [
|
||||
Object(Matching, "fa/kernel/pfk_api.c"),
|
||||
|
||||
Object(Matching, "fa/driver/nand_drv.c"),
|
||||
Object(NonMatching, "fa/driver/sd_drv.c"),
|
||||
Object(Matching, "fa/driver/sd_drv.c"),
|
||||
Object(Matching, "fa/driver/pfd_cmn.c"),
|
||||
Object(Matching, "fa/driver/msc_drv.c"),
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Assembly inventory
|
||||
|
||||
4.3U, 2026-10-05. 167 functions contain 169 assembly
|
||||
bodies/blocks: 162 ORIGINAL functions and 5 PLACEHOLDER functions.
|
||||
4.3U, 2026-10-08. 166 functions contain 168 assembly
|
||||
bodies/blocks: 162 ORIGINAL functions and 4 PLACEHOLDER functions.
|
||||
|
||||
Run `python3 tools/check_asm_inventory.py`. Completion requires exit 0, complete
|
||||
coverage and zero placeholders. The checker also rejects stale/duplicate rows,
|
||||
@@ -186,8 +186,7 @@ found. Historical logs absent from this branch have commit IDs and excerpts in
|
||||
| `src/BS2/BS2Start.c` | `__start` | ORIGINAL | Runs before the C stack and ABI registers exist; constructs the initial stack. |
|
||||
| `src/BS2/BS2Start.c` | `__init_registers` | ORIGINAL | Initializes GPRs, r1, r2, and r13 for the C runtime. |
|
||||
| `src/scene/nakamuraTest/gamespy/common/gsPlatformUtil.c` | `GetTicks` | ORIGINAL | Inactive PS2 branch reads the CP0 Count register with mfc0 $9. |
|
||||
| `src/system/iplChannelManager.cpp` | `getTitleName__Q33ipl7channel7ManagerCFiii` | PLACEHOLDER | Channel-name copying; best C 99.57746%, 71/71 instructions, four address-order differences, [rx17][rx17]. |
|
||||
| `src/system/iplSaveDataManager.cpp` | `Manager::hasChannel` | PLACEHOLDER | Title-slot search; best C 98.87324%, 71/71 instructions, 14 mask/base register differences, [rx30][rx30]. |
|
||||
| `src/system/iplSaveDataManager.cpp` | `Manager::hasChannel` | PLACEHOLDER | Title-slot search; best C 71/71 instructions, 12 mask/base register differences, [sol-ph1](../tools/decomp-assist/sol-ph1.attempts.md). |
|
||||
| `src/system/iplSystem.cpp` | `System::warning_run` | PLACEHOLDER | Scene/render calls; best C 98.66477%, 176/176 instructions, 47 saved-register differences, [rx17][rx17]. |
|
||||
| `src/system/rvl_dec.c` | `Rvl_decode` | ORIGINAL | Direct beq decoder entries preserve r3/r4 and LR; lis/ori builds the format signatures. |
|
||||
| `src/system/rvl_dec.c` | `Rvl_decode_szs` | ORIGINAL | Original SZS decoder convention: nofralloc, r0 retains output length, fixed r3..r10/CTR byte-copy pipeline. |
|
||||
|
||||
@@ -20,6 +20,19 @@ typedef struct AOSSInitInput {
|
||||
u8 result[0x154];
|
||||
} AOSSInitInput;
|
||||
|
||||
typedef struct AOSSKeyMaterial {
|
||||
u8 nonce[2];
|
||||
u8 address[8];
|
||||
} AOSSKeyMaterial;
|
||||
|
||||
typedef struct AOSSPacketState {
|
||||
AOSSKeyMaterial key;
|
||||
u8 payload[0x5e];
|
||||
} AOSSPacketState;
|
||||
|
||||
extern AOSSPacketState s_packetState;
|
||||
extern u32 s_crcTable[0x100];
|
||||
|
||||
int AOSSi_Init(AOSSInitInput* input);
|
||||
int AOSS_Init_old(AOSSInitInput* input);
|
||||
void* AOSSi_Alloc(u32 size);
|
||||
|
||||
@@ -29,13 +29,13 @@ typedef struct PFD_SDDRV_FORMAT_DATA {
|
||||
u32 total_sectors;
|
||||
} PFD_SDDRV_FORMAT_DATA;
|
||||
|
||||
PFD_SDDRV_INFO g_pfd_sddrv_info;
|
||||
PFD_SDDEV_STORAGE g_pfd_sddev;
|
||||
volatile PFD_SDDRV_INFO g_pfd_sddrv_info;
|
||||
PFD_SDDEV_STORAGE g_pfd_sddev ATTRIBUTE_ALIGN(32);
|
||||
u8 g_pfd_sddrv_buf[0x200];
|
||||
|
||||
static FAInsertCallback g_attach_func = 0;
|
||||
static FAEjectCallback g_detach_func = 0;
|
||||
u32 g_event;
|
||||
u32 g_event ATTRIBUTE_ALIGN(32);
|
||||
|
||||
extern u8 pfd_get_media_drv_char(FADisk*, s8*, u32);
|
||||
extern void pdm_disk_notify_media_insert(FADisk*);
|
||||
@@ -243,39 +243,23 @@ static inline void clear_mount_flag(void) {
|
||||
g_pfd_sddrv_info.flags &= ~2;
|
||||
}
|
||||
|
||||
static inline u32 pfd_sddrv_flags(const PFD_SDDRV_INFO* info) {
|
||||
return info->flags;
|
||||
}
|
||||
|
||||
static inline SDDev* pfd_sddrv_device(const PFD_SDDRV_INFO* info) {
|
||||
return info->device;
|
||||
}
|
||||
|
||||
static inline FADisk* pfd_sddrv_disk(const PFD_SDDRV_INFO* info) {
|
||||
return info->disk;
|
||||
}
|
||||
|
||||
static inline s8 pfd_sddrv_drive(const PFD_SDDRV_INFO* info) {
|
||||
return info->drive;
|
||||
}
|
||||
|
||||
s32 pfd_st_inter_callback(s32 status, void* data) {
|
||||
s32 result;
|
||||
|
||||
if ((status & 1) != 1) {
|
||||
return 0;
|
||||
}
|
||||
if (pfd_sddrv_device(&g_pfd_sddrv_info) != 0) {
|
||||
if (g_pfd_sddrv_info.device != 0) {
|
||||
g_event = 2;
|
||||
result = ISD_RegisterDeviceIntrHandler(g_pfd_sddrv_info.device, (SDDevIntrCallback)pfd_st_removal_callback, &g_event);
|
||||
if (result != 0) {
|
||||
OSReport("ERR:Failed to regist intr handler. pfd_st_inter_callback()\n");
|
||||
}
|
||||
}
|
||||
if (pfd_sddrv_disk(&g_pfd_sddrv_info) != 0) {
|
||||
if (g_pfd_sddrv_info.disk != 0) {
|
||||
update_media_drive();
|
||||
pdm_disk_notify_media_insert(g_pfd_sddrv_info.disk);
|
||||
if (pfd_sddrv_drive(&g_pfd_sddrv_info) != 0 && g_attach_func != 0) {
|
||||
if (g_pfd_sddrv_info.drive != 0 && g_attach_func != 0) {
|
||||
g_attach_func(g_pfd_sddrv_info.drive);
|
||||
}
|
||||
}
|
||||
@@ -291,36 +275,39 @@ s32 pfd_st_removal_callback(s32 status, void* data) {
|
||||
return 0;
|
||||
}
|
||||
g_pfd_sddrv_info.media_inserted = 0;
|
||||
if (g_pfd_sddrv_info.media_inserted == 0 && pfd_sddrv_device(&g_pfd_sddrv_info) != 0) {
|
||||
if (g_pfd_sddrv_info.device != 0) {
|
||||
g_event = 1;
|
||||
result = ISD_RegisterDeviceIntrHandler(g_pfd_sddrv_info.device, (SDDevIntrCallback)pfd_st_inter_callback, &g_event);
|
||||
if (result != 0) {
|
||||
OSReport("ERR:Failed to regist intr handler. pfd_st_removal_callback()\n");
|
||||
}
|
||||
}
|
||||
if (pfd_sddrv_disk(&g_pfd_sddrv_info) != 0) {
|
||||
if (g_pfd_sddrv_info.disk != 0) {
|
||||
update_media_drive();
|
||||
pdm_disk_notify_media_eject(g_pfd_sddrv_info.disk);
|
||||
if (pfd_sddrv_drive(&g_pfd_sddrv_info) != 0 && g_detach_func != 0) {
|
||||
if (g_pfd_sddrv_info.drive != 0 && g_detach_func != 0) {
|
||||
g_detach_func(g_pfd_sddrv_info.drive);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
#pragma push
|
||||
#pragma ppc_iro_level 0
|
||||
s32 pfd_sddrv_init(FADisk* disk) {
|
||||
s32 sd_result;
|
||||
SDDev* device;
|
||||
u32 status;
|
||||
|
||||
if (disk == 0) {
|
||||
if (disk == NULL) {
|
||||
return -30;
|
||||
}
|
||||
if ((pfd_sddrv_flags(&g_pfd_sddrv_info) & 1) != 0) {
|
||||
if ((g_pfd_sddrv_info.flags & 1) != 0) {
|
||||
OSReport("INFO SD Card driver is already initialize. pfd_sddrv_init()\n");
|
||||
if (disk != g_pfd_sddrv_info.disk) {
|
||||
return -44;
|
||||
}
|
||||
return 0;
|
||||
} else {
|
||||
if ((g_pfd_sddrv_info.flags & 4) == 0) {
|
||||
g_pfd_sddrv_info.bytes_per_sector = 0x200;
|
||||
@@ -372,6 +359,7 @@ s32 pfd_sddrv_init(FADisk* disk) {
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
s32 pfd_sddrv_mount(FADisk* disk) {
|
||||
s32 result;
|
||||
@@ -473,7 +461,7 @@ s32 pfd_sddrv_unmount(FADisk* disk) {
|
||||
if (disk == 0) {
|
||||
return -30;
|
||||
}
|
||||
if ((pfd_sddrv_flags(&g_pfd_sddrv_info) & 2) != 0) {
|
||||
if ((g_pfd_sddrv_info.flags & 2) != 0) {
|
||||
clear_mount_flag();
|
||||
}
|
||||
return 0;
|
||||
@@ -485,7 +473,7 @@ s32 pfd_sddrv_finalize(FADisk* disk) {
|
||||
if (disk == 0) {
|
||||
return -30;
|
||||
}
|
||||
if ((pfd_sddrv_flags(&g_pfd_sddrv_info) & 2) != 0) {
|
||||
if ((g_pfd_sddrv_info.flags & 2) != 0) {
|
||||
clear_mount_flag();
|
||||
}
|
||||
if ((g_pfd_sddrv_info.flags & 1) != 0) {
|
||||
@@ -1371,22 +1359,24 @@ s32 pfd_sddrv_store_fat32_bpb_buf(PFD_SDDRV_FORMAT_DATA* format_data, u8* sector
|
||||
|
||||
static s32 pfd_sddrv_store_fat32_reserved_buf(u8* sector_buffer) {
|
||||
PFD_SDDRV_RESERVED_BOOT_SECTOR* reserved_boot_sector;
|
||||
s32 result = -30;
|
||||
|
||||
if (sector_buffer != 0) {
|
||||
pf_memset(sector_buffer, 0, 0x200);
|
||||
reserved_boot_sector = (PFD_SDDRV_RESERVED_BOOT_SECTOR*)sector_buffer;
|
||||
if (((u32)reserved_boot_sector->signature.bytes & 1) != 0) {
|
||||
reserved_boot_sector->signature.bytes[0] = 0x55;
|
||||
reserved_boot_sector->signature.bytes[1] = 0xaa;
|
||||
} else {
|
||||
reserved_boot_sector->signature.value = 0x55aa;
|
||||
}
|
||||
result = 0;
|
||||
pf_memset(sector_buffer, 0, 0x200);
|
||||
reserved_boot_sector = (PFD_SDDRV_RESERVED_BOOT_SECTOR*)sector_buffer;
|
||||
if (((u32)reserved_boot_sector->signature.bytes & 1) != 0) {
|
||||
reserved_boot_sector->signature.bytes[0] = 0x55;
|
||||
reserved_boot_sector->signature.bytes[1] = 0xaa;
|
||||
} else {
|
||||
reserved_boot_sector->signature.value = 0x55aa;
|
||||
}
|
||||
return result;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline s32 pfd_sddrv_write_sector(u32 sector) {
|
||||
return ISD_WriteBlock(g_pfd_sddrv_info.device, sector, g_pfd_sddrv_buf, 1);
|
||||
}
|
||||
|
||||
#pragma push
|
||||
#pragma ppc_iro_level 0
|
||||
s32 pfd_sddrv_build_fat32_mbr_bpb(u32 total_sectors) {
|
||||
PFD_SDDRV_FORMAT_DATA format_data;
|
||||
s32 result;
|
||||
@@ -1408,12 +1398,12 @@ s32 pfd_sddrv_build_fat32_mbr_bpb(u32 total_sectors) {
|
||||
if (g_pfd_sddrv_info.media_ejected != 0) {
|
||||
return -33;
|
||||
}
|
||||
result = ISD_WriteBlock(g_pfd_sddrv_info.device, format_data.partition_start_sector, g_pfd_sddrv_buf, 1);
|
||||
result = pfd_sddrv_write_sector(format_data.partition_start_sector);
|
||||
if (result != 0) {
|
||||
OSReport("ERR Failed to write BPB fields. ISD_WriteBlock()\n");
|
||||
return -36;
|
||||
}
|
||||
result = ISD_WriteBlock(g_pfd_sddrv_info.device, format_data.partition_start_sector + 6, g_pfd_sddrv_buf, 1);
|
||||
result = pfd_sddrv_write_sector(format_data.partition_start_sector + 6);
|
||||
if (result != 0) {
|
||||
OSReport("ERR Failed to write BPB fields. ISD_WriteBlock()\n");
|
||||
return -36;
|
||||
@@ -1429,12 +1419,12 @@ s32 pfd_sddrv_build_fat32_mbr_bpb(u32 total_sectors) {
|
||||
if (g_pfd_sddrv_info.media_ejected != 0) {
|
||||
return -33;
|
||||
}
|
||||
result = ISD_WriteBlock(g_pfd_sddrv_info.device, format_data.partition_start_sector + 1, g_pfd_sddrv_buf, 1);
|
||||
result = pfd_sddrv_write_sector(format_data.partition_start_sector + 1);
|
||||
if (result != 0) {
|
||||
OSReport("ERR Failed to write BPB fields. ISD_WriteBlock()\n");
|
||||
return -36;
|
||||
}
|
||||
result = ISD_WriteBlock(g_pfd_sddrv_info.device, format_data.partition_start_sector + 7, g_pfd_sddrv_buf, 1);
|
||||
result = pfd_sddrv_write_sector(format_data.partition_start_sector + 7);
|
||||
if (result != 0) {
|
||||
OSReport("ERR Failed to write BPB fields. ISD_WriteBlock()\n");
|
||||
return -36;
|
||||
@@ -1451,12 +1441,12 @@ s32 pfd_sddrv_build_fat32_mbr_bpb(u32 total_sectors) {
|
||||
if (g_pfd_sddrv_info.media_ejected != 0) {
|
||||
return -33;
|
||||
}
|
||||
result = ISD_WriteBlock(g_pfd_sddrv_info.device, format_data.partition_start_sector + 2, g_pfd_sddrv_buf, 1);
|
||||
result = pfd_sddrv_write_sector(format_data.partition_start_sector + 2);
|
||||
if (result != 0) {
|
||||
OSReport("ERR Failed to write BPB fields. ISD_WriteBlock()\n");
|
||||
return -36;
|
||||
}
|
||||
result = ISD_WriteBlock(g_pfd_sddrv_info.device, format_data.partition_start_sector + 8, g_pfd_sddrv_buf, 1);
|
||||
result = pfd_sddrv_write_sector(format_data.partition_start_sector + 8);
|
||||
if (result != 0) {
|
||||
OSReport("ERR Failed to write BPB fields. ISD_WriteBlock()\n");
|
||||
return -36;
|
||||
@@ -1472,13 +1462,14 @@ s32 pfd_sddrv_build_fat32_mbr_bpb(u32 total_sectors) {
|
||||
if (g_pfd_sddrv_info.media_ejected != 0) {
|
||||
return -33;
|
||||
}
|
||||
result = ISD_WriteBlock(g_pfd_sddrv_info.device, 0, g_pfd_sddrv_buf, 1);
|
||||
result = pfd_sddrv_write_sector(0);
|
||||
if (result != 0) {
|
||||
OSReport("ERR Failed to write MBR fields. ISD_WriteBlock()\n");
|
||||
return -36;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
s32 pfd_sddrv_full_format(void) {
|
||||
FADiskInfo geometry;
|
||||
|
||||
@@ -295,13 +295,40 @@ confirmLetters:
|
||||
update();
|
||||
}
|
||||
|
||||
static inline void CopyWordSuffix(u16* word, u32 length) {
|
||||
u32 wordLength;
|
||||
u32 copied;
|
||||
wordLength = wcslen((wchar_t*)word) & 0xff;
|
||||
for (copied = 0; copied < length; ++copied) {
|
||||
word[copied] = word[(wordLength - length) + copied];
|
||||
}
|
||||
word[copied] = 0;
|
||||
}
|
||||
|
||||
void WithZi::update() {
|
||||
u16* koreanOutput;
|
||||
u16* keyOutput;
|
||||
wchar_t* candidateOutput;
|
||||
u16* destination;
|
||||
u32 copyLength;
|
||||
u16 keyCharacter;
|
||||
u16* wordOutput;
|
||||
u16* letter;
|
||||
u32 count;
|
||||
s32 elementCount;
|
||||
u16* source;
|
||||
s32 keyIndex;
|
||||
s32 position;
|
||||
s32 candidateLength;
|
||||
u16 character;
|
||||
s32 index;
|
||||
|
||||
if (mbDictionaryOpen == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
mSelectedCandidate = 0;
|
||||
s32 elementCount = static_cast<u16>(setElementBuffer());
|
||||
elementCount = static_cast<u16>(setElementBuffer());
|
||||
mSearch.language = getPredictLanguage();
|
||||
mSearch.subLanguage = 7;
|
||||
mSearch.getMode = 0;
|
||||
@@ -339,24 +366,23 @@ void WithZi::update() {
|
||||
CandidatedWord[0] = L'>';
|
||||
CandidatedWord[1] = 0;
|
||||
mCandidateCount = 1;
|
||||
u16* output = CandidatedWord + 0x40;
|
||||
for (s32 keyIndex = 1; keyIndex < 16; ++keyIndex) {
|
||||
u16 candidate = static_cast<keyboard::cellphonetype::PaneNameToCharCode*>(mpHoldingKey)->wc[keyIndex - 1];
|
||||
if (candidate != 0) {
|
||||
output[0] = candidate;
|
||||
output[1] = 0;
|
||||
keyOutput = CandidatedWord;
|
||||
for (keyIndex = 1; keyIndex < 16; ++keyIndex) {
|
||||
keyCharacter = static_cast<keyboard::cellphonetype::PaneNameToCharCode*>(mpHoldingKey)->wc[keyIndex - 1];
|
||||
if (keyCharacter != 0) {
|
||||
keyOutput[keyIndex * 0x40] = keyCharacter;
|
||||
keyOutput[keyIndex * 0x40 + 1] = 0;
|
||||
++mCandidateCount;
|
||||
}
|
||||
output += 0x40;
|
||||
}
|
||||
EZTXGetCandidates(&mSearch, mpDictionaryWork);
|
||||
}
|
||||
else {
|
||||
memcpy(PredictionBuffer, CandidatesBuffer, 0x200);
|
||||
ChangeDictionaryLanguage(getPredictLanguage());
|
||||
u32 count = EZTXGetCandidates(&mSearch, mpDictionaryWork) & 0xff;
|
||||
count = EZTXGetCandidates(&mSearch, mpDictionaryWork) & 0xff;
|
||||
if (getPredictLanguage() == ZI8_LANG_ZH && count == 0x61) {
|
||||
wchar_t* candidateOutput = reinterpret_cast<wchar_t*>(PredictionBuffer);
|
||||
candidateOutput = reinterpret_cast<wchar_t*>(PredictionBuffer);
|
||||
mSearch.firstCandidate = 0x61;
|
||||
mSearch.candidates = candidateOutput + 0xC2;
|
||||
mSearch.maxCandidates = 199;
|
||||
@@ -369,13 +395,8 @@ void WithZi::update() {
|
||||
}
|
||||
if (getPredictLanguage() == ZI8_LANG_ZH && mbContextChanged != 0 &&
|
||||
(mbContextChanged = 0, mSearch.count == 0)) {
|
||||
u32 length = mCurrentWordLength;
|
||||
u32 wordLength = wcslen((wchar_t*)LatestWord) & 0xff;
|
||||
u32 copied;
|
||||
for (copied = 0; copied < length; ++copied) {
|
||||
LatestWord[copied] = LatestWord[(wordLength - length) + copied];
|
||||
}
|
||||
LatestWord[copied] = 0;
|
||||
copyLength = mCurrentWordLength;
|
||||
CopyWordSuffix(LatestWord, copyLength);
|
||||
mSearch.wordCharCount = wcslen((wchar_t*)LatestWord);
|
||||
count = EZTXGetCandidates(&mSearch, mpDictionaryWork) & 0xff;
|
||||
}
|
||||
@@ -392,28 +413,25 @@ void WithZi::update() {
|
||||
memset(CandidatedWord, 0, 0x1400);
|
||||
mCandidateCount = 0;
|
||||
if (elementCount != 0 || mSearch.wordCharCount != 0) {
|
||||
u16* source = reinterpret_cast<u16*>(mSearch.candidates);
|
||||
u16* destination = CandidatedWord;
|
||||
for (s32 index = 0; index < static_cast<s32>(count); index++) {
|
||||
source = reinterpret_cast<u16*>(mSearch.candidates);
|
||||
destination = CandidatedWord;
|
||||
for (index = 0; index < static_cast<s32>(count); index++) {
|
||||
if (getPredictLanguage() == ZI8_LANG_ZH) {
|
||||
u16* output;
|
||||
s32 length;
|
||||
length = 0;
|
||||
output = destination;
|
||||
candidateLength = 0;
|
||||
wordOutput = destination;
|
||||
for (; *source != L' ' && *source != 0; source++) {
|
||||
*output++ = *source;
|
||||
++length;
|
||||
*wordOutput++ = *source;
|
||||
++candidateLength;
|
||||
}
|
||||
++source;
|
||||
destination[length] = 0;
|
||||
destination[candidateLength] = 0;
|
||||
} else if (mPredictLanguage == PL_11) {
|
||||
*destination = *source++;
|
||||
destination[1] = 0;
|
||||
} else if (getPredictLanguage() == ZI8_LANG_KO) {
|
||||
u16* output = destination;
|
||||
u16 character;
|
||||
koreanOutput = destination;
|
||||
while ((character = *source) >= 0x100) {
|
||||
*output++ = character;
|
||||
*koreanOutput++ = character;
|
||||
++source;
|
||||
}
|
||||
} else if (EZTXCopy(reinterpret_cast<wchar_t*>(destination), &mSearch, index & 0xff, mpDictionaryWork) == 0) {
|
||||
@@ -421,20 +439,18 @@ void WithZi::update() {
|
||||
}
|
||||
++mCandidateCount;
|
||||
{
|
||||
u16* candidate;
|
||||
s32 position;
|
||||
position = 0;
|
||||
for (candidate = destination; *candidate != 0; ++candidate, ++position) {
|
||||
for (letter = destination; *letter != 0; ++letter, ++position) {
|
||||
switch (mLetterMode) {
|
||||
case LM_1:
|
||||
*candidate = util::toWLower(*candidate);
|
||||
*letter = util::toWLower(*letter);
|
||||
break;
|
||||
case LM_2:
|
||||
*candidate = util::toWUpper(*candidate);
|
||||
*letter = util::toWUpper(*letter);
|
||||
break;
|
||||
case LM_0:
|
||||
if (position == 0) *candidate = util::toWUpper(*candidate);
|
||||
else *candidate = util::toWLower(*candidate);
|
||||
if (position == 0) *letter = util::toWUpper(*letter);
|
||||
else *letter = util::toWLower(*letter);
|
||||
break;
|
||||
case LM_3:
|
||||
break;
|
||||
|
||||
@@ -167,11 +167,6 @@ typedef struct AOSSKeySchedule {
|
||||
u32 length;
|
||||
} AOSSKeySchedule;
|
||||
|
||||
typedef struct AOSSKeyMaterial {
|
||||
u8 nonce[2];
|
||||
u8 address[8];
|
||||
} AOSSKeyMaterial;
|
||||
|
||||
typedef struct AOSSReceiveBuffer {
|
||||
s32 socket;
|
||||
u32 length;
|
||||
@@ -261,11 +256,6 @@ typedef struct AOSSConfigData {
|
||||
static AOSSRuntimeState s_runtime;
|
||||
static AOSSConfigData s_configData;
|
||||
static u8 s_networkBuffer[0x280];
|
||||
static struct {
|
||||
AOSSKeyMaterial key;
|
||||
u8 payload[0x5e];
|
||||
} s_packetState;
|
||||
static u32 s_crcTable[0x100];
|
||||
|
||||
static s32 s_socket = -1;
|
||||
static char s_manufacturer[] = "MELCO";
|
||||
@@ -2324,16 +2314,16 @@ int AOSSSendDiscoveryRequest(void* packet, AOSSRequestRecords* request, int sock
|
||||
}
|
||||
|
||||
int AOSSSendHelloRequest(void* packet, void* request, int socket) {
|
||||
AOSSHelloPacket* response = (AOSSHelloPacket*)s_responseBuffer;
|
||||
AOSSHelloPayload* payload;
|
||||
AOSSRequestRecords* requestRecords = (AOSSRequestRecords*)request;
|
||||
struct {
|
||||
AOSSSocketAddress destination;
|
||||
AOSSHelloRecord hello;
|
||||
u8 accessPointName[8];
|
||||
AOSSKeySchedule schedule;
|
||||
} construction;
|
||||
u32 checksum;
|
||||
AOSSRequestRecords* requestRecords = (AOSSRequestRecords*)request;
|
||||
u8 accessPointName[8];
|
||||
AOSSHelloRecord hello;
|
||||
AOSSSocketAddress destination;
|
||||
AOSSKeySchedule schedule;
|
||||
int sequence;
|
||||
u32 crc;
|
||||
AOSSHelloPacket* response = (AOSSHelloPacket*)s_responseBuffer;
|
||||
u16 nonce;
|
||||
u32 stateLength;
|
||||
u32 index;
|
||||
@@ -2341,72 +2331,68 @@ int AOSSSendHelloRequest(void* packet, void* request, int socket) {
|
||||
u32 firstByte;
|
||||
u32 secondIndex;
|
||||
u8* state;
|
||||
u32 i;
|
||||
const u8* input;
|
||||
u8 value;
|
||||
u8 swap;
|
||||
s16 responseLength;
|
||||
s16 sendLength;
|
||||
int sequence;
|
||||
int encryptionResult;
|
||||
|
||||
checksum = 0;
|
||||
sequence = 0;
|
||||
memset(&construction.hello, 0, sizeof(construction.hello));
|
||||
memset(&hello, 0, sizeof(hello));
|
||||
memset(response, 0, 0x5dc);
|
||||
payload = &response->payload;
|
||||
construction.hello.data.fields.type = 2;
|
||||
construction.hello.data.fields.reserved01 = 0;
|
||||
construction.hello.data.fields.length = SOHtoNs(4);
|
||||
construction.hello.data.fields.supportedModes = s_runtime.flags;
|
||||
construction.hello.data.fields.supportedModes = SOHtoNl(construction.hello.data.fields.supportedModes);
|
||||
hello.data.fields.type = 2;
|
||||
hello.data.fields.reserved01 = 0;
|
||||
hello.data.fields.length = SOHtoNs(4);
|
||||
hello.data.fields.supportedModes = s_runtime.flags;
|
||||
hello.data.fields.supportedModes = SOHtoNl(hello.data.fields.supportedModes);
|
||||
responseLength = 8;
|
||||
|
||||
if ((s32)s_connectionState == 1) {
|
||||
const u32* crcTable;
|
||||
sequence = 1;
|
||||
checksum = 0xffffffff;
|
||||
crc = 0xffffffff;
|
||||
AOSSInitCrc32Table(0, s_crcTable);
|
||||
crcTable = s_crcTable;
|
||||
{
|
||||
u32 part;
|
||||
for (part = 0; part < 4; part++) {
|
||||
for (index = 0; index < 2; index++) {
|
||||
checksum = (checksum >> 8) ^ crcTable[(checksum ^ construction.hello.data.bytes[part * 2 + index]) & 0xff];
|
||||
}
|
||||
}
|
||||
index = 0;
|
||||
while (index < 8) {
|
||||
crc = (crc >> 8) ^ s_crcTable[(crc ^ hello.data.bytes[index++]) & 0xff];
|
||||
}
|
||||
checksum = (checksum ^ 0xffffffff) & 0xff;
|
||||
checksum = (crc ^ 0xffffffff) & 0xff;
|
||||
|
||||
construction.schedule.bytes = (u8*)AOSSi_Alloc(8);
|
||||
if (construction.schedule.bytes != 0) {
|
||||
schedule.bytes = (u8*)AOSSi_Alloc(8);
|
||||
if (schedule.bytes != 0) {
|
||||
nonce = (u16)rand();
|
||||
memcpy(&payload->encrypted.key.nonce, &nonce, 2);
|
||||
memcpy(s_packetState.key.nonce, payload->encrypted.key.nonceBytes, 2);
|
||||
memcpy(s_packetState.key.address, s_accessPointName, 8);
|
||||
AOSSInitKeySchedule(&construction.schedule, (const u8*)&s_packetState.key, sizeof(s_packetState.key), 8);
|
||||
for (index = 0; index < 8; index++) {
|
||||
state = construction.schedule.bytes;
|
||||
firstIndex = (construction.schedule.i + 1) % construction.schedule.length & 0xff;
|
||||
AOSSInitKeySchedule(&schedule, (const u8*)&s_packetState.key, sizeof(s_packetState.key), 8);
|
||||
input = hello.data.bytes;
|
||||
for (i = 0; i < 8; i++) {
|
||||
state = schedule.bytes;
|
||||
firstIndex = (schedule.i + 1) % schedule.length & 0xff;
|
||||
firstByte = state[firstIndex];
|
||||
secondIndex = (firstByte + construction.schedule.j) % construction.schedule.length & 0xff;
|
||||
secondIndex = (firstByte + schedule.j) % schedule.length & 0xff;
|
||||
swap = state[secondIndex];
|
||||
stateLength = firstByte + swap;
|
||||
construction.schedule.i = firstIndex;
|
||||
construction.schedule.j = secondIndex;
|
||||
schedule.i = firstIndex;
|
||||
schedule.j = secondIndex;
|
||||
state[secondIndex] = (u8)firstByte;
|
||||
state[firstIndex] = swap;
|
||||
value = state[stateLength % construction.schedule.length] ^ construction.hello.data.bytes[index];
|
||||
payload->bytes[index + 4] = value;
|
||||
value = state[stateLength % schedule.length];
|
||||
payload->bytes[i + 4] = value ^ *input++;
|
||||
}
|
||||
AOSSi_Free(construction.schedule.bytes);
|
||||
AOSSi_Free(schedule.bytes);
|
||||
}
|
||||
payload->encrypted.length = SOHtoNs(8);
|
||||
responseLength = 0x0c;
|
||||
} else {
|
||||
memcpy(payload->bytes, &construction.hello, 8);
|
||||
memcpy(payload->bytes, &hello, 8);
|
||||
}
|
||||
|
||||
memcpy(construction.accessPointName, &requestRecords->records[1], 8);
|
||||
encryptionResult = AOSSXorBufferWithKey(construction.accessPointName, 8, s_manufacturer, 6);
|
||||
memcpy(accessPointName, &requestRecords->records[1], 8);
|
||||
encryptionResult = AOSSXorBufferWithKey(accessPointName, 8, s_manufacturer, 6);
|
||||
if (encryptionResult != 0) {
|
||||
s_errorCode = 2;
|
||||
return -1;
|
||||
@@ -2421,17 +2407,17 @@ int AOSSSendHelloRequest(void* packet, void* request, int socket) {
|
||||
response->header.finalSequence = SOHtoNs(sequence);
|
||||
response->header.reserved = checksum;
|
||||
response->header.messageType = 0x11;
|
||||
memcpy(response->header.messageIdentity, construction.accessPointName, 8);
|
||||
memcpy(response->header.messageIdentity, accessPointName, 8);
|
||||
sendLength = (s16)(responseLength + 0x18);
|
||||
memset(&construction.destination, 0, sizeof(construction.destination));
|
||||
construction.destination.family = 2;
|
||||
construction.destination.port = SOHtoNs(0x5790);
|
||||
construction.destination.address = SOHtoNl(s_runtime.ipAddress);
|
||||
memset(&destination, 0, sizeof(destination));
|
||||
destination.family = 2;
|
||||
destination.port = SOHtoNs(0x5790);
|
||||
destination.address = SOHtoNl(s_runtime.ipAddress);
|
||||
if ((s8)s_runtime.active == 0) {
|
||||
construction.destination.address = 0xffffffff;
|
||||
destination.address = 0xffffffff;
|
||||
}
|
||||
construction.destination.length = 8;
|
||||
SOSendTo(socket, response, sendLength, 0, &construction.destination);
|
||||
destination.length = 8;
|
||||
SOSendTo(socket, response, sendLength, 0, &destination);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
4
src/scene/setting/AOSSData.c
Normal file
4
src/scene/setting/AOSSData.c
Normal file
@@ -0,0 +1,4 @@
|
||||
#include "scene/setting/AOSS.h"
|
||||
|
||||
u32 s_crcTable[0x100];
|
||||
AOSSPacketState s_packetState;
|
||||
@@ -16,11 +16,6 @@
|
||||
#include <cstring>
|
||||
#include <cwchar>
|
||||
|
||||
extern "C" void _savegpr_27();
|
||||
extern "C" void _restgpr_27();
|
||||
extern "C" void getLanguage__Q23ipl6SystemFv();
|
||||
extern "C" void getRegion__Q23ipl6SystemFv();
|
||||
|
||||
namespace ipl {
|
||||
namespace channel {
|
||||
u32 Manager::mNumFinished;
|
||||
@@ -469,85 +464,34 @@ namespace ipl {
|
||||
System::getSaveData()->setChanInfo(page1, index1, blankInfo);
|
||||
}
|
||||
|
||||
extern "C" asm void getTitleName__Q33ipl7channel7ManagerCFiii() {
|
||||
nofralloc
|
||||
stwu r1, -0x20(r1)
|
||||
mflr r0
|
||||
stw r0, 0x24(r1)
|
||||
addi r11, r1, 0x20
|
||||
bl _savegpr_27
|
||||
mulli r28, r4, 0x540
|
||||
mr r27, r3
|
||||
mulli r29, r5, 0x70
|
||||
add r0, r3, r28
|
||||
add r31, r0, r29
|
||||
lbz r0, 0x24(r31)
|
||||
cmpwi r0, 0
|
||||
bne getTitleName_L1
|
||||
li r3, 0
|
||||
b getTitleName_L8
|
||||
getTitleName_L1:
|
||||
mulli r30, r6, 0x2a
|
||||
bl getLanguage__Q23ipl6SystemFv
|
||||
mulli r0, r3, 0x54
|
||||
lwz r3, 0x10(r31)
|
||||
add r0, r30, r0
|
||||
add r3, r3, r0
|
||||
lhz r0, 0x5c(r3)
|
||||
cmpwi r0, 0
|
||||
beq getTitleName_L3
|
||||
bl getLanguage__Q23ipl6SystemFv
|
||||
mulli r3, r3, 0x54
|
||||
lwz r0, 0x10(r31)
|
||||
add r0, r0, r3
|
||||
add r3, r0, r30
|
||||
addi r3, r3, 0x5c
|
||||
b getTitleName_L8
|
||||
getTitleName_L3:
|
||||
bl getRegion__Q23ipl6SystemFv
|
||||
lis r5, scLangLookup__Q23ipl7channel@ha
|
||||
add r4, r27, r28
|
||||
slwi r3, r3, 6
|
||||
li r0, 0x10
|
||||
addi r5, r5, scLangLookup__Q23ipl7channel@l
|
||||
add r6, r29, r4
|
||||
add r8, r5, r3
|
||||
li r3, 0
|
||||
mtctr r0
|
||||
getTitleName_L4:
|
||||
lwzx r7, r8, r3
|
||||
lwz r0, 0x10(r6)
|
||||
mulli r5, r7, 0x54
|
||||
add r0, r0, r30
|
||||
add r4, r5, r0
|
||||
lhz r0, 0x5c(r4)
|
||||
cmpwi r0, 0
|
||||
beq getTitleName_L6
|
||||
lwz r0, 0x10(r31)
|
||||
add r0, r0, r5
|
||||
add r3, r0, r30
|
||||
addi r3, r3, 0x5c
|
||||
b getTitleName_L8
|
||||
getTitleName_L6:
|
||||
addis r0, r7, 1
|
||||
cmplwi r0, 0xffff
|
||||
beq getTitleName_L7
|
||||
addi r3, r3, 4
|
||||
bdnz getTitleName_L4
|
||||
getTitleName_L7:
|
||||
lwz r0, 0(r8)
|
||||
lwz r3, 0x10(r31)
|
||||
mulli r0, r0, 0x54
|
||||
add r0, r3, r0
|
||||
add r3, r0, r30
|
||||
addi r3, r3, 0x5c
|
||||
getTitleName_L8:
|
||||
addi r11, r1, 0x20
|
||||
bl _restgpr_27
|
||||
lwz r0, 0x24(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x20
|
||||
blr
|
||||
wchar_t* Manager::getTitleName(int page, int index, int nameIndex) const {
|
||||
u32 language;
|
||||
const u32* languages;
|
||||
|
||||
if (!mChannels[page][index].loadedBnr) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const wchar_t* preferredName = (const wchar_t*)(
|
||||
(const u8*)mChannels[page][index].metaHdr +
|
||||
(nameIndex * (s32)sizeof(mChannels[page][index].metaHdr->names[0][0]) +
|
||||
System::getLanguage() * sizeof(mChannels[page][index].metaHdr->names[0])) +
|
||||
offsetof(SChanMgrMetaHeader, names));
|
||||
if (preferredName[0]) {
|
||||
return mChannels[page][index].metaHdr->names[System::getLanguage()][nameIndex];
|
||||
}
|
||||
|
||||
languages = scLangLookup[System::getRegion()];
|
||||
for (int i = 0; i < 16; i++) {
|
||||
language = languages[i];
|
||||
if (mChannels[page][index].metaHdr->names[(int)language][nameIndex][0]) {
|
||||
return mChannels[page][index].metaHdr->names[language][nameIndex];
|
||||
}
|
||||
if (language == -1) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return mChannels[page][index].metaHdr->names[languages[0]][nameIndex];
|
||||
}
|
||||
|
||||
BOOL Manager::checkNeedUpdate(int page, int index) const {
|
||||
|
||||
@@ -998,12 +998,24 @@ namespace ipl {
|
||||
return ret;
|
||||
}
|
||||
|
||||
static inline void verifySavedataZD(EGG::Heap* heap, ESTitleId titleId, NANDFileInfo* fileInfo) {
|
||||
char path[NAND_MAX_PATH];
|
||||
static inline void verifySavedataZD(EGG::Heap* heap, ESTitleId requestedTitleId, NANDFileInfo* fileInfo) {
|
||||
ESTitleId titleId;
|
||||
u32 offset;
|
||||
u32 j;
|
||||
BOOL valid;
|
||||
BOOL fileOpen;
|
||||
u8* firstBlock;
|
||||
u8* secondBlock;
|
||||
BOOL deleteSaveData;
|
||||
s32 ret;
|
||||
u8* saveData = NULL;
|
||||
BOOL fileOpen = FALSE;
|
||||
BOOL deleteSaveData = FALSE;
|
||||
u8* saveData;
|
||||
titleId = requestedTitleId;
|
||||
|
||||
char path[NAND_MAX_PATH];
|
||||
|
||||
saveData = NULL;
|
||||
fileOpen = FALSE;
|
||||
deleteSaveData = FALSE;
|
||||
|
||||
sprintf(path, "/title/%08x/%08x/data/%s", (u32)((titleId & 0x00FFFFFFFFFFFFFFULL) >> 32), (u32)(titleId & 0x00FFFFFFFFFFFFFFULL), "zeldaTp.dat");
|
||||
if (!ESMisc::ChangeUid(titleId)) {
|
||||
@@ -1030,17 +1042,17 @@ namespace ipl {
|
||||
OSReport("%s::%s: File size is not correct: %d\n", __FILE__, __FUNCTION__, ret);
|
||||
deleteSaveData = TRUE;
|
||||
} else {
|
||||
u32 offset = 8;
|
||||
u32 j = 0;
|
||||
BOOL valid = FALSE;
|
||||
offset = 8;
|
||||
valid = FALSE;
|
||||
j = 0;
|
||||
while (j < 3) {
|
||||
u8* block = saveData + offset;
|
||||
if (!checkForNullTermination((char*)block + 0x4e, 8) ||
|
||||
!checkForNullTermination((char*)block + 0x58, 8) ||
|
||||
!checkForNullTermination((char*)block + 0x72, 8) ||
|
||||
!checkForNullTermination((char*)block + 0x8e, 8) ||
|
||||
!checkForNullTermination((char*)block + 0x1b4, 0x11) ||
|
||||
!checkForNullTermination((char*)block + 0x1c5, 0x11)) {
|
||||
firstBlock = saveData + offset;
|
||||
if (!checkForNullTermination((char*)firstBlock + 0x4e, 8) ||
|
||||
!checkForNullTermination((char*)firstBlock + 0x58, 8) ||
|
||||
!checkForNullTermination((char*)firstBlock + 0x72, 8) ||
|
||||
!checkForNullTermination((char*)firstBlock + 0x8e, 8) ||
|
||||
!checkForNullTermination((char*)firstBlock + 0x1b4, 0x11) ||
|
||||
!checkForNullTermination((char*)firstBlock + 0x1c5, 0x11)) {
|
||||
goto verify_failed;
|
||||
}
|
||||
j++;
|
||||
@@ -1050,13 +1062,13 @@ namespace ipl {
|
||||
offset = 0x2008;
|
||||
j = 0;
|
||||
while (j < 3) {
|
||||
u8* block = saveData + offset;
|
||||
if (!checkForNullTermination((char*)block + 0x4e, 8) ||
|
||||
!checkForNullTermination((char*)block + 0x58, 8) ||
|
||||
!checkForNullTermination((char*)block + 0x72, 8) ||
|
||||
!checkForNullTermination((char*)block + 0x8e, 8) ||
|
||||
!checkForNullTermination((char*)block + 0x1b4, 0x11) ||
|
||||
!checkForNullTermination((char*)block + 0x1c5, 0x11)) {
|
||||
secondBlock = saveData + offset;
|
||||
if (!checkForNullTermination((char*)secondBlock + 0x4e, 8) ||
|
||||
!checkForNullTermination((char*)secondBlock + 0x58, 8) ||
|
||||
!checkForNullTermination((char*)secondBlock + 0x72, 8) ||
|
||||
!checkForNullTermination((char*)secondBlock + 0x8e, 8) ||
|
||||
!checkForNullTermination((char*)secondBlock + 0x1b4, 0x11) ||
|
||||
!checkForNullTermination((char*)secondBlock + 0x1c5, 0x11)) {
|
||||
goto verify_failed;
|
||||
}
|
||||
j++;
|
||||
@@ -1093,8 +1105,11 @@ namespace ipl {
|
||||
}
|
||||
|
||||
static inline s32 DeleteTicketsForce(EGG::Heap* heap, ESTitleId titleId, u8* ticketViews, u32* ticketViewCount) {
|
||||
ESTicketView* ticketViewList = NULL;
|
||||
s32 ret;
|
||||
u32 j;
|
||||
ESTicketView* ticketViewList;
|
||||
ticketViewList = NULL;
|
||||
|
||||
memset(ticketViews, 0, OSRoundUp32B(sizeof(ESTicketView)));
|
||||
ret = ES_GetTicketViews(titleId, NULL, ticketViewCount);
|
||||
if (ret != ES_ERR_OK) {
|
||||
@@ -1110,7 +1125,7 @@ namespace ipl {
|
||||
OSReport("%s::%s: ES_GetTicketViews failed: %d for %016llx\n", __FILE__, __FUNCTION__, ret, titleId);
|
||||
goto cleanup;
|
||||
}
|
||||
for (u32 j = 0; j < *ticketViewCount; j++) {
|
||||
for (j = 0; j < *ticketViewCount; j++) {
|
||||
memcpy(ticketViews, &ticketViewList[j], sizeof(ESTicketView));
|
||||
ret = ES_DeleteTicket((ESTicketView*)ticketViews);
|
||||
if (ret != ES_ERR_OK) {
|
||||
@@ -1126,12 +1141,16 @@ namespace ipl {
|
||||
}
|
||||
|
||||
static inline s32 InitSavedata(EGG::Heap* heap) {
|
||||
u32 i;
|
||||
s32 ret;
|
||||
ESTitleId* titleIds;
|
||||
u8* ticketScratch;
|
||||
u8 ticketViews[OSRoundUp32B(sizeof(ESTicketView))] ALIGN32;
|
||||
NANDFileInfo fileInfo ALIGN32;
|
||||
u32 ticketViewCount;
|
||||
ESTitleId* titleIds = NULL;
|
||||
titleIds = NULL;
|
||||
u32 titleCount = 0;
|
||||
s32 ret = ES_ListTitlesOnCard(NULL, &titleCount);
|
||||
ret = ES_ListTitlesOnCard(NULL, &titleCount);
|
||||
|
||||
if (ret != ES_ERR_OK) {
|
||||
OSReport("%s::%s: Failed to ES_ListTitlesOnCard1: %d\n", __FILE__, __FUNCTION__, ret);
|
||||
@@ -1151,8 +1170,8 @@ namespace ipl {
|
||||
}
|
||||
|
||||
{
|
||||
u8* ticketScratch = ticketViews;
|
||||
for (u32 i = 0; i < titleCount; i++) {
|
||||
ticketScratch = ticketViews;
|
||||
for (i = 0; i < titleCount; i++) {
|
||||
if ((titleIds[i] & 0xFFFFFFFFFFFFFF00ULL) == 0x00010000525A4400ULL) {
|
||||
verifySavedataZD(heap, titleIds[i], &fileInfo);
|
||||
continue;
|
||||
@@ -1177,10 +1196,6 @@ namespace ipl {
|
||||
return ret;
|
||||
}
|
||||
|
||||
s32 ESMisc::DeleteUnauthorizedData(EGG::Heap* heap) {
|
||||
return InitSavedata(heap);
|
||||
}
|
||||
|
||||
BOOL checkForNullTermination(char* str, u32 len) {
|
||||
for (u32 i = 0; i < len; i++) {
|
||||
if (*str == 0) {
|
||||
@@ -1191,6 +1206,10 @@ namespace ipl {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
s32 ESMisc::DeleteUnauthorizedData(EGG::Heap* heap) {
|
||||
return InitSavedata(heap);
|
||||
}
|
||||
|
||||
TMDFile::TMDFile(EGG::Heap* heap) : mpHeap(heap), mbFileOpen(FALSE), mFileLength(0) {
|
||||
memset(&mFile, 0, sizeof(mFile));
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ from pathlib import Path
|
||||
|
||||
|
||||
EXPECTED_DOL_SHA1 = "26116613f624061ba99c8d1a299aaa6efa85670d"
|
||||
EXPECTED_TOTAL_UNITS = 1027
|
||||
EXPECTED_TOTAL_UNITS = 1028
|
||||
EXPECTED_TOTAL_CODE = 2995176
|
||||
EXPECTED_TOTAL_DATA = 1832684
|
||||
EXPECTED_TOTAL_FUNCTIONS = 12563
|
||||
|
||||
111
tools/decomp-assist/opus-aoss.attempts.md
Normal file
111
tools/decomp-assist/opus-aoss.attempts.md
Normal file
@@ -0,0 +1,111 @@
|
||||
# opus-aoss: AOSS.c .bss ownership (s_packetState, s_crcTable)
|
||||
|
||||
## Evidence
|
||||
|
||||
Target relocations (pyelftools over build/43U/obj/src/scene/setting/*.o):
|
||||
|
||||
- `AOSS_810BE838` (0x68) and `AOSS_810BE8A0` (0x400) are referenced only by
|
||||
`AOSSDecryptMessage` (0x81400830) and `AOSSSendHelloRequest` (0x81401778).
|
||||
No other object in build/43U/obj references them (grep over every .o).
|
||||
- Those two functions are not contiguous in .text (7 functions between them,
|
||||
4 after), so (a) "split AOSS.c into a CRC/packet TU with its own functions"
|
||||
is ruled out: there is no function tail that moves with the objects.
|
||||
- ATERM.c never references them, so (b) "they are ATERM's" has no support.
|
||||
- (c) common/tentative: MWLD puts SHN_COMMON blocks after all other .bss of the
|
||||
link, but ATERM.c's .bss follows these objects, so they are not commons.
|
||||
|
||||
Addressing-pattern experiments (AOSS.o, -O4,p -inline off), SendHello differing
|
||||
lines out of 273 (odiff.py), every other function checked each time:
|
||||
|
||||
| AOSS.c form of the two objects | SendHello | other effect |
|
||||
|---|---|---|
|
||||
| `static`, defined before the functions (main) | 254 (size 0x43c vs 0x444) | - |
|
||||
| non-static, defined before the functions | 254 | none |
|
||||
| `extern` decl at top, definition at end of AOSS.c | 254 | none |
|
||||
| `extern`, not defined in AOSS.c | 97 (size 0x444) | none |
|
||||
| all five .bss objects `extern` | 97 | HandleAuthReply 0 -> 103 |
|
||||
| s_configData + s_networkBuffer also `extern` | 97 | HandleAuthReply 0 -> 103 |
|
||||
|
||||
Any definition inside AOSS.c (static, global, early, late) makes MWCC share one
|
||||
`...bss.0` base register across s_runtime / s_packetState / s_crcTable in
|
||||
SendHello. The target forms a separate `lis/addi` per object (two for
|
||||
s_runtime alone), which this compiler only produces when the symbol is
|
||||
undefined in the TU. Meanwhile s_runtime, s_configData, s_networkBuffer must
|
||||
stay defined in AOSS.c, or HandleAuthReply loses its exact match. So the two
|
||||
objects are defined in a different TU that the linker places right after
|
||||
AOSS.c, with no .text of its own.
|
||||
|
||||
## Applied split
|
||||
|
||||
- New data-only TU `src/scene/setting/AOSSData.c` (Matching), linked between
|
||||
AOSS.c and ATERM.c; splits.txt `.bss 0x810BE838..0x810BECA0`.
|
||||
- They're tentative definitions, so MWCC emits them in reverse order: the
|
||||
source declares `s_crcTable` and then `s_packetState` (first try in forward
|
||||
order gave the wrong order and a wrong DOL hash).
|
||||
- symbols.txt: `AOSS_810BE838` -> `s_packetState`, `AOSS_810BE8A0` -> `s_crcTable`
|
||||
(needed so the retail AOSS.o asm links against the new definitions).
|
||||
- `AOSSKeyMaterial`, `AOSSPacketState` and the extern declarations moved to
|
||||
include/scene/setting/AOSS.h (only AOSS.c includes it).
|
||||
- Full build: DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d; symorder
|
||||
AOSSData ORDER OK. All 17 exact AOSS functions are still exact.
|
||||
|
||||
## SendHello follow-up (254 -> 58)
|
||||
|
||||
| attempt | differing |
|
||||
|---|---|
|
||||
| split only, existing source | 97 |
|
||||
| drop `crcTable` alias local | 97 |
|
||||
| decl order permutations of response/payload/checksum/sequence (24) | best 82 |
|
||||
| flat `for (index < 8)` / int index / pointer / sizeof bound / operand swap | 237 (first iteration constant-folded) |
|
||||
| 2x4 nested loop | 82 |
|
||||
| `index = 0; while (index < 8) ... bytes[index++]` | 58 |
|
||||
| decl permutations on top of the while loop | best 58 |
|
||||
| swap `sequence = 0` / `checksum = 0` | 59 |
|
||||
| `payload = &response->payload` earlier / at declaration | 69 / 82 |
|
||||
|
||||
Remaining in SendHello: checksum r31 vs r30 and payload r30 vs r31 (decl order
|
||||
can't reach it), and the RC4 loop addresses `construction` from its base
|
||||
(r1+0x10, offsets 8/9) where the target holds a pointer to `hello.data.bytes`
|
||||
(r1+0x18, offsets 0/1). The second points at the `construction` carrier struct:
|
||||
the target probably has `hello` as its own local. That's the next lever.
|
||||
|
||||
## Gate (AOSS AOSSData ATERM --quick)
|
||||
|
||||
`GATE FAIL: 1 regressions vs main`. The only one is `AOSS: matched_data 3928 -> 2800`,
|
||||
which is exactly the 1128 bytes now in AOSSData (1128/1128, linked). Global
|
||||
matched data stays 100%, global fuzzy goes 99.88565 -> 99.88798, no forbidden or
|
||||
readability findings, DOL SHA1 OK. AOSS is 17/21 exact (unchanged), ATERM 20/26 (unchanged).
|
||||
|
||||
## Round 2: alternatives to the data-only TU
|
||||
|
||||
| alternative | result |
|
||||
|---|---|
|
||||
| definitions in ATERM.c (AOSSData removed, ATERM .bss split moved to 0x810BE838, `AOSSPacketState s_packetState; u32 s_crcTable[0x100];` placed before `gAtermIpConfig`) | built ATERM.o puts them at .bss offsets 8144/9168, i.e. after every ATERM object (unreferenced in the TU, emitted last in reverse order); target needs offset 0/104. MWCC emits a TU's .bss referenced-first, so ATERM can't own the start of its .bss with objects it never uses. Rejected. |
|
||||
| function-local `static` arrays in SendHello (shadowing the externs) | SendHello 58 -> 231; local statics join the TU's shared `...bss.0` base exactly like file statics. Also ruled out by relocations: AOSSDecryptMessage references both objects directly, so neither function can own them as locals. |
|
||||
| AOSSLink.c / iplRakuRakuThread.cpp | earlier in link order, their .bss sits before AOSS.c's, can't hold 0x810BE838. Not tried. |
|
||||
|
||||
Data-only AOSSData.c remains the only form that gives a separate lis/addi per object.
|
||||
|
||||
## Round 2: AOSSSendHelloRequest 58 -> 0
|
||||
|
||||
| attempt | differing |
|
||||
|---|---|
|
||||
| carrier struct `construction` removed, four plain locals in old order | 84 (hello now addressed at r1+0x18 directly; stack order wrong) |
|
||||
| 24 permutations of the four locals | best 74: `accessPointName, hello, destination, schedule` (schedule position irrelevant); stack layout now matches |
|
||||
| RC4 loop reads `*input++` from `input = hello.data.bytes`, as AOSSDecryptMessage does | 57 |
|
||||
| single-line moves of every declaration (460 builds) | none below 57 |
|
||||
| no `payload` local (`response->payload.` everywhere) | 261, rejected |
|
||||
| mwdbg capture (first two runs crashed in the emulator before the function, third worked): `@2964` = checksum's {0, final} web, a split compiler temp numbered above all locals, so it's colored first and takes r31 before `payload`; `@2966` = the reused `index` split for the RC4 loop, colored before `state` and takes r3 | - |
|
||||
| separate `crc` accumulator for the CRC loop, `checksum = (crc ^ 0xffffffff) & 0xff` | 55 |
|
||||
| + `checksum` declared right after `payload` (move search) | 23 (r30/r31 fixed) |
|
||||
| + RC4 loop gets its own counter `i` instead of reusing `index`, declared after `state` | **0**, size 0x444 = 0x444 |
|
||||
|
||||
AOSS after: 18/21 exact (was 17). AOSSDecryptMessage still 0/321. Unchanged non-exact:
|
||||
AOSS_Init_old 1306/1584, AOSSApplyAuthOptions 22/114, AOSSXorBufferWithKey 34/147. Pool identical.
|
||||
|
||||
## Gate round 2 (AOSS AOSSData ATERM --quick)
|
||||
|
||||
`GATE FAIL: 1 regressions vs main`, again only `AOSS: matched_data 3928 -> 2800` (the 1128 bytes now in
|
||||
AOSSData, 1128/1128). AOSS 18/21 exact (17 -> 18), code 7720 -> 8812/16192, ATERM 20/26 unchanged, pools
|
||||
identical, global matched code 97.12163 -> 97.15810, fuzzy 99.88565 -> 99.88839, data 100%, 0 forbidden, 0
|
||||
readability, DOL SHA1 OK.
|
||||
33
tools/decomp-assist/opus-fa.attempts.md
Normal file
33
tools/decomp-assist/opus-fa.attempts.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# opus-fa attempts
|
||||
|
||||
## libs/RVL_SDK/src/fa/driver/sd_drv (23/26 -> 26/26, linked)
|
||||
|
||||
### pfd_sddrv_finalize (4 -> 0)
|
||||
- Evidence for volatile: target reloads `flags` straight after testing it (`lwz; rlwinm.; beq; lwz` with no store in between) and keeps the final state stores in source order. The previous rounds faked the reloads with const-pointer accessors.
|
||||
- Fix: `volatile PFD_SDDRV_INFO g_pfd_sddrv_info;` (definition-level, lever 19: the struct is written from the SD insert/remove interrupt callbacks). The fake accessors `pfd_sddrv_flags/device/disk/drive` are removed and the fields read directly. The removal callback loses its `media_inserted == 0 &&` re-check, which only existed to force a reload. Every other function stays exact.
|
||||
|
||||
### pfd_sddrv_init (142 -> 0)
|
||||
- Explicit `return 0;` in the already-initialized branch: 142 -> 26. MWCC then turned `disk != info.disk ? -44 : 0` into a branchless select. The target branches instead.
|
||||
- if/else/eq/goto spellings of the same return: still branchless (26).
|
||||
- `#pragma ppc_iro_level 0` around the function (lever 26): 26 -> 1. Only the null test was left: target `li r0,0; cmplw r3,r0`.
|
||||
- `disk == NULL` (NULL is `((void*)0)`) under IRO 0: 1 -> 0. Without IRO 0, NULL gives cmpwi.
|
||||
- Diagnostic only: optimization_level 1/2/3 and iro 1/2 did not help.
|
||||
|
||||
### pfd_sddrv_build_fat32_mbr_bpb (122 -> 0)
|
||||
- Target leaves an unreachable `bl OSReport` without its argument after the inlined reserved-sector writer, and has no null check of the buffer. A mini test shows this exact remnant comes from an inline helper with no null check that returns 0, compiled under IRO 0.
|
||||
- The reserved-sector helper is now written like its sibling `pfd_sddrv_store_fat32_fsi_buf` (no null check, `return 0`). The only caller passes `g_pfd_sddrv_buf`, so behaviour is unchanged. With IRO 0 around build_fat32: 122 -> 2.
|
||||
- Last 2: the first write loads the sector before the device. A local `partition_start_sector` like the FAT16 builder: 14. `+ 0`, casts: 2. Fix: `static inline s32 pfd_sddrv_write_sector(u32 sector)` wrapping `ISD_WriteBlock(device, sector, g_pfd_sddrv_buf, 1)`, so the argument is evaluated before the device load: 0.
|
||||
|
||||
### Link
|
||||
- Flipped to Matching. The first DOL had `addi r27/r28` swapped in physical_read/write. The cause was `ATTRIBUTE_ALIGN(32)` on `g_pfd_sddrv_buf`, which changes codegen, so it was dropped.
|
||||
- Without a 32-aligned .bss object, every `g_pfd_sddrv_info` access moved by 0x10. The fix is `ATTRIBUTE_ALIGN(32)` on `g_pfd_sddev` (the IPC device storage) and on `g_event` (the IPC event word, which the target places at .sbss+0x20).
|
||||
- DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d OK.
|
||||
|
||||
## libs/RVL_SDK/src/fa/pdm_partition: pdm_part_is_master_boot_sector (start 84 in repo / 21 in opus-vf best -> best 19, not exact)
|
||||
Remaining difference: the byte-load schedule of the inlined LE32 read. The target builds the tree (b2<<16 + b0) + (b3<<24 + b1<<8) and loads b3, b2, b0, b1. Ours loads b3, b2, b1, b0.
|
||||
- mwdbg: our pre-RA scheduler already emits b1 before b0, so b1 has a higher priority. In the target, b1 shares b3's register, which proves its load comes after the b3 shift in the pre-RA order. So the target DAG or the initial order differs, and it is not a register tie.
|
||||
- Mini-file study (/tmp/opus-fa/perm*.py): MWCC reassociates a 4-term add chain into pairs (L0+L2),(L1+L3) in source operand order. No permutation or parenthesization of the 4 terms gives the target pairing together with the target load order. All 120 tried in the real function: best 19 (e.g. `b1<<8 + b0 + b2<<16 + b3<<24`). Saved as opus-fa.best.pdm_partition.c.
|
||||
- Unrolled byte loops (+=, |=, Horner): 43-69. Loads before the zero store: 73 (the zero store is DCE'd). Reusing a local for start/count: 21. Removing the zero store: 73. Count read first: 88.
|
||||
- buf indexing instead of `buf += 16`: 90-91. Partition-entry pointer: 69.
|
||||
- Helper boundaries (local for b0, u8/u32 parameter helper, two u16 halves, pointer to the field): 20-21.
|
||||
- Pragmas (diagnostic): iro 0/1: 37 (25 with pointer loop 2, best 23 over all 120 sum shapes). scheduling off: 77. IRO is not the lever here.
|
||||
264
tools/decomp-assist/sol-ph1.attempts.md
Normal file
264
tools/decomp-assist/sol-ph1.attempts.md
Normal file
@@ -0,0 +1,264 @@
|
||||
# sol-ph1 attempts
|
||||
|
||||
Worktree data-d6; branch agent/w1008/data-d6-h; initial HEAD f49f337c.
|
||||
Initial requested object build passed. Existing untracked rx63 evidence left untouched.
|
||||
Only zero differing instructions with equal size qualify. No pushes, PRs, rebases or other-worktree edits.
|
||||
Read prior opus-sdm, opus-iro, rx2b, rx36 and rx63 notes; target Ghidra exports and levers 25-29.
|
||||
|
||||
- has-00-seed: {"tag": "has-00-seed", "diffs": 54, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Reproduce h52 with titleCode declared in primary-type block.
|
||||
- title-00-seed: {"tag": "title-00-seed", "diffs": 4, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Reproduce signed predicate best C.
|
||||
- has-01-h52: {"tag": "has-01-h52", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Use target-proven 64-bit region comparison, avoids byte extraction hoist.
|
||||
- title-01-helper-0: {"tag": "title-01-helper-0", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preferred-name lookup inside real inline helper; metadata pointer/ref, argument ordering, const and language call boundaries.
|
||||
- title-01-helper-1: {"tag": "title-01-helper-1", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preferred-name lookup inside real inline helper; metadata pointer/ref, argument ordering, const and language call boundaries.
|
||||
- title-01-helper-2: {"tag": "title-01-helper-2", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preferred-name lookup inside real inline helper; metadata pointer/ref, argument ordering, const and language call boundaries.
|
||||
- title-01-helper-3: {"tag": "title-01-helper-3", "diffs": 67, "insns": [72, 71], "sizes": [288, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preferred-name lookup inside real inline helper; metadata pointer/ref, argument ordering, const and language call boundaries.
|
||||
- title-01-helper-4: {"tag": "title-01-helper-4", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preferred-name lookup inside real inline helper; metadata pointer/ref, argument ordering, const and language call boundaries.
|
||||
- title-01-helper-5: {"tag": "title-01-helper-5", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preferred-name lookup inside real inline helper; metadata pointer/ref, argument ordering, const and language call boundaries.
|
||||
- title-01-helper-6: {"tag": "title-01-helper-6", "diffs": 67, "insns": [72, 71], "sizes": [288, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preferred-name lookup inside real inline helper; metadata pointer/ref, argument ordering, const and language call boundaries.
|
||||
- title-01-helper-7: {"tag": "title-01-helper-7", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preferred-name lookup inside real inline helper; metadata pointer/ref, argument ordering, const and language call boundaries.
|
||||
- title-02-index-0: {"tag": "title-02-index-0", "diffs": 4, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Equivalent multidimensional-array addressing grouped by selected name/language.
|
||||
- title-02-index-1: {"tag": "title-02-index-1", "diffs": 4, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Equivalent multidimensional-array addressing grouped by selected name/language.
|
||||
- title-02-index-2: {"tag": "title-02-index-2", "diffs": 67, "insns": [75, 71], "sizes": [300, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Equivalent multidimensional-array addressing grouped by selected name/language.
|
||||
- title-02-index-3: {"tag": "title-02-index-3", "diffs": 4, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Equivalent multidimensional-array addressing grouped by selected name/language.
|
||||
- title-02-index-4: {"tag": "title-02-index-4", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Equivalent multidimensional-array addressing grouped by selected name/language.
|
||||
- title-02-index-5: {"tag": "title-02-index-5", "diffs": 67, "insns": [75, 71], "sizes": [300, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Equivalent multidimensional-array addressing grouped by selected name/language.
|
||||
- title-03-entry-helper-0: {"tag": "title-03-entry-helper-0", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Entry-based preferred-name helper delays metadata pointer read until after language call.
|
||||
- title-03-entry-helper-1: {"tag": "title-03-entry-helper-1", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Entry-based preferred-name helper delays metadata pointer read until after language call.
|
||||
- title-03-entry-helper-2: {"tag": "title-03-entry-helper-2", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Entry-based preferred-name helper delays metadata pointer read until after language call.
|
||||
- title-03-entry-helper-3: {"tag": "title-03-entry-helper-3", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Entry-based preferred-name helper delays metadata pointer read until after language call.
|
||||
- title-03-entry-helper-4: {"tag": "title-03-entry-helper-4", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Entry-based preferred-name helper delays metadata pointer read until after language call.
|
||||
- title-03-entry-helper-5: {"tag": "title-03-entry-helper-5", "diffs": 69, "insns": [77, 71], "sizes": [308, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Entry-based preferred-name helper delays metadata pointer read until after language call.
|
||||
- title-03-entry-helper-6: {"tag": "title-03-entry-helper-6", "diffs": 67, "insns": [75, 71], "sizes": [300, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Entry-based preferred-name helper delays metadata pointer read until after language call.
|
||||
- title-03-entry-helper-7: {"tag": "title-03-entry-helper-7", "diffs": 69, "insns": [77, 71], "sizes": [308, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Entry-based preferred-name helper delays metadata pointer read until after language call.
|
||||
- title-04-c89-0: {"tag": "title-04-c89-0", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Initial-language/name/entry locals declared at top; separate initialization.
|
||||
- title-04-c89-1: {"tag": "title-04-c89-1", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Initial-language/name/entry locals declared at top; separate initialization.
|
||||
- title-04-c89-2: {"tag": "title-04-c89-2", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Initial-language/name/entry locals declared at top; separate initialization.
|
||||
- title-04-c89-3: {"tag": "title-04-c89-3", "diffs": 69, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Initial-language/name/entry locals declared at top; separate initialization.
|
||||
- title-04-c89-4: {"tag": "title-04-c89-4", "diffs": 4, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Initial-language/name/entry locals declared at top; separate initialization.
|
||||
- title-04-c89-5: {"tag": "title-04-c89-5", "diffs": 4, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Initial-language/name/entry locals declared at top; separate initialization.
|
||||
- title-04-c89-6: {"tag": "title-04-c89-6", "diffs": 4, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Initial-language/name/entry locals declared at top; separate initialization.
|
||||
- title-04-c89-7: {"tag": "title-04-c89-7", "diffs": 65, "insns": [77, 71], "sizes": [308, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Initial-language/name/entry locals declared at top; separate initialization.
|
||||
- title-04-c89-8: {"tag": "title-04-c89-8", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Initial-language/name/entry locals declared at top; separate initialization.
|
||||
- title-04-c89-9: {"tag": "title-04-c89-9", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Initial-language/name/entry locals declared at top; separate initialization.
|
||||
- title-05-byte-group-0: {"tag": "title-05-byte-group-0", "diffs": 65, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Flatten named name array with explicit element/byte stride grouping; no fixed metadata offset.
|
||||
- title-05-byte-group-1: {"tag": "title-05-byte-group-1", "diffs": 65, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Flatten named name array with explicit element/byte stride grouping; no fixed metadata offset.
|
||||
- title-05-byte-group-2: {"tag": "title-05-byte-group-2", "diffs": 65, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Flatten named name array with explicit element/byte stride grouping; no fixed metadata offset.
|
||||
- title-05-byte-group-3: {"tag": "title-05-byte-group-3", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Flatten named name array with explicit element/byte stride grouping; no fixed metadata offset.
|
||||
- title-05-byte-group-4: {"tag": "title-05-byte-group-4", "diffs": 67, "insns": [75, 71], "sizes": [300, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Flatten named name array with explicit element/byte stride grouping; no fixed metadata offset.
|
||||
- title-05-byte-group-5: {"tag": "title-05-byte-group-5", "diffs": 67, "insns": [75, 71], "sizes": [300, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Flatten named name array with explicit element/byte stride grouping; no fixed metadata offset.
|
||||
- title-05-byte-group-6: {"tag": "title-05-byte-group-6", "diffs": 67, "insns": [75, 71], "sizes": [300, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Flatten named name array with explicit element/byte stride grouping; no fixed metadata offset.
|
||||
- title-05-byte-group-7: {"tag": "title-05-byte-group-7", "diffs": 67, "insns": [75, 71], "sizes": [300, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Flatten named name array with explicit element/byte stride grouping; no fixed metadata offset.
|
||||
- has-02-c89-0: {"tag": "has-02-c89-0", "diffs": 22, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; All real locals at function top with separate initialization; order follows mask/loop/title roles.
|
||||
- has-02-c89-1: {"tag": "has-02-c89-1", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; All real locals at function top with separate initialization; order follows mask/loop/title roles.
|
||||
- has-02-c89-2: {"tag": "has-02-c89-2", "diffs": 19, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; All real locals at function top with separate initialization; order follows mask/loop/title roles.
|
||||
- has-02-c89-3: {"tag": "has-02-c89-3", "diffs": 19, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; All real locals at function top with separate initialization; order follows mask/loop/title roles.
|
||||
- has-02-c89-4: {"tag": "has-02-c89-4", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; All real locals at function top with separate initialization; order follows mask/loop/title roles.
|
||||
- has-02-c89-5: {"tag": "has-02-c89-5", "diffs": 18, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; All real locals at function top with separate initialization; order follows mask/loop/title roles.
|
||||
- has-02-c89-6: {"tag": "has-02-c89-6", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; All real locals at function top with separate initialization; order follows mask/loop/title roles.
|
||||
- has-02-c89-7: {"tag": "has-02-c89-7", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; All real locals at function top with separate initialization; order follows mask/loop/title roles.
|
||||
- has-03-mask-helper-0: {"tag": "has-03-mask-helper-0", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Construct full 64-bit title matching mask in real inline helper.
|
||||
- has-03-mask-helper-1: {"tag": "has-03-mask-helper-1", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Construct full 64-bit title matching mask in real inline helper.
|
||||
- has-03-mask-helper-2: {"tag": "has-03-mask-helper-2", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Construct full 64-bit title matching mask in real inline helper.
|
||||
- has-03-mask-helper-3: {"tag": "has-03-mask-helper-3", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Construct full 64-bit title matching mask in real inline helper.
|
||||
- has-03-mask-helper-4: {"tag": "has-03-mask-helper-4", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Construct full 64-bit title matching mask in real inline helper.
|
||||
- has-03-mask-helper-5: {"tag": "has-03-mask-helper-5", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Construct full 64-bit title matching mask in real inline helper.
|
||||
- has-04-slot-helper-0: {"tag": "has-04-slot-helper-0", "diffs": 25, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Real title construction, region stripping or region predicate helper.
|
||||
- has-04-slot-helper-1: {"tag": "has-04-slot-helper-1", "diffs": 25, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Real title construction, region stripping or region predicate helper.
|
||||
- has-04-slot-helper-2: {"tag": "has-04-slot-helper-2", "diffs": 25, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Real title construction, region stripping or region predicate helper.
|
||||
- has-04-slot-helper-3: {"tag": "has-04-slot-helper-3", "diffs": 22, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Real title construction, region stripping or region predicate helper.
|
||||
- has-04-slot-helper-4: {"tag": "has-04-slot-helper-4", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Real title construction, region stripping or region predicate helper.
|
||||
- has-04-slot-helper-5: {"tag": "has-04-slot-helper-5", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Real title construction, region stripping or region predicate helper.
|
||||
- has-05-access-0: {"tag": "has-05-access-0", "diffs": 59, "insns": [72, 71], "sizes": [288, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Row/slot pointers, parameter copy, or page-scoped index with separate initialization.
|
||||
- has-05-access-1: {"tag": "has-05-access-1", "diffs": 59, "insns": [72, 71], "sizes": [288, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Row/slot pointers, parameter copy, or page-scoped index with separate initialization.
|
||||
- has-05-access-2: {"tag": "has-05-access-2", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Row/slot pointers, parameter copy, or page-scoped index with separate initialization.
|
||||
- has-05-access-3: {"tag": "has-05-access-3", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Row/slot pointers, parameter copy, or page-scoped index with separate initialization.
|
||||
- title-06-member-0: {"tag": "title-06-member-0", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Real metadata/channel-entry inline name accessor; pointer dereference stays inside member.
|
||||
- title-06-member-1: {"tag": "title-06-member-1", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Real metadata/channel-entry inline name accessor; pointer dereference stays inside member.
|
||||
- title-06-member-2: {"tag": "title-06-member-2", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Real metadata/channel-entry inline name accessor; pointer dereference stays inside member.
|
||||
- title-06-member-3: {"tag": "title-06-member-3", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Real metadata/channel-entry inline name accessor; pointer dereference stays inside member.
|
||||
- title-06-member-4: {"tag": "title-06-member-4", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Real metadata/channel-entry inline name accessor; pointer dereference stays inside member.
|
||||
- title-06-member-5: {"tag": "title-06-member-5", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Real metadata/channel-entry inline name accessor; pointer dereference stays inside member.
|
||||
- title-06-member-6: {"tag": "title-06-member-6", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Real metadata/channel-entry inline name accessor; pointer dereference stays inside member.
|
||||
- title-06-member-7: {"tag": "title-06-member-7", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Real metadata/channel-entry inline name accessor; pointer dereference stays inside member.
|
||||
- title-07-language-cast-0: {"tag": "title-07-language-cast-0", "diffs": 4, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preferred-language index signedness changes address association without a named local.
|
||||
- title-07-language-cast-1: {"tag": "title-07-language-cast-1", "diffs": 4, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preferred-language index signedness changes address association without a named local.
|
||||
- title-07-language-cast-2: {"tag": "title-07-language-cast-2", "diffs": 4, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preferred-language index signedness changes address association without a named local.
|
||||
- title-07-language-cast-3: {"tag": "title-07-language-cast-3", "diffs": 4, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preferred-language index signedness changes address association without a named local.
|
||||
- title-07-language-cast-4: {"tag": "title-07-language-cast-4", "diffs": 56, "insns": [72, 71], "sizes": [288, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preferred-language index signedness changes address association without a named local.
|
||||
- title-07-language-cast-5: {"tag": "title-07-language-cast-5", "diffs": 4, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preferred-language index signedness changes address association without a named local.
|
||||
- has-06-accessor-0: {"tag": "has-06-accessor-0", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Real const manager accessor or slot title-ID accessor, rather than temporary view types.
|
||||
- has-06-accessor-1: {"tag": "has-06-accessor-1", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Real const manager accessor or slot title-ID accessor, rather than temporary view types.
|
||||
- has-06-accessor-2: {"tag": "has-06-accessor-2", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Real const manager accessor or slot title-ID accessor, rather than temporary view types.
|
||||
- has-06-accessor-3: {"tag": "has-06-accessor-3", "diffs": 25, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Real const manager accessor or slot title-ID accessor, rather than temporary view types.
|
||||
- has-06-accessor-4: {"tag": "has-06-accessor-4", "diffs": 22, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Real const manager accessor or slot title-ID accessor, rather than temporary view types.
|
||||
- has-06-accessor-5: {"tag": "has-06-accessor-5", "diffs": 25, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Real const manager accessor or slot title-ID accessor, rather than temporary view types.
|
||||
- has-07-match-shape-0: {"tag": "has-07-match-shape-0", "diffs": 63, "insns": [75, 71], "sizes": [300, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Real inline masked-title comparator, or separate high/low mask construction.
|
||||
- has-07-match-shape-1: {"tag": "has-07-match-shape-1", "diffs": 63, "insns": [75, 71], "sizes": [300, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Real inline masked-title comparator, or separate high/low mask construction.
|
||||
- has-07-match-shape-2: {"tag": "has-07-match-shape-2", "diffs": 63, "insns": [75, 71], "sizes": [300, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Real inline masked-title comparator, or separate high/low mask construction.
|
||||
- has-07-match-shape-3: {"tag": "has-07-match-shape-3", "diffs": 69, "insns": [75, 71], "sizes": [300, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Real inline masked-title comparator, or separate high/low mask construction.
|
||||
- has-07-match-shape-4: {"tag": "has-07-match-shape-4", "diffs": 54, "insns": [77, 71], "sizes": [308, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Real inline masked-title comparator, or separate high/low mask construction.
|
||||
- has-07-match-shape-5: {"tag": "has-07-match-shape-5", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Real inline masked-title comparator, or separate high/low mask construction.
|
||||
- has-07-match-shape-6: {"tag": "has-07-match-shape-6", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Real inline masked-title comparator, or separate high/low mask construction.
|
||||
- has-07-match-shape-7: {"tag": "has-07-match-shape-7", "diffs": 66, "insns": [69, 71], "sizes": [276, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Real inline masked-title comparator, or separate high/low mask construction.
|
||||
- has-07-match-shape-8: {"tag": "has-07-match-shape-8", "diffs": 67, "insns": [72, 71], "sizes": [288, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Real inline masked-title comparator, or separate high/low mask construction.
|
||||
- has-07-match-shape-9: {"tag": "has-07-match-shape-9", "diffs": 65, "insns": [69, 71], "sizes": [276, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Real inline masked-title comparator, or separate high/low mask construction.
|
||||
- has-08-loop-0: {"tag": "has-08-loop-0", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Equivalent counted-loop spelling/bounds local or 64-bit title construction.
|
||||
- has-08-loop-1: {"tag": "has-08-loop-1", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Equivalent counted-loop spelling/bounds local or 64-bit title construction.
|
||||
- has-08-loop-2: {"tag": "has-08-loop-2", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Equivalent counted-loop spelling/bounds local or 64-bit title construction.
|
||||
- has-08-loop-3: {"tag": "has-08-loop-3", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Equivalent counted-loop spelling/bounds local or 64-bit title construction.
|
||||
- has-08-loop-4: {"tag": "has-08-loop-4", "diffs": 13, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Equivalent counted-loop spelling/bounds local or 64-bit title construction.
|
||||
- has-08-loop-5: {"tag": "has-08-loop-5", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Equivalent counted-loop spelling/bounds local or 64-bit title construction.
|
||||
- has-08-loop-6: {"tag": "has-08-loop-6", "diffs": 12, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Equivalent counted-loop spelling/bounds local or 64-bit title construction.
|
||||
- has-08-loop-7: {"tag": "has-08-loop-7", "diffs": 61, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 3 (mine=3 base=3)"}; Equivalent counted-loop spelling/bounds local or 64-bit title construction.
|
||||
- title-08-signed-byte-0: {"tag": "title-08-signed-byte-0", "diffs": 65, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Signed byte-stride arithmetic retains CSE with the original signed name-index multiplication; explicit offset local variants.
|
||||
- title-08-signed-byte-1: {"tag": "title-08-signed-byte-1", "diffs": 65, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Signed byte-stride arithmetic retains CSE with the original signed name-index multiplication; explicit offset local variants.
|
||||
- title-08-signed-byte-2: {"tag": "title-08-signed-byte-2", "diffs": 65, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Signed byte-stride arithmetic retains CSE with the original signed name-index multiplication; explicit offset local variants.
|
||||
- title-08-signed-byte-3: {"tag": "title-08-signed-byte-3", "diffs": 65, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Signed byte-stride arithmetic retains CSE with the original signed name-index multiplication; explicit offset local variants.
|
||||
- title-08-signed-byte-4: {"tag": "title-08-signed-byte-4", "diffs": 1, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Signed byte-stride arithmetic retains CSE with the original signed name-index multiplication; explicit offset local variants.
|
||||
- title-08-signed-byte-5: {"tag": "title-08-signed-byte-5", "diffs": 65, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Signed byte-stride arithmetic retains CSE with the original signed name-index multiplication; explicit offset local variants.
|
||||
- title-08-signed-byte-6: {"tag": "title-08-signed-byte-6", "diffs": 65, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Signed byte-stride arithmetic retains CSE with the original signed name-index multiplication; explicit offset local variants.
|
||||
- title-08-signed-byte-7: {"tag": "title-08-signed-byte-7", "diffs": 65, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Signed byte-stride arithmetic retains CSE with the original signed name-index multiplication; explicit offset local variants.
|
||||
- title-08-signed-byte-8: {"tag": "title-08-signed-byte-8", "diffs": 47, "insns": [72, 71], "sizes": [288, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Signed byte-stride arithmetic retains CSE with the original signed name-index multiplication; explicit offset local variants.
|
||||
- title-08-signed-byte-9: {"tag": "title-08-signed-byte-9", "diffs": 47, "insns": [72, 71], "sizes": [288, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Signed byte-stride arithmetic retains CSE with the original signed name-index multiplication; explicit offset local variants.
|
||||
|
||||
## Allocator evidence
|
||||
|
||||
hasChannel capture: `/mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/hasChannel__Q33ipl8savedata7ManagerCFUxPiPi-20261008-204333`. Simulator reproduces 53/53 virtual registers. Baseline full-mask low/high are r46/r47 -> r9/r0; target r10/r9. Row-base r45 -> r10; target r0. Region-mask constants r58/r59 -> r10/r4; target r4/r0. All other target assignments agree.
|
||||
|
||||
The shared vmap2 helper emitted numeric --want entries, but installed regsim only accepted names. A temporary copy `/tmp/sol-ph1-regsim.py` added numeric identifiers. With all 29 mapped operands wanted, it found 29/29 after reordering named nodes including compiler-generated temporaries. That is a diagnostic possible coloring, not an implementable local-declaration recipe: @17329/@17332 are generated full-mask/row-base temporaries. Inline accessors, C89 declarations, parameter copies and comparison helpers did not realize that numbering. Tool source was untouched.
|
||||
|
||||
getTitleName debugger attempt was queued behind the shared debugger lock for more than 100 seconds. Only this worker own queued process was terminated before it started compiling; no other process was touched. Target Ghidra and odiff evidence were available locally. The four baseline differences at instructions 17-20 come from C forming metadata + language stride before adding name stride; target combines name + language strides before metadata. The signed-byte-4 trial reduced this to one difference and is under further investigation. The fallback loop and all returns match.
|
||||
- title-09-one-add-0: {"tag": "title-09-one-add-0", "diffs": 1, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preserve signed name byte stride and unsigned language byte stride; reverse pointer-add operands or use conventional casts.
|
||||
- title-09-one-add-1: {"tag": "title-09-one-add-1", "diffs": 1, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preserve signed name byte stride and unsigned language byte stride; reverse pointer-add operands or use conventional casts.
|
||||
- title-09-one-add-2: {"tag": "title-09-one-add-2", "diffs": 1, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preserve signed name byte stride and unsigned language byte stride; reverse pointer-add operands or use conventional casts.
|
||||
- title-09-one-add-3: {"tag": "title-09-one-add-3", "diffs": 1, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preserve signed name byte stride and unsigned language byte stride; reverse pointer-add operands or use conventional casts.
|
||||
- title-09-one-add-4: {"tag": "title-09-one-add-4", "diffs": 5, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preserve signed name byte stride and unsigned language byte stride; reverse pointer-add operands or use conventional casts.
|
||||
- title-09-one-add-5: {"tag": "title-09-one-add-5", "diffs": 1, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preserve signed name byte stride and unsigned language byte stride; reverse pointer-add operands or use conventional casts.
|
||||
- title-09-one-add-6: {"tag": "title-09-one-add-6", "diffs": 1, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preserve signed name byte stride and unsigned language byte stride; reverse pointer-add operands or use conventional casts.
|
||||
- title-09-one-add-7: {"tag": "title-09-one-add-7", "diffs": 1, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preserve signed name byte stride and unsigned language byte stride; reverse pointer-add operands or use conventional casts.
|
||||
- title-09-one-add-8: {"tag": "title-09-one-add-8", "diffs": 1, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preserve signed name byte stride and unsigned language byte stride; reverse pointer-add operands or use conventional casts.
|
||||
- title-09-one-add-9: {"tag": "title-09-one-add-9", "diffs": 1, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Preserve signed name byte stride and unsigned language byte stride; reverse pointer-add operands or use conventional casts.
|
||||
- title-10-one-local-0: {"tag": "title-10-one-local-0", "diffs": 9, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Named pointer/combined stride local or byte-array indexing preserves the single grouped address expression.
|
||||
- title-10-one-local-1: {"tag": "title-10-one-local-1", "diffs": 59, "insns": [73, 71], "sizes": [292, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Named pointer/combined stride local or byte-array indexing preserves the single grouped address expression.
|
||||
- title-10-one-local-2: {"tag": "title-10-one-local-2", "diffs": 1, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Named pointer/combined stride local or byte-array indexing preserves the single grouped address expression.
|
||||
- title-10-one-local-3: {"tag": "title-10-one-local-3", "diffs": 7, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Named pointer/combined stride local or byte-array indexing preserves the single grouped address expression.
|
||||
- title-10-one-local-4: {"tag": "title-10-one-local-4", "diffs": 59, "insns": [73, 71], "sizes": [292, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Named pointer/combined stride local or byte-array indexing preserves the single grouped address expression.
|
||||
- title-10-one-local-5: {"tag": "title-10-one-local-5", "diffs": 59, "insns": [73, 71], "sizes": [292, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Named pointer/combined stride local or byte-array indexing preserves the single grouped address expression.
|
||||
- title-10-one-local-6: {"tag": "title-10-one-local-6", "diffs": 1, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Named pointer/combined stride local or byte-array indexing preserves the single grouped address expression.
|
||||
- title-10-one-local-7: {"tag": "title-10-one-local-7", "diffs": 1, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Named pointer/combined stride local or byte-array indexing preserves the single grouped address expression.
|
||||
- title-10-one-local-8: {"tag": "title-10-one-local-8", "diffs": 56, "insns": [72, 71], "sizes": [288, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Named pointer/combined stride local or byte-array indexing preserves the single grouped address expression.
|
||||
- title-10-one-local-9: {"tag": "title-10-one-local-9", "diffs": 56, "insns": [72, 71], "sizes": [288, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Named pointer/combined stride local or byte-array indexing preserves the single grouped address expression.
|
||||
- title-10-one-local-10: {"tag": "title-10-one-local-10", "diffs": 56, "insns": [72, 71], "sizes": [288, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Named pointer/combined stride local or byte-array indexing preserves the single grouped address expression.
|
||||
- title-10-one-local-11: {"tag": "title-10-one-local-11", "diffs": 1, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Named pointer/combined stride local or byte-array indexing preserves the single grouped address expression.
|
||||
- title-10-one-local-12: {"tag": "title-10-one-local-12", "diffs": 1, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Named pointer/combined stride local or byte-array indexing preserves the single grouped address expression.
|
||||
- title-10-one-local-13: {"tag": "title-10-one-local-13", "diffs": 1, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Named pointer/combined stride local or byte-array indexing preserves the single grouped address expression.
|
||||
- title-11-one-helper-0: {"tag": "title-11-one-helper-0", "diffs": 53, "insns": [72, 71], "sizes": [288, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Real metadata-name predicate or serialized-name byte-stride helper using mixed signed name/unsigned language arithmetic.
|
||||
- title-11-one-helper-1: {"tag": "title-11-one-helper-1", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Real metadata-name predicate or serialized-name byte-stride helper using mixed signed name/unsigned language arithmetic.
|
||||
- title-11-one-helper-2: {"tag": "title-11-one-helper-2", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Real metadata-name predicate or serialized-name byte-stride helper using mixed signed name/unsigned language arithmetic.
|
||||
- title-11-one-helper-3: {"tag": "title-11-one-helper-3", "diffs": 63, "insns": [73, 71], "sizes": [292, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Real metadata-name predicate or serialized-name byte-stride helper using mixed signed name/unsigned language arithmetic.
|
||||
- title-11-one-helper-4: {"tag": "title-11-one-helper-4", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Real metadata-name predicate or serialized-name byte-stride helper using mixed signed name/unsigned language arithmetic.
|
||||
- title-11-one-helper-5: {"tag": "title-11-one-helper-5", "diffs": 53, "insns": [72, 71], "sizes": [288, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Real metadata-name predicate or serialized-name byte-stride helper using mixed signed name/unsigned language arithmetic.
|
||||
- title-11-one-helper-6: {"tag": "title-11-one-helper-6", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Real metadata-name predicate or serialized-name byte-stride helper using mixed signed name/unsigned language arithmetic.
|
||||
- title-11-one-helper-7: {"tag": "title-11-one-helper-7", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Real metadata-name predicate or serialized-name byte-stride helper using mixed signed name/unsigned language arithmetic.
|
||||
- title-11-one-helper-8: {"tag": "title-11-one-helper-8", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Real metadata-name predicate or serialized-name byte-stride helper using mixed signed name/unsigned language arithmetic.
|
||||
- title-11-one-helper-9: {"tag": "title-11-one-helper-9", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Real metadata-name predicate or serialized-name byte-stride helper using mixed signed name/unsigned language arithmetic.
|
||||
- title-11-one-helper-10: {"tag": "title-11-one-helper-10", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Real metadata-name predicate or serialized-name byte-stride helper using mixed signed name/unsigned language arithmetic.
|
||||
- title-11-one-helper-11: {"tag": "title-11-one-helper-11", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Real metadata-name predicate or serialized-name byte-stride helper using mixed signed name/unsigned language arithmetic.
|
||||
- title-12-layout-0: {"tag": "title-12-layout-0", "diffs": 1, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Diagnostic explicit serialized field layout or integer-address addition; retain only if readable source review passes.
|
||||
- title-12-layout-1: {"tag": "title-12-layout-1", "diffs": 3, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Diagnostic explicit serialized field layout or integer-address addition; retain only if readable source review passes.
|
||||
- title-12-layout-2: {"tag": "title-12-layout-2", "diffs": 1, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Diagnostic explicit serialized field layout or integer-address addition; retain only if readable source review passes.
|
||||
- title-12-layout-3: {"tag": "title-12-layout-3", "diffs": 0, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Diagnostic explicit serialized field layout or integer-address addition; retain only if readable source review passes.
|
||||
- title-13-cast-0: {"tag": "title-13-cast-0", "diffs": 0, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Pointer element/cast spelling, constness or signed-name-to-unsigned-offset conversion on the one-difference expression.
|
||||
- title-14-clean-0: {"tag": "title-14-clean-0", "diffs": 2, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Readable preferred-name pointer or named array dimension constants; preserve byte-identical grouped offsets.
|
||||
- title-14-clean-1: {"tag": "title-14-clean-1", "diffs": 0, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Readable preferred-name pointer or named array dimension constants; preserve byte-identical grouped offsets.
|
||||
- title-14-clean-2: {"tag": "title-14-clean-2", "diffs": 0, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Readable preferred-name pointer or named array dimension constants; preserve byte-identical grouped offsets.
|
||||
- title-14-clean-3: {"tag": "title-14-clean-3", "diffs": 0, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Readable preferred-name pointer or named array dimension constants; preserve byte-identical grouped offsets.
|
||||
- title-14-clean-4: {"tag": "title-14-clean-4", "diffs": 0, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Readable preferred-name pointer or named array dimension constants; preserve byte-identical grouped offsets.
|
||||
- title-14-clean-5: {"tag": "title-14-clean-5", "diffs": 0, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Readable preferred-name pointer or named array dimension constants; preserve byte-identical grouped offsets.
|
||||
- title-14-clean-6: {"tag": "title-14-clean-6", "diffs": 65, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Readable preferred-name pointer or named array dimension constants; preserve byte-identical grouped offsets.
|
||||
- title-14-clean-7: {"tag": "title-14-clean-7", "diffs": 0, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Readable preferred-name pointer or named array dimension constants; preserve byte-identical grouped offsets.
|
||||
- title-14-clean-8: {"tag": "title-14-clean-8", "diffs": 0, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Readable preferred-name pointer or named array dimension constants; preserve byte-identical grouped offsets.
|
||||
- title-14-clean-9: {"tag": "title-14-clean-9", "diffs": 0, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Readable preferred-name pointer or named array dimension constants; preserve byte-identical grouped offsets.
|
||||
- title-15-final-readable: {"tag": "title-15-final-readable", "diffs": 0, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; Named preferred-name pointer with sizeof/offsetof of actual metadata fields, no numeric byte offsets or casts in the condition.
|
||||
|
||||
## Candidate retained
|
||||
|
||||
getTitleName: baseline C 4/71 -> 1/71 with signed name byte stride and unsigned language byte stride. Addressing the metadata header plus combined strides, then adding offsetof(SChanMgrMetaHeader, names), removed the final operand-order difference. Exact 0/71, 284/284 bytes. A real preferredName pointer local allowed conventional readable C casts while keeping exact output. Array extents and field offset come directly from the existing metadata declaration; no numeric layout constants, extra storage, dummy values, assembly or pragmas added. The lookup uses the same first character and returns the same original language/name pointer.
|
||||
|
||||
hasChannel: 50 compiled trials; best remains 12/71, 284/284 bytes. Saved `/mnt/drive2/projects/wii-ipl-workers/_luna-runs/best/sol-ph1.iplSaveDataManager.diff`; original asm restored byte-for-byte. No non-exact C retained. All temporary header accessors restored. Existing rx63 untracked files were left untouched.
|
||||
|
||||
Removed the getTitleName placeholder inventory row and decremented function/block/placeholder counts by one; refreshed the retained hasChannel evidence to the measured 12-difference C. Removed four asm-only external declarations from iplChannelManager.cpp.
|
||||
|
||||
## Final verification
|
||||
|
||||
Second getTitleName debugger run completed from an immutable `/tmp/sol-ph1-title-capture.cpp` at the one-difference candidate. Capture: `/mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/getTitleName__Q33ipl7channel7ManagerCFiii-20261008-205431`; sizes 284/284; only instruction 20 differs, `add r3,r0,r3` versus target `add r3,r3,r0`. The subsequent offsetof-after-strides form fixed the emitted operand order.
|
||||
|
||||
Inventory checker: expected FAIL solely for four remaining placeholders; coverage/counts are 166 functions, 168 bodies/blocks, 162 ORIGINAL, 4 PLACEHOLDER. No stale/duplicate/missing rows. getTitleName row is gone; hasChannel asm remains inventoried.
|
||||
|
||||
Final quick gate: PASS, full 43U build passed, DOL SHA1 `26116613f624061ba99c8d1a299aaa6efa85670d`. Zero regressions, zero net forbidden additions, zero readability warnings.
|
||||
|
||||
- iplChannelManager: 74/74 exact functions before and after; code 12552/12552, data 1080/1080, linked code 12552. Every owned section is 100%. getTitleName C++ replaces one retail-asm placeholder, 0/71 instructions differing, size 284/284.
|
||||
- iplSaveDataManager: 35/35 exact functions before and after; code 7172/7172, data 968/968, linked code 7172. Every owned section is 100%. Original asm hasChannel remains unchanged.
|
||||
- Gate output: `/tmp/sol-ph1-gate.txt`; inventory output: `/tmp/sol-ph1-inventory.txt`. Live gate report: `build/43U/report.json`.
|
||||
|
||||
After final formatting and removal of asm-only declarations: rebuilt `build/43U/ok` passed. Fresh odiff 0/71, size 284/284; ctxdiff diffs 0 with 71/71 instructions. Pools identical 9/9 and 3/3. DOL SHA1 remains correct. Fresh full objdiff report `/tmp/sol-ph1-finalreport.json` gives exact-name getTitleName fuzzy_match_percent 100.0, size 284.
|
||||
|
||||
GATE PASS
|
||||
|
||||
## Readability revision, HEAD 11bde428
|
||||
|
||||
Replace the rejected byte-offset lookup with ordinary typed indexing or a real accessor. Keep the asm inventory removal and all other functions exact. Each entry records a fresh object build, pool check, instruction diff, and sizes.
|
||||
|
||||
- readable-direct: {"tag": "direct", "diffs": 4, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const wchar_t* preferredName = mChannels[page][index].metaHdr->names[System::getLanguage()][nameIndex];
|
||||
- readable-row: {"tag": "row", "diffs": 64, "insns": [72, 71], "sizes": [288, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const wchar_t (*row)[META_CHANNEL_NAME_LENGTH + 1] = mChannels[page][index].metaHdr->names[System::getLanguage()]; const wchar_t* preferredName = row[nameIndex];
|
||||
- readable-row-language: {"tag": "row-language", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; int preferredLanguage = System::getLanguage(); const wchar_t (*row)[META_CHANNEL_NAME_LENGTH + 1] = mChannels[page][index].metaHdr->names[preferredLanguage]; const wchar_t* preferredName = row[nameIndex];
|
||||
- readable-table: {"tag": "table", "diffs": 9, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; typedef wchar_t NameTable[SC_LANG_MAX][NAME_INDEX_MAX][META_CHANNEL_NAME_LENGTH + 1]; const NameTable* names = &mChannels[page][index].metaHdr->names; const wchar_t* preferredName = (*names)[System::getLanguage()][nameIndex];
|
||||
- readable-table-after-language: {"tag": "table-after-language", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; typedef wchar_t NameTable[SC_LANG_MAX][NAME_INDEX_MAX][META_CHANNEL_NAME_LENGTH + 1]; int preferredLanguage = System::getLanguage(); const NameTable* names = &mChannels[page][index].metaHdr->names; const wchar_t* preferredName = (*names)[preferredLanguage][nameIndex];
|
||||
- readable-table-ref: {"tag": "table-ref", "diffs": 9, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const wchar_t (&names)[SC_LANG_MAX][NAME_INDEX_MAX][META_CHANNEL_NAME_LENGTH + 1] = mChannels[page][index].metaHdr->names; const wchar_t* preferredName = names[System::getLanguage()][nameIndex];
|
||||
- readable-table-language-ref: {"tag": "table-language-ref", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; int preferredLanguage = System::getLanguage(); const wchar_t (&names)[SC_LANG_MAX][NAME_INDEX_MAX][META_CHANNEL_NAME_LENGTH + 1] = mChannels[page][index].metaHdr->names; const wchar_t* preferredName = names[preferredLanguage][nameIndex];
|
||||
- readable-meta: {"tag": "meta", "diffs": 8, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const SChanMgrMetaHeader* meta = mChannels[page][index].metaHdr; const wchar_t* preferredName = meta->names[System::getLanguage()][nameIndex];
|
||||
- readable-meta-after-language: {"tag": "meta-after-language", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; int preferredLanguage = System::getLanguage(); const SChanMgrMetaHeader* meta = mChannels[page][index].metaHdr; const wchar_t* preferredName = meta->names[preferredLanguage][nameIndex];
|
||||
- readable-unsigned-language: {"tag": "unsigned-language", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; u32 preferredLanguage = System::getLanguage(); const wchar_t* preferredName = mChannels[page][index].metaHdr->names[preferredLanguage][nameIndex];
|
||||
- readable-row-add: {"tag": "row-add", "diffs": 64, "insns": [72, 71], "sizes": [288, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const wchar_t (*row)[META_CHANNEL_NAME_LENGTH + 1] = mChannels[page][index].metaHdr->names[System::getLanguage()]; const wchar_t* preferredName = *(nameIndex + row);
|
||||
- readable-table-add: {"tag": "table-add", "diffs": 9, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const wchar_t (*names)[NAME_INDEX_MAX][META_CHANNEL_NAME_LENGTH + 1] = mChannels[page][index].metaHdr->names; const wchar_t* preferredName = (*(System::getLanguage() + names))[nameIndex];
|
||||
|
||||
- readable-member-const-name-first: {"tag": "member-const-name-first", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const wchar_t* preferredName = mChannels[page][index].metaHdr->getName(nameIndex, System::getLanguage());
|
||||
- readable-member-const-lang-first: {"tag": "member-const-lang-first", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const wchar_t* preferredName = mChannels[page][index].metaHdr->getName(System::getLanguage(), nameIndex);
|
||||
- readable-member-name-ref: {"tag": "member-name-ref", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const wchar_t* preferredName = mChannels[page][index].metaHdr->getName(nameIndex, System::getLanguage());
|
||||
- readable-member-preferred: {"tag": "member-preferred", "compile": "FAIL"}; const wchar_t* preferredName = mChannels[page][index].metaHdr->getName(nameIndex);
|
||||
- readable-member-unsigned-name: {"tag": "member-unsigned-name", "diffs": 68, "insns": [76, 71], "sizes": [304, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const wchar_t* preferredName = mChannels[page][index].metaHdr->getName(nameIndex, System::getLanguage());
|
||||
- readable-member-row: {"tag": "member-row", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const wchar_t* preferredName = mChannels[page][index].metaHdr->getNames(System::getLanguage())[nameIndex];
|
||||
- readable-entry-preferred: {"tag": "entry-preferred", "compile": "FAIL"}; const wchar_t* preferredName = mChannels[page][index].getName(nameIndex);
|
||||
- readable-entry-ref-name-first: {"tag": "entry-ref-name-first", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const wchar_t* preferredName = mChannels[page][index].getName(nameIndex, System::getLanguage());
|
||||
- readable-entry-ref-lang-first: {"tag": "entry-ref-lang-first", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const wchar_t* preferredName = mChannels[page][index].getName(System::getLanguage(), nameIndex);
|
||||
- readable-reuse-language: {"tag": "reuse-language", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; language = System::getLanguage(); const wchar_t* preferredName = mChannels[page][index].metaHdr->names[language][nameIndex];
|
||||
- readable-reuse-signed-language: {"tag": "reuse-signed-language", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; language = System::getLanguage(); const wchar_t* preferredName = mChannels[page][index].metaHdr->names[(int)language][nameIndex];
|
||||
- readable-row-ref: {"tag": "row-ref", "diffs": 64, "insns": [72, 71], "sizes": [288, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const wchar_t (&row)[NAME_INDEX_MAX][META_CHANNEL_NAME_LENGTH + 1] = mChannels[page][index].metaHdr->names[System::getLanguage()]; const wchar_t* preferredName = row[nameIndex];
|
||||
- readable-meta-reference: {"tag": "meta-reference", "diffs": 7, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const SChanMgrMetaHeader& meta = *mChannels[page][index].metaHdr; const wchar_t* preferredName = meta.names[System::getLanguage()][nameIndex];
|
||||
- readable-all-entry: {"tag": "all-entry", "compile": "FAIL"}; const wchar_t* preferredName = channel.metaHdr->names[System::getLanguage()][nameIndex];
|
||||
- readable-predicate-direct: {"tag": "predicate-direct", "diffs": 4, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"};
|
||||
- readable-reuse-predicate-direct: {"tag": "reuse-predicate-direct", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; language = System::getLanguage();
|
||||
- readable-array-name-ref: {"tag": "array-name-ref", "diffs": 4, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const wchar_t (&preferredName)[META_CHANNEL_NAME_LENGTH + 1] = mChannels[page][index].metaHdr->names[System::getLanguage()][nameIndex];
|
||||
- readable-unsigned-name: {"tag": "unsigned-name", "diffs": 65, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const wchar_t* preferredName = mChannels[page][index].metaHdr->names[System::getLanguage()][(u32)nameIndex];
|
||||
|
||||
- readable-member-preferred-cpp: {"tag": "member-preferred-cpp", "diffs": 13, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const wchar_t* preferredName = mChannels[page][index].metaHdr->getName(nameIndex);
|
||||
- readable-entry-preferred-cpp: {"tag": "entry-preferred-cpp", "diffs": 4, "insns": [71, 71], "sizes": [284, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const wchar_t* preferredName = mChannels[page][index].getName(nameIndex);
|
||||
- readable-entry-scoped: {"tag": "entry-scoped", "diffs": 70, "insns": [67, 71], "sizes": [268, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const wchar_t* preferredName = channel.metaHdr->names[System::getLanguage()][nameIndex];
|
||||
- readable-all-accessor-int-wchar_tptr: {"tag": "all-accessor-int-wchar_tptr", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const wchar_t* preferredName = mChannels[page][index].metaHdr->names[System::getLanguage()][nameIndex];
|
||||
- readable-all-accessor-u32-wchar_tptr: {"tag": "all-accessor-u32-wchar_tptr", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const wchar_t* preferredName = mChannels[page][index].metaHdr->names[System::getLanguage()][nameIndex];
|
||||
- readable-typed-flat-group: {"tag": "typed-flat-group", "diffs": 67, "insns": [75, 71], "sizes": [300, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const wchar_t* preferredName = &mChannels[page][index].metaHdr->names[0][0][0] + (nameIndex * (META_CHANNEL_NAME_LENGTH + 1) + System::getLanguage() * NAME_INDEX_MAX * (META_CHANNEL_NAME_LENGTH + 1));
|
||||
- readable-typed-flat-reversed: {"tag": "typed-flat-reversed", "diffs": 67, "insns": [75, 71], "sizes": [300, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const wchar_t* preferredName = (nameIndex * (META_CHANNEL_NAME_LENGTH + 1) + System::getLanguage() * NAME_INDEX_MAX * (META_CHANNEL_NAME_LENGTH + 1)) + &mChannels[page][index].metaHdr->names[0][0][0];
|
||||
- readable-row-signed-language: {"tag": "row-signed-language", "diffs": 64, "insns": [72, 71], "sizes": [288, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; const wchar_t (*row)[META_CHANNEL_NAME_LENGTH + 1] = mChannels[page][index].metaHdr->names[(int)System::getLanguage()]; const wchar_t* preferredName = row[nameIndex];
|
||||
- readable-meta-reuse-language: {"tag": "meta-reuse-language", "diffs": 66, "insns": [74, 71], "sizes": [296, 284], "pool": "POOL IDENTICAL up to 9 (mine=9 base=9)"}; language = System::getLanguage(); const SChanMgrMetaHeader* meta = mChannels[page][index].metaHdr; const wchar_t* preferredName = meta->names[language][nameIndex];
|
||||
|
||||
### Readability revision outcome
|
||||
|
||||
39 trials; 36 compiled candidates; none exact. All successful builds retained identical pools, 9/9. Best normal array lookup remains 4/71 differing instructions, equal 284-byte size. Pointer-to-table, row, metadata, language local, shared language local, name reference, metadata accessor and entry accessor forms were tested. Inline accessor parameter ordering, signedness, reference returns, current-language accessors defined in the C++ file, and accessor use in all returns did not fix the association.
|
||||
|
||||
Best normal lookup: `const wchar_t* preferredName = mChannels[page][index].metaHdr->names[System::getLanguage()][nameIndex];`. Differences are instructions 17-20: language multiply destination r3 instead of r0, metadata load destination r0 instead of r3, base-plus-language before name offset, and resulting final add operands. Best source diff: `/tmp/sol-ph1-getTitleName-readable-best.diff`. Each full instruction diff is `/tmp/sol-ph1-readable-<tag>.txt`.
|
||||
|
||||
Restored the HEAD 11bde428 source and header exactly. The existing 0/71 byte-offset candidate and its asm inventory removal remain pending the orchestrator decision; this round found no accepted readable replacement. Header accessor experiments leave no changes in other units. Pre-existing untracked rx63 evidence remains untouched.
|
||||
|
||||
### Gate on restored exact candidate
|
||||
|
||||
Requested `gate.py src/system/iplChannelManager --quick`: GATE PASS. Full 43U build passed; DOL SHA1 `26116613f624061ba99c8d1a299aaa6efa85670d`. Unit unchanged at 74/74 instruction-exact functions, 12552/12552 code bytes, 1080/1080 data bytes, and all owned sections 100%. Zero regressions, net forbidden additions, and automatic readability warnings. The automated scan does not overturn the orchestrator rejection of the retained byte-offset expression. Fresh odiff 0/71, size 284/284; ctxdiff diffs 0, instructions 71/71; pool identical 9/9. Gate output `/tmp/sol-ph1-readable-gate.txt`. Commit only this log; no readable source candidate was accepted.
|
||||
360
tools/decomp-assist/sol-ties.attempts.md
Normal file
360
tools/decomp-assist/sol-ties.attempts.md
Normal file
@@ -0,0 +1,360 @@
|
||||
# sol-ties attempts
|
||||
|
||||
Base 23b77a33, branch agent/w1008/rx1. No source edits initially.
|
||||
Baseline: update 85/446, DeleteUnauthorizedData 74/449, equal sizes.
|
||||
Both string pools identical. Tracer requires output beneath _mwdbg; first local-output attempt rejected before compilation.
|
||||
|
||||
ZI1 lift declarations in reverse requested virtual order: 32 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI2 u32 LatestWord[copied] = LatestWord[copied + (wordLength - copyLength)];: 32 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI3 u32 *(LatestWord + copied) = *(LatestWord + wordLength - copyLength + copied);: 215 differing. src size 0x700 base size 0x6f8
|
||||
|
||||
ZI4 u32 LatestWord[copied] = LatestWord[wordLength + copied - copyLength];: 233 differing. src size 0x744 base size 0x6f8
|
||||
|
||||
ZI5 u32 LatestWord[copied] = LatestWord[copied - copyLength + wordLength];: 232 differing. src size 0x748 base size 0x6f8
|
||||
|
||||
ZI6 s32 LatestWord[copied] = LatestWord[copied + (wordLength - copyLength)];: 216 differing. src size 0x6dc base size 0x6f8
|
||||
|
||||
ZI7 s32 *(LatestWord + copied) = *(LatestWord + wordLength - copyLength + copied);: 216 differing. src size 0x6c0 base size 0x6f8
|
||||
|
||||
ZI8 s32 LatestWord[copied] = LatestWord[wordLength + copied - copyLength];: 232 differing. src size 0x740 base size 0x6f8
|
||||
|
||||
ZI9 s32 LatestWord[copied] = LatestWord[copied - copyLength + wordLength];: 226 differing. src size 0x71c base size 0x6f8
|
||||
|
||||
ZI10 u16 LatestWord[copied] = LatestWord[copied + (wordLength - copyLength)];: 215 differing. src size 0x65c base size 0x6f8
|
||||
|
||||
ZI11 u16 *(LatestWord + copied) = *(LatestWord + wordLength - copyLength + copied);: 215 differing. src size 0x65c base size 0x6f8
|
||||
|
||||
ZI12 u16 LatestWord[copied] = LatestWord[wordLength + copied - copyLength];: 217 differing. src size 0x660 base size 0x6f8
|
||||
|
||||
ZI13 u16 LatestWord[copied] = LatestWord[copied - copyLength + wordLength];: 217 differing. src size 0x660 base size 0x6f8
|
||||
|
||||
ZI14 int LatestWord[copied] = LatestWord[copied + (wordLength - copyLength)];: 216 differing. src size 0x6dc base size 0x6f8
|
||||
|
||||
ZI15 int *(LatestWord + copied) = *(LatestWord + wordLength - copyLength + copied);: 216 differing. src size 0x6c0 base size 0x6f8
|
||||
|
||||
ZI16 int LatestWord[copied] = LatestWord[wordLength + copied - copyLength];: 232 differing. src size 0x740 base size 0x6f8
|
||||
|
||||
ZI17 int LatestWord[copied] = LatestWord[copied - copyLength + wordLength];: 226 differing. src size 0x71c base size 0x6f8
|
||||
|
||||
ZI18 copied != copyLength copied++: 216 differing. src size 0x6c0 base size 0x6f8
|
||||
|
||||
ZI19 copied != copyLength copied += 1: 216 differing. src size 0x6c0 base size 0x6f8
|
||||
|
||||
ZI20 copied != copyLength copied = copied + 1: 216 differing. src size 0x6c0 base size 0x6f8
|
||||
|
||||
ZI21 copyLength > copied copied++: 32 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI22 copyLength > copied copied += 1: 32 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI23 copyLength > copied copied = copied + 1: 32 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI24 pointer copy before ++source; ++destination; ++copied: 299 differing. src size 0x6d4 base size 0x6f8
|
||||
|
||||
ZI25 pointer copy before ++copied; ++destination; ++source: 299 differing. src size 0x6d4 base size 0x6f8
|
||||
|
||||
ZI26 pointer copy before ++destination; ++source; ++copied: 299 differing. src size 0x6d4 base size 0x6f8
|
||||
|
||||
ZI27 pointer copy after ++source; ++destination; ++copied: 299 differing. src size 0x6d4 base size 0x6f8
|
||||
|
||||
ZI28 pointer copy after ++copied; ++destination; ++source: 299 differing. src size 0x6d4 base size 0x6f8
|
||||
|
||||
ZI29 pointer copy after ++destination; ++source; ++copied: 299 differing. src size 0x6d4 base size 0x6f8
|
||||
|
||||
ZI30 element type (wchar_t*)LatestWord: 32 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI31 element type (unsigned short*)LatestWord: 32 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI32 swap wordLength copied: 32 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI33 swap copyLength wordLength: 32 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI34 swap copied copyLength: 32 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI35 while copy: 32 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI36 precompute offset: 201 differing. src size 0x6f4 base size 0x6f8
|
||||
|
||||
ZI37 source base indexing: 216 differing. src size 0x6f0 base size 0x6f8
|
||||
|
||||
ZI38 typed character temporary u16: 32 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI39 typed character temporary wchar_t: 32 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI40 inline suffix helper u16* word, u32 length, u32 wordLength u32: 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI41 inline suffix helper u16* word, u32 length, u32 wordLength void: 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI42 inline suffix helper u16* word, u32 wordLength, u32 length u32: 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI43 inline suffix helper u16* word, u32 wordLength, u32 length void: 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI44 parameter order ('u16* word', 'u32 length', 'u32 wordLength'): 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI45 parameter order ('u16* word', 'u32 wordLength', 'u32 length'): 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI46 parameter order ('u32 length', 'u16* word', 'u32 wordLength'): 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI47 parameter order ('u32 length', 'u32 wordLength', 'u16* word'): 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI48 parameter order ('u32 wordLength', 'u16* word', 'u32 length'): 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI49 parameter order ('u32 wordLength', 'u32 length', 'u16* word'): 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI50 helper copies ('wordLength',): 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI51 helper copies ('length',): 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI52 helper copies ('word',): 214 differing. src size 0x6f4 base size 0x6f8
|
||||
|
||||
ZI53 helper copies ('wordLength', 'length'): 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI54 helper copies ('length', 'wordLength'): 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI55 helper copies ('word', 'wordLength', 'length'): 218 differing. src size 0x6f4 base size 0x6f8
|
||||
|
||||
ZI56 helper copies ('length', 'word', 'wordLength'): 218 differing. src size 0x6f4 base size 0x6f8
|
||||
|
||||
ZI57 source/destination helper source[copied] order 0: 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI58 source/destination helper source[copied] order 1: 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI59 source/destination helper *(source + copied) order 0: 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI60 source/destination helper *(source + copied) order 1: 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI61 source/destination helper source[offset + copied] order 0: 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI62 source/destination helper source[offset + copied] order 1: 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI63 source/destination helper const source[copied] order 0: 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI64 source/destination helper const source[copied] order 1: 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI65 source/destination helper const *(source + copied) order 0: 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI66 source/destination helper const *(source + copied) order 1: 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI67 source/destination helper const source[offset + copied] order 0: 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI68 source/destination helper const source[offset + copied] order 1: 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ES1 titleId received by value and copied into last local: 116 differing. src size 0x704 base size 0x704
|
||||
|
||||
ZI69 helper offset before wordLength - length: 186 differing. src size 0x6f4 base size 0x6f8
|
||||
|
||||
ZI70 helper offset before wordLength + -length: 186 differing. src size 0x6f4 base size 0x6f8
|
||||
|
||||
ZI71 helper offset after wordLength - length: 186 differing. src size 0x6f4 base size 0x6f8
|
||||
|
||||
ZI72 helper offset after wordLength + -length: 186 differing. src size 0x6f4 base size 0x6f8
|
||||
|
||||
ZI73 helper expression word[copied + (wordLength - length)]: 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI74 helper expression word[wordLength + copied - length]: 232 differing. src size 0x744 base size 0x6f8
|
||||
|
||||
ZI75 helper expression *(word + (wordLength - length) + copied): 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI76 helper loop u32 remaining = length;: 216 differing. src size 0x6c4 base size 0x6f8
|
||||
|
||||
ZI77 helper loop u32 copied = 0;: 19 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ES2 reverse paired desired locals: 34 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES3 forward paired desired locals: 158 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES4 reverse paired desired by ref: 403 differing. src size 0x70c base size 0x704
|
||||
|
||||
ES5 forward paired desired by ref: 412 differing. src size 0x70c base size 0x704
|
||||
|
||||
ES6 reverse paired desired by pointer: 34 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES7 forward paired desired by pointer: 158 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES8 InitSavedata declarations ('titleIds', 'ret', 'ticketScratch', 'i'): 34 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES9 Init declarations ('titleIds', 'ret', 'ticketScratch', 'i') and ticket order: 20 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES10 InitSavedata declarations ('titleIds', 'ret', 'i', 'ticketScratch'): 30 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES11 Init declarations ('titleIds', 'ret', 'i', 'ticketScratch') and ticket order: 16 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES12 InitSavedata declarations ('titleIds', 'ticketScratch', 'ret', 'i'): 39 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES13 Init declarations ('titleIds', 'ticketScratch', 'ret', 'i') and ticket order: 25 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES14 InitSavedata declarations ('titleIds', 'ticketScratch', 'i', 'ret'): 39 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES15 Init declarations ('titleIds', 'ticketScratch', 'i', 'ret') and ticket order: 25 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES16 InitSavedata declarations ('titleIds', 'i', 'ret', 'ticketScratch'): 35 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES17 Init declarations ('titleIds', 'i', 'ret', 'ticketScratch') and ticket order: 21 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES18 InitSavedata declarations ('titleIds', 'i', 'ticketScratch', 'ret'): 39 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES19 Init declarations ('titleIds', 'i', 'ticketScratch', 'ret') and ticket order: 25 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES20 InitSavedata declarations ('ret', 'titleIds', 'ticketScratch', 'i'): 39 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES21 Init declarations ('ret', 'titleIds', 'ticketScratch', 'i') and ticket order: 25 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES22 InitSavedata declarations ('ret', 'titleIds', 'i', 'ticketScratch'): 35 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES23 Init declarations ('ret', 'titleIds', 'i', 'ticketScratch') and ticket order: 21 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES24 InitSavedata declarations ('ret', 'ticketScratch', 'titleIds', 'i'): 28 differing. src size 0x704 base size 0x704
|
||||
|
||||
ZI78 helper computes word length, local order 0 u16* word, u32 length: 2 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI79 helper computes word length, local order 0 u32 length, u16* word: 2 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI80 helper computes word length, local order 1 u16* word, u32 length: 2 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI81 helper computes word length, local order 1 u32 length, u16* word: 2 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ES25 Init declarations ('ret', 'ticketScratch', 'titleIds', 'i') and ticket order: 14 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES26 InitSavedata declarations ('ret', 'ticketScratch', 'i', 'titleIds'): 39 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES27 Init declarations ('ret', 'ticketScratch', 'i', 'titleIds') and ticket order: 25 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES28 InitSavedata declarations ('ret', 'i', 'titleIds', 'ticketScratch'): 24 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES29 Init declarations ('ret', 'i', 'titleIds', 'ticketScratch') and ticket order: 10 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES30 InitSavedata declarations ('ret', 'i', 'ticketScratch', 'titleIds'): 39 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES31 Init declarations ('ret', 'i', 'ticketScratch', 'titleIds') and ticket order: 25 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES32 InitSavedata declarations ('ticketScratch', 'titleIds', 'ret', 'i'): 39 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES33 Init declarations ('ticketScratch', 'titleIds', 'ret', 'i') and ticket order: 25 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES34 InitSavedata declarations ('ticketScratch', 'titleIds', 'i', 'ret'): 39 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES35 Init declarations ('ticketScratch', 'titleIds', 'i', 'ret') and ticket order: 25 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES36 InitSavedata declarations ('ticketScratch', 'ret', 'titleIds', 'i'): 23 differing. src size 0x704 base size 0x704
|
||||
|
||||
ZI82 key copy loop iteration ++keyIndex, keyOutput += 0x40: 2 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI83 key copy loop iteration keyOutput += 0x40, ++keyIndex: 2 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI84 key copy loop body index then output: 2 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ES37 Init declarations ('ticketScratch', 'ret', 'titleIds', 'i') and ticket order: 9 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES38 InitSavedata declarations ('ticketScratch', 'ret', 'i', 'titleIds'): 34 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES39 Init declarations ('ticketScratch', 'ret', 'i', 'titleIds') and ticket order: 20 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES40 InitSavedata declarations ('ticketScratch', 'i', 'titleIds', 'ret'): 28 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES41 Init declarations ('ticketScratch', 'i', 'titleIds', 'ret') and ticket order: 14 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES42 InitSavedata declarations ('ticketScratch', 'i', 'ret', 'titleIds'): 39 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES43 Init declarations ('ticketScratch', 'i', 'ret', 'titleIds') and ticket order: 25 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES44 InitSavedata declarations ('i', 'titleIds', 'ret', 'ticketScratch'): 32 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES45 Init declarations ('i', 'titleIds', 'ret', 'ticketScratch') and ticket order: 18 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES46 InitSavedata declarations ('i', 'titleIds', 'ticketScratch', 'ret'): 36 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES47 Init declarations ('i', 'titleIds', 'ticketScratch', 'ret') and ticket order: 22 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES48 InitSavedata declarations ('i', 'ret', 'titleIds', 'ticketScratch'): 16 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES49 Init declarations ('i', 'ret', 'titleIds', 'ticketScratch') and ticket order: 2 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES50 InitSavedata declarations ('i', 'ret', 'ticketScratch', 'titleIds'): 31 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES51 Init declarations ('i', 'ret', 'ticketScratch', 'titleIds') and ticket order: 17 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES52 InitSavedata declarations ('i', 'ticketScratch', 'titleIds', 'ret'): 25 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES53 Init declarations ('i', 'ticketScratch', 'titleIds', 'ret') and ticket order: 11 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES54 InitSavedata declarations ('i', 'ticketScratch', 'ret', 'titleIds'): 36 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES55 Init declarations ('i', 'ticketScratch', 'ret', 'titleIds') and ticket order: 22 differing. src size 0x704 base size 0x704
|
||||
|
||||
ES56 initialize valid before j: 0 differing. src size 0x704 base size 0x704
|
||||
|
||||
ZI85 key source expression *(static_cast<keyboard::cellphonetype::PaneNameToCharCode*>(mpHoldingKey)->wc + keyIndex - 1): 2 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI86 key source expression static_cast<keyboard::cellphonetype::PaneNameToCharCode*>(mpHoldingKey)->wc[-1 + keyIndex]: 2 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI87 key source expression (static_cast<keyboard::cellphonetype::PaneNameToCharCode*>(mpHoldingKey)->wc - 1)[keyIndex]: 2 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI88 key source expression static_cast<keyboard::cellphonetype::PaneNameToCharCode*>(mpHoldingKey)->wc[keyIndex + -1]: 2 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI89 swap keyOutput declaration with keyIndex: 15 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI90 swap keyOutput declaration with keyCharacter: 2 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI91 swap keyOutput declaration with koreanOutput: 2 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI92 swap keyOutput declaration with index: 35 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI93 swap keyOutput declaration with source: 30 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI94 swap keyOutput declaration with elementCount: 44 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI95 key destination increment keyOutput = keyOutput + 0x40: 2 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI96 key destination increment keyOutput = 0x40 + keyOutput: 2 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI97 key destination increment keyOutput += 64: 2 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
ZI98 preincrement key destination: 347 differing. src size 0x6f4 base size 0x6f8
|
||||
|
||||
ZI99 key destination base plus indexed offset: 353 differing. src size 0x6f4 base size 0x6f8
|
||||
|
||||
ZI100 key destination indexed by keyIndex: 0 differing. src size 0x6f8 base size 0x6f8
|
||||
|
||||
Both requested functions reached zero differing with equal size. ZI100 also indexes the key output by keyIndex, removing the final induction-update scheduling pair. ES56 initializes valid before j, removing its final scheduling pair. No configure status change yet; unit-wide checks follow.
|
||||
|
||||
Unit-wide objdiff after the exact source edits: tiZiString 29/29 functions, 5504/5504 code, 7680/7680 data, every section 100%; iplESMisc 31/31 functions, 11200/11200 code, 4416/4416 data, every section 100%. Pools identical; ctxdiff update 446/446 instructions, diffs 0; DeleteUnauthorizedData 449/449 instructions, diffs 0. Both configure entries changed to Matching.
|
||||
|
||||
Initial full gate failed despite all owned code/data exact: DOL a9c0db300b393a94c498af7a6ef5a710f804edcb. Isolating configure entries showed tiZiString linking preserves the failure hash; both NonMatching restore the target hash. dtk dol diff proved checkForNullTermination and DeleteUnauthorizedData were emitted in reverse object order. Reordered these two definitions to symbols.txt order without changing their bodies.
|
||||
|
||||
Final gate after definition-order repair:
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/keyboard/tiZiString] pool: IDENTICAL
|
||||
[src/keyboard/tiZiString] objdiff: code 5504/5504 data 7680/7680 functions 29/29 fuzzy 100.0000 linked code 5504
|
||||
[src/keyboard/tiZiString] instruction-exact functions: 29/29
|
||||
[src/keyboard/tiZiString] section .bss size 7296 match 100.0
|
||||
[src/keyboard/tiZiString] section .data size 328 match 100.0
|
||||
[src/keyboard/tiZiString] section .rodata size 56 match 100.0
|
||||
[src/keyboard/tiZiString] section .text size 5504 match 100.0
|
||||
[src/keyboard/tiZiString] baseline: code 3720/5504 data 7680 functions 28 fuzzy 99.4717
|
||||
[src/utility/iplESMisc] pool: IDENTICAL
|
||||
[src/utility/iplESMisc] objdiff: code 11200/11200 data 4416/4416 functions 31/31 fuzzy 100.0000 linked code 11200
|
||||
[src/utility/iplESMisc] instruction-exact functions: 31/31
|
||||
[src/utility/iplESMisc] section .data size 4384 match 100.0
|
||||
[src/utility/iplESMisc] section .sdata size 32 match 100.0
|
||||
[src/utility/iplESMisc] section .text size 11200 match 100.0
|
||||
[src/utility/iplESMisc] baseline: code 9404/11200 data 4416 functions 30 fuzzy 99.8625
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 97.29338 -> 97.41291
|
||||
global fuzzy_match_percent: 99.88914 -> 99.89063
|
||||
global complete_code_percent: 88.00925 -> 88.56695
|
||||
global matched_data_percent: 100.00000 -> 100.00000
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
note: config touched: configure.py (orchestrator reviews every config/symbols change)
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
Final ctxdiff: update 446/446, diffs 0; DeleteUnauthorizedData 449/449, diffs 0. Both exact and linked.
|
||||
|
||||
Allocator captures: baseline tiZiString `_mwdbg/runs/update__Q39textinput8tistring6WithZiFv-20261008-193010`; ordered locals `...-20261008-193122`; baseline iplESMisc `_mwdbg/runs/DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap-20261008-193201`; titleId-copy `...-20261008-193510`. Baseline regsim reproduces 161/161. Paired titleId constrained simulation found 64/64 wants. Generated trial scripts, reports and raw logs are retained locally under build/sol-ties.
|
||||
|
||||
ES exact implementation and its Matching entry committed as 0b3c7842. tiZiString exact implementation and its Matching entry follow in a separate commit. The final gate above covers the combined tree.
|
||||
@@ -182,12 +182,10 @@ class WorkflowGuardTests(unittest.TestCase):
|
||||
failures = check_report(report)
|
||||
self.assertFalse(any("enc_dummy section .sbss" in failure for failure in failures))
|
||||
|
||||
@unittest.skipUnless(
|
||||
(Path(__file__).resolve().parents[1] / "build/43U/report.json").is_file(),
|
||||
"generated 43U report is not available",
|
||||
)
|
||||
def test_complete_report_schema_passes(self):
|
||||
def complete_report(self):
|
||||
report_path = Path(__file__).resolve().parents[1] / "build/43U/report.json"
|
||||
if not report_path.is_file():
|
||||
self.skipTest("generated 43U report is not available")
|
||||
report = copy.deepcopy(json.loads(report_path.read_text(encoding="utf-8")))
|
||||
|
||||
def fill(measures):
|
||||
@@ -230,7 +228,36 @@ class WorkflowGuardTests(unittest.TestCase):
|
||||
function["fuzzy_match_percent"] = 100.0
|
||||
for category in report["categories"]:
|
||||
fill(category["measures"])
|
||||
self.assertEqual(check_report(report), [])
|
||||
return report
|
||||
|
||||
def test_complete_report_schema_passes(self):
|
||||
self.assertEqual(check_report(self.complete_report()), [])
|
||||
|
||||
def test_missing_or_extra_unit_fails(self):
|
||||
for total_units in (1027, 1029):
|
||||
with self.subTest(total_units=total_units):
|
||||
report = self.complete_report()
|
||||
if total_units == 1027:
|
||||
report["units"].pop()
|
||||
else:
|
||||
extra = copy.deepcopy(report["units"][-1])
|
||||
extra["name"] += "/extra"
|
||||
report["units"].append(extra)
|
||||
failures = check_report(report)
|
||||
self.assertIn(f"unit report length: {total_units}", failures)
|
||||
self.assertIn(f"unit aggregate total_units: {total_units} != 1028", failures)
|
||||
|
||||
def test_wrong_unit_totals_fail(self):
|
||||
for total_units in (1027, 1029):
|
||||
with self.subTest(total_units=total_units):
|
||||
report = self.complete_report()
|
||||
delta = total_units - 1028
|
||||
for field in ("total_units", "complete_units"):
|
||||
report["measures"][field] = total_units
|
||||
report["categories"][0]["measures"][field] += delta
|
||||
failures = check_report(report)
|
||||
self.assertIn(f"overall total_units: {total_units} != 1028", failures)
|
||||
self.assertIn(f"category total_units: {total_units} != 1028", failures)
|
||||
|
||||
@unittest.skipUnless(
|
||||
(Path(__file__).resolve().parents[1] / "build/43U/report.json").is_file(),
|
||||
|
||||
Reference in New Issue
Block a user