Compare commits
1 Commits
agent/w092
...
agent/fix/
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
379c84d5f6 |
@@ -1006,7 +1006,7 @@ config.libs = [
|
||||
Object(Matching, "clib/zidawg1.c"),
|
||||
Object(Matching, "clib/zikorean.c"),
|
||||
Object(Matching, "clib/ziswordw.c"),
|
||||
Object(Matching, "clib/zkokeyp.c"),
|
||||
Object(NonMatching, "clib/zkokeyp.c"),
|
||||
Object(Matching, "clib/zierror.c"),
|
||||
Object(Matching, "clib/zmtkey.c"),
|
||||
Object(Matching, "clib/zoemdata.c"),
|
||||
|
||||
@@ -432,8 +432,8 @@ static void* allocate_from_var_pools(__mem_pool_obj* pool, unsigned int size, un
|
||||
}
|
||||
|
||||
static void* soft_allocate_from_var_pools(__mem_pool_obj* pool, unsigned int size, unsigned int* out) {
|
||||
Block* bp;
|
||||
SubBlock* ptr;
|
||||
register Block* bp;
|
||||
register SubBlock* ptr;
|
||||
|
||||
size = (size + 15) & ~7;
|
||||
if (size < 0x50) {
|
||||
@@ -681,9 +681,9 @@ static unsigned int __pool_allocate_resize(__mem_pool_obj* pool, void* ptr, unsi
|
||||
return 0;
|
||||
}
|
||||
|
||||
void* malloc(unsigned int size) {
|
||||
void* malloc(register unsigned int size) {
|
||||
void* rv;
|
||||
__mem_pool_obj* pool_obj;
|
||||
register __mem_pool_obj* pool_obj;
|
||||
|
||||
if (size == 0) {
|
||||
goto null_return;
|
||||
@@ -712,8 +712,8 @@ void free(void* ptr) {
|
||||
}
|
||||
|
||||
void* realloc(void* ptr, unsigned int size) {
|
||||
unsigned int rv = size;
|
||||
__mem_pool_obj* pool;
|
||||
register unsigned int rv = size;
|
||||
register __mem_pool_obj* pool;
|
||||
unsigned int current_size;
|
||||
unsigned int orig_size;
|
||||
|
||||
@@ -773,8 +773,8 @@ void* realloc(void* ptr, unsigned int size) {
|
||||
}
|
||||
|
||||
void* calloc(unsigned int nmemb, unsigned int size) {
|
||||
void* ptr;
|
||||
unsigned int total;
|
||||
register void* ptr;
|
||||
register unsigned int total;
|
||||
__mem_pool_obj* pool_obj;
|
||||
|
||||
pool_obj = (__mem_pool_obj*)get_malloc_pool();
|
||||
|
||||
@@ -742,7 +742,7 @@ int __sformatter(int (*ReadProc)(void*, int, int), void* ReadProcArg, const char
|
||||
*(long*)arg_ptr = chars_read;
|
||||
break;
|
||||
case char_argument:
|
||||
*arg_ptr = chars_read;
|
||||
*(char*)arg_ptr = chars_read;
|
||||
break;
|
||||
case long_long_argument:
|
||||
*(long long*)arg_ptr = chars_read;
|
||||
|
||||
@@ -17,7 +17,7 @@ wchar_t* wmemset(wchar_t* dest, wchar_t ch, size_t num) {
|
||||
wchar_t* wmemchr(wchar_t* ptr, wchar_t ch, size_t num) {
|
||||
while (num != 0) {
|
||||
if (*ptr == ch) {
|
||||
return ptr;
|
||||
return (wchar_t*)ptr;
|
||||
}
|
||||
|
||||
ptr++;
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace nw4r {
|
||||
}
|
||||
|
||||
void WsdTrack::Start(const void* wsdData, int index) {
|
||||
mWsdData = wsdData;
|
||||
mWsdData = (void*)wsdData;
|
||||
mIndex = index;
|
||||
}
|
||||
|
||||
|
||||
@@ -77,17 +77,17 @@ namespace nw4r {
|
||||
dataSheetsOff = ROUNDUP(offsetof(ArchiveFontBinaryLayout, glgr.inner.nameOffsets) + countName * sizeof(u16), 4);
|
||||
data0AOff = ROUNDUP(dataSheetsOff + countSheet * sizeof(u32), 4);
|
||||
data0COff = ROUNDUP(data0AOff + count0A * sizeof(u32), 4);
|
||||
dataSheets = (const u32*)(dataSheetsOff + (u32)fontData);
|
||||
data0A = (const u32*)(data0AOff + (u32)fontData);
|
||||
data0C = (const u32*)(data0COff + (u32)fontData);
|
||||
dataSheets = (const u32*)((u32)dataSheetsOff + (u32)fontData);
|
||||
data0A = (const u32*)((u32)data0AOff + (u32)fontData);
|
||||
data0C = (const u32*)((u32)data0COff + (u32)fontData);
|
||||
|
||||
flagsSheetsOff = ROUNDUP(data0COff + count0CWork * sizeof(u32), 4);
|
||||
flags0AOff = ROUNDUP(flagsSheetsOff + stepSheets * countName, 4);
|
||||
flags0COff = ROUNDUP(flags0AOff + step0A * countName, 4);
|
||||
|
||||
flagsSheets = (const u32*)(flagsSheetsOff + (u32)fontData);
|
||||
flags0A = (const u32*)(flags0AOff + (u32)fontData);
|
||||
flags0C = (const u32*)(flags0COff + (u32)fontData);
|
||||
flagsSheets = (const u32*)((u32)flagsSheetsOff + (u32)fontData);
|
||||
flags0A = (const u32*)((u32)flags0AOff + (u32)fontData);
|
||||
flags0C = (const u32*)((u32)flags0COff + (u32)fontData);
|
||||
|
||||
loadedSheetCount = 0;
|
||||
loadedSmth0ASize = 0;
|
||||
@@ -102,7 +102,7 @@ namespace nw4r {
|
||||
offsetPGlgr = (const HeaderedGlyphGroups*)((const u8*)offsetPGlgr + 2), j++) {
|
||||
groupName = (const char*)((u32)offsetPGlgr->inner.nameOffsets[0] + (u32)fontData);
|
||||
if (*includedGroups == '\0' || detail::ArchiveFontBase::IncludeName(includedGroups, groupName)) {
|
||||
flagWord |= *(const u32*)(offsetFlags + ROUNDDOWN(j * stepSheets, 4));
|
||||
flagWord |= *(const u32*)((const u8*)offsetFlags + ROUNDDOWN(j * stepSheets, 4));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,11 +119,11 @@ namespace nw4r {
|
||||
groupOffset = pGlgr->inner.nameOffsets[j];
|
||||
groupName = (const char*)(groupOffset + (u32)fontData);
|
||||
if (*includedGroups == '\0' || detail::ArchiveFontBase::IncludeName(includedGroups, groupName)) {
|
||||
flagWord |= *(const u32*)(offsetFlags + ROUNDDOWN(j * step0A, 4));
|
||||
flagWord |= *(const u32*)((const u8*)offsetFlags + ROUNDDOWN(j * step0A, 4));
|
||||
}
|
||||
}
|
||||
|
||||
offsetData = data0A + i * 32;
|
||||
offsetData = (const u32*)data0A + i * 32;
|
||||
for (j = 0; j < 32; j++) {
|
||||
if ((flagWord << j) & 0x80000000U) {
|
||||
loadedSmth0ASize += offsetData[j] - sizeof(BinaryBlockHeader);
|
||||
@@ -140,11 +140,11 @@ namespace nw4r {
|
||||
groupOffset = pGlgr->inner.nameOffsets[j];
|
||||
groupName = (const char*)(groupOffset + (u32)fontData);
|
||||
if (*includedGroups == '\0' || detail::ArchiveFontBase::IncludeName(includedGroups, groupName)) {
|
||||
flagWord |= *(const u32*)(offsetFlags + ROUNDDOWN(j * step0C, 4));
|
||||
flagWord |= *(const u32*)((const u8*)offsetFlags + ROUNDDOWN(j * step0C, 4));
|
||||
}
|
||||
}
|
||||
|
||||
offsetData = data0C + i * 32;
|
||||
offsetData = (const u32*)data0C + i * 32;
|
||||
for (j = 0; j < 32; j++) {
|
||||
if ((flagWord << j) & 0x80000000U) {
|
||||
loadedSmth0CSize += offsetData[j] - sizeof(BinaryBlockHeader);
|
||||
|
||||
@@ -23,8 +23,8 @@ const ziWChar Zi8PunctTable[40] = {
|
||||
0xFFE1, 0x20AC, 0x203B, 0xFF20, 0x0000,
|
||||
};
|
||||
|
||||
ziU32 Zi8Punctuation(ziGetParam* param, ZiCandidateOptions* options ZI_NEED_WORK) {
|
||||
ziS32 limit = options->capacity - 1;
|
||||
ziU32 Zi8Punctuation(ziGetParam* param, ziPtr options ZI_NEED_WORK) {
|
||||
ziS32 limit = ((ZiCandidateOptions*)options)->capacity - 1;
|
||||
ziS32 count = 0;
|
||||
ziU8 i = 0;
|
||||
ziU16 fc = param->firstCandidate;
|
||||
@@ -36,11 +36,11 @@ ziU32 Zi8Punctuation(ziGetParam* param, ZiCandidateOptions* options ZI_NEED_WORK
|
||||
}
|
||||
if (fc == 0) {
|
||||
count++;
|
||||
if (options->countOnly == 0) {
|
||||
if (((ZiCandidateOptions*)options)->countOnly == 0) {
|
||||
param->candidates[i++] = Zi8PunctTable[j];
|
||||
if ((param->context & 0x10) != 0) {
|
||||
param->candidates[i++] = 0x20;
|
||||
if (i >= limit) {
|
||||
if ((ziU8)i >= limit) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -48,7 +48,7 @@ ziU32 Zi8Punctuation(ziGetParam* param, ZiCandidateOptions* options ZI_NEED_WORK
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
if (count >= (ziS32)options->maxCount) {
|
||||
if (count >= (ziS32)((ZiCandidateOptions*)options)->maxCount) {
|
||||
return count;
|
||||
}
|
||||
}
|
||||
@@ -57,7 +57,7 @@ ziU32 Zi8Punctuation(ziGetParam* param, ZiCandidateOptions* options ZI_NEED_WORK
|
||||
}
|
||||
j++;
|
||||
}
|
||||
if (options->countOnly == 0) {
|
||||
if (((ZiCandidateOptions*)options)->countOnly == 0) {
|
||||
param->letters = count;
|
||||
}
|
||||
return count;
|
||||
|
||||
@@ -10,21 +10,21 @@ ziU8 Zi8LangSupported(ziU8 lang ZI_NEED_WORK) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
for (i = 0; ZI_WORK->langEntries[i].language != ZI8_LANG_NONE; i++) {
|
||||
for (i = 0; ZI_WORK->langEntries[i].language != 0; i++) {
|
||||
if (lang == ZI_WORK->langEntries[i].language) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (ZI_WORK->langEntries[i].language == ZI8_LANG_NONE) {
|
||||
for (i = 0; ZI_WORK->langEntries[i].language != ZI8_LANG_NONE; i++) {
|
||||
if (ZI_WORK->langEntries[i].language == 0) {
|
||||
for (i = 0; ZI_WORK->langEntries[i].language != 0; i++) {
|
||||
if ((ZI_WORK->langEntries[i].tableData != ZI8_NULL) && (lang == ZI_WORK->langEntries[i].tableData[0])) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (ZI_WORK->langEntries[i].language != ZI8_LANG_NONE) {
|
||||
if (ZI_WORK->langEntries[i].language != 0) {
|
||||
return i + 1;
|
||||
} else {
|
||||
Zi8ReplaceLastError(0x582, ZI_WORK);
|
||||
@@ -89,19 +89,19 @@ ziU32 Zi8GetTableData(ziU8 lang, ziU8 tableIdx, ziU8 memberId ZI_NEED_WORK) {
|
||||
}
|
||||
|
||||
ziU32 Zi8GetTableAddress(ziU8 lang, ziU8 tableIdx ZI_NEED_WORK) {
|
||||
return Zi8GetTableData(lang, tableIdx, ziTableAddress, ZI_WORK);
|
||||
return Zi8GetTableData(lang, tableIdx, 1, ZI_WORK);
|
||||
}
|
||||
|
||||
ziU32 Zi8GetTableSize(ziU8 lang, ziU8 tableIdx ZI_NEED_WORK) {
|
||||
return Zi8GetTableData(lang, tableIdx, ziTableSize, ZI_WORK);
|
||||
return Zi8GetTableData(lang, tableIdx, 2, ZI_WORK);
|
||||
}
|
||||
|
||||
ziU16 Zi8GetTableCount(ziU8 lang, ziU8 tableIdx ZI_NEED_WORK) {
|
||||
return Zi8GetTableData(lang, tableIdx, ziTableSize, ZI_WORK);
|
||||
return Zi8GetTableData(lang, tableIdx, 2, ZI_WORK);
|
||||
}
|
||||
|
||||
ziU8 Zi8GetFormatVersion(ziU8 lang ZI_NEED_WORK) {
|
||||
return Zi8GetTableData(lang, 0, ziTableFormatVersion, ZI_WORK);
|
||||
return Zi8GetTableData(lang, 0, 4, ZI_WORK);
|
||||
}
|
||||
|
||||
ziU32 Zi8WCharCount(ziWChar* str ZI_NEED_WORK) {
|
||||
|
||||
@@ -104,7 +104,7 @@ ziChar Zi8ConvertWC2UC(ziWChar character, ziU8 language ZI_NEED_WORK) {
|
||||
}
|
||||
entry = (ziConversionEntry*)((ziU8*)table + value + character - first + 8);
|
||||
Zi8LogError(100, __zi8_work_data);
|
||||
return entry->first[0];
|
||||
return *(ziU8*)entry;
|
||||
}
|
||||
Zi8LogError(0x6C2, __zi8_work_data);
|
||||
return 0;
|
||||
|
||||
@@ -10,7 +10,7 @@ ziU16 Zi8MatchAltSound(ziU8* elements, ziU16 count, ziU8* table, ziU16 ch,
|
||||
ziU16 off;
|
||||
ziU16 w;
|
||||
|
||||
hi = (ziU8)(ch >> 8);
|
||||
hi = (ziU8)((ziU16)ch >> 8);
|
||||
lo = (ziU8)ch;
|
||||
flags = (ziU8)(flags >> 3);
|
||||
if (count == 0) {
|
||||
@@ -28,22 +28,25 @@ ziU16 Zi8MatchAltSound(ziU8* elements, ziU16 count, ziU8* table, ziU16 ch,
|
||||
goto search;
|
||||
up:
|
||||
i = j;
|
||||
do {
|
||||
if (((elements + i * 4)[3] & 0xE) == 0 ||
|
||||
((elements + i * 4)[3] & flags) != 0) {
|
||||
off = (ziU16)(((ziU16)(elements + i * 4)[2] |
|
||||
(((ziU16)(elements + i * 4)[3] & 1) << 8)) << 1);
|
||||
w = (ziU16)((((ziU16)(elements + i * 4)[3] & 0xF0) >> 4) |
|
||||
(table[off] | ((ziU16)table[off + 1] << 8)));
|
||||
if (target == (w & (ziU16)mask)) {
|
||||
return w;
|
||||
}
|
||||
body:
|
||||
if (((elements + i * 4)[3] & 0xE) == 0 ||
|
||||
((elements + i * 4)[3] & flags) != 0) {
|
||||
off = (ziU16)(((ziU16)(elements + i * 4)[2] |
|
||||
(((ziU16)(elements + i * 4)[3] & 1) << 8)) << 1);
|
||||
w = (ziU16)((((ziU16)(elements + i * 4)[3] & 0xF0) >> 4) |
|
||||
(table[off] | ((ziU16)table[off + 1] << 8)));
|
||||
if (target == (w & (ziU16)mask)) {
|
||||
return w;
|
||||
}
|
||||
i++;
|
||||
if (i >= count) {
|
||||
break;
|
||||
}
|
||||
} while ((elements + i * 4)[1] == hi && (elements + i * 4)[0] == lo);
|
||||
}
|
||||
i++;
|
||||
if (i >= count) {
|
||||
goto down_start;
|
||||
}
|
||||
if ((elements + i * 4)[1] == hi && (elements + i * 4)[0] == lo) {
|
||||
goto body;
|
||||
}
|
||||
down_start:
|
||||
i = j;
|
||||
goto dec;
|
||||
down_body:
|
||||
|
||||
@@ -138,7 +138,7 @@ extern ziU16 Zi8GetTableCount(ziU8 language, ziU8 table, ziPtr work);
|
||||
extern ziU8 Zi8IsDupWChar(ziWChar character, ziPtr work);
|
||||
extern ziU8 Zi8IsDupWordW(ziWChar* word, ziU8 length, ziPtr work);
|
||||
extern ziWChar Zi8Ord2Uni(ziU16 ordinal, ziPtr work);
|
||||
extern ziBool Zi8MatchPhonetic(ziU8* phonetics, ziU8* records,
|
||||
extern ziU8 Zi8MatchPhonetic(ziPtr phonetics, ziU8* records,
|
||||
ziPtr indexTable, ziU16 indexCount, ziU32 dictionary,
|
||||
ziU8* record, ziU16* mask, ziU16* match,
|
||||
ziU16* length, ziU8** matchedRecord,
|
||||
@@ -169,11 +169,11 @@ extern ziU16 Zi8Uni2Ord(ziWChar character, ziPtr work);
|
||||
extern ziU16 Zi8GetPCode(ziU8* table, ziU8* record);
|
||||
extern ziU16 Zi8MatchAltSound(ziPtr table, ziU16 count, ziPtr phonetics,
|
||||
ziU16 ordinal, ziU16 mask, ziU16 value, ziU8 flags, ziPtr work);
|
||||
extern ziU32 Zi8SecMatchChar(ziU8* record, ziU8* dictionary, ziMatchParam* match, ziU16* code, ziPtr work);
|
||||
extern ziU32 Zi8SecMatchChar(ziPtr record, ziU8* dictionary, ziMatchParam* match, ziU16* code, ziPtr work);
|
||||
extern ziBool Zi8PriMatchNextChar(ziU8* record, ziU8 firstByteMask, ziU8 firstByteValue, ziU8 secondByteMask, ziU8 secondByteValue, ziU8 thirdByteMask, ziU8 thirdByteValue, ziU8 fourthByteMask, ziU8 fourthByteValue, ziU16* count, ziU8** result, ziU16* code, ziPtr work);
|
||||
extern ziBool Zi8ExactMatchNextChar(ziU8* record, ziU8 firstByteMask, ziU8 firstByteValue, ziU8 secondByteMask, ziU8 secondByteValue, ziU8 thirdByteMask, ziU8 thirdByteValue, ziU8 fourthByteMask, ziU8 fourthByteValue, ziU16* count, ziU8** result, ziU16* code, ziPtr work);
|
||||
extern ziBool Zi8PriMatchNextComp(ziU8* component, ziU8 firstByteMask, ziU8 firstByteValue, ziU8 secondByteMask, ziU8 secondByteValue, ziU8 thirdByteMask, ziU8 thirdByteValue, ziU8 fourthByteMask, ziU8 fourthByteValue, ziU16* count, ziU8** result, ziPtr work);
|
||||
extern ziBool Zi8SecMatchComp(ziU8* component, ziMatchParam* match, ziU8* dictionary, ziPtr work);
|
||||
extern ziBool Zi8SecMatchComp(ziPtr component, ziMatchParam* match, ziPtr dictionary, ziPtr work);
|
||||
extern void Zi8InitDupWordBuf(ziPtr work);
|
||||
extern ziU8 Zi8MatchPUDdata_ZHS(ziWChar* word, ziU8 length, ziU8 language, ziWChar* spelling, ziU16 spellingCapacity, ziWChar* candidate, ziU16 candidateCapacity, ziU8 mode, ziU8 next, ziPtr work);
|
||||
extern ziPtr Zi8Memcpy(ziPtr destination, ziPtr source, ziS32 length);
|
||||
|
||||
@@ -25,7 +25,7 @@ const ziU8 zi8CangjieCodes[32] = {
|
||||
21, 22, 23, 25, 26, 27, 29, 30, 31
|
||||
};
|
||||
|
||||
ziU32 Zi8GetCJInfo(ziU8* input, ziWChar* output, ziU8 outputSize, ziPtr __zi8_work_data)
|
||||
ziU32 Zi8GetCJInfo(ziU8* input, ziWChar* output, ziU8 outputSize, ziPtr work)
|
||||
{
|
||||
ziS32 packedCodes;
|
||||
ziS32 code;
|
||||
@@ -33,13 +33,13 @@ ziU32 Zi8GetCJInfo(ziU8* input, ziWChar* output, ziU8 outputSize, ziPtr __zi8_wo
|
||||
ziS32 codeCount;
|
||||
ziS32 index;
|
||||
|
||||
ZI_WORK->cangjieEnabled = Zi8GetFormatVersion(ZI8_LANG_ZH, __zi8_work_data) & 2;
|
||||
if (ZI_WORK->cangjieEnabled == 0) {
|
||||
Zi8LogError(0x8fc, __zi8_work_data);
|
||||
((ZiInfoWork*)work)->cangjieEnabled = Zi8GetFormatVersion(1, work) & 2;
|
||||
if (((ZiInfoWork*)work)->cangjieEnabled == 0) {
|
||||
Zi8LogError(0x8fc, work);
|
||||
return 0;
|
||||
}
|
||||
if (outputSize < 6) {
|
||||
Zi8LogError(0x322, __zi8_work_data);
|
||||
Zi8LogError(0x322, work);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -57,14 +57,14 @@ ziU32 Zi8GetCJInfo(ziU8* input, ziWChar* output, ziU8 outputSize, ziPtr __zi8_wo
|
||||
}
|
||||
}
|
||||
if (index >= 0x19) {
|
||||
Zi8LogError(0x26d, __zi8_work_data);
|
||||
Zi8LogError(0x26d, work);
|
||||
return 0;
|
||||
}
|
||||
output[outputCount] = index + 0x41;
|
||||
outputCount++;
|
||||
}
|
||||
output[outputCount] = 0;
|
||||
Zi8LogError(100, __zi8_work_data);
|
||||
Zi8LogError(100, work);
|
||||
return (ziU8)outputCount;
|
||||
}
|
||||
|
||||
@@ -858,7 +858,7 @@ ziPtr work)
|
||||
return;
|
||||
}
|
||||
|
||||
ziU32 ZiCharInfo2(ziWChar ch, ziWChar* charInfoBuffer, ziU8 maxInfoBufSize, ziU32 hetMode, ziWChar* elements, ziU32 elementCount, ZiInfoWork* work)
|
||||
ziU32 ZiCharInfo2(ziWChar ch, ziWChar* charInfoBuffer, ziU8 maxInfoBufSize, ziU32 hetMode, ziWChar* elements, ziU32 elementCount, ziPtr work)
|
||||
|
||||
{
|
||||
union {
|
||||
@@ -892,22 +892,22 @@ ziU32 ZiCharInfo2(ziWChar ch, ziWChar* charInfoBuffer, ziU8 maxInfoBufSize, ziU3
|
||||
}
|
||||
if (((ziU8)hetMode & 0x80) != 0) {
|
||||
hetMode = (ziU8)(hetMode & 0x7f);
|
||||
if (Zi8GetFormatVersion(ZI8_LANG_ZH,work) >= 4) {
|
||||
charTableCount = Zi8GetTableCount(ZI8_LANG_ZH,0x19,work);
|
||||
tablePtr = (ziU8*)Zi8GetTableAddress(ZI8_LANG_ZH,0x19,work);
|
||||
if (Zi8GetFormatVersion(1,work) >= 4) {
|
||||
charTableCount = Zi8GetTableCount(1,0x19,work);
|
||||
tablePtr = (ziU8*)Zi8GetTableAddress(1,0x19,work);
|
||||
}
|
||||
else {
|
||||
charTableCount = 0;
|
||||
tablePtr = ZI8_NULL;
|
||||
tablePtr = (ziU8*)0;
|
||||
}
|
||||
if ((hetMode & 0xff) == 1) {
|
||||
tableBase = (ziU8*)Zi8GetTableAddress(ZI8_LANG_ZH,3,work);
|
||||
tableBase = (ziU8*)Zi8GetTableAddress(1,3,work);
|
||||
}
|
||||
else {
|
||||
tableBase = (ziU8*)Zi8GetTableAddress(ZI8_LANG_ZH,4,work);
|
||||
tableBase = (ziU8*)Zi8GetTableAddress(1,4,work);
|
||||
}
|
||||
if ((hetMode & 0xff) != 1 && (hetMode & 0xff) != 2) goto lookupCharacter;
|
||||
if (charTableCount <= Zi8GetTableCount(ZI8_LANG_ZH,8,work)) {
|
||||
if (charTableCount <= Zi8GetTableCount(1,8,work)) {
|
||||
highByte = (ziU8)((ch >> 8) & 0xff);
|
||||
lowByte = (ziU8)ch;
|
||||
index = 0;
|
||||
@@ -917,10 +917,10 @@ ziU32 ZiCharInfo2(ziWChar ch, ziWChar* charInfoBuffer, ziU8 maxInfoBufSize, ziU3
|
||||
charIndex = (ziU16)(((ziU32)tablePtr[2] >> 5) & 7) + tableBase[codeOffset] +
|
||||
(ziU16)(((ziU32)tableBase[codeOffset + 1] & 0xffff) << 8);
|
||||
if ((hetMode & 0xff) == 1) {
|
||||
count = Zi8GetPInfo(charIndex,charInfoBuffer,maxInfoBufSize,work);
|
||||
count = Zi8GetPInfo(charIndex,(ziU16*)charInfoBuffer,maxInfoBufSize,work);
|
||||
}
|
||||
else {
|
||||
count = Zi8GetZInfo(charIndex,charInfoBuffer,maxInfoBufSize,work);
|
||||
count = Zi8GetZInfo(charIndex,(ziU16*)charInfoBuffer,maxInfoBufSize,work);
|
||||
}
|
||||
normalizeStrokes:
|
||||
if ((hetMode & 0xff) == 0x11) {
|
||||
@@ -953,10 +953,10 @@ lookupCharacter:
|
||||
count = 0;
|
||||
}
|
||||
else {
|
||||
tablePtr = (ziU8*)Zi8GetTableAddress(ZI8_LANG_ZH,1,work);
|
||||
tablePtr = (ziU8*)Zi8GetTableAddress(1,1,work);
|
||||
tablePtr += ((uniInfoBuffer[9] & 0xf) << 0x10 | (uniInfoBuffer[11] | ((ziU32)uniInfoBuffer[10] << 8)));
|
||||
work->cangjieEnabled = Zi8GetFormatVersion(ZI8_LANG_ZH,work) & 2;
|
||||
if ((((work->cangjieEnabled != 0) && ((hetMode & 0xff) != 7)) && ((hetMode & 0xff) != 10))
|
||||
((ZiInfoWork*)work)->cangjieEnabled = Zi8GetFormatVersion(1,work) & 2;
|
||||
if ((((((ZiInfoWork*)work)->cangjieEnabled != 0) && ((hetMode & 0xff) != 7)) && ((hetMode & 0xff) != 10))
|
||||
&& (((hetMode & 0xff) != 8 && ((hetMode & 0xff) != 9)))) {
|
||||
switch (*tablePtr & 7) {
|
||||
case 2:
|
||||
@@ -974,12 +974,12 @@ lookupCharacter:
|
||||
break;
|
||||
}
|
||||
}
|
||||
switch(hetMode & 0xff) {
|
||||
switch((ziU32)hetMode & 0xff) {
|
||||
case 7:
|
||||
case 8:
|
||||
case 9:
|
||||
case 10:
|
||||
count = Zi8GetCJInfo(tablePtr,charInfoBuffer,maxInfoBufSize,work);
|
||||
count = (ziU32)Zi8GetCJInfo(tablePtr,charInfoBuffer,maxInfoBufSize,work);
|
||||
if ((((hetMode & 0xff) == 9) || ((hetMode & 0xff) == 10)) && (2 < (count & 0xff))) {
|
||||
charInfoBuffer[1] = charInfoBuffer[(count & 0xff) - 1];
|
||||
charInfoBuffer[2] = 0;
|
||||
@@ -993,15 +993,15 @@ lookupCharacter:
|
||||
break;
|
||||
case 1:
|
||||
case 3:
|
||||
tableBase = (ziU8*)Zi8GetTableAddress(ZI8_LANG_ZH,3,work);
|
||||
tableBase = (ziU8*)Zi8GetTableAddress(1,3,work);
|
||||
charIndex = Zi8GetPCode((ziU32)tableBase,uniInfoBuffer);
|
||||
count = Zi8GetPInfo(charIndex,charInfoBuffer,maxInfoBufSize,work);
|
||||
count = Zi8GetPInfo(charIndex,(ziU16*)charInfoBuffer,maxInfoBufSize,work);
|
||||
break;
|
||||
case 2:
|
||||
case 4:
|
||||
tableBase = (ziU8*)Zi8GetTableAddress(ZI8_LANG_ZH,4,work);
|
||||
tableBase = (ziU8*)Zi8GetTableAddress(1,4,work);
|
||||
charIndex = Zi8GetPCode((ziU32)tableBase,uniInfoBuffer);
|
||||
count = Zi8GetZInfo(charIndex,charInfoBuffer,maxInfoBufSize,work);
|
||||
count = Zi8GetZInfo(charIndex,(ziU16*)charInfoBuffer,maxInfoBufSize,work);
|
||||
break;
|
||||
default:
|
||||
count = 0;
|
||||
@@ -1009,8 +1009,8 @@ lookupCharacter:
|
||||
}
|
||||
if ((((elementCount & 0xff) != 0) && ((uniInfoBuffer[0] & 0x80) != 0)) &&
|
||||
(((hetMode & 0xff) == 3 || ((hetMode & 0xff) == 4)))) {
|
||||
alternateTable = (ziU8 *)Zi8GetTableAddress(ZI8_LANG_ZH,5,work);
|
||||
alternatesRemaining = Zi8GetTableCount(ZI8_LANG_ZH,5,work);
|
||||
alternateTable = (ziU8 *)Zi8GetTableAddress(1,5,work);
|
||||
alternatesRemaining = Zi8GetTableCount(1,5,work);
|
||||
while (alternatesRemaining != 0) {
|
||||
if (codeOffset == (((ziU16)alternateTable[1] << 8) | (ziU16)alternateTable[0])) break;
|
||||
alternatesRemaining--;
|
||||
@@ -1042,10 +1042,10 @@ lookupCharacter:
|
||||
alternatesRemaining--;
|
||||
alternateTable = alternateTable + 4;
|
||||
if ((hetMode & 0xff) == 3) {
|
||||
count = Zi8GetPInfo(charIndex,charInfoBuffer,maxInfoBufSize,work);
|
||||
count = Zi8GetPInfo(charIndex,(ziU16*)charInfoBuffer,maxInfoBufSize,work);
|
||||
}
|
||||
else {
|
||||
count = Zi8GetZInfo(charIndex,charInfoBuffer,maxInfoBufSize,work);
|
||||
count = Zi8GetZInfo(charIndex,(ziU16*)charInfoBuffer,maxInfoBufSize,work);
|
||||
}
|
||||
goto checkElements;
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ check_keys:
|
||||
records[context->cnt].key = 0;
|
||||
}
|
||||
if (prefixLength != 0 && *prefixLength < context->cnt &&
|
||||
ZiDAWGgetEOWattribute(current->node)) {
|
||||
ZiDAWGgetEOWattribute(current->node) != 0) {
|
||||
*prefixLength = context->cnt;
|
||||
for (index = 0; index < context->cnt; index++) output[index] = (ziU16)records[index].attr;
|
||||
}
|
||||
@@ -125,7 +125,7 @@ check_keys:
|
||||
}
|
||||
if (context->cnt < search[1]) goto descend;
|
||||
if (search[0] != 0 && context->cnt > search[1]) goto next_sibling;
|
||||
if (acceptPrefix != 0 || ZiDAWGgetEOWattribute(current->node)) {
|
||||
if (acceptPrefix != 0 || ZiDAWGgetEOWattribute(current->node) != 0) {
|
||||
for (index = 0; index < context->cnt; index++) output[index] = (ziU16)records[index].attr;
|
||||
result = context->cnt;
|
||||
searching = 0;
|
||||
@@ -232,7 +232,7 @@ unsigned int Zi8MatchROMdata2(ziWChar* elements, ziU8 count, ziU8 language,
|
||||
if (status == 0) {
|
||||
ZI_WORK->dawgGroupIndex = 0;
|
||||
ZI_WORK->matchOffset = 0;
|
||||
if (group != 0 && *group == 0xc && language == ZI8_LANG_FI && ZI_WORK->forceAltGraph != 0) {
|
||||
if (group != 0 && *group == 0xc && language == 10 && ZI_WORK->forceAltGraph != 0) {
|
||||
ZI_WORK->graphTableId = 0x10;
|
||||
} else {
|
||||
ZI_WORK->graphTableId = 0;
|
||||
@@ -275,7 +275,7 @@ search_segment:
|
||||
ZI_WORK->dawgGroupIndex++;
|
||||
status = 0;
|
||||
ZI_WORK->graphTableId = 0;
|
||||
if (ZI_WORK->dawgCtx.key == 0 && language == ZI8_LANG_FI) {
|
||||
if (ZI_WORK->dawgCtx.key == 0 && language == 10) {
|
||||
for (index = 0; index < ZI_WORK->matchOffset; index++) {
|
||||
switch (ZI_WORK->dawgWord[index]) {
|
||||
case 0x61:
|
||||
@@ -323,7 +323,7 @@ ziU32 Zi8MatchROMdata(ziWChar* elements, ziU8 count, ziU8 language,
|
||||
acceptPrefix, ZI_WORK);
|
||||
if ((ziU8)result != 0) break;
|
||||
status = 0;
|
||||
if (count <= 1 && language == ZI8_LANG_SW) break;
|
||||
if (count <= 1 && language == 0x36) break;
|
||||
ZI_WORK->dawgGroup = NextDawgGroup(ZI_WORK->dawgGroup, language, ZI_WORK);
|
||||
}
|
||||
}
|
||||
@@ -380,7 +380,7 @@ void Zi8SyllablesROMdata(ziWChar *elements, ziU8 count, ziU8 language, ziWChar *
|
||||
keyTable = 0x1b;
|
||||
}
|
||||
}
|
||||
Zi8MatchROMdata0(elements,count,language & 0xff,output,capacity,1,status,graphTable,keyTable,0,prefixLength,
|
||||
Zi8MatchROMdata0(elements,count,language & 0xff,output,capacity,1,status,graphTable,keyTable,0,(ziU8 *)prefixLength,
|
||||
&ZI_WORK->dawgCtx,ZI_WORK->dawgSearchState,ZI_WORK);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ ziU32 Zi8GetSyllablesCandidates(ziGetParam* param, ziSwParam* sw ZI_NEED_WORK) {
|
||||
out = buf;
|
||||
rem = 0x40;
|
||||
} else {
|
||||
out = param->candidates;
|
||||
out = (ziWChar*)param->candidates;
|
||||
rem = sw->capacity - 1;
|
||||
}
|
||||
if ((param->getOptions & 0xFD) == 0x80) {
|
||||
|
||||
@@ -66,8 +66,8 @@ ziU16 Zi8GetGlobalDataSize(void) {
|
||||
static ziU16 Zi8GetDataSignature(ziU8* destination, ziU16 capacity, ziU8 language, ziPtr work) {
|
||||
ziU8* signature;
|
||||
ziU16 length;
|
||||
if (language == ZI8_LANG_ZH) {
|
||||
if (Zi8GetFormatVersion(ZI8_LANG_ZH, work) < 8) {
|
||||
if (language == 1) {
|
||||
if (Zi8GetFormatVersion(1, work) < 8) {
|
||||
Zi8LogError(0x26f, work);
|
||||
return 0;
|
||||
}
|
||||
@@ -293,8 +293,8 @@ ziU8 Zi8LangSupported(ziU8 language, ziPtr work);
|
||||
ziBool Zi8IsCharacter(ziWChar character, ziPtr work);
|
||||
ziU8 Zi8GetCharInfo(ziWChar character, ziWChar* output, ziU8 capacity, ziU8 type, ziPtr work);
|
||||
ziU32 Zi8GetKOcandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU32 Zi8GetKoreanCandidates(ziGetParam* parameters, ziU8* countOnly, struct __zi8_work_data_s* work);
|
||||
ziU32 Zi8Punctuation(ziGetParam* parameters, ZiCandidateOptions* options, ziPtr work);
|
||||
ziU32 Zi8GetKoreanCandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU32 Zi8Punctuation(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU32 Zi8GetChineseCandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU32 Zi8Get1KeyPressCandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU32 Zi8Get1KeyPressSpelling(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
@@ -324,11 +324,11 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
|
||||
saved.savedCandidates = 0;
|
||||
saved.restoreCandidates = 0;
|
||||
if (options->lookupMode == '\0') {
|
||||
if (ZI_WORK->getcPhase == '\t' && parameters->elementCount != 0 &&
|
||||
((parameters->elements[parameters->elementCount - 1] == 0xEFF8 &&
|
||||
Zi8AlphaSignature(parameters,options->countOnly,ZI_WORK)) ||
|
||||
(parameters->elements[parameters->elementCount - 1] == 0xEF04 &&
|
||||
Zi8ZhSignature(parameters,options->countOnly,ZI_WORK)))) {
|
||||
if (((ZI_WORK->getcPhase == '\t') && (parameters->elementCount != 0)) &&
|
||||
(((parameters->elements[parameters->elementCount - 1] == 0xEFF8 &&
|
||||
((ziU8)Zi8AlphaSignature(parameters,options->countOnly,ZI_WORK) != 0)) ||
|
||||
((parameters->elements[parameters->elementCount - 1] == 0xEF04 &&
|
||||
((ziU8)Zi8ZhSignature(parameters,options->countOnly,ZI_WORK) != 0)))))) {
|
||||
candidateCount = (unsigned int)parameters->letters;
|
||||
if (options->countOnly != '\0') {
|
||||
parameters->letters = 0;
|
||||
@@ -338,7 +338,7 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
|
||||
}
|
||||
if ((parameters->elementCount == 1) && (parameters->firstCandidate == 0)) {
|
||||
switch (parameters->language) {
|
||||
case ZI8_LANG_ZH:
|
||||
case 1:
|
||||
if ((ZI_WORK->getcPhase == '\0') || (ZI_WORK->countOnly == options->countOnly)) {
|
||||
switch(ZI_WORK->getcPhase) {
|
||||
case '\0':
|
||||
@@ -371,7 +371,7 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
|
||||
case '\b':
|
||||
case '\t':
|
||||
if ((parameters->elements[0] == 0xEF04) &&
|
||||
Zi8ZhSignature(parameters,options->countOnly,ZI_WORK)) {
|
||||
((ziU8)Zi8ZhSignature(parameters,options->countOnly,ZI_WORK) != 0)) {
|
||||
ZI_WORK->getcPhase = '\t';
|
||||
candidateCount = (unsigned int)parameters->letters;
|
||||
if (options->countOnly != '\0') {
|
||||
@@ -388,15 +388,15 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
|
||||
}
|
||||
}
|
||||
break;
|
||||
case ZI8_LANG_JP:
|
||||
case ZI8_LANG_KO:
|
||||
case ZI8_LANG_PYP:
|
||||
case ZI8_LANG_PYS:
|
||||
case ZI8_LANG_ZYP:
|
||||
case ZI8_LANG_ZYS:
|
||||
case ZI8_LANG_SP2:
|
||||
case ZI8_LANG_PY2:
|
||||
case ZI8_LANG_ZY2:
|
||||
case 0x10:
|
||||
case 0x12:
|
||||
case 0x77:
|
||||
case 0x78:
|
||||
case 0x79:
|
||||
case 0x7A:
|
||||
case 0x7B:
|
||||
case 0x7C:
|
||||
case 0x7D:
|
||||
break;
|
||||
case 0x11:
|
||||
default:
|
||||
@@ -467,7 +467,7 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
|
||||
case '\b':
|
||||
case '\t':
|
||||
if ((parameters->elements[0] == 0xEFF8) &&
|
||||
Zi8AlphaSignature(parameters,options->countOnly,ZI_WORK)) {
|
||||
((ziU8)Zi8AlphaSignature(parameters,options->countOnly,ZI_WORK) != 0)) {
|
||||
ZI_WORK->getcPhase = '\t';
|
||||
candidateCount = (unsigned int)parameters->letters;
|
||||
if (options->countOnly != '\0') {
|
||||
@@ -491,34 +491,34 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
|
||||
}
|
||||
}
|
||||
ZI_WORK->subLanguage = parameters->subLanguage;
|
||||
ZI_WORK->cangjieEnabled = Zi8GetFormatVersion(ZI8_LANG_ZH,ZI_WORK) & 2;
|
||||
ZI_WORK->cangjieEnabled = Zi8GetFormatVersion(1,ZI_WORK) & 2;
|
||||
options->maxCount = ZI_WORK->maxCandidateCount;
|
||||
options->maxWordLength = ZI_WORK->maxWordLength;
|
||||
ZI_WORK->maxWordLength = -1;
|
||||
if (Zi8LangSupported(parameters->language,ZI_WORK) == 0) {
|
||||
if ((ziU8)Zi8LangSupported(parameters->language,ZI_WORK) == 0) {
|
||||
Zi8LogError(0x163,ZI_WORK);
|
||||
return 0;
|
||||
}
|
||||
else {
|
||||
if (parameters->language == ZI8_LANG_JP) {
|
||||
if (parameters->language == 0x10) {
|
||||
error = 0x2c1;
|
||||
candidateCount = 0;
|
||||
}
|
||||
else if (parameters->language == ZI8_LANG_KO) {
|
||||
else if (parameters->language == 0x12) {
|
||||
if ((parameters->elementCount == 0) || (parameters->elements[0] >= 0xeff1)) {
|
||||
candidateCount = Zi8GetKOcandidates(parameters,options,ZI_WORK);
|
||||
}
|
||||
else {
|
||||
candidateCount = Zi8GetKoreanCandidates(parameters,&options->countOnly,ZI_WORK);
|
||||
candidateCount = Zi8GetKoreanCandidates(parameters,options,ZI_WORK);
|
||||
}
|
||||
}
|
||||
else if ((parameters->language == ZI8_LANG_ZH) && ((parameters->context & 8) != 0)) {
|
||||
else if ((parameters->language == 1) && ((parameters->context & 8) != 0)) {
|
||||
candidateCount = Zi8Punctuation(parameters,options,ZI_WORK);
|
||||
error = 100;
|
||||
}
|
||||
else if ((parameters->language == ZI8_LANG_ZH) &&
|
||||
((parameters->getOptions & 0xbf) == 4 && parameters->elementCount != 0 &&
|
||||
Zi8IsCharacter(parameters->elements[0],ZI_WORK))) {
|
||||
else if ((parameters->language == 1) &&
|
||||
((((parameters->getOptions & 0xbf) == 4 && (parameters->elementCount != 0)) &&
|
||||
((ziU8)Zi8IsCharacter(parameters->elements[0],ZI_WORK) != 0)))) {
|
||||
saved.convertedElementCount = Zi8GetCharInfo(parameters->elements[0],characterInfo,0x10,1,ZI_WORK);
|
||||
if (saved.convertedElementCount == 0) {
|
||||
parameters->letters = parameters->completion = parameters->count = 0;
|
||||
@@ -543,11 +543,11 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
|
||||
parameters->completion = 1;
|
||||
}
|
||||
}
|
||||
else if ((parameters->language == ZI8_LANG_ZH) && (parameters->getMode == 0xf)) {
|
||||
else if ((parameters->language == 1) && (parameters->getMode == 0xf)) {
|
||||
error = 0x2d0;
|
||||
candidateCount = 0;
|
||||
}
|
||||
else if ((parameters->language == ZI8_LANG_ZH) && ((parameters->getMode == 3 || (parameters->getMode == 4)))) {
|
||||
else if ((parameters->language == 1) && ((parameters->getMode == 3 || (parameters->getMode == 4)))) {
|
||||
if ((parameters->getOptions & 0x80) != 0) {
|
||||
candidateCount = Zi8Get1KeyPressSpelling(parameters,options,ZI_WORK);
|
||||
} else if (parameters->elementCount == 0) {
|
||||
@@ -556,7 +556,7 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
|
||||
candidateCount = Zi8Get1KeyPressCandidates(parameters,options,ZI_WORK);
|
||||
}
|
||||
}
|
||||
else if ((parameters->language == ZI8_LANG_ZH) &&
|
||||
else if ((parameters->language == 1) &&
|
||||
((((parameters->getMode == 7 || (parameters->getMode == 8)) || (parameters->getMode == 10)) || (parameters->getMode == 9)))) {
|
||||
if (ZI_WORK->cangjieEnabled != '\0') {
|
||||
candidateCount = Zi8GetChineseCandidates(parameters,options,ZI_WORK);
|
||||
@@ -565,11 +565,11 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
|
||||
candidateCount = 0;
|
||||
}
|
||||
}
|
||||
else if ((parameters->language == ZI8_LANG_ZH) && ((parameters->getMode == 0xb || (parameters->getMode == 0xe)))) {
|
||||
else if ((parameters->language == 1) && ((parameters->getMode == 0xb || (parameters->getMode == 0xe)))) {
|
||||
error = 0x2ee;
|
||||
candidateCount = 0;
|
||||
}
|
||||
else if (parameters->language == ZI8_LANG_ZH) {
|
||||
else if (parameters->language == 1) {
|
||||
candidateCount = Zi8GetChineseCandidates(parameters,options,ZI_WORK);
|
||||
if ((((candidateCount == 0) && ((parameters->getOptions & 0x20) == 0)) && ((parameters->getMode == 1 && (parameters->elementCount != 0))))
|
||||
&& (((parameters->elements[parameters->elementCount - 1] == 0xF37A ||
|
||||
|
||||
@@ -37,18 +37,18 @@ ziU8 Zi8InitializeDynamic(ziLanguageEntry* langEntries ZI_NEED_WORK) {
|
||||
Zi8LogError(0x578, ZI_WORK);
|
||||
return 0;
|
||||
}
|
||||
if (ZI_WORK->langEntries->language == ZI8_LANG_NONE) {
|
||||
if (ZI_WORK->langEntries->language == 0) {
|
||||
Zi8LogError(0x582, ZI_WORK);
|
||||
return 0;
|
||||
}
|
||||
ZI_WORK->letterHyphen = 0x2D;
|
||||
ZI_WORK->language = ZI8_LANG_NONE;
|
||||
ZI_WORK->language = 0;
|
||||
ZI_WORK->searchModes[3] = 0;
|
||||
ZI_WORK->capacity = 0x100;
|
||||
Zi8SetLatinSearchOrder(0, 0, ZI_WORK);
|
||||
ZADP_Zi8SetPDremoveOpt(1, ZI_WORK);
|
||||
ZI_WORK->zhPudMinPrefix = 5;
|
||||
ZI_WORK->cangjieEnabled = Zi8GetFormatVersion(ZI8_LANG_ZH, ZI_WORK) & 2;
|
||||
ZI_WORK->cangjieEnabled = Zi8GetFormatVersion(1, ZI_WORK) & 2;
|
||||
ZI_WORK->pyFuzzy.bits.msb = 1;
|
||||
ZI_WORK->zyFuzzy.bits.msb = 1;
|
||||
zyFuzzy = ZI_WORK->zyFuzzy.word;
|
||||
@@ -63,11 +63,11 @@ ziU8 Zi8InitializeDynamic(ziLanguageEntry* langEntries ZI_NEED_WORK) {
|
||||
}
|
||||
|
||||
ziU8 Zi8IsZicorpSignature(ziU16* p, ziU16 len ZI_NEED_WORK) {
|
||||
if (len > 6 && p[0] == 0x7A && p[1] == 0x69 && p[2] == 0x63 &&
|
||||
if ((ziU16)len > 6 && p[0] == 0x7A && p[1] == 0x69 && p[2] == 0x63 &&
|
||||
p[3] == 0x6F && p[4] == 0x72 && p[5] == 0x70) {
|
||||
return 1;
|
||||
}
|
||||
if (len > 6 && p[0] == 0x39 && p[1] == 0x34 && p[2] == 0x32 &&
|
||||
if ((ziU16)len > 6 && p[0] == 0x39 && p[1] == 0x34 && p[2] == 0x32 &&
|
||||
p[3] == 0x36 && p[4] == 0x37 && p[5] == 0x37) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ extern ziU32 Zi8GetTableAddress(ziU8 lang, ziU8 tableIdx ZI_NEED_WORK);
|
||||
extern ziU8 _Zi8GetCandidates(ziGetParam* getParam ZI_NEED_WORK);
|
||||
extern void Zi8Memset(ziPtr p, ziU32 v, ziU32 len);
|
||||
|
||||
ziU8 Zi8GetZHCharSet(ziPtr __zi8_work_data) {
|
||||
ziU8 Zi8GetZHCharSet(ziPtr workData) {
|
||||
ziU8 charSet = 0;
|
||||
ziU8 bak;
|
||||
ziU16 v0;
|
||||
@@ -18,23 +18,23 @@ ziU8 Zi8GetZHCharSet(ziPtr __zi8_work_data) {
|
||||
ziWChar candBuf[0x10];
|
||||
ziGetParam getParam;
|
||||
|
||||
Zi8LogError(0x64, __zi8_work_data);
|
||||
if (Zi8LangSupported(ZI8_LANG_ZH, __zi8_work_data) == 0) {
|
||||
Zi8ReplaceLastError(0x26C, __zi8_work_data);
|
||||
Zi8LogError(0x64, workData);
|
||||
if (Zi8LangSupported(1, workData) == 0) {
|
||||
Zi8ReplaceLastError(0x26C, workData);
|
||||
return 0;
|
||||
}
|
||||
if (Zi8GetTableCount(ZI8_LANG_ZH, 10, __zi8_work_data) != 0) {
|
||||
bak = ZI_WORK->subLanguage;
|
||||
ZI_WORK->subLanguage = 1;
|
||||
addr = Zi8GetTableAddress(ZI8_LANG_ZH, 10, __zi8_work_data);
|
||||
if (Zi8GetTableCount(1, 10, workData) != 0) {
|
||||
bak = ((struct __zi8_work_data_s*)workData)->subLanguage;
|
||||
((struct __zi8_work_data_s*)workData)->subLanguage = 1;
|
||||
addr = Zi8GetTableAddress(1, 10, workData);
|
||||
p = (ziU8*)addr;
|
||||
v0 = (ziU16)((ziU16)p[0] | ((ziU16)p[1] << 8));
|
||||
ZI_WORK->subLanguage = 0;
|
||||
addr = Zi8GetTableAddress(ZI8_LANG_ZH, 10, __zi8_work_data);
|
||||
((struct __zi8_work_data_s*)workData)->subLanguage = 0;
|
||||
addr = Zi8GetTableAddress(1, 10, workData);
|
||||
p = (ziU8*)addr;
|
||||
v1 = (ziU16)((ziU16)p[2] | ((ziU16)p[3] << 8));
|
||||
v2 = (ziU16)((ziU16)p[4] | ((ziU16)p[5] << 8));
|
||||
ZI_WORK->subLanguage = bak;
|
||||
((struct __zi8_work_data_s*)workData)->subLanguage = bak;
|
||||
if (v0 != 0) {
|
||||
if (v0 > 0x4E20) {
|
||||
charSet |= 8;
|
||||
@@ -56,7 +56,7 @@ ziU8 Zi8GetZHCharSet(ziPtr __zi8_work_data) {
|
||||
}
|
||||
|
||||
Zi8Memset(&getParam, 0, 0x2C);
|
||||
getParam.language = ZI8_LANG_ZH;
|
||||
getParam.language = 1;
|
||||
getParam.context = 1;
|
||||
getParam.getOptions = 0;
|
||||
getParam.candidates = candBuf;
|
||||
@@ -64,17 +64,17 @@ ziU8 Zi8GetZHCharSet(ziPtr __zi8_work_data) {
|
||||
getParam.subLanguage = 1;
|
||||
retry:
|
||||
getParam.getMode = 0;
|
||||
if (_Zi8GetCandidates(&getParam, __zi8_work_data) != 0) {
|
||||
if (_Zi8GetCandidates(&getParam, workData) != 0) {
|
||||
charSet |= getParam.subLanguage;
|
||||
goto next;
|
||||
}
|
||||
getParam.getMode = 1;
|
||||
if (_Zi8GetCandidates(&getParam, __zi8_work_data) != 0) {
|
||||
if (_Zi8GetCandidates(&getParam, workData) != 0) {
|
||||
charSet |= getParam.subLanguage;
|
||||
goto next;
|
||||
}
|
||||
getParam.getMode = 2;
|
||||
if (_Zi8GetCandidates(&getParam, __zi8_work_data) != 0) {
|
||||
if (_Zi8GetCandidates(&getParam, workData) != 0) {
|
||||
charSet |= getParam.subLanguage;
|
||||
}
|
||||
next:
|
||||
@@ -123,10 +123,10 @@ ziBool Zi8IsCharacter(ziWChar ch ZI_NEED_WORK) {
|
||||
case 0xFF1F:
|
||||
return 1;
|
||||
}
|
||||
hi = (ziU8)((ch >> 8) & 0xFF);
|
||||
hi = (ziU8)(((ziU16)ch >> 8) & 0xFF);
|
||||
lo = (ziU8)ch;
|
||||
count = Zi8GetTableCount(ZI8_LANG_ZH, 0, ZI_WORK);
|
||||
addr = Zi8GetTableAddress(ZI8_LANG_ZH, 0, ZI_WORK);
|
||||
count = Zi8GetTableCount(1, 0, ZI_WORK);
|
||||
addr = Zi8GetTableAddress(1, 0, ZI_WORK);
|
||||
table = (ziU8*)addr;
|
||||
for (i = 0; i < count; i++) {
|
||||
if (table[6] == hi && table[7] == lo) {
|
||||
|
||||
@@ -108,7 +108,7 @@ ziBool Zi8ExactMatchNextChar(ziU8* node, ziU8 firstByteMask, ziU8 firstByteValue
|
||||
return 0;
|
||||
}
|
||||
|
||||
ziU32 Zi8SecMatchChar(ziU8* nodeAddress, ziU8* dictionaryAddress, ziMatchParam* match, ziU16* code ZI_NEED_WORK) {
|
||||
ziU32 Zi8SecMatchChar(ziPtr nodeAddress, ziU8* dictionaryAddress, ziMatchParam* match, ziU16* code ZI_NEED_WORK) {
|
||||
ziBool isPartial = 0;
|
||||
ziU16 matchCode;
|
||||
ziU8* data;
|
||||
@@ -121,7 +121,7 @@ ziU32 Zi8SecMatchChar(ziU8* nodeAddress, ziU8* dictionaryAddress, ziMatchParam*
|
||||
|
||||
if (match->componentIndex != 0) {
|
||||
state.targetCode = match->componentIndex;
|
||||
matchCode = ((ziU16)(nodeAddress[4] & 3) << 8) | nodeAddress[5];
|
||||
matchCode = ((ziU16)(((ziU8*)nodeAddress)[4] & 3) << 8) | ((ziU8*)nodeAddress)[5];
|
||||
value = 0;
|
||||
while (value++ < 6) {
|
||||
if (state.targetCode == matchCode) {
|
||||
@@ -137,8 +137,8 @@ ziU32 Zi8SecMatchChar(ziU8* nodeAddress, ziU8* dictionaryAddress, ziMatchParam*
|
||||
}
|
||||
}
|
||||
|
||||
data = (ziU8*)Zi8GetTableAddress(ZI8_LANG_ZH, 1, ZI_WORK);
|
||||
data += nodeAddress[0xB] + (nodeAddress[0xA] << 8) + ((nodeAddress[9] & 0xF) << 16);
|
||||
data = (ziU8*)Zi8GetTableAddress(1, 1, ZI_WORK);
|
||||
data += ((ziU8*)nodeAddress)[0xB] + (((ziU8*)nodeAddress)[0xA] << 8) + ((((ziU8*)nodeAddress)[9] & 0xF) << 16);
|
||||
if (ZI_WORK->cangjieEnabled != 0) {
|
||||
switch (data[0] & 7) {
|
||||
case 2:
|
||||
@@ -168,27 +168,27 @@ ziU32 Zi8SecMatchChar(ziU8* nodeAddress, ziU8* dictionaryAddress, ziMatchParam*
|
||||
isPartial = 1;
|
||||
}
|
||||
} else if ((match->length & 1) != 0) {
|
||||
if ((nodeAddress[match->length >> 1] & 0xF) == 0xF) {
|
||||
if ((((ziU8*)nodeAddress)[match->length >> 1] & 0xF) == 0xF) {
|
||||
isPartial = 1;
|
||||
}
|
||||
} else {
|
||||
if ((nodeAddress[match->length >> 1] & 0xF0) == 0xF0) {
|
||||
if ((((ziU8*)nodeAddress)[match->length >> 1] & 0xF0) == 0xF0) {
|
||||
isPartial = 1;
|
||||
}
|
||||
}
|
||||
if (match->length > 2) {
|
||||
if ((match->length & 1) != 0) {
|
||||
if (((nodeAddress[(match->length - 1) >> 1] & 0xF0) == 0) || ((nodeAddress[(match->length - 1) >> 1] & 0xF0) == 0xF0)) {
|
||||
if (((((ziU8*)nodeAddress)[(match->length - 1) >> 1] & 0xF0) == 0) || ((((ziU8*)nodeAddress)[(match->length - 1) >> 1] & 0xF0) == 0xF0)) {
|
||||
return 0;
|
||||
}
|
||||
} else {
|
||||
if (((nodeAddress[(match->length - 1) >> 1] & 0xF) == 0) || ((nodeAddress[(match->length - 1) >> 1] & 0xF) == 0xF)) {
|
||||
if (((((ziU8*)nodeAddress)[(match->length - 1) >> 1] & 0xF) == 0) || ((((ziU8*)nodeAddress)[(match->length - 1) >> 1] & 0xF) == 0xF)) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (code != 0) {
|
||||
*code = ((ziU16)nodeAddress[6] << 8) + (ziU16)nodeAddress[7];
|
||||
*code = ((ziU16)((ziU8*)nodeAddress)[6] << 8) + (ziU16)((ziU8*)nodeAddress)[7];
|
||||
}
|
||||
if (isPartial) {
|
||||
return 2;
|
||||
@@ -208,7 +208,7 @@ ziU32 Zi8SecMatchChar(ziU8* nodeAddress, ziU8* dictionaryAddress, ziMatchParam*
|
||||
|
||||
state.dataIndex = 4;
|
||||
state.remaining = ((match->length + 1) >> 1) - 4;
|
||||
if ((value + 1) < state.remaining) {
|
||||
if (((ziU8)value + 1) < (int)state.remaining) {
|
||||
return 0;
|
||||
}
|
||||
if ((match->length & 1) != 0) {
|
||||
@@ -231,7 +231,7 @@ ziU32 Zi8SecMatchChar(ziU8* nodeAddress, ziU8* dictionaryAddress, ziMatchParam*
|
||||
}
|
||||
}
|
||||
if (code != 0) {
|
||||
*code = ((ziU16)nodeAddress[6] << 8) + (ziU16)nodeAddress[7];
|
||||
*code = ((ziU16)((ziU8*)nodeAddress)[6] << 8) + (ziU16)((ziU8*)nodeAddress)[7];
|
||||
}
|
||||
if (isPartial) {
|
||||
return 2;
|
||||
@@ -254,20 +254,20 @@ ziBool Zi8PriMatchNextComp(ziU8* node, ziU8 firstByteMask, ziU8 firstByteValue,
|
||||
return 0;
|
||||
}
|
||||
|
||||
ziBool Zi8SecMatchComp(ziU8* nodeAddress, ziMatchParam* matchAddress, ziU8* dictionaryAddress ZI_NEED_WORK) {
|
||||
ziBool Zi8SecMatchComp(ziPtr nodeAddress, ziMatchParam* matchAddress, ziPtr dictionaryAddress ZI_NEED_WORK) {
|
||||
int chainIndex;
|
||||
ziU16 matchCode;
|
||||
ziU16 targetCode;
|
||||
|
||||
if (matchAddress->componentIndex != 0) {
|
||||
targetCode = matchAddress->componentIndex;
|
||||
matchCode = ((ziU16)(nodeAddress[6] & 3) << 8) | nodeAddress[7];
|
||||
matchCode = ((ziU16)(((ziU8*)nodeAddress)[6] & 3) << 8) | ((ziU8*)nodeAddress)[7];
|
||||
chainIndex = 0;
|
||||
while (chainIndex++ < 6) {
|
||||
if (targetCode == matchCode) {
|
||||
break;
|
||||
}
|
||||
matchCode = ((ziU16)(*(dictionaryAddress + matchCode * 8 + 6) & 3) << 8) | *(dictionaryAddress + matchCode * 8 + 7);
|
||||
matchCode = ((ziU16)(*((ziU8*)dictionaryAddress + matchCode * 8 + 6) & 3) << 8) | *((ziU8*)dictionaryAddress + matchCode * 8 + 7);
|
||||
if (matchCode == 0) {
|
||||
break;
|
||||
}
|
||||
@@ -277,10 +277,10 @@ ziBool Zi8SecMatchComp(ziU8* nodeAddress, ziMatchParam* matchAddress, ziU8* dict
|
||||
}
|
||||
}
|
||||
if (matchAddress->length > 8) {
|
||||
if (nodeAddress[5] < (matchAddress->length - 2)) {
|
||||
if ((int)((ziU8*)nodeAddress)[5] < (int)(matchAddress->length - 2)) {
|
||||
return 0;
|
||||
}
|
||||
} else if (nodeAddress[5] < (matchAddress->length - 1)) {
|
||||
} else if ((int)((ziU8*)nodeAddress)[5] < (int)(matchAddress->length - 1)) {
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
@@ -289,7 +289,7 @@ ziBool Zi8SecMatchComp(ziU8* nodeAddress, ziMatchParam* matchAddress, ziU8* dict
|
||||
extern ziU16 Zi8MatchAltSound(ziPtr soundTable, ziU16 soundCode, ziPtr pCodeTable, ziU16 index, ziU16 mask, ziU16 value, ziU8 flag ZI_NEED_WORK);
|
||||
ziU16 Zi8GetPCode(ziU8* table, ziU8* node);
|
||||
|
||||
ziBool Zi8MatchPhonetic(ziU8* pCodeTable, ziU8* dictionary, ziPtr soundTable, ziU16 soundCode, ziU32 tableAddress, ziU8* node, ziU16* masks, ziU16* values, ziU16* count, ziU8** resultNode, ziU8** stringOffset, ziU8 partialMode, ziU8 strictMode, ziU8 numParts, ziU16 partMask, ziU16 partValue, ziU8 flag, ziU8 altMode, ziU16 initialCode, ziU16* resultCode, ziU8 lastMode ZI_NEED_WORK) {
|
||||
ziBool Zi8MatchPhonetic(ziPtr pCodeTable, ziU8* dictionary, ziPtr soundTable, ziU16 soundCode, ziU32 tableAddress, ziU8* node, ziU16* masks, ziU16* values, ziU16* count, ziU8** resultNode, ziU8** stringOffset, ziU8 partialMode, ziU8 strictMode, ziU8 numParts, ziU16 partMask, ziU16 partValue, ziU8 flag, ziU8 altMode, ziU16 initialCode, ziU16* resultCode, ziU8 lastMode ZI_NEED_WORK) {
|
||||
struct {
|
||||
ziBool hasString;
|
||||
ziU8 partIndex;
|
||||
@@ -327,7 +327,7 @@ next_node:
|
||||
node += 0xC;
|
||||
continue;
|
||||
decode_node:
|
||||
traversal.code = Zi8GetPCode(pCodeTable, node);
|
||||
traversal.code = Zi8GetPCode((ziU8*)pCodeTable, node);
|
||||
if ((*values != (traversal.code & *masks)) && (altMode == 0) && ((node[0] & 0x80) != 0)) {
|
||||
if (*count != 0) {
|
||||
traversal.soundIndex = (initialCode - traversal.remaining) - 1;
|
||||
@@ -399,7 +399,7 @@ next_group:
|
||||
if (traversal.hasString) {
|
||||
goto phonetic_skip;
|
||||
}
|
||||
traversal.code = Zi8GetPCode(pCodeTable, dictionary + (traversal.dictionaryIndex & 0x7FFF) * sizeof(DictionaryNode));
|
||||
traversal.code = Zi8GetPCode((ziU8*)pCodeTable, dictionary + (traversal.dictionaryIndex & 0x7FFF) * sizeof(DictionaryNode));
|
||||
if (((traversal.code & masks[traversal.partIndex]) != values[traversal.partIndex]) && (altMode == 0) && (dictionary[(traversal.dictionaryIndex & 0x7FFF) * sizeof(DictionaryNode)] & 0x80) != 0) {
|
||||
traversal.code = Zi8MatchAltSound(soundTable, soundCode, pCodeTable, traversal.dictionaryIndex & 0x7FFF, masks[traversal.partIndex], values[traversal.partIndex], flag, ZI_WORK);
|
||||
}
|
||||
@@ -575,7 +575,7 @@ scan_final:
|
||||
value -= 0x61;
|
||||
}
|
||||
pinyin[index] = (ziU8)value + 1;
|
||||
if (!Zi8GetPyFinal(pinyin, &pyInitial, &pyFinal)) goto try_final_extension;
|
||||
if (Zi8GetPyFinal(pinyin, &pyInitial, &pyFinal) == 0) goto try_final_extension;
|
||||
if (outputIndex == 0) {
|
||||
*resultCount += 1;
|
||||
}
|
||||
@@ -590,7 +590,7 @@ try_final_extension:
|
||||
|
||||
if (index < 3) {
|
||||
pinyin[index + 1] = 0xFF;
|
||||
if (Zi8GetPyFinal(pinyin, &pyInitial, &pyFinal)) {
|
||||
if (Zi8GetPyFinal(pinyin, &pyInitial, &pyFinal) != 0) {
|
||||
if (outputIndex == 0) {
|
||||
*resultCount += 1;
|
||||
}
|
||||
@@ -624,7 +624,7 @@ finish_final:
|
||||
partial = 1;
|
||||
}
|
||||
if (partial && alternateInitial == 0) {
|
||||
if (Zi8GetPyFinal(pinyin, &pyInitial, &pyFinal)) {
|
||||
if (Zi8GetPyFinal(pinyin, &pyInitial, &pyFinal) != 0) {
|
||||
if (convertedCount == 0) {
|
||||
result++;
|
||||
initial[outputIndex] = 0x7E00;
|
||||
@@ -641,7 +641,7 @@ finish_final:
|
||||
}
|
||||
} else {
|
||||
pinyin[index] = 0xFF;
|
||||
if (Zi8GetPyFinal(pinyin, &pyInitial, &pyFinal)) {
|
||||
if (Zi8GetPyFinal(pinyin, &pyInitial, &pyFinal) != 0) {
|
||||
if (convertedCount == 0) {
|
||||
result++;
|
||||
initial[outputIndex] = 0x7E00;
|
||||
@@ -653,7 +653,7 @@ finish_final:
|
||||
*bestFinal = final[0];
|
||||
if ((outputIndex == 0) && (count == 0)) {
|
||||
pinyin[index] = 0;
|
||||
if (Zi8GetPyFinal(pinyin, &pyInitial, &pyFinal)) {
|
||||
if (Zi8GetPyFinal(pinyin, &pyInitial, &pyFinal) != 0) {
|
||||
if (convertedCount == 0) {
|
||||
*bestInitial = 0x7E00;
|
||||
*bestFinal = 0x200;
|
||||
@@ -664,7 +664,7 @@ finish_final:
|
||||
}
|
||||
} else {
|
||||
pinyin[index] = 0;
|
||||
if (Zi8GetPyFinal(pinyin, &pyInitial, &pyFinal)) {
|
||||
if (Zi8GetPyFinal(pinyin, &pyInitial, &pyFinal) != 0) {
|
||||
if (convertedCount == 0) {
|
||||
result++;
|
||||
initial[outputIndex] = 0x7E00;
|
||||
|
||||
@@ -6,6 +6,8 @@ extern ziU32 Zi8GetTableAddress(ziU8 lang, ziU8 tableIdx ZI_NEED_WORK);
|
||||
|
||||
typedef struct { ziU8 b[0xC]; } ziE12;
|
||||
|
||||
#define WORKP ((struct __zi8_work_data_s*)__zi8_work_data)
|
||||
|
||||
ziU16 Zi8Uni2Ptr(ziU16 ch, ziE12* buf ZI_NEED_WORK) {
|
||||
ziU8 hi;
|
||||
ziU8 lo;
|
||||
@@ -16,15 +18,15 @@ ziU16 Zi8Uni2Ptr(ziU16 ch, ziE12* buf ZI_NEED_WORK) {
|
||||
ziU8* e;
|
||||
ziU8* p;
|
||||
|
||||
hi = (ziU8)((ch >> 8) & 0xFF);
|
||||
hi = (ziU8)(((ziU16)ch >> 8) & 0xFF);
|
||||
lo = (ziU8)ch;
|
||||
count = Zi8GetTableCount(ZI8_LANG_ZH, 0, __zi8_work_data);
|
||||
table = Zi8GetTableAddress(ZI8_LANG_ZH, 0, __zi8_work_data);
|
||||
table2 = Zi8GetTableAddress(ZI8_LANG_ZH, 1, __zi8_work_data);
|
||||
count = Zi8GetTableCount(1, 0, __zi8_work_data);
|
||||
table = Zi8GetTableAddress(1, 0, __zi8_work_data);
|
||||
table2 = Zi8GetTableAddress(1, 1, __zi8_work_data);
|
||||
if (buf == ZI8_NULL) {
|
||||
for (i = 0; i < 0x40; i++) {
|
||||
if (ch == ZI_WORK->duplicateCharacters[i]) {
|
||||
i = ZI_WORK->duplicateOrdinalCache[i];
|
||||
if (ch == WORKP->duplicateCharacters[i]) {
|
||||
i = WORKP->duplicateOrdinalCache[i];
|
||||
e = (ziU8*)table + i * 0xC;
|
||||
if (i >= count) {
|
||||
break;
|
||||
@@ -35,7 +37,7 @@ ziU16 Zi8Uni2Ptr(ziU16 ch, ziE12* buf ZI_NEED_WORK) {
|
||||
p = (ziU8*)(table2 +
|
||||
(((e[9] & 0xF) << 16) |
|
||||
(e[0xB] | (e[0xA] << 8))));
|
||||
if (ZI_WORK->cangjieEnabled != 0) {
|
||||
if (WORKP->cangjieEnabled != 0) {
|
||||
switch (p[0] & 7) {
|
||||
case 2:
|
||||
p += 2;
|
||||
@@ -63,19 +65,19 @@ ziU16 Zi8Uni2Ptr(ziU16 ch, ziE12* buf ZI_NEED_WORK) {
|
||||
}
|
||||
}
|
||||
e = (ziU8*)table;
|
||||
if (ZI_WORK->unicodeMap != ZI8_NULL && ZI_WORK->unicodeMapSubLang == ZI_WORK->subLanguage) {
|
||||
if (ch >= ZI_WORK->unicodeRange1Min && ch <= ZI_WORK->unicodeRange1Max) {
|
||||
i = (ziU16)(ch - ZI_WORK->unicodeRange1Min);
|
||||
if (WORKP->unicodeMap != ZI8_NULL && WORKP->unicodeMapSubLang == WORKP->subLanguage) {
|
||||
if ((ziU16)ch >= WORKP->unicodeRange1Min && (ziU16)ch <= WORKP->unicodeRange1Max) {
|
||||
i = (ziU16)(ch - WORKP->unicodeRange1Min);
|
||||
goto map;
|
||||
}
|
||||
if (ch >= ZI_WORK->unicodeRange2Min && ch <= ZI_WORK->unicodeRange2Max) {
|
||||
i = (ziU16)(ZI_WORK->unicodeRange1Max + (ch - ZI_WORK->unicodeRange2Min) -
|
||||
ZI_WORK->unicodeRange1Min + 1);
|
||||
if ((ziU16)ch >= WORKP->unicodeRange2Min && (ziU16)ch <= WORKP->unicodeRange2Max) {
|
||||
i = (ziU16)(WORKP->unicodeRange1Max + (ch - WORKP->unicodeRange2Min) -
|
||||
WORKP->unicodeRange1Min + 1);
|
||||
goto map;
|
||||
}
|
||||
return 0xFFFF;
|
||||
map:
|
||||
i = ZI_WORK->unicodeMap[i];
|
||||
i = WORKP->unicodeMap[i];
|
||||
if (i != 0xFFFF) {
|
||||
e = (ziU8*)table + i * 0xC;
|
||||
if (hi == e[6] && lo == e[7]) {
|
||||
@@ -108,11 +110,11 @@ ziU16 Zi8Uni2Ord(ziU16 ch ZI_NEED_WORK) {
|
||||
ziU16 Zi8Ord2Uni(ziU16 ord ZI_NEED_WORK) {
|
||||
ziU8* p;
|
||||
|
||||
if (ord >= Zi8GetTableCount(ZI8_LANG_ZH, 0, __zi8_work_data)) {
|
||||
if ((ziU16)ord >= Zi8GetTableCount(1, 0, __zi8_work_data)) {
|
||||
Zi8LogError(0x132, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
p = (ziU8*)Zi8GetTableAddress(ZI8_LANG_ZH, 0, __zi8_work_data);
|
||||
p = (ziU8*)Zi8GetTableAddress(1, 0, __zi8_work_data);
|
||||
p += ord * 0xC;
|
||||
Zi8LogError(0x64, __zi8_work_data);
|
||||
return (ziU16)(((ziU16)p[6] << 8) + p[7]);
|
||||
@@ -123,9 +125,9 @@ ziU16 Zi8Ord2Ord(ziU16 ord ZI_NEED_WORK) {
|
||||
ziU16 count;
|
||||
ziU8* p;
|
||||
|
||||
count = Zi8GetTableCount(ZI8_LANG_ZH, 0, __zi8_work_data);
|
||||
table = Zi8GetTableAddress(ZI8_LANG_ZH, 0, __zi8_work_data);
|
||||
if (ord == 0 || ord >= count) {
|
||||
count = Zi8GetTableCount(1, 0, __zi8_work_data);
|
||||
table = Zi8GetTableAddress(1, 0, __zi8_work_data);
|
||||
if (ord == 0 || (ziU16)ord >= count) {
|
||||
Zi8LogError(0x132, __zi8_work_data);
|
||||
return ord;
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ ziU8 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar*
|
||||
Zi8LogError(0x4B0, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
if (language == ZI8_LANG_ZH) {
|
||||
if (language == 1) {
|
||||
length *= 2;
|
||||
}
|
||||
if (continuation == 0) {
|
||||
@@ -106,7 +106,7 @@ ziU8 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar*
|
||||
while ((ziS32)ZI_WORK->pudWordIndex < (ziS32)ZI_WORK->pudWordCount) {
|
||||
wordSize = *word++;
|
||||
entrySize = wordSize;
|
||||
if (language == ZI8_LANG_ZH) {
|
||||
if (language == 1) {
|
||||
if (ZI_WORK->zhPudMinPrefix > *word) goto next;
|
||||
wordSize--;
|
||||
entrySize--;
|
||||
@@ -118,7 +118,7 @@ next:
|
||||
ZI_WORK->pudWordIndex++;
|
||||
word += entrySize;
|
||||
} else {
|
||||
if (language == ZI8_LANG_ZH) {
|
||||
if (language == 1) {
|
||||
bytePattern = (ziU8*)pattern;
|
||||
for (index = 0; index < length; index++) {
|
||||
if (word[index] != bytePattern[index]) goto next;
|
||||
@@ -143,7 +143,7 @@ matched:
|
||||
else *output = Zi8ConvertWC2Key(*pattern, language, __zi8_work_data);
|
||||
return 1;
|
||||
}
|
||||
if (language == ZI8_LANG_ZH) {
|
||||
if (language == 1) {
|
||||
byteOutput = (ziU8*)output;
|
||||
for (index = copied = 0; index < (ziS32)wordSize && copied < capacity; copied++) {
|
||||
byteOutput[index] = word[index];
|
||||
|
||||
@@ -87,7 +87,7 @@ ziU8 Zi8ZHaddSpace(ziWChar* src, ziU8 count, ziWChar* dst,
|
||||
return 1;
|
||||
|
||||
fail:
|
||||
if (count >= maxLen) {
|
||||
if ((ziU8)count >= (ziU16)maxLen) {
|
||||
count = (ziU8)(maxLen - 1);
|
||||
}
|
||||
for (i = 0; i < count; i++) {
|
||||
|
||||
@@ -129,8 +129,8 @@ ziU8* ZiDAWGGetSibling(ziU8* cursor) {
|
||||
|
||||
}
|
||||
|
||||
ziU8 ZiDAWGgetEOWattribute(ziU8* node) {
|
||||
return (nodeHeaderTable[*node >> 4] & 0x10) > 0;
|
||||
ziU8 ZiDAWGgetEOWattribute(ziU32 node) {
|
||||
return (nodeHeaderTable[*(ziU8*)node >> 4] & 0x10) > 0;
|
||||
}
|
||||
|
||||
ziU32 ZiDAWGgetCHARattribute(zi8DawgCtx* context, ziU32 node, ziPtr __zi8_work_data) {
|
||||
@@ -149,17 +149,17 @@ ziU32 ZiDAWGgetCHARattribute(zi8DawgCtx* context, ziU32 node, ziPtr __zi8_work_d
|
||||
}
|
||||
|
||||
attribute = key << 24;
|
||||
attribute |= context->characterFlags[key] << 16;
|
||||
attribute |= (((ziU32)context->characters[key * 2] & 0xFFFF) << 8) +
|
||||
(context->characters + key * 2)[1];
|
||||
attribute |= ((ziU8*)context->characterFlags)[key] << 16;
|
||||
attribute |= (((ziU32)((ziU8*)context->characters)[key * 2] & 0xFFFF) << 8) +
|
||||
((ziU8*)context->characters + key * 2)[1];
|
||||
Zi8LogError(0x64, __zi8_work_data);
|
||||
return attribute;
|
||||
}
|
||||
|
||||
ziU32 ZiDAWGGetGraph(zi8DawgCtx* context) {
|
||||
return (((ziU32)context->table[2] & 0xFFFF) << 8) +
|
||||
context->table[3] +
|
||||
((ziU32)context->table + 4);
|
||||
ziU32 ZiDAWGGetGraph(ziPtr context) {
|
||||
return (((ziU32)((zi8DawgCtx*)context)->table[2] & 0xFFFF) << 8) +
|
||||
((zi8DawgCtx*)context)->table[3] +
|
||||
((ziU32)((zi8DawgCtx*)context)->table + 4);
|
||||
}
|
||||
|
||||
ziU32 ZiDAWGGetGraphInfo(zi8DawgCtx* context, ziU8* entry, ziU16* keys) {
|
||||
|
||||
@@ -23,10 +23,10 @@ ziU8 Zi8LookupKoreanChar(ziWChar character, ziU8* result, ziU16* index, ziPtr wo
|
||||
return 0;
|
||||
}
|
||||
|
||||
ziU8 Zi8MatchKoreanSequence(ziU16* resultIndex, ziU16* input, ziU8 type, ziU16 count, struct __zi8_work_data_s* workData);
|
||||
ziU8 Zi8MatchKoreanSequence(ziU16* resultIndex, ziU16* input, ziU8 type, ziU16 count, ziPtr workData);
|
||||
|
||||
ziU32 Zi8GetKoreanCandidates(ziGetParam* params, ziU8* argument,
|
||||
struct __zi8_work_data_s* workData) {
|
||||
ziPtr workData) {
|
||||
struct {
|
||||
ziU8 characterIndex;
|
||||
ziU8 matched;
|
||||
@@ -104,7 +104,7 @@ ziU32 Zi8GetKoreanCandidates(ziGetParam* params, ziU8* argument,
|
||||
state.characterIndex,
|
||||
(state.elementIndex - currentCharacter) - 1,
|
||||
workData);
|
||||
if (workData->koAltTables == 1) {
|
||||
if ((((struct __zi8_work_data_s*)workData)->koAltTables == 1)) {
|
||||
switch (state.characterIndex) {
|
||||
case 1:
|
||||
selectedTable = (ziU8*)Zi8GetTableAddress(ZI8_LANG_KO, 0x1E, workData);
|
||||
@@ -177,10 +177,10 @@ ziU32 Zi8GetKoreanCandidates(ziGetParam* params, ziU8* argument,
|
||||
if (state.currentCandidate != 0) {
|
||||
state.currentCandidate--;
|
||||
} else {
|
||||
params->candidates[result] =
|
||||
params->candidates[(ziU8)result] =
|
||||
((ziU16)selectedTable[state.nextIndex * 2] << 8) | (selectedTable + state.nextIndex * 2)[1];
|
||||
if ((state.tableCount6 != 0) && (workData->koAltTables == 0)) {
|
||||
params->candidates[result] += state.inputIndex * state.tableCount3;
|
||||
if ((state.tableCount6 != 0) && (((struct __zi8_work_data_s*)workData)->koAltTables == 0)) {
|
||||
params->candidates[(ziU8)result] += state.inputIndex * state.tableCount3;
|
||||
}
|
||||
result++;
|
||||
}
|
||||
@@ -208,7 +208,7 @@ ziU32 Zi8GetKoreanCandidates(ziGetParam* params, ziU8* argument,
|
||||
if (currentCharacter == 0) {
|
||||
params->completion = 1;
|
||||
}
|
||||
params->candidates[result] =
|
||||
params->candidates[(ziU8)result] =
|
||||
state.tableCount0 + (state.table31 + state.index * 3)[2];
|
||||
result++;
|
||||
currentCharacter++;
|
||||
@@ -216,11 +216,11 @@ ziU32 Zi8GetKoreanCandidates(ziGetParam* params, ziU8* argument,
|
||||
}
|
||||
}
|
||||
if (state.index == state.tableCount31) {
|
||||
if ((params->candidates[result] = buffer[currentCharacter]) < 0xFF) {
|
||||
if ((params->candidates[(ziU8)result] = buffer[currentCharacter]) < 0xFF) {
|
||||
if (currentCharacter == 0) {
|
||||
params->completion = 1;
|
||||
}
|
||||
params->candidates[result] += state.tableCount0;
|
||||
params->candidates[(ziU8)result] += state.tableCount0;
|
||||
result++;
|
||||
}
|
||||
}
|
||||
@@ -235,7 +235,7 @@ ziU32 Zi8GetKoreanCandidates(ziGetParam* params, ziU8* argument,
|
||||
return result;
|
||||
}
|
||||
|
||||
ziU8 Zi8MatchKoreanSequence(ziU16* resultIndex, ziU16* input, ziU8 type, ziU16 count, struct __zi8_work_data_s* workData) {
|
||||
ziU8 Zi8MatchKoreanSequence(ziU16* resultIndex, ziU16* input, ziU8 type, ziU16 count, ziPtr workData) {
|
||||
ziU16 nestedScratch;
|
||||
ziU16 nestedIndexStorage;
|
||||
ziU16 index1;
|
||||
@@ -249,7 +249,7 @@ ziU8 Zi8MatchKoreanSequence(ziU16* resultIndex, ziU16* input, ziU8 type, ziU16 c
|
||||
|
||||
firstCharacter = input[0];
|
||||
mappedCharacter = 0xFF;
|
||||
if (workData->koAltTables == 0) {
|
||||
if (((struct __zi8_work_data_s*)workData)->koAltTables == 0) {
|
||||
table = (ziU8*)Zi8GetTableAddress(ZI8_LANG_KO, 3, workData);
|
||||
tableCount = Zi8GetTableCount(ZI8_LANG_KO, 3, workData);
|
||||
} else {
|
||||
|
||||
@@ -53,7 +53,7 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
|
||||
Zi8ReplaceLastError(300, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
if (language != ZI8_LANG_ZH) {
|
||||
if (language != 1) {
|
||||
for (count = 0; word[count] != 0; count++) {
|
||||
if (word[count] >= 0xEFF1 || count == 64) return 0;
|
||||
}
|
||||
@@ -91,7 +91,7 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
|
||||
ZI_WORK->formatCount = savedCount;
|
||||
if (count != 0) return 1;
|
||||
}
|
||||
if (language != ZI8_LANG_ZH) {
|
||||
if (language != 1) {
|
||||
Zi8ReplaceLastError(0x26C, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
@@ -106,10 +106,10 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
|
||||
{
|
||||
if (count-- == 1) return 1;
|
||||
ordinals[count] |= 0x8000;
|
||||
ZI_WORK->cangjieEnabled = Zi8GetFormatVersion(ZI8_LANG_ZH, __zi8_work_data) & 2;
|
||||
table = Zi8GetTableAddress(ZI8_LANG_ZH, 0, __zi8_work_data);
|
||||
ZI_WORK->cangjieEnabled = Zi8GetFormatVersion(1, __zi8_work_data) & 2;
|
||||
table = (ziChineseEntry*)Zi8GetTableAddress(1, 0, __zi8_work_data);
|
||||
entry = table + ordinals[0];
|
||||
baseData = Zi8GetTableAddress(ZI8_LANG_ZH, 1, __zi8_work_data);
|
||||
baseData = (ziU8*)Zi8GetTableAddress(1, 1, __zi8_work_data);
|
||||
baseData += ((entry->offsetHigh & 15) << 16 | (entry->offsetLow[1] | (entry->offsetLow[0] << 8)));
|
||||
data = baseData;
|
||||
if (ZI_WORK->cangjieEnabled != 0) {
|
||||
@@ -168,10 +168,10 @@ ziWChar Zi8ConvertUC2UserKey(ziChar character, ziU8 language ZI_NEED_WORK) {
|
||||
if (character == 0 || language > 0x82 || (keys = ZI_WORK->userKeys[language]) == 0) return 0;
|
||||
for (key = 0; key < 32; key++) {
|
||||
for (cursor = keys->lower[key]; cursor != 0 && *cursor != 0; cursor++) {
|
||||
if (*cursor == (ziU16)character) goto found;
|
||||
if ((ziU16)*cursor == (ziU16)character) goto found;
|
||||
}
|
||||
for (cursor = keys->upper[key]; cursor != 0 && *cursor != 0; cursor++) {
|
||||
if (*cursor == (ziU16)character) goto found;
|
||||
if ((ziU16)*cursor == (ziU16)character) goto found;
|
||||
}
|
||||
}
|
||||
found:
|
||||
|
||||
@@ -189,8 +189,7 @@ ziU32 Zi8_814834AC(ziGetParam* param, ziU16* remaining, ziU8* count,
|
||||
if (matches) {
|
||||
for (candidateIndex = 0; candidateIndex < *count; candidateIndex++) {
|
||||
if (param->candidates[candidateIndex] ==
|
||||
(((ziU16)tableA[i * sizeof(ZiKoreanKeyEntry) + offsetof(ZiKoreanKeyEntry, characterHigh)] << 8) |
|
||||
(ziU16)tableA[i * sizeof(ZiKoreanKeyEntry) + offsetof(ZiKoreanKeyEntry, characterLow)])) {
|
||||
(((ziU16)((ZiKoreanKeyEntry*)tableA)[i].characterHigh << 8) | (ziU16)((ZiKoreanKeyEntry*)tableA)[i].characterLow)) {
|
||||
matched++;
|
||||
param->candidates[candidateIndex] &= 0x7FFF;
|
||||
break;
|
||||
@@ -248,251 +247,254 @@ typedef struct {
|
||||
} ZiKoreanCandidateOptions;
|
||||
|
||||
ziU32 Zi8GetKOcandidates(ziGetParam* param, ZiKoreanCandidateOptions* options ZI_NEED_WORK) {
|
||||
ziU8* wordTable;
|
||||
ziS32 tableIndex;
|
||||
ziS32 resultCount;
|
||||
ziU32 wordOffset;
|
||||
ziS32 prefixCount;
|
||||
ziS32 candidateIndex;
|
||||
ZiKoreanKeyEntry* entry;
|
||||
ziU16 keyIndex;
|
||||
ziU16 tableCount;
|
||||
ziU16 character;
|
||||
ziU16 previousIndex;
|
||||
ziU16 remainingCandidates;
|
||||
ziU8 remainingLetters;
|
||||
ziU8 wordIndex;
|
||||
ziU8 candidateCount;
|
||||
ziU8 keyByte;
|
||||
ziU8 matchPass;
|
||||
ziU8 inserted;
|
||||
ziBool matches;
|
||||
struct {
|
||||
ziBool matches;
|
||||
ziU8 inserted;
|
||||
ziU8 matchPass;
|
||||
ziU8 keyByte;
|
||||
ziU8 candidateCount;
|
||||
ziU8 wordIndex;
|
||||
ziU8 remainingLetters;
|
||||
ziU16 remainingCandidates;
|
||||
ziU16 previousIndex;
|
||||
ziU16 character;
|
||||
ziU16 tableCount;
|
||||
ziU16 keyIndex;
|
||||
ZiKoreanKeyEntry* entry;
|
||||
ziS32 candidateIndex;
|
||||
ziS32 prefixCount;
|
||||
ziU32 wordOffset;
|
||||
ziS32 resultCount;
|
||||
ziS32 tableIndex;
|
||||
ziU8* wordTable;
|
||||
union {
|
||||
ziU32 firstWord;
|
||||
ziU8 bytes[5];
|
||||
} packedKeys;
|
||||
} search;
|
||||
ziU8* keyTable;
|
||||
ziU8* wordNode;
|
||||
|
||||
previousIndex = 0xFFFF;
|
||||
resultCount = 0;
|
||||
{
|
||||
ziU8 packedKeys[5] = {0};
|
||||
|
||||
remainingLetters = 0;
|
||||
wordIndex = 0;
|
||||
candidateCount = 0;
|
||||
keyByte = 0;
|
||||
remainingCandidates = param->firstCandidate;
|
||||
prefixCount = 0;
|
||||
candidateIndex = 0;
|
||||
inserted = 0;
|
||||
Zi8LogError(100, ZI_WORK);
|
||||
Zi8_81483264(param, ZI_WORK);
|
||||
keyTable = (ziU8*)Zi8GetTableAddress(ZI8_LANG_KO, 9, ZI_WORK);
|
||||
wordTable = (ziU8*)Zi8GetTableAddress(ZI8_LANG_KO, 10, ZI_WORK);
|
||||
if (keyTable == 0) {
|
||||
Zi8ReplaceLastError(0x76C, ZI_WORK);
|
||||
search.previousIndex = 0xFFFF;
|
||||
search.resultCount = 0;
|
||||
search.packedKeys.firstWord = 0;
|
||||
search.packedKeys.bytes[4] = 0;
|
||||
search.wordIndex = search.remainingLetters = 0;
|
||||
search.candidateCount = 0;
|
||||
search.keyByte = 0;
|
||||
search.remainingCandidates = param->firstCandidate;
|
||||
search.prefixCount = 0;
|
||||
search.candidateIndex = 0;
|
||||
search.inserted = 0;
|
||||
Zi8LogError(100, ZI_WORK);
|
||||
Zi8_81483264(param, ZI_WORK);
|
||||
keyTable = (ziU8*)Zi8GetTableAddress(ZI8_LANG_KO, 9, ZI_WORK);
|
||||
search.wordTable = (ziU8*)Zi8GetTableAddress(ZI8_LANG_KO, 10, ZI_WORK);
|
||||
if (keyTable == 0) {
|
||||
Zi8ReplaceLastError(0x76C, ZI_WORK);
|
||||
return 0;
|
||||
} else {
|
||||
if (search.wordTable == 0) {
|
||||
Zi8ReplaceLastError(0x776, ZI_WORK);
|
||||
return 0;
|
||||
} else {
|
||||
if (wordTable == 0) {
|
||||
Zi8ReplaceLastError(0x776, ZI_WORK);
|
||||
return 0;
|
||||
}
|
||||
if (options->countOnly == 0) {
|
||||
param->letters = 0;
|
||||
param->count = 0;
|
||||
param->candidates[0] = 0;
|
||||
}
|
||||
Zi8LogError(100, ZI_WORK);
|
||||
if (param->wordCharCount == 0) goto scan_key_table;
|
||||
{
|
||||
if (((keyIndex = Zi8_8148302C(param->currentWord[0], keyTable, ZI_WORK)) != 0xFFFF) &&
|
||||
((keyTable[(keyIndex << 3) + keyIndex + offsetof(ZiKoreanKeyEntry, keyBytes[4])] & 8) != 0)) {
|
||||
wordOffset = keyTable[(keyIndex << 3) + keyIndex + offsetof(ZiKoreanKeyEntry, childLow)] |
|
||||
((keyTable[(keyIndex << 3) + keyIndex + offsetof(ZiKoreanKeyEntry, keyBytes[4])] & 3) << 16 |
|
||||
keyTable[(keyIndex << 3) + keyIndex + offsetof(ZiKoreanKeyEntry, childHigh)] << 8);
|
||||
remainingLetters = param->wordCharCount - 1;
|
||||
wordIndex = 1;
|
||||
wordNode = wordTable + wordOffset;
|
||||
}
|
||||
if (options->countOnly == 0) {
|
||||
param->letters = 0;
|
||||
param->count = 0;
|
||||
param->candidates[0] = 0;
|
||||
}
|
||||
Zi8LogError(100, ZI_WORK);
|
||||
if (param->wordCharCount == 0) goto scan_key_table;
|
||||
{
|
||||
if (((search.keyIndex = Zi8_8148302C(param->currentWord[0], keyTable, ZI_WORK)) != 0xFFFF) &&
|
||||
((keyTable[(search.keyIndex << 3) + search.keyIndex + offsetof(ZiKoreanKeyEntry, keyBytes[4])] & 8) != 0)) {
|
||||
search.wordOffset = ((ZiKoreanKeyEntry*)(((search.keyIndex << 3) + search.keyIndex) + keyTable))->childLow |
|
||||
((((ZiKoreanKeyEntry*)(((search.keyIndex << 3) + search.keyIndex) + keyTable))->keyBytes[4] & 3) << 16 |
|
||||
((ZiKoreanKeyEntry*)(((search.keyIndex << 3) + search.keyIndex) + keyTable))->childHigh << 8);
|
||||
search.remainingLetters = param->wordCharCount - 1;
|
||||
search.wordIndex = 1;
|
||||
wordNode = search.wordTable + search.wordOffset;
|
||||
match_word:
|
||||
while (remainingLetters != 0) {
|
||||
keyIndex = Zi8_8148302C(param->currentWord[wordIndex], keyTable, ZI_WORK);
|
||||
if (keyIndex == (((ziU16)*wordNode & 0x1F) << 8 | (ziU16)wordNode[1])) {
|
||||
--remainingLetters;
|
||||
++wordIndex;
|
||||
if ((*wordNode & 0x40) != 0) {
|
||||
remainingLetters = param->wordCharCount - 1;
|
||||
wordIndex = 1;
|
||||
break;
|
||||
}
|
||||
wordNode += 2;
|
||||
} else {
|
||||
wordIndex = 1;
|
||||
remainingLetters = param->wordCharCount - 1;
|
||||
while (search.remainingLetters != 0) {
|
||||
search.keyIndex = Zi8_8148302C(param->currentWord[search.wordIndex], (ziU8*)keyTable, ZI_WORK);
|
||||
if (search.keyIndex == (((ziU16)*wordNode & 0x1F) << 8 | (ziU16)wordNode[1])) {
|
||||
--search.remainingLetters;
|
||||
++search.wordIndex;
|
||||
if ((*wordNode & 0x40) != 0) {
|
||||
search.remainingLetters = param->wordCharCount - 1;
|
||||
search.wordIndex = 1;
|
||||
break;
|
||||
}
|
||||
wordNode += 2;
|
||||
} else {
|
||||
search.wordIndex = 1;
|
||||
search.remainingLetters = param->wordCharCount - 1;
|
||||
break;
|
||||
}
|
||||
if (remainingLetters == 0) {
|
||||
keyIndex = ((ziU16)*wordNode & 0x1F) << 8 | (ziU16)wordNode[1];
|
||||
character = (ziU16)((ziU16)keyTable[(keyIndex << 3) + keyIndex + offsetof(ZiKoreanKeyEntry, characterHigh)] << 8 |
|
||||
keyTable[(keyIndex << 3) + keyIndex + offsetof(ZiKoreanKeyEntry, characterLow)]);
|
||||
if (param->wordCharCount == 1) {
|
||||
if (keyIndex == previousIndex) {
|
||||
for (; (*wordNode & 0x40) == 0; wordNode = wordNode + 2) {
|
||||
}
|
||||
wordNode += 2;
|
||||
remainingLetters = param->wordCharCount - 1;
|
||||
wordIndex = 1;
|
||||
goto next_word;
|
||||
}
|
||||
if (search.remainingLetters == 0) {
|
||||
search.keyIndex = ((ziU16)*wordNode & 0x1F) << 8 | (ziU16)wordNode[1];
|
||||
search.character = (ziU16)((ziU16)((ZiKoreanKeyEntry*)(((search.keyIndex << 3) + search.keyIndex) + keyTable))->characterHigh << 8 |
|
||||
((ZiKoreanKeyEntry*)(((search.keyIndex << 3) + search.keyIndex) + keyTable))->characterLow);
|
||||
if (param->wordCharCount == 1) {
|
||||
if (search.keyIndex == search.previousIndex) {
|
||||
for (; (*wordNode & 0x40) == 0; wordNode = wordNode + 2) {
|
||||
}
|
||||
previousIndex = keyIndex;
|
||||
if (param->elementCount == 0) {
|
||||
if (remainingCandidates != 0) {
|
||||
--remainingCandidates;
|
||||
} else {
|
||||
if (options->countOnly != 0) {
|
||||
if (++prefixCount < (ziS32)options->maxCount) {
|
||||
goto skip_word;
|
||||
}
|
||||
return options->maxCount;
|
||||
}
|
||||
param->candidates[candidateCount++] = character;
|
||||
++param->count;
|
||||
if (++param->letters >= param->maxCandidates) {
|
||||
return param->letters;
|
||||
}
|
||||
}
|
||||
wordNode += 2;
|
||||
search.remainingLetters = param->wordCharCount - 1;
|
||||
search.wordIndex = 1;
|
||||
goto next_word;
|
||||
}
|
||||
search.previousIndex = search.keyIndex;
|
||||
if (param->elementCount == 0) {
|
||||
if (search.remainingCandidates != 0) {
|
||||
--search.remainingCandidates;
|
||||
} else {
|
||||
param->candidates[candidateCount++] = character;
|
||||
if (options->countOnly != 0) {
|
||||
if (++search.prefixCount < (ziS32)options->maxCount) {
|
||||
goto skip_word;
|
||||
}
|
||||
return options->maxCount;
|
||||
}
|
||||
param->candidates[search.candidateCount++] = search.character;
|
||||
++param->count;
|
||||
if (++param->letters >= param->maxCandidates) {
|
||||
Zi8_814834AC(param, &remainingCandidates, &candidateCount, &inserted, ZI_WORK);
|
||||
param->count = candidateCount;
|
||||
param->letters = candidateCount;
|
||||
if (candidateCount < param->maxCandidates) goto skip_word;
|
||||
if (options->countOnly != 0) {
|
||||
if ((prefixCount += candidateCount) >= (ziS32)options->maxCount) return options->maxCount;
|
||||
param->count = 0;
|
||||
param->letters = 0;
|
||||
candidateCount = 0;
|
||||
} else {
|
||||
return candidateCount;
|
||||
}
|
||||
return param->letters;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (candidateIndex = 0; candidateIndex < candidateCount; candidateIndex++) {
|
||||
if (character == param->candidates[candidateIndex]) break;
|
||||
}
|
||||
if ((candidateIndex == candidateCount) &&
|
||||
(Zi8_814833F0(param, character, ZI_WORK) == 0)) {
|
||||
param->candidates[candidateCount++] = character;
|
||||
++param->count;
|
||||
if (++param->letters < param->maxCandidates) {
|
||||
goto skip_word;
|
||||
}
|
||||
Zi8_814834AC(param, &remainingCandidates, &candidateCount, &inserted, ZI_WORK);
|
||||
param->count = candidateCount;
|
||||
param->letters = candidateCount;
|
||||
if (candidateCount < param->maxCandidates) goto skip_word;
|
||||
param->candidates[search.candidateCount++] = search.character;
|
||||
++param->count;
|
||||
if (++param->letters >= param->maxCandidates) {
|
||||
Zi8_814834AC(param, &search.remainingCandidates, &search.candidateCount, &search.inserted, ZI_WORK);
|
||||
param->count = search.candidateCount;
|
||||
param->letters = search.candidateCount;
|
||||
if (search.candidateCount < param->maxCandidates) goto skip_word;
|
||||
if (options->countOnly != 0) {
|
||||
if ((prefixCount += candidateCount) >= (ziS32)options->maxCount) return options->maxCount;
|
||||
if ((search.prefixCount += search.candidateCount) >= (ziS32)options->maxCount) return options->maxCount;
|
||||
param->count = 0;
|
||||
param->letters = 0;
|
||||
candidateCount = 0;
|
||||
search.candidateCount = 0;
|
||||
} else {
|
||||
return candidateCount;
|
||||
return search.candidateCount;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (search.candidateIndex = 0; search.candidateIndex < search.candidateCount; search.candidateIndex++) {
|
||||
if (search.character == param->candidates[search.candidateIndex]) break;
|
||||
}
|
||||
if ((search.candidateIndex == search.candidateCount) &&
|
||||
(Zi8_814833F0(param, search.character, ZI_WORK) == 0)) {
|
||||
param->candidates[search.candidateCount++] = search.character;
|
||||
++param->count;
|
||||
if (++param->letters < param->maxCandidates) {
|
||||
goto skip_word;
|
||||
}
|
||||
Zi8_814834AC(param, &search.remainingCandidates, &search.candidateCount, &search.inserted, ZI_WORK);
|
||||
param->count = search.candidateCount;
|
||||
param->letters = search.candidateCount;
|
||||
if (search.candidateCount < param->maxCandidates) goto skip_word;
|
||||
if (options->countOnly != 0) {
|
||||
if ((search.prefixCount += search.candidateCount) >= (ziS32)options->maxCount) return options->maxCount;
|
||||
param->count = 0;
|
||||
param->letters = 0;
|
||||
search.candidateCount = 0;
|
||||
} else {
|
||||
return search.candidateCount;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
skip_word:
|
||||
for (; (*wordNode & 0x40) == 0; wordNode = wordNode + 2) {
|
||||
}
|
||||
wordNode += 2;
|
||||
remainingLetters = param->wordCharCount - 1;
|
||||
wordIndex = 1;
|
||||
for (; (*wordNode & 0x40) == 0; wordNode = wordNode + 2) {
|
||||
}
|
||||
wordNode += 2;
|
||||
search.remainingLetters = param->wordCharCount - 1;
|
||||
search.wordIndex = 1;
|
||||
next_word:
|
||||
if ((*wordNode & 0x80) != 0) {
|
||||
goto search_table;
|
||||
}
|
||||
goto match_word;
|
||||
if ((*wordNode & 0x80) != 0) {
|
||||
goto search_table;
|
||||
}
|
||||
goto match_word;
|
||||
}
|
||||
search_table:
|
||||
resultCount = prefixCount;
|
||||
if (candidateCount != 0) {
|
||||
Zi8_814834AC(param, &remainingCandidates, &candidateCount, &inserted, ZI_WORK);
|
||||
if (options->countOnly != 0) {
|
||||
if ((prefixCount += candidateCount) >= (ziS32)options->maxCount) return options->maxCount;
|
||||
resultCount = prefixCount;
|
||||
}
|
||||
param->count = candidateCount;
|
||||
param->letters = candidateCount;
|
||||
}
|
||||
scan_key_table:
|
||||
if (param->elementCount > 9) {
|
||||
param->letters = 0;
|
||||
return 0;
|
||||
}
|
||||
{
|
||||
if (param->elementCount != 0 && options->countOnly == 0) {
|
||||
matchPass = 0;
|
||||
} else {
|
||||
matchPass = 1;
|
||||
}
|
||||
tableCount = Zi8GetTableCount(ZI8_LANG_KO, 9, ZI_WORK);
|
||||
Zi8_81483118(param, packedKeys);
|
||||
do {
|
||||
for (tableIndex = 0; tableIndex < tableCount; tableIndex = tableIndex + 1) {
|
||||
matches = ZI8_TRUE;
|
||||
entry = (ZiKoreanKeyEntry*)(((tableIndex << 3) + tableIndex) + keyTable);
|
||||
keyByte = 0;
|
||||
if (1 < param->elementCount) {
|
||||
for (keyByte = 0;
|
||||
(ziS32)keyByte < (int)param->elementCount / 2;
|
||||
keyByte++) {
|
||||
if (packedKeys[keyByte] != entry->keyBytes[keyByte]) {
|
||||
matches = ZI8_FALSE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((matches && ((param->elementCount % 2) != 0)) &&
|
||||
((packedKeys[keyByte] & 0xF0) !=
|
||||
(entry->keyBytes[keyByte] & 0xF0))) {
|
||||
matches = ZI8_FALSE;
|
||||
}
|
||||
if (matches) {
|
||||
if (param->elementCount % 2 != 0) {
|
||||
if ((entry->keyBytes[keyByte] & 0xF) != 0) {
|
||||
if (matchPass == 0) goto next_entry;
|
||||
} else if (matchPass != 0 && options->countOnly == 0) {
|
||||
goto next_entry;
|
||||
}
|
||||
} else {
|
||||
if ((entry->keyBytes[keyByte] & 0xF0) != 0) {
|
||||
if (matchPass == 0) goto next_entry;
|
||||
} else if (matchPass != 0 && options->countOnly == 0) {
|
||||
goto next_entry;
|
||||
}
|
||||
}
|
||||
if (remainingCandidates != 0) {
|
||||
--remainingCandidates;
|
||||
} else if (options->countOnly != 0) {
|
||||
if (++resultCount >= (ziS32)options->maxCount) return options->maxCount;
|
||||
} else {
|
||||
param->candidates[candidateCount++] =
|
||||
(ziU16)((ziU16)keyTable[(tableIndex << 3) + tableIndex + offsetof(ZiKoreanKeyEntry, characterHigh)] << 8 |
|
||||
keyTable[(tableIndex << 3) + tableIndex + offsetof(ZiKoreanKeyEntry, characterLow)]);
|
||||
if (++param->letters >= param->maxCandidates) return param->letters;
|
||||
}
|
||||
}
|
||||
next_entry:
|
||||
;
|
||||
}
|
||||
} while (++matchPass < 2);
|
||||
}
|
||||
if (options->countOnly != 0) return resultCount;
|
||||
return param->letters;
|
||||
}
|
||||
return 0;
|
||||
search_table:
|
||||
search.resultCount = search.prefixCount;
|
||||
if (search.candidateCount != 0) {
|
||||
Zi8_814834AC(param, &search.remainingCandidates, &search.candidateCount, &search.inserted, ZI_WORK);
|
||||
if (options->countOnly != 0) {
|
||||
if ((search.prefixCount += search.candidateCount) >= (ziS32)options->maxCount) return options->maxCount;
|
||||
search.resultCount = search.prefixCount;
|
||||
}
|
||||
param->count = search.candidateCount;
|
||||
param->letters = search.candidateCount;
|
||||
}
|
||||
scan_key_table:
|
||||
if (param->elementCount > 9) {
|
||||
param->letters = 0;
|
||||
return 0;
|
||||
}
|
||||
{
|
||||
if (param->elementCount != 0 && options->countOnly == 0) {
|
||||
search.matchPass = 0;
|
||||
} else {
|
||||
search.matchPass = 1;
|
||||
}
|
||||
search.tableCount = Zi8GetTableCount(ZI8_LANG_KO, 9, ZI_WORK);
|
||||
Zi8_81483118(param, search.packedKeys.bytes);
|
||||
do {
|
||||
for (search.tableIndex = 0; search.tableIndex < search.tableCount; search.tableIndex = search.tableIndex + 1) {
|
||||
search.matches = ZI8_TRUE;
|
||||
search.entry = (ZiKoreanKeyEntry*)(((search.tableIndex << 3) + search.tableIndex) + keyTable);
|
||||
search.keyByte = 0;
|
||||
if (1 < param->elementCount) {
|
||||
for (search.keyByte = 0;
|
||||
(ziS32)search.keyByte < (int)param->elementCount / 2;
|
||||
search.keyByte++) {
|
||||
if (search.packedKeys.bytes[search.keyByte] != search.entry->keyBytes[search.keyByte]) {
|
||||
search.matches = ZI8_FALSE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((search.matches && ((param->elementCount % 2) != 0)) &&
|
||||
((search.packedKeys.bytes[search.keyByte] & 0xF0) !=
|
||||
(search.entry->keyBytes[search.keyByte] & 0xF0))) {
|
||||
search.matches = ZI8_FALSE;
|
||||
}
|
||||
if (search.matches) {
|
||||
if (param->elementCount % 2 != 0) {
|
||||
if ((search.entry->keyBytes[search.keyByte] & 0xF) != 0) {
|
||||
if (search.matchPass == 0) goto next_entry;
|
||||
} else if (search.matchPass != 0 && options->countOnly == 0) {
|
||||
goto next_entry;
|
||||
}
|
||||
} else {
|
||||
if ((search.entry->keyBytes[search.keyByte] & 0xF0) != 0) {
|
||||
if (search.matchPass == 0) goto next_entry;
|
||||
} else if (search.matchPass != 0 && options->countOnly == 0) {
|
||||
goto next_entry;
|
||||
}
|
||||
}
|
||||
if (search.remainingCandidates != 0) {
|
||||
--search.remainingCandidates;
|
||||
} else if (options->countOnly != 0) {
|
||||
if (++search.resultCount >= (ziS32)options->maxCount) return options->maxCount;
|
||||
} else {
|
||||
param->candidates[search.candidateCount++] =
|
||||
(ziU16)((ziU16)((ZiKoreanKeyEntry*)(((search.tableIndex << 3) + search.tableIndex) + keyTable))->characterHigh << 8 |
|
||||
((ZiKoreanKeyEntry*)(((search.tableIndex << 3) + search.tableIndex) + keyTable))->characterLow);
|
||||
if (++param->letters >= param->maxCandidates) return param->letters;
|
||||
}
|
||||
}
|
||||
next_entry:
|
||||
;
|
||||
}
|
||||
} while (++search.matchPass < 2);
|
||||
}
|
||||
if (options->countOnly != 0) return search.resultCount;
|
||||
return param->letters;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -62,10 +62,10 @@ ziBool Zi8getKeyLayout(ziU8 language, ziWChar key, ziWChar* chars, ziU8 mode, zi
|
||||
return 0;
|
||||
}
|
||||
keyChars = customTable->lower[key];
|
||||
for (keyIndex = 0; keyChars[keyIndex] != 0; keyIndex++) {
|
||||
chars[keyIndex] = keyChars[keyIndex];
|
||||
for (keyIndex = 0; keyChars[(ziU16)keyIndex] != 0; keyIndex++) {
|
||||
chars[(ziU16)keyIndex] = keyChars[(ziU16)keyIndex];
|
||||
}
|
||||
chars[keyIndex] = 0;
|
||||
chars[(ziU16)keyIndex] = 0;
|
||||
return 1;
|
||||
} else {
|
||||
if (mode == 1) {
|
||||
@@ -93,19 +93,19 @@ tables_ready:
|
||||
}
|
||||
|
||||
keyIndex = tableCount = 0;
|
||||
for (; keyIndex < key; keyIndex++) {
|
||||
tableCount += dataAddress[keyIndex];
|
||||
for (; (ziU16)keyIndex < key; keyIndex++) {
|
||||
tableCount += dataAddress[(ziU16)keyIndex];
|
||||
}
|
||||
if ((charCount = (ziU8)dataAddress[key]) == 0) {
|
||||
return 0;
|
||||
}
|
||||
dataAddress = dataAddress + numKeys + (tableCount * 2);
|
||||
keyIndex = 0;
|
||||
for (; keyIndex < charCount; keyIndex++) {
|
||||
chars[keyIndex] = (ziU16)dataAddress[keyIndex * 2] |
|
||||
((ziU16)dataAddress[(keyIndex * 2) + 1] << 8);
|
||||
for (; (ziU16)keyIndex < charCount; keyIndex++) {
|
||||
chars[(ziU16)keyIndex] = (ziU16)dataAddress[(ziU16)keyIndex * 2] |
|
||||
((ziU16)dataAddress[((ziU16)keyIndex * 2) + 1] << 8);
|
||||
}
|
||||
chars[keyIndex] = 0;
|
||||
chars[(ziU16)keyIndex] = 0;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -121,7 +121,7 @@ ziBool Zi8ChangeCharCase(ziBool upper, ziWChar* character, ziU8 language ZI_NEED
|
||||
ziU16 result;
|
||||
ziS32 keyIndex;
|
||||
ziPtr from;
|
||||
ziWChar* to;
|
||||
ziPtr to;
|
||||
ziS32 characterIndex;
|
||||
|
||||
customTables = 0;
|
||||
@@ -130,9 +130,9 @@ ziBool Zi8ChangeCharCase(ziBool upper, ziWChar* character, ziU8 language ZI_NEED
|
||||
numKeys = 0x20;
|
||||
Zi8LogError(0x64, ZI_WORK);
|
||||
if (ZI_WORK->userKeys[language] != 0) {
|
||||
customTables = ZI_WORK->userKeys[language];
|
||||
customTables = (ziUserKeyMap*)ZI_WORK->userKeys[language];
|
||||
} else if (ZI_WORK->customKeyMap != 0) {
|
||||
customTables = ZI_WORK->customKeyMap;
|
||||
customTables = (ziUserKeyMap*)ZI_WORK->customKeyMap;
|
||||
} else {
|
||||
tableCount = Zi8GetTableCount(language, 0x1e, ZI_WORK);
|
||||
if (tableCount != 0) {
|
||||
@@ -144,18 +144,18 @@ ziBool Zi8ChangeCharCase(ziBool upper, ziWChar* character, ziU8 language ZI_NEED
|
||||
}
|
||||
}
|
||||
if (customTables != 0) {
|
||||
for (keyIndex = 0; (changed == 0) && (keyIndex < (ziS32)numKeys); keyIndex++) {
|
||||
for (keyIndex = 0; (changed == 0) && (keyIndex < (ziS32)(ziU32)numKeys); keyIndex++) {
|
||||
if (upper != 0) {
|
||||
from = customTables->lower[keyIndex];
|
||||
to = customTables->upper[keyIndex];
|
||||
from = (ziPtr)customTables->lower[keyIndex];
|
||||
to = (ziPtr)customTables->upper[keyIndex];
|
||||
} else {
|
||||
from = customTables->upper[keyIndex];
|
||||
to = customTables->lower[keyIndex];
|
||||
from = (ziPtr)customTables->upper[keyIndex];
|
||||
to = (ziPtr)customTables->lower[keyIndex];
|
||||
}
|
||||
if ((from != 0) && (to != 0)) {
|
||||
for (characterIndex = 0; ((ziU16)((ziS16*)from)[characterIndex]) != 0; characterIndex++) {
|
||||
if ((ziU16)((ziS16*)from)[characterIndex] == *character) {
|
||||
*character = (ziU16)to[characterIndex];
|
||||
*character = (ziU16)((ziWChar*)to)[characterIndex];
|
||||
changed = 1;
|
||||
break;
|
||||
}
|
||||
@@ -165,7 +165,7 @@ ziBool Zi8ChangeCharCase(ziBool upper, ziWChar* character, ziU8 language ZI_NEED
|
||||
}
|
||||
else if (dataAddress != 0) {
|
||||
total = 0;
|
||||
for (keyIndex = 0; keyIndex < (ziS32)numKeys; keyIndex++) {
|
||||
for (keyIndex = 0; keyIndex < (ziS32)(ziU32)numKeys; keyIndex++) {
|
||||
total += dataAddress[keyIndex];
|
||||
}
|
||||
dataAddress = dataAddress + numKeys;
|
||||
@@ -174,7 +174,7 @@ ziBool Zi8ChangeCharCase(ziBool upper, ziWChar* character, ziU8 language ZI_NEED
|
||||
dataAddress = dataAddress + ((ziU32)total * 2);
|
||||
direction = -1;
|
||||
}
|
||||
for (keyIndex = 0; keyIndex < (ziS32)total; keyIndex++) {
|
||||
for (keyIndex = 0; keyIndex < (ziS32)(ziU32)total; keyIndex++) {
|
||||
tableCount = (ziU16)(dataAddress[(keyIndex * 2)] |
|
||||
((ziU16)dataAddress[(keyIndex * 2) + 1] << 8));
|
||||
if (tableCount == *character) {
|
||||
|
||||
@@ -44,7 +44,7 @@ posEntry:
|
||||
if (pattern[position] == Zi8ConvertWC2Key(word[position], language, __zi8_work_data)) continue;
|
||||
break;
|
||||
} else if (word[position] != pattern[position]) {
|
||||
if (!ZI_WORK->ignoreCase || language == ZI8_LANG_ZH) break;
|
||||
if (!ZI_WORK->ignoreCase || language == 1) break;
|
||||
folded = pattern[position];
|
||||
if (!Zi8ChangeCharCase(1, &folded, language, __zi8_work_data) || folded != word[position]) break;
|
||||
}
|
||||
@@ -64,7 +64,7 @@ posEntry:
|
||||
while (word[position] != 0) position++;
|
||||
return position;
|
||||
matchRetry:
|
||||
if (index >= ZI_WORK->oemLen) goto oemFailed;
|
||||
if ((ziS32)index >= ZI_WORK->oemLen) goto oemFailed;
|
||||
if (!ZI_WORK->oemMatch(index, word, capacity, ZI_WORK->oemData)) goto oemFailed;
|
||||
goto posEntry;
|
||||
oemFailed:
|
||||
|
||||
@@ -94,9 +94,9 @@ s32 CARDWriteAsync(CARDFileInfo* fileInfo, void* buf, s32 length, s32 offset, CA
|
||||
if (result < 0)
|
||||
return __CARDPutControlBlock(card, result);
|
||||
|
||||
DCStoreRange(buf, (u32)length);
|
||||
DCStoreRange((void*)buf, (u32)length);
|
||||
card->apiCallback = callback ? callback : __CARDDefaultApiCallback;
|
||||
card->buffer = buf;
|
||||
card->buffer = (void*)buf;
|
||||
|
||||
result = __CARDEraseSector(fileInfo->chan, card->sectorSize * (u32)fileInfo->iBlock, EraseCallback);
|
||||
if (result < 0) {
|
||||
|
||||
@@ -1894,7 +1894,7 @@ s32 DVDGetCommandBlockStatus(const DVDCommandBlock* block) {
|
||||
|
||||
enabled = OSDisableInterrupts();
|
||||
|
||||
if (block->state == DVD_STATE_COVER_CLOSED) {
|
||||
if (((volatile DVDCommandBlock*)block)->state == DVD_STATE_COVER_CLOSED) {
|
||||
retVal = DVD_STATE_BUSY;
|
||||
} else if (((volatile DVDCommandBlock*)block)->state == DVD_STATE_COVER_OPENED) {
|
||||
retVal = DVD_STATE_NO_DISK;
|
||||
@@ -1904,13 +1904,13 @@ s32 DVDGetCommandBlockStatus(const DVDCommandBlock* block) {
|
||||
if (block == next) {
|
||||
retVal = DVD_STATE_BUSY;
|
||||
} else {
|
||||
retVal = block->state;
|
||||
retVal = ((volatile DVDCommandBlock*)block)->state;
|
||||
}
|
||||
} else {
|
||||
if (block == &__DVDStopMotorCommandBlock) {
|
||||
retVal = DVD_STATE_IDLE;
|
||||
} else {
|
||||
retVal = block->state;
|
||||
retVal = ((volatile DVDCommandBlock*)block)->state;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@@ -2177,14 +2177,14 @@ s32 DVDCancel(DVDCommandBlock* block) {
|
||||
enabled = OSDisableInterrupts();
|
||||
|
||||
while (TRUE) {
|
||||
state = block->state;
|
||||
state = ((volatile DVDCommandBlock*)block)->state;
|
||||
|
||||
if (state == DVD_STATE_IDLE || state == DVD_STATE_FATAL || state == DVD_STATE_CANCELED) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (state == DVD_STATE_COVER_CLOSED) {
|
||||
command = block->command;
|
||||
command = ((volatile DVDCommandBlock*)block)->command;
|
||||
|
||||
if (command == COMMAND_BSREAD || command == COMMAND_READID || command == COMMAND_AUDIO_BUFFER_CONFIG ||
|
||||
command == COMMAND_READ_UNENCRYPTED || command == COMMAND_OPEN_PARTITION || command == COMMAND_GET_PARTITION_PARAMS ||
|
||||
|
||||
@@ -379,7 +379,7 @@ bool DVDLowOpenPartition(u32 partitionWordOffset, ESTicket* eTicket, u32 numCert
|
||||
ioVec[1].length = sizeof(ESTicket);
|
||||
}
|
||||
|
||||
ioVec[2].base = certificates;
|
||||
ioVec[2].base = (u8*)certificates;
|
||||
if (certificates == 0) {
|
||||
ioVec[2].length = 0;
|
||||
} else {
|
||||
@@ -453,7 +453,7 @@ bool DVDLowOpenPartitionWithTmdAndTicketView(u32 partitionWordOffset, ESTicketVi
|
||||
ioVec[2].base = (u8*)tmd;
|
||||
ioVec[2].length = numTmdBytes;
|
||||
|
||||
ioVec[3].base = certificates;
|
||||
ioVec[3].base = (u8*)certificates;
|
||||
if (certificates == 0) {
|
||||
ioVec[3].length = 0;
|
||||
} else {
|
||||
|
||||
@@ -1270,17 +1270,17 @@ ESError ES_Encrypt(u32 keyNum, u8* iv, u8* input, u32 size, u8* output) {
|
||||
vec[0].length = sizeof(*pKeyNum);
|
||||
|
||||
// IV read
|
||||
vec[1].base = iv;
|
||||
vec[1].base = (u8*)iv;
|
||||
vec[1].length = 16;
|
||||
|
||||
vec[2].base = input;
|
||||
vec[2].base = (u8*)input;
|
||||
vec[2].length = size;
|
||||
|
||||
// IV write
|
||||
vec[3].base = iv;
|
||||
vec[3].base = (u8*)iv;
|
||||
vec[3].length = 16;
|
||||
|
||||
vec[4].base = output;
|
||||
vec[4].base = (u8*)output;
|
||||
vec[4].length = size;
|
||||
|
||||
ret = IOS_Ioctlv(__esFd, ES_IOCTLV_ENCRYPT, 3, 2, vec);
|
||||
@@ -1306,17 +1306,17 @@ ESError ES_Decrypt(u32 keyNum, u8* iv, u8* input, u32 size, u8* output) {
|
||||
vec[0].length = sizeof(*pKeyNum);
|
||||
|
||||
// IV read
|
||||
vec[1].base = iv;
|
||||
vec[1].base = (u8*)iv;
|
||||
vec[1].length = 16;
|
||||
|
||||
vec[2].base = input;
|
||||
vec[2].base = (u8*)input;
|
||||
vec[2].length = size;
|
||||
|
||||
// IV write
|
||||
vec[3].base = iv;
|
||||
vec[3].base = (u8*)iv;
|
||||
vec[3].length = 16;
|
||||
|
||||
vec[4].base = output;
|
||||
vec[4].base = (u8*)output;
|
||||
vec[4].length = size;
|
||||
|
||||
ret = IOS_Ioctlv(__esFd, ES_IOCTLV_DECRYPT, 3, 2, vec);
|
||||
|
||||
@@ -55,11 +55,12 @@ void nandRemoveTailToken(char* newPath, const char* oldPath) {
|
||||
if (i != 0) {
|
||||
strncpy(newPath, oldPath, i);
|
||||
newPath[i] = '\0';
|
||||
break;
|
||||
} else {
|
||||
newPath[0] = '/';
|
||||
newPath[1] = '\0';
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -518,7 +518,7 @@ void OSInit() {
|
||||
void* bi2StartAddr;
|
||||
void* arenaAddr;
|
||||
|
||||
OSExecParams* params = &__OSRebootParams;
|
||||
volatile OSExecParams* params = (volatile OSExecParams*)&__OSRebootParams;
|
||||
|
||||
if (AreWeInitialized == FALSE) {
|
||||
BOOL enabled;
|
||||
|
||||
@@ -537,7 +537,7 @@ BOOL OSJoinThread(OSThread* thread, void* val) {
|
||||
}
|
||||
}
|
||||
|
||||
if (thread->state == OS_THREAD_STATE_DEAD) {
|
||||
if (((volatile OSThread*)thread)->state == OS_THREAD_STATE_DEAD) {
|
||||
if (val != NULL) {
|
||||
*(u32*)val = (u32)thread->value;
|
||||
}
|
||||
|
||||
@@ -741,7 +741,7 @@ static void RSORelocate(RSORel* rel, int index, u32 offset) {
|
||||
x = offset + rel->addend;
|
||||
y = ((u32)p & ~0x03FFFFFC) | ((((u32)p & 0x03FFFFFC) + (*p & 0x03FFFFFC)) & 0x03FFFFFC);
|
||||
#if SDK_VERSION > 20090224 && !defined(SDK_IPL)
|
||||
if ((x != 0) && (x != y)) {
|
||||
if (((u32)x != 0) && (x != y)) {
|
||||
*p = (u32)((*p & ~0x03FFFFFC) | 0x03FF0000 | 0xFFFC);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1039,13 +1039,13 @@ void VIConfigure(const GXRenderModeObj* renderMode)
|
||||
if (HorVer.nonInter == 2 || HorVer.nonInter == 3) {
|
||||
register1 = ((u32)originalRegister1 & ~4) | (1 << 2);
|
||||
if (HorVer.tv == 8) {
|
||||
register54 = originalRegister54 & ~1;
|
||||
register54 = (u32)originalRegister54 & ~1;
|
||||
} else {
|
||||
register54 = (originalRegister54 & ~1) | 1;
|
||||
register54 = ((u32)originalRegister54 & ~1) | 1;
|
||||
}
|
||||
} else {
|
||||
register1 = ((u32)originalRegister1 & ~4) | ((HorVer.nonInter & 1) << 2);
|
||||
register54 = originalRegister54 & ~1;
|
||||
register54 = (u32)originalRegister54 & ~1;
|
||||
}
|
||||
register1 = (register1 & ~8) | (HorVer.threeD << 3);
|
||||
if (HorVer.tv == VI_PAL || HorVer.tv == VI_MPAL || HorVer.tv == 3) {
|
||||
|
||||
@@ -2955,7 +2955,7 @@ static void _WADRandPad(void* buffer, u32 size) {
|
||||
words += sizeof(u32);
|
||||
}
|
||||
if (remainder != 0) {
|
||||
u8* tail = words;
|
||||
u8* tail = (u8*)words;
|
||||
u8* randomBytes;
|
||||
u32 byteIndex;
|
||||
|
||||
|
||||
@@ -396,7 +396,7 @@ void WPADiDecode(s32 chan, u8* data, u16 length, u16 offset) {
|
||||
u8 tableIndex;
|
||||
u16 i;
|
||||
|
||||
buffer = data;
|
||||
buffer = (u8*)data;
|
||||
|
||||
for (i = 0; i < length; i++) {
|
||||
tableIndex = (offset + i) % 8;
|
||||
|
||||
@@ -78,7 +78,7 @@ extern void _restgpr_24();
|
||||
extern void _restgpr_25();
|
||||
extern void _restgpr_26();
|
||||
extern int atoi();
|
||||
|
||||
#pragma section sdata_type ".sdata"
|
||||
typedef struct {
|
||||
char path[256];
|
||||
CDBFindData find;
|
||||
@@ -1372,6 +1372,7 @@ CDBErr CDBDatabaseCleanUpEmptyDirectories(CDBDatabase* database, CDBRecordLocati
|
||||
return CDB_ERROR_OK;
|
||||
}
|
||||
|
||||
#pragma section data_type ".data"
|
||||
#pragma align 8
|
||||
extern char scCdbMsg_DatabaseClosed[] = "CDBDatabaseClose database is closed\n";
|
||||
#pragma align 8
|
||||
|
||||
@@ -642,11 +642,11 @@ NWC24Err NWC24DecodeMIMEHeaderFieldBody(u8* charsetData, u32 charsetDataSize, u8
|
||||
inputSize = encodedSize;
|
||||
output = decoded;
|
||||
remainingCapacity = decodedCapacity;
|
||||
while (inputSize > 0 && remainingCapacity > 0 && *input != '\0') {
|
||||
while ((s32)inputSize > 0 && remainingCapacity > 0 && *input != '\0') {
|
||||
u32 copiedSize = 0;
|
||||
u32 consumedSize;
|
||||
result =
|
||||
DecodeWord((char*)charsetData, charsetDataSize, (char*)output, remainingCapacity, &copiedSize, input, inputSize, &consumedSize);
|
||||
DecodeWord((char*)charsetData, charsetDataSize, (char*)output, remainingCapacity, &copiedSize, (char*)input, inputSize, &consumedSize);
|
||||
if (copiedSize == 0) {
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -547,3 +547,10 @@ static u32 SSL_strnlen(const char* s, u32 n) {
|
||||
}
|
||||
return t - s;
|
||||
}
|
||||
|
||||
#pragma push
|
||||
#pragma section data_type ".data"
|
||||
#pragma pop
|
||||
#pragma push
|
||||
#pragma section data_type ".sdata"
|
||||
#pragma pop
|
||||
|
||||
@@ -11,8 +11,8 @@ void VFiPF_LE16_TO_U16_STR(pf_u8* sSrc, pf_u32 num) {
|
||||
for (cnt = 0; cnt < num; cnt += sizeof(pf_u16)) {
|
||||
tmp_src = sSrc[cnt];
|
||||
#ifdef DEBUG
|
||||
*(sSrc + cnt) = *(sSrc + cnt + 1);
|
||||
*(sSrc + cnt + 1) = tmp_src;
|
||||
*((pf_u8*)sSrc + cnt) = *((pf_u8*)sSrc + cnt + 1);
|
||||
*((pf_u8*)sSrc + cnt + 1) = tmp_src;
|
||||
#else
|
||||
sSrc[cnt] = sSrc[cnt + 1];
|
||||
sSrc[cnt + 1] = tmp_src;
|
||||
|
||||
@@ -120,7 +120,7 @@ pf_s32 VFiPFSTR_StrCmp(const PF_STR* p_str, const pf_s8* s) {
|
||||
wp = (pf_u16*)p_str->p_head;
|
||||
|
||||
do {
|
||||
VFipf_vol_set.codeset.oem2unicode(s, &wc);
|
||||
VFipf_vol_set.codeset.oem2unicode((pf_s8*)s, &wc);
|
||||
s++;
|
||||
|
||||
if (*wp++ != wc) {
|
||||
@@ -158,7 +158,7 @@ pf_s32 VFiPFSTR_StrNCmp(PF_STR* p_str, const pf_s8* s, pf_u32 target, pf_s16 off
|
||||
}
|
||||
|
||||
do {
|
||||
VFipf_vol_set.codeset.oem2unicode(s, &wc);
|
||||
VFipf_vol_set.codeset.oem2unicode((pf_s8*)s, &wc);
|
||||
s++;
|
||||
num--;
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@ pf_u16* VFipf_w_strcpy(pf_u16* dst, const pf_u16* src) {
|
||||
}
|
||||
|
||||
pf_s32 VFipf_w_strncmp(const pf_u16* s1, const pf_u16* s2, pf_u32 length) {
|
||||
const pf_u16* p1 = s1;
|
||||
const pf_u16* p2 = s2;
|
||||
const pf_u16* p1 = (pf_u16*)s1;
|
||||
const pf_u16* p2 = (pf_u16*)s2;
|
||||
|
||||
while (length-- != 0) {
|
||||
if (*p1 == 0 || *p2 == 0 || *p1 != *p2) {
|
||||
|
||||
@@ -352,7 +352,7 @@ pf_s32 VFipdm_disk_format(PDM_DISK* p_disk, const pf_u8* param) {
|
||||
return err;
|
||||
}
|
||||
lp_disk = &VFipdm_disk_set.disk[PDM_DISK_GET_NO(p_disk)];
|
||||
err = lp_disk->disk_tbl.p_func->format(p_disk, param);
|
||||
err = lp_disk->disk_tbl.p_func->format(p_disk, (pf_u8*)param);
|
||||
if (err != 0) {
|
||||
if (lp_disk->p_cur_part != PF_NULL) {
|
||||
VFipdm_part_set_driver_error_code(lp_disk->p_cur_part, err);
|
||||
|
||||
@@ -79,7 +79,7 @@ static pf_s32 VFiPFENT_ITER_GetEntry(PF_DIR_ENT* p_ent, PF_ENT_ITER* p_iter, PF_
|
||||
if ((attr & 0xF) == 0xF) {
|
||||
is_match = 1;
|
||||
} else {
|
||||
is_valid = VFiPFENT_CompareAttr(attr, attr_required);
|
||||
is_valid = VFiPFENT_CompareAttr(attr, (pf_u8)attr_required);
|
||||
if (is_valid == 0) {
|
||||
is_match = 1;
|
||||
} else {
|
||||
|
||||
@@ -597,15 +597,29 @@ static pf_s32 VFiPFFILE_createEmptyFile(PF_VOLUME* p_vol, PF_DIR_ENT* p_ent, PF_
|
||||
|
||||
(void)namelength;
|
||||
|
||||
// stinky fakematch
|
||||
#ifdef DEBUG
|
||||
err = 0;
|
||||
#endif
|
||||
if (p_vol->num_opened_files >= 5) {
|
||||
return 0x15;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
err = VFiPFENT_InitENT(p_ent, p_fname, 0x20U, 1U, p_parent_ent, p_vol);
|
||||
if (err == 0) {
|
||||
if (err == 0)
|
||||
#else
|
||||
if (VFiPFENT_InitENT(p_ent, p_fname, 0x20U, 1U, p_parent_ent, p_vol) == 0)
|
||||
#endif
|
||||
{
|
||||
VFiPFFAT_InitFFD(&ffd, &hint, p_vol, &p_parent_ent->start_cluster);
|
||||
#ifdef DEBUG
|
||||
err = VFiPFENT_allocateEntry(p_ent, (p_ent->num_entry_LFNs + 1), &ffd, prev_chain, p_fname, 0x77U, &pos);
|
||||
if (err == 0) {
|
||||
if (err == 0)
|
||||
#else
|
||||
if (VFiPFENT_allocateEntry(p_ent, (p_ent->num_entry_LFNs + 1), &ffd, prev_chain, p_fname, 0x77U, &pos) == 0)
|
||||
#endif
|
||||
{
|
||||
p_ent->start_cluster = 0;
|
||||
if ((p_ent->long_name[0] != 0) && ((VFipf_vol_set.setting & 2) == 2)) {
|
||||
VFiPFPATH_AdjustExtShortName(p_ent->short_name, pos);
|
||||
|
||||
@@ -86,7 +86,7 @@ static pf_u32 VFiPFPATH_UNI_ConvertFWchar(pf_u16 src, pf_u16* dst) {
|
||||
}
|
||||
|
||||
static pf_u32 VFiPFPATH_OEM_ConvertFWchar(const pf_s8* src, pf_u16* dst) {
|
||||
VFipf_vol_set.codeset.oem2unicode(src, dst);
|
||||
VFipf_vol_set.codeset.oem2unicode((pf_s8*)src, dst);
|
||||
if (VFiPFPATH_UNI_ConvertFWchar((pf_u16)*dst, dst) == 1) {
|
||||
VFipf_vol_set.codeset.unicode2oem(dst, (pf_s8*)dst);
|
||||
*dst = (pf_u16)*dst;
|
||||
|
||||
@@ -282,7 +282,7 @@ BOOL WDFindInformationElement(WDInfoElement** outIE, u32* outIELength, WDBssDesc
|
||||
WDInfoElement* infoElement;
|
||||
|
||||
for (offset = 0; offset < bssDesc->ieLength; offset = (infoElement->length + offset) + sizeof(WDInfoElement)) {
|
||||
infoElement = (WDInfoElement*)(ptr + offset);
|
||||
infoElement = (WDInfoElement*)((u8*)ptr + offset);
|
||||
if (infoElement->id == id) {
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ loop:
|
||||
image[j + 16] = 0;
|
||||
}
|
||||
|
||||
string = OSGetFontTexel(string, image, 0, 6, &width);
|
||||
string = OSGetFontTexel((char*)string, image, 0, 6, &width);
|
||||
|
||||
for (i = 0; i < 24; i++) {
|
||||
j = (i & 7) + ((i >> 3) * 24);
|
||||
|
||||
@@ -110,6 +110,7 @@ namespace textinput {
|
||||
GXPosition3f32(x1 + realWidth, y0, z);
|
||||
GXColor1u32(*(u32*)&color);
|
||||
}
|
||||
GXEnd();
|
||||
} else {
|
||||
GXBegin(GX_QUADS, GX_VTXFMT0, 4);
|
||||
{
|
||||
@@ -122,8 +123,8 @@ namespace textinput {
|
||||
GXPosition3f32(x1, y0 - realWidth, z);
|
||||
GXColor1u32(*(u32*)&color);
|
||||
}
|
||||
GXEnd();
|
||||
}
|
||||
GXEnd();
|
||||
}
|
||||
} // namespace debug
|
||||
} // namespace textinput
|
||||
|
||||
@@ -1326,7 +1326,7 @@ namespace ipl {
|
||||
ARCFileInfo arcFile;
|
||||
|
||||
if (ARCOpen(&arc, "./chjump.bin", &arcFile)) {
|
||||
mpChJpData = (NWC24CHJumpObj*)(pArc + ARCGetStartOffset(&arcFile));
|
||||
mpChJpData = (NWC24CHJumpObj*)((u8*)pArc + ARCGetStartOffset(&arcFile));
|
||||
|
||||
if (nwc24Mgr->checkCHJumpObj(mpChJpData, ARCGetLength(&arcFile))) {
|
||||
u64 titleId = 0;
|
||||
|
||||
@@ -147,6 +147,8 @@ namespace ipl {
|
||||
extern "C" char scBrlyt_my_DiskCh_a[] = "my_DiskCh_a.brlyt";
|
||||
extern "C" char scBrlan_my_GCTop_a_BackLoop[] = "my_GCTop_a_BackLoop.brlan";
|
||||
|
||||
#pragma push
|
||||
#pragma section data_type ".sdata"
|
||||
extern "C" char scPaneName_B_BtnA[] = "B_BtnA";
|
||||
extern "C" char scPaneName_B_BtnB[] = "B_BtnB";
|
||||
extern "C" const char* scPaneNames_B_Btn[2] = {
|
||||
@@ -187,6 +189,7 @@ namespace ipl {
|
||||
scPaneName_T_BtnA,
|
||||
scPaneName_T_BtnB,
|
||||
};
|
||||
#pragma pop
|
||||
|
||||
const char* scWidePanes[3][4] = {
|
||||
{
|
||||
|
||||
@@ -1292,7 +1292,10 @@ int ATERMApplyScanSecuritySettings(void) {
|
||||
char* keyString;
|
||||
s32 keyIndex;
|
||||
size_t keyLength;
|
||||
char keyText[33];
|
||||
struct {
|
||||
char text[32];
|
||||
char terminator;
|
||||
} keyText;
|
||||
|
||||
strcpy(gAtermConfigurationResult.ssid, gScanSettings.ssid);
|
||||
switch (gScanSettings.selectedSecurity) {
|
||||
@@ -1305,14 +1308,14 @@ int ATERMApplyScanSecuritySettings(void) {
|
||||
} else {
|
||||
gAtermConfigurationResult.securityMode = gScanSettings.authAlgorithm;
|
||||
sourceKey = gScanSettings.wirelessKeys[0].key;
|
||||
keyString = keyText;
|
||||
keyString = keyText.text;
|
||||
outputKey = (char*)gAtermConfigurationResult.reserved028;
|
||||
keyIndex = 0;
|
||||
|
||||
do {
|
||||
memcpy(keyText, sourceKey, 0x20);
|
||||
keyText[32] = '\0';
|
||||
keyLength = strlen(keyText);
|
||||
memcpy(keyText.text, sourceKey, 0x20);
|
||||
keyText.terminator = '\0';
|
||||
keyLength = strlen(keyText.text);
|
||||
switch (keyLength) {
|
||||
case 0:
|
||||
break;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#include "system/TVRC.h"
|
||||
#include "utility/iplTVRCUtils.h"
|
||||
|
||||
#include <decomp.h>
|
||||
|
||||
@@ -11,6 +10,47 @@
|
||||
|
||||
#pragma sym on
|
||||
|
||||
extern "C" const f32 scTvrcMsPerSec = 1000.0f;
|
||||
extern "C" const f64 scTvrcNsecPerSec = 1000000000.0;
|
||||
extern "C" const f64 scTvrcOne = 1.0;
|
||||
extern "C" const f64 scTvrcFloatMagic = 4503599627370496.0;
|
||||
|
||||
extern "C" BOOL _isInitialized__7LibTVRC;
|
||||
extern "C" BOOL _isActive__7LibTVRC;
|
||||
extern "C" int _makerID__7LibTVRC;
|
||||
extern "C" void* _tvrcFile__7LibTVRC;
|
||||
extern "C" const char* TVRC_FILE_HEADER__7LibTVRC;
|
||||
extern "C" BOOL _isUseCustomParams__7LibTVRC;
|
||||
extern "C" f32 _Hz__7LibTVRC;
|
||||
extern "C" f32 _onTimeRatio__7LibTVRC;
|
||||
extern "C" u32 _tickT__7LibTVRC;
|
||||
extern "C" BOOL _isUseRepeatCode__7LibTVRC;
|
||||
extern "C" u32 _bitLength__7LibTVRC;
|
||||
extern "C" u32 _bitArray__7LibTVRC;
|
||||
extern "C" u32 _repeatBitLength__7LibTVRC;
|
||||
extern "C" u32 _repeatBitArray__7LibTVRC;
|
||||
extern "C" OSTime _tickWait__7LibTVRC[2];
|
||||
extern "C" BOOL _isReserveDeactive__7LibTVRC;
|
||||
extern "C" BOOL _isOnOff__7LibTVRC;
|
||||
extern "C" BOOL _isLastOnOff__7LibTVRC;
|
||||
extern "C" int _func0state__7LibTVRC;
|
||||
extern "C" int _loop0count__7LibTVRC;
|
||||
extern "C" OSTime _totalStartTime__7LibTVRC;
|
||||
extern "C" OSAlarm _alarm__7LibTVRC;
|
||||
extern "C" u32 __tienHoseiNsec__7LibTVRC;
|
||||
extern "C" u32 _limitMilli__7LibTVRC;
|
||||
extern "C" BOOL _isRepeatActive__7LibTVRC;
|
||||
extern "C" int _ctCombo__7LibTVRC;
|
||||
extern "C" int _func1state__7LibTVRC;
|
||||
|
||||
extern "C" void _savegpr_25();
|
||||
extern "C" void _restgpr_25();
|
||||
extern "C" void RangeCheckGELTS32__Q23ipl7utilityFlll();
|
||||
extern "C" void __cvt_dbl_usll();
|
||||
extern "C" void __div2i();
|
||||
extern "C" void __FTVRCLoop0Handler__7LibTVRCFP7OSAlarmP9OSContext();
|
||||
extern "C" void __FTVRCLoop1Handler__7LibTVRCFP7OSAlarmP9OSContext();
|
||||
|
||||
#pragma push
|
||||
#pragma section data_type ".sdata"
|
||||
extern "C" char scTvrcFileHeader[5] = {'T', 'V', 'R', '0', '\0'};
|
||||
@@ -41,16 +81,11 @@ namespace LibTVRC {
|
||||
struct {
|
||||
u32 offset;
|
||||
u32 repeatOffset;
|
||||
} commands[TVRC_COMMAND_MAP_MAX];
|
||||
} commands[TVRC_COMMAND_MAP_MAX - 1 /*?*/];
|
||||
} _FileData;
|
||||
struct _CommandData {
|
||||
u32 flags;
|
||||
u32 bitLength;
|
||||
u8 bits[1];
|
||||
};
|
||||
_FileData* _tvrcFile;
|
||||
f32 _Hz;
|
||||
f32 _onTimeRatio;
|
||||
undefined4 _Hz;
|
||||
undefined4 _onTimeRatio;
|
||||
|
||||
int _makerID;
|
||||
int _typeNo;
|
||||
@@ -186,61 +221,216 @@ BOOL TVRCIsValidCommand(int cmd) {
|
||||
return result;
|
||||
}
|
||||
|
||||
static inline const _CommandData* TVRCGetCommandData(const _FileData* file, u32 offset) {
|
||||
const u8* command = reinterpret_cast<const u8*>(file);
|
||||
command += offset;
|
||||
return reinterpret_cast<const _CommandData*>(command);
|
||||
}
|
||||
|
||||
BOOL TVRCSendStartAsync(s32 cmd) {
|
||||
if (!_isInitialized || _isActive || _makerID == -1) {
|
||||
return FALSE;
|
||||
}
|
||||
if (!ipl::utility::RangeCheckGELTS32(cmd, 0, TVRC_COMMAND_MAP_MAX)) {
|
||||
return FALSE;
|
||||
}
|
||||
BOOL enabled = OSDisableInterrupts();
|
||||
_FileData* file = _tvrcFile;
|
||||
memcmp(file, TVRC_FILE_HEADER, 4);
|
||||
const u32& offset = file->commands[cmd].offset;
|
||||
if (offset != 0) {
|
||||
if (!_isUseCustomParams) {
|
||||
_Hz = 1000.0f * _tvrcFile->carrierFrequencyKHz;
|
||||
_onTimeRatio = _tvrcFile->onTimeRatio;
|
||||
_tickT = OSMicrosecondsToTicks(_tvrcFile->unitTimeUs);
|
||||
}
|
||||
_isUseRepeatCode = _tvrcFile->commands[cmd].repeatOffset != 0;
|
||||
const u32& repeatOffset = _tvrcFile->commands[cmd].repeatOffset;
|
||||
const _CommandData* data = TVRCGetCommandData(_tvrcFile, offset);
|
||||
_bitLength = data->bitLength;
|
||||
_bitArray = reinterpret_cast<u32>(data->bits);
|
||||
if (_isUseRepeatCode) {
|
||||
const _CommandData* repeat = TVRCGetCommandData(file, repeatOffset);
|
||||
_repeatBitLength = repeat->bitLength;
|
||||
_repeatBitArray = reinterpret_cast<u32>(repeat->bits);
|
||||
} else {
|
||||
_repeatBitLength = _bitLength;
|
||||
_repeatBitArray = _bitArray;
|
||||
}
|
||||
_tickWait[1] = OSNanosecondsToTicks((OSTime)(1000000000.0 * _onTimeRatio / _Hz - __tienHoseiNsec));
|
||||
_tickWait[0] = OSNanosecondsToTicks((OSTime)(1000000000.0 * (1.0 - _onTimeRatio) / _Hz - __tienHoseiNsec));
|
||||
if (_tickWait[1] < 10) {
|
||||
_tickWait[1] = 10;
|
||||
}
|
||||
if (_tickWait[0] < 10) {
|
||||
_tickWait[0] = 10;
|
||||
}
|
||||
_isActive = TRUE;
|
||||
_isReserveDeactive = FALSE;
|
||||
_isOnOff = FALSE;
|
||||
_isLastOnOff = FALSE;
|
||||
_func0state = 1;
|
||||
_loop0count = 0;
|
||||
_totalStartTime = OSGetTime();
|
||||
OSSetAlarm(&_alarm, OSMicrosecondsToTicks(1000), __FTVRCLoop0Handler);
|
||||
}
|
||||
OSRestoreInterrupts(enabled);
|
||||
return TRUE;
|
||||
extern "C" asm BOOL TVRCSendStartAsync(s32 cmd) {
|
||||
nofralloc
|
||||
stwu r1, -0x40(r1)
|
||||
mflr r0
|
||||
stw r0, 0x44(r1)
|
||||
addi r11, r1, 0x40
|
||||
bl _savegpr_25
|
||||
lwz r0, _isInitialized__7LibTVRC
|
||||
mr r25, r3
|
||||
cmpwi r0, 0
|
||||
beq TVRCSendStartAsync_done
|
||||
lwz r0, _isActive__7LibTVRC
|
||||
cmpwi r0, 0
|
||||
bne TVRCSendStartAsync_done
|
||||
lwz r0, _makerID__7LibTVRC
|
||||
cmpwi r0, -1
|
||||
bne TVRCSendStartAsync_ready
|
||||
TVRCSendStartAsync_done:
|
||||
li r3, 0
|
||||
b TVRCSendStartAsync_exit
|
||||
TVRCSendStartAsync_ready:
|
||||
li r4, 0
|
||||
li r5, 8
|
||||
bl RangeCheckGELTS32__Q23ipl7utilityFlll
|
||||
cmpwi r3, 0
|
||||
bne TVRCSendStartAsync_valid
|
||||
li r3, 0
|
||||
b TVRCSendStartAsync_exit
|
||||
TVRCSendStartAsync_valid:
|
||||
bl OSDisableInterrupts
|
||||
lwz r31, _tvrcFile__7LibTVRC
|
||||
mr r30, r3
|
||||
lwz r4, TVRC_FILE_HEADER__7LibTVRC
|
||||
li r5, 4
|
||||
mr r3, r31
|
||||
bl memcmp
|
||||
slwi r7, r25, 3
|
||||
add r5, r31, r7
|
||||
lwz r0, 0x18(r5)
|
||||
cmpwi r0, 0
|
||||
beq TVRCSendStartAsync_restore
|
||||
lwz r0, _isUseCustomParams__7LibTVRC
|
||||
cmpwi r0, 0
|
||||
bne TVRCSendStartAsync_custom
|
||||
lwz r6, _tvrcFile__7LibTVRC
|
||||
lis r3, 2
|
||||
lfs f1, scTvrcMsPerSec
|
||||
lis r4, 0x8000
|
||||
lfs f0, 0xc(r6)
|
||||
subi r0, r3, 0x17b8
|
||||
fmuls f0, f1, f0
|
||||
stfs f0, _Hz__7LibTVRC
|
||||
lfs f0, 0x10(r6)
|
||||
stfs f0, _onTimeRatio__7LibTVRC
|
||||
lwz r3, 0xf8(r4)
|
||||
lwz r4, 0x14(r6)
|
||||
srwi r3, r3, 2
|
||||
divwu r0, r3, r0
|
||||
mullw r0, r4, r0
|
||||
srwi r0, r0, 3
|
||||
stw r0, _tickT__7LibTVRC
|
||||
TVRCSendStartAsync_custom:
|
||||
lwz r6, _tvrcFile__7LibTVRC
|
||||
add r4, r6, r7
|
||||
lwz r3, 0x1c(r4)
|
||||
subic r0, r3, 1
|
||||
subfe. r0, r0, r3
|
||||
stw r0, _isUseRepeatCode__7LibTVRC
|
||||
lwz r0, 0x18(r5)
|
||||
add r5, r6, r0
|
||||
lwz r3, 4(r5)
|
||||
addi r0, r5, 8
|
||||
stw r3, _bitLength__7LibTVRC
|
||||
stw r0, _bitArray__7LibTVRC
|
||||
beq TVRCSendStartAsync_no_repeat
|
||||
lwz r0, 0x1c(r4)
|
||||
add r4, r31, r0
|
||||
lwz r3, 4(r4)
|
||||
addi r0, r4, 8
|
||||
stw r3, _repeatBitLength__7LibTVRC
|
||||
stw r0, _repeatBitArray__7LibTVRC
|
||||
b TVRCSendStartAsync_timing
|
||||
TVRCSendStartAsync_no_repeat:
|
||||
stw r3, _repeatBitLength__7LibTVRC
|
||||
stw r0, _repeatBitArray__7LibTVRC
|
||||
TVRCSendStartAsync_timing:
|
||||
lfs f1, _onTimeRatio__7LibTVRC
|
||||
lis r4, 0x8000
|
||||
lfd f0, scTvrcNsecPerSec
|
||||
lis r27, 0x4330
|
||||
lwz r0, 0xf8(r4)
|
||||
lis r3, 2
|
||||
fmul f1, f0, f1
|
||||
lfs f0, _Hz__7LibTVRC
|
||||
srwi r4, r0, 2
|
||||
subi r0, r3, 0x17b8
|
||||
lwz r25, __tienHoseiNsec__7LibTVRC
|
||||
divwu r26, r4, r0
|
||||
fdiv f2, f1, f0
|
||||
stw r27, 8(r1)
|
||||
lfd f1, scTvrcFloatMagic
|
||||
stw r25, 0xc(r1)
|
||||
lfd f0, 8(r1)
|
||||
fsub f0, f0, f1
|
||||
fsub f1, f2, f0
|
||||
bl __cvt_dbl_usll
|
||||
li r31, 0
|
||||
li r6, 0x1f40
|
||||
mulhwu r7, r26, r4
|
||||
li r5, 0
|
||||
mullw r8, r31, r4
|
||||
mullw r0, r26, r3
|
||||
add r3, r7, r8
|
||||
mullw r4, r26, r4
|
||||
add r3, r3, r0
|
||||
bl __div2i
|
||||
lfs f2, _onTimeRatio__7LibTVRC
|
||||
lis r28, _tickWait__7LibTVRC@ha
|
||||
lfd f1, scTvrcOne
|
||||
addi r29, r28, _tickWait__7LibTVRC@l
|
||||
lfd f0, scTvrcNsecPerSec
|
||||
fsub f3, f1, f2
|
||||
lfs f2, _Hz__7LibTVRC
|
||||
stw r25, 0x14(r1)
|
||||
lfd f1, scTvrcFloatMagic
|
||||
fmul f3, f0, f3
|
||||
stw r27, 0x10(r1)
|
||||
lfd f0, 0x10(r1)
|
||||
stw r4, 0xc(r29)
|
||||
fdiv f2, f3, f2
|
||||
stw r3, 8(r29)
|
||||
fsub f0, f0, f1
|
||||
fsub f1, f2, f0
|
||||
bl __cvt_dbl_usll
|
||||
mulhwu r7, r26, r4
|
||||
li r6, 0x1f40
|
||||
li r5, 0
|
||||
mullw r8, r31, r4
|
||||
mullw r0, r26, r3
|
||||
add r3, r7, r8
|
||||
mullw r4, r26, r4
|
||||
add r3, r3, r0
|
||||
bl __div2i
|
||||
lwz r0, 8(r29)
|
||||
li r6, 0xa
|
||||
lwz r7, 0xc(r29)
|
||||
xoris r5, r31, 0x8000
|
||||
stw r4, 4(r29)
|
||||
xoris r0, r0, 0x8000
|
||||
subfc r4, r6, r7
|
||||
subfe r5, r5, r0
|
||||
stw r3, _tickWait__7LibTVRC@l(r28)
|
||||
subfe r5, r0, r0
|
||||
neg. r5, r5
|
||||
beq TVRCSendStartAsync_wait0
|
||||
stw r6, 0xc(r29)
|
||||
stw r31, 8(r29)
|
||||
TVRCSendStartAsync_wait0:
|
||||
lis r8, _tickWait__7LibTVRC@ha
|
||||
li r5, 0
|
||||
addi r7, r8, _tickWait__7LibTVRC@l
|
||||
lwz r0, _tickWait__7LibTVRC@l(r8)
|
||||
lwz r3, 4(r7)
|
||||
li r6, 0xa
|
||||
xoris r0, r0, 0x8000
|
||||
xoris r4, r5, 0x8000
|
||||
subfc r3, r6, r3
|
||||
subfe r4, r4, r0
|
||||
subfe r4, r0, r0
|
||||
neg. r4, r4
|
||||
beq TVRCSendStartAsync_wait1
|
||||
stw r6, 4(r7)
|
||||
stw r5, _tickWait__7LibTVRC@l(r8)
|
||||
TVRCSendStartAsync_wait1:
|
||||
li r0, 0
|
||||
li r3, 1
|
||||
stw r3, _isActive__7LibTVRC
|
||||
stw r0, _isReserveDeactive__7LibTVRC
|
||||
stw r0, _isOnOff__7LibTVRC
|
||||
stw r0, _isLastOnOff__7LibTVRC
|
||||
stw r3, _func0state__7LibTVRC
|
||||
stw r0, _loop0count__7LibTVRC
|
||||
bl OSGetTime
|
||||
stw r4, _totalStartTime__7LibTVRC+4
|
||||
lis r4, 2
|
||||
lis r5, 0x8000
|
||||
lis r7, __FTVRCLoop0Handler__7LibTVRCFP7OSAlarmP9OSContext@ha
|
||||
stw r3, _totalStartTime__7LibTVRC
|
||||
subi r0, r4, 0x17b8
|
||||
lis r3, _alarm__7LibTVRC@ha
|
||||
addi r7, r7, __FTVRCLoop0Handler__7LibTVRCFP7OSAlarmP9OSContext@l
|
||||
lwz r4, 0xf8(r5)
|
||||
addi r3, r3, _alarm__7LibTVRC@l
|
||||
li r5, 0
|
||||
srwi r4, r4, 2
|
||||
divwu r0, r4, r0
|
||||
mulli r0, r0, 0x3e8
|
||||
srwi r6, r0, 3
|
||||
bl OSSetAlarm
|
||||
TVRCSendStartAsync_restore:
|
||||
mr r3, r30
|
||||
bl OSRestoreInterrupts
|
||||
li r3, 1
|
||||
TVRCSendStartAsync_exit:
|
||||
addi r11, r1, 0x40
|
||||
bl _restgpr_25
|
||||
lwz r0, 0x44(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x40
|
||||
blr
|
||||
}
|
||||
|
||||
void LibTVRC::__FTVRCLoop0Handler(OSAlarm* alarm, OSContext* ctx) {
|
||||
|
||||
@@ -3933,7 +3933,7 @@ namespace ipl {
|
||||
u32 iconBinOffset;
|
||||
iconBinOffset = hdrOffset + headerSize + ARCGetStartOffset(&arcFile);
|
||||
|
||||
ret = read_file(fd, fileKind, iconBinOffset, thumbnailSize, appBnrOut->thumbnail);
|
||||
ret = read_file(fd, fileKind, iconBinOffset, thumbnailSize, ((SDAppBackupData*)appBnrOut)->thumbnail);
|
||||
if (ret == RESULT_OK) {
|
||||
ret = RESULT_OK;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
#include "system/iplNwc24Manager.h"
|
||||
#include "system/iplSystem.h"
|
||||
|
||||
#pragma force_active on
|
||||
#include "iplMath.h"
|
||||
#pragma force_active off
|
||||
#include "utility/iplLock.h"
|
||||
|
||||
#include "titledb.h"
|
||||
|
||||
@@ -640,10 +640,11 @@ int Rvl_decode_ash(u8* out, u8* in) {
|
||||
}
|
||||
if ((int)literalBitWord < 0) {
|
||||
nodeVal = *(u16*)(&work[0x7fe] + nodeVal * 2);
|
||||
literalBitWord = decodeBitsOrCount;
|
||||
} else {
|
||||
nodeVal = *(u16*)((u8*)work + nodeVal * 2);
|
||||
literalBitWord = decodeBitsOrCount;
|
||||
}
|
||||
literalBitWord = decodeBitsOrCount;
|
||||
}
|
||||
decodeBitsOrCount = distanceSymbol;
|
||||
if (nodeVal < 0x100) {
|
||||
@@ -662,10 +663,11 @@ int Rvl_decode_ash(u8* out, u8* in) {
|
||||
}
|
||||
if ((int)distanceBitWord < 0) {
|
||||
decodeBitsOrCount = *(u16*)(&work[0x2ffa] + decodeBitsOrCount * 2);
|
||||
distanceBitWord = nextDistanceBits;
|
||||
} else {
|
||||
decodeBitsOrCount = *(u16*)(&work[0xffc] + decodeBitsOrCount * 2);
|
||||
distanceBitWord = nextDistanceBits;
|
||||
}
|
||||
distanceBitWord = nextDistanceBits;
|
||||
}
|
||||
nodeVal = nodeVal - 0xfd;
|
||||
copySource = out - decodeBitsOrCount;
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
namespace ipl {
|
||||
namespace utility {
|
||||
s32 CSFlags::CreateFlagsFile() {
|
||||
u8 fileType;
|
||||
u32 dummy;
|
||||
bool createFile = false;
|
||||
|
||||
s32 result = NANDPrivateGetType(FLAG_FILE_PATH, &fileType);
|
||||
s32 result = NANDPrivateGetType(FLAG_FILE_PATH, (u8*)&dummy);
|
||||
|
||||
if (result == NAND_RESULT_NOEXISTS) {
|
||||
createFile = true;
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
# eZiText cross-translation-unit prototype correction
|
||||
|
||||
Base: `55ae09acca8d719980432844681f95ca4337fd7c` (fork PR #1224).
|
||||
Scope: 43U only; a fresh isolated `agent/fix/ezi-cross-tu-prototypes` leaf.
|
||||
|
||||
## Source audit and correction
|
||||
|
||||
The complete source/header search found one caller translation unit for each
|
||||
of the five corrected contracts:
|
||||
|
||||
- `Zi8Punctuation`: the caller now declares `ZiCandidateOptions*`. Its complete
|
||||
anonymous struct definition is identical, member-for-member, to the existing
|
||||
definition in `Zi8punct.c`; the types are compatible across translation units.
|
||||
- `Zi8SecMatchChar`: the record parameter is `ziU8*`, matching `zi8match.c`.
|
||||
- `Zi8SecMatchComp`: the component and dictionary parameters are `ziU8*`.
|
||||
- `Zi8MatchPhonetic`: the phonetics parameter is `ziU8*`; the return typedef is
|
||||
spelled `ziBool` like the definition (`ziBool` and `ziU8` already denote the
|
||||
same unsigned-character type).
|
||||
- `Zi8GetKoreanCandidates`: the declaration now matches both existing parameter
|
||||
types: `ziU8*` and `struct __zi8_work_data_s*`. Its only use of the byte pointer
|
||||
is a null check followed by reading the first byte. The sole caller now passes
|
||||
`&options->countOnly`, that actual first `ziU8` member, instead of relying on
|
||||
a mismatched `void*` declaration to pass the whole options struct. The caller
|
||||
already dereferences options before this call, so this adds no null case.
|
||||
|
||||
`ZI_NEED_WORK` expands to `ziPtr`, so the other four work parameters remain
|
||||
unchanged and compatible. No new struct, opaque type, state, flag, cast, pragma,
|
||||
assembly, or build-setting change was needed. No unresolved contract remains
|
||||
among these five functions. Other existing APIs are outside this focused leaf.
|
||||
|
||||
## Verification
|
||||
|
||||
A fresh baseline was configured and fully built in this leaf before editing.
|
||||
The final focused objects and full default build succeeded, followed by the
|
||||
explicit `build/43U/ok` target. The original DOL and tools stayed local.
|
||||
|
||||
- Full objdiff JSON is unchanged: 1,027 units, 12,563 functions.
|
||||
- Every source object is unchanged against the baseline: 2,717 allocated
|
||||
sections and 117,551 relocation records, retaining section types, flags,
|
||||
sizes, alignments, bytes, and resolved symbol metadata.
|
||||
- Exact functions before/after: `zi8getc2` 17/17, `zi8cgetc` 7/7,
|
||||
`zi8match` 10/10, `Zi8punct` 1/1, `zikorean` 3/3.
|
||||
- `zi8cgetc::zi8InternalGetZH` remains the preexisting 98.336266% nonmatch;
|
||||
its whole object is unchanged. This correction is not a matching gain.
|
||||
- The four fully exact units retain 100% code, data, functions, and linking.
|
||||
Their allocated bytes and canonical relocations match the original objects;
|
||||
`zi8getc2` retains the original four-byte zero alignment tail in `.sdata2`.
|
||||
- Pools are identical for all five units (zero printable narrow `.data`
|
||||
strings); complete section comparisons supply the stronger data check.
|
||||
- Untouched `ctxdiff.py`: 35 exact functions have raw `diffs 0`. Three exact
|
||||
functions retain eight raw jump-table alias-name differences:
|
||||
`Zi8GetCandidatesOrCount` (4), `Zi8GetKoreanCandidates` (2), and
|
||||
`Zi8MatchKoreanSequence` (2). Each differing reference was independently
|
||||
proven to have the same relocation kind, section-relative target, and
|
||||
byte-identical entire referent section. Resolved instruction differences
|
||||
are zero, with equal instruction counts. No arbitrary label normalization
|
||||
or object modification was used.
|
||||
- `decomp_status.py` succeeds. `check_decomp_complete.py` still fails for the
|
||||
repository's existing incomplete work; its output is byte-identical to
|
||||
baseline. No full-decompilation-completion claim is made.
|
||||
- `git diff --check` and the leaf worktree checker pass.
|
||||
|
||||
Local evidence is in the sibling `wii-ezi-prototype-evidence/` directory:
|
||||
`audit.py`, `audit.txt`, `ctx_audit.py`, `pools-ctxdiff.txt`, full baseline/final
|
||||
build logs, baseline report/objects, both completion-check outputs, status,
|
||||
and the complete definitions/callers search. The audit scripts use the existing
|
||||
`wii-toolchain-venv`; ctx diagnostics use `PYTHONPATH=../local-tools`.
|
||||
|
||||
GATE: PASS — focused contracts compatible; generated code/data/relocations and
|
||||
full report unchanged; 43U full build/ok pass; DOL SHA1
|
||||
`26116613f624061ba99c8d1a299aaa6efa85670d`.
|
||||
|
||||
Local handoff only: no push, PR, merge, upstream contact, or binary upload.
|
||||
@@ -1,304 +0,0 @@
|
||||
# perm4 attempts
|
||||
|
||||
Base: `41023c51a6e326d5850a8edf5d0cc4989a7c903a`. Branch: `agent/w1005/perm4`.
|
||||
|
||||
Exact gain: replaced the 792-byte TVRCSendStartAsync asm body with readable, instruction-exact C++. Commit `b30a82bb68b58c519ce61305060f7b465c09d7d0`. NHTTP and KBD production source is unchanged. No fuzzy-only candidate was retained.
|
||||
|
||||
| Unit | Exact functions before -> after | Code bytes before -> after | Data bytes before -> after |
|
||||
| --- | --- | --- | --- |
|
||||
| NHTTP_stdlib_RVL | 12/14 -> 12/14 | 1864/2248 -> 1864/2248 | 112/112 -> 112/112 |
|
||||
| kbd_lib | 18/21 -> 18/21 | 4472/5764 -> 4472/5764 | 5296/5296 -> 5296/5296 |
|
||||
| TVRC | 9/9 -> 9/9 | 2312/2312 -> 2312/2312 | 280/280 -> 280/280 |
|
||||
|
||||
TVRC was already linked through asm, so its exact and linked byte counts do not increase. Its best C seed moved from 99.747475% to 100.0%; final permuter cost is zero.
|
||||
|
||||
## Source review and compiler evidence
|
||||
|
||||
TVRC: the useful permuter change binds the repeat offset by const reference after storing the repeat flag. The final source names the real file fields and command records, uses a shared file-relative record reader, and keeps eight command entries, matching the validated command range. mwdbg shows the stride changing from r6 to r7 and the reloaded file base from r7 to r6. The final capture produces the same whole object as ordinary MWCC. Obsolete asm aliases and constants were removed; ordinary numeric literals emit the original float pool.
|
||||
|
||||
The raw TVRC hit was not acceptable as-is: objdiff reported 100% and ctxdiff reported zero, but it called __cvt_dbl_ull twice instead of __cvt_dbl_usll. The full DOL exposed four wrong bytes. Removing the unsigned intermediate cast restores signed timing conversion and the exact calls. Doldiff then reports zero differing bytes. All 202 allocated relocations and allocated symbol offsets/sizes match. Textual symorder differences are debug entries or literal label names at identical allocated offsets; the DOL is identical.
|
||||
|
||||
NHTTPi_strnicmp remains 99.76471% (51/51 instructions), and NHTTPi_compareToken remains 99.73333% (45/45). Both differ only in two initial loads: A, zero, Z versus A, Z, zero. Named bounds, predicate helpers, helper parameter forms, and byte-cursor forms did not remove the difference. mwdbg shows this ordering before register allocation.
|
||||
|
||||
kbdProcMod remains 99.90234% (256/256), and KBDSetModState remains 99.40476% (42/42). Both retain four address/value register differences. Tried declaration order, real modifier-field types, mask merges, union reuse, pointer and helper boundaries, caller locals, and compound updates. Union reuse reached 99.921875% for kbdProcMod but regressed KBDSetModState to 98.809525%; rejected. mwdbg confirmed a real remaining operand change. kbd_led_handler (99.72%) is outside this assignment.
|
||||
|
||||
## Search budgets
|
||||
|
||||
Six permuter processes at most, with the raised MWCC settings and PERM_LINESWAP on single-line declaration blocks. Five searches completed 7200 seconds; TVRC stopped early only after its exact C result passed the full quick gate and DOL check. Total permuter iterations: 89129.
|
||||
|
||||
| Permuter target | Minutes | Iterations | Saved improvements |
|
||||
| --- | ---: | ---: | ---: |
|
||||
| strnicmp | 120.02 | 18770 | 0 |
|
||||
| token | 120.03 | 18853 | 0 |
|
||||
| procmod | 120.03 | 7058 | 0 |
|
||||
| setmod | 120.03 | 15470 | 0 |
|
||||
| lowercase | 120.03 | 23917 | 0 |
|
||||
| tvrc | 79.96 | 5061 | 1 |
|
||||
|
||||
The only permuter output was TVRC output-40-1; it was reviewed, rewritten, and verified as described above.
|
||||
|
||||
Four srcsearch jobs used a private copy of srcsearch.py. Fixes cover function definitions rather than prototypes, same-signedness integer aliases, declaration initialization, branch inversion, and modifier merge forms. Every best candidate is archived and passed to whole-unit review and mwdbg. The shared tool and its 24-slot limit were unchanged.
|
||||
|
||||
| Source target | Budget seconds | Iterations | Saved improvements |
|
||||
| --- | ---: | ---: | ---: |
|
||||
| setmod | 6567 + 633 initial | 13621 | 0 |
|
||||
| procmod | 7200 | 15036 | 0 |
|
||||
| strnicmp | 7200 | 18308 | 0 |
|
||||
| token | 7200 | 18209 | 0 |
|
||||
|
||||
KBDSetModState first searched for 633 confirmed seconds with only declaration swaps, then used the remaining 6567 seconds with broader mutations. Its table iteration count covers the resumed run; the initial run recorded at least 50 additional trials. Slot waits do not consume search time. A queue-restart race briefly created duplicate waiters; all were stopped before acquiring slots or executing trials. The recovery metadata is in build/perm4/srcsearch-queue-recovery.json. A local singleton lock prevents recurrence. The controller reaped its final child before refreshing that row, so the last exit code is unrecorded; its terminal done marker and absent process verify completion in srcsearch-completion-audit.json.
|
||||
|
||||
## Verification
|
||||
|
||||
All pools were identical before tuning. Final verification used a clean 43U gate against the pinned starting base. Source and original objects, exact-name objdiff, ctxdiff, allocated relocations, DOL SHA1, forbidden patterns, and readability were checked. TVRC was already Matching; no configure.py edit was needed.
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] objdiff: code 1864/2248 data 112/112 functions 12/14 fuzzy 99.9573 linked code 0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] instruction-exact functions: 12/14
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .data size 72 match 100.0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .rodata size 40 match 100.0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .text size 2248 match 99.9573
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_strnicmp 99.76471
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_compareToken 99.73333
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] baseline: code 1864/2248 data 112 functions 12 fuzzy 99.9573
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] objdiff: code 4472/5764 data 5296/5296 functions 18/21 fuzzy 99.9604 linked code 0
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] instruction-exact functions: 18/21
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] section .bss size 3968 match 100.0
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] section .data size 1304 match 100.0
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] section .sbss size 16 match 100.0
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] section .sdata size 8 match 100.0
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] section .text size 5764 match 99.96044
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] below 100: kbdProcMod 99.90234
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] below 100: kbd_led_handler 99.72
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] below 100: KBDSetModState 99.40476
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] baseline: code 4472/5764 data 5296 functions 18 fuzzy 99.9604
|
||||
[src/system/TVRC] pool: IDENTICAL
|
||||
[src/system/TVRC] objdiff: code 2312/2312 data 280/280 functions 9/9 fuzzy 100.0000 linked code 2312
|
||||
[src/system/TVRC] instruction-exact functions: 9/9
|
||||
[src/system/TVRC] section .bss size 96 match 100.0
|
||||
[src/system/TVRC] section .sbss size 120 match 100.0
|
||||
[src/system/TVRC] section .sdata size 32 match 100.0
|
||||
[src/system/TVRC] section .sdata2 size 32 match 100.0
|
||||
[src/system/TVRC] section .text size 2312 match 100.0
|
||||
[src/system/TVRC] baseline: code 2312/2312 data 280 functions 9 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 93.82541 -> 93.82541
|
||||
global fuzzy_match_percent: 99.81117 -> 99.81117
|
||||
global complete_code_percent: 79.26653 -> 79.26653
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
## Artifacts and reproduction
|
||||
|
||||
Campaign root: `build/perm4/` in this worktree. Read `attempts-full.md` for the chronological log and `trials.json` for complete trial measurements. The table below indexes every compiled manual trial by job and label; its source, compiler output, pool, objdiff report, ctxdiff, and summary are in `<job>/trial-<label>/`.
|
||||
|
||||
- Permuter setup and scores: `<job>/job.json`, `base.c`, `settings.toml`, `baseline-score.json`, `run.log`; `permuter-summary.json` records final iteration counts.
|
||||
- Source search: `srcsearch-<job>/run.log`, archived hits, `srcsearch-summary.json`; `srcsearch-candidates.jsonl` records any hits.
|
||||
- Final TVRC: `tvrc-signed-ready.cpp`, `tvrc/final-permuter-score.json`, `tvrc-link-audit.json`, `tvrc-doldiff-final.txt`.
|
||||
- Compiler captures: `mwdbg/<job>-baseline/` and `mwdbg/tvrc-final-signed-source/`; validation.json and normal-object.json prove the debugger did not alter code generation.
|
||||
- Ghidra: private TVRC export `ghidra/TVRC.c`; NHTTP/KBD shared exports were read only.
|
||||
- The user-specified rx17 TVRC artifact was read only and copied into `rx17-reference/`. No command ran in that other worktree.
|
||||
- Adapter support for `prepare --start` retains a separate production reference for the freshness guard. C preprocessing and the C++ seed were compiled and compared before the long campaigns.
|
||||
|
||||
Origin/main advanced while the searches ran. The final gate uses the pinned starting base; the orchestrator must verify the commit on its landing branch. No push, PR, merge, rebase, subagent, or edit outside the assigned worktree was performed.
|
||||
|
||||
## Compiled trials
|
||||
|
||||
Each owned open function has at least three distinct compiled source attempts. Percentages below are trial scores, not retained gains; a lower score in another function rejects the candidate.
|
||||
|
||||
| Job | Trial | Fuzzy % | Instructions | Diffs | Regressions |
|
||||
| --- | --- | ---: | --- | ---: | --- |
|
||||
| tvrc | rx17-current-names | 99.747475 | 198/198 | 9 | - |
|
||||
| tvrc | seed-baseline | 99.747475 | 198/198 | 9 | - |
|
||||
| setmod | plain-mask-merge | 94.04762 | 42/42 | 7 | kbdProcMod: 99.90234->99.140625 |
|
||||
| setmod | channel-local-merge | 98.690475 | 42/42 | 7 | kbdProcMod: 99.90234->95.05469 |
|
||||
| setmod | state-local-merge | 98.690475 | 42/42 | 7 | kbdProcMod: 99.90234->95.05469 |
|
||||
| setmod | read-old-first | 99.40476 | 42/42 | 4 | - |
|
||||
| setmod | one-state-logical-bits | 97.38095 | 42/42 | 6 | kbdProcMod: 99.90234->99.53125 |
|
||||
| setmod | initializers-in-order | compile failed | - | - | - |
|
||||
| setmod | helper-physical-first | 99.40476 | 42/42 | 4 | - |
|
||||
| setmod | helper-logical-first | 99.40476 | 42/42 | 4 | - |
|
||||
| tvrc | const-file-view | 99.747475 | 198/198 | 9 | - |
|
||||
| tvrc | offset-pointer | 99.747475 | 198/198 | 9 | - |
|
||||
| tvrc | local-current-file | 97.72222 | 196/198 | - | - |
|
||||
| tvrc | reused-file-local | 99.747475 | 198/198 | 9 | - |
|
||||
| tvrc | initialize-at-block-head | 99.747475 | 198/198 | 9 | - |
|
||||
| tvrc | c-style-record-casts | 99.747475 | 198/198 | 9 | - |
|
||||
| tvrc | offset-accessor | 99.747475 | 198/198 | 9 | - |
|
||||
| strnicmp | fold-two-bounds-upper-first | 99.76471 | 51/51 | 2 | - |
|
||||
| token | fold-two-bounds-upper-first | 99.73333 | 45/45 | 2 | - |
|
||||
| strnicmp | fold-two-bounds-lower-first | 99.76471 | 51/51 | 2 | - |
|
||||
| token | fold-two-bounds-lower-first | 99.73333 | 45/45 | 2 | - |
|
||||
| strnicmp | fold-mutating-parameter | 99.76471 | 51/51 | 2 | NHTTPi_compareToken: 99.73333->94.62222 |
|
||||
| token | fold-mutating-parameter | 94.62222 | 44/45 | - | - |
|
||||
| strnicmp | fold-local-bound-values | 99.76471 | 51/51 | 2 | - |
|
||||
| token | fold-local-bound-values | 99.73333 | 45/45 | 2 | - |
|
||||
| strnicmp | fold-boolean-product | 56.27451 | 47/51 | - | NHTTPi_strToHex: 100.0->84.0274, NHTTPi_compareToken: 99.73333->41.644444 |
|
||||
| token | fold-boolean-product | 41.644444 | 41/45 | - | NHTTPi_strnicmp: 99.76471->56.27451, NHTTPi_strToHex: 100.0->84.0274 |
|
||||
| strnicmp | split-read-and-advance | 99.37255 | 51/51 | 6 | - |
|
||||
| token | typed-right-byte-cursor | 99.73333 | 45/45 | 2 | - |
|
||||
| strnicmp | upper-predicate-int-ternary | 99.76471 | 51/51 | 2 | - |
|
||||
| token | upper-predicate-int-ternary | 99.73333 | 45/45 | 2 | - |
|
||||
| strnicmp | upper-predicate-int-branch | 99.76471 | 51/51 | 2 | NHTTPi_compareToken: 99.73333->98.844444 |
|
||||
| token | upper-predicate-int-branch | 98.844444 | 45/45 | 7 | - |
|
||||
| strnicmp | upper-predicate-const-int-ternary | 99.76471 | 51/51 | 2 | - |
|
||||
| token | upper-predicate-const-int-ternary | 99.73333 | 45/45 | 2 | - |
|
||||
| strnicmp | upper-predicate-const-int-branch | 99.76471 | 51/51 | 2 | NHTTPi_compareToken: 99.73333->98.844444 |
|
||||
| token | upper-predicate-const-int-branch | 98.844444 | 45/45 | 7 | - |
|
||||
| setmod | scalar-old-state | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | scalar-old-state | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | scalar-old-state-masked | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | scalar-old-state-masked | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | scalar-new-state | 94.04762 | 42/42 | 7 | kbdProcMod: 99.90234->99.140625 |
|
||||
| procmod | scalar-new-state | 99.140625 | 256/256 | 5 | KBDSetModState: 99.40476->94.04762 |
|
||||
| setmod | scalar-states | 94.04762 | 42/42 | 7 | kbdProcMod: 99.90234->99.140625 |
|
||||
| procmod | scalar-states | 99.140625 | 256/256 | 5 | KBDSetModState: 99.40476->94.04762 |
|
||||
| setmod | reuse-value-scalar-old | 95.11905 | 43/42 | - | kbdProcMod: 99.90234->99.140625 |
|
||||
| procmod | reuse-value-scalar-old | 99.140625 | 256/256 | 5 | KBDSetModState: 99.40476->95.11905 |
|
||||
| setmod | typed-modifier-field | 99.40476 | 42/42 | 4 | - |
|
||||
| setmod | direct-physical-field | 98.690475 | 42/42 | 7 | kbdProcMod: 99.90234->95.05469 |
|
||||
| procmod | direct-physical-field | 95.05469 | 253/256 | - | KBDSetModState: 99.40476->98.690475 |
|
||||
| setmod | direct-lock-field | 97.38095 | 42/42 | 7 | kbdProcMod: 99.90234->95.54297 |
|
||||
| procmod | direct-lock-field | 95.54297 | 253/256 | - | KBDSetModState: 99.40476->97.38095 |
|
||||
| setmod | direct-lock-field-union | 98.809525 | 42/42 | 7 | kbdProcMod: 99.90234->95.77734 |
|
||||
| procmod | direct-lock-field-union | 95.77734 | 253/256 | - | KBDSetModState: 99.40476->98.809525 |
|
||||
| setmod | direct-logical-copy | 98.690475 | 42/42 | 7 | kbdProcMod: 99.90234->95.05469 |
|
||||
| procmod | direct-logical-copy | 95.05469 | 253/256 | - | KBDSetModState: 99.40476->98.690475 |
|
||||
| tvrc | named-command-record-reference | 99.747475 | 198/198 | 9 | - |
|
||||
| tvrc | repeat-offset-reference | 99.747475 | 198/198 | 9 | - |
|
||||
| tvrc | current-command-reference | 98.5101 | 196/198 | - | - |
|
||||
| tvrc | array-base-pointer | 99.747475 | 198/198 | 9 | - |
|
||||
| tvrc | command-index-local | 99.747475 | 198/198 | 9 | - |
|
||||
| tvrc | command-accessor-pointer | 98.5101 | 196/198 | - | - |
|
||||
| tvrc | command-accessor-reference | 98.5101 | 196/198 | - | - |
|
||||
| setmod | merge-store-expression | 94.04762 | 42/42 | 7 | kbdProcMod: 99.90234->99.140625 |
|
||||
| procmod | merge-store-expression | 99.140625 | 256/256 | 5 | KBDSetModState: 99.40476->94.04762 |
|
||||
| setmod | merge-physical-direct | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | merge-physical-direct | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | reuse-old-union | 98.809525 | 42/42 | 7 | - |
|
||||
| procmod | reuse-old-union | 99.921875 | 256/256 | 3 | KBDSetModState: 99.40476->98.809525 |
|
||||
| setmod | reuse-new-union | 98.809525 | 42/42 | 6 | kbdProcMod: 99.90234->99.765625 |
|
||||
| procmod | reuse-new-union | 99.765625 | 256/256 | 7 | KBDSetModState: 99.40476->98.809525 |
|
||||
| setmod | copy-then-merge | 97.38095 | 42/42 | 6 | kbdProcMod: 99.90234->99.53125 |
|
||||
| procmod | copy-then-merge | 99.53125 | 256/256 | 7 | KBDSetModState: 99.40476->97.38095 |
|
||||
| setmod | physical-after-mask | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | physical-after-mask | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | merge-store-expression-decl-order | 94.04762 | 42/42 | 7 | kbdProcMod: 99.90234->99.140625 |
|
||||
| setmod | merge-physical-direct-decl-order | 99.40476 | 42/42 | 4 | - |
|
||||
| setmod | reuse-old-union-decl-order | 98.809525 | 42/42 | 7 | - |
|
||||
| setmod | reuse-new-union-decl-order | 98.809525 | 42/42 | 6 | kbdProcMod: 99.90234->99.765625 |
|
||||
| setmod | copy-then-merge-decl-order | 97.38095 | 42/42 | 6 | kbdProcMod: 99.90234->99.53125 |
|
||||
| setmod | physical-after-mask-decl-order | 99.40476 | 42/42 | 4 | - |
|
||||
| setmod | reuse-input-value | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | reuse-input-value | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | normalize-physical-state | 94.7619 | 44/42 | - | kbdProcMod: 99.90234->98.32031 |
|
||||
| procmod | normalize-physical-state | 98.32031 | 258/256 | - | KBDSetModState: 99.40476->94.7619 |
|
||||
| setmod | lock-state-helper-channel-first | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | lock-state-helper-channel-first | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | lock-state-helper-value-first | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | lock-state-helper-value-first | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | lock-state-helper-channel-first-const | 99.40476 | 42/42 | 4 | kbdProcMod: 99.90234->94.87891 |
|
||||
| procmod | lock-state-helper-channel-first-const | 94.87891 | 258/256 | - | - |
|
||||
| setmod | lock-state-helper-value-first-const | 99.40476 | 42/42 | 4 | kbdProcMod: 99.90234->94.87891 |
|
||||
| procmod | lock-state-helper-value-first-const | 94.87891 | 258/256 | - | - |
|
||||
| tvrc | load-parameters-file-pointer | 98.22727 | 197/198 | - | - |
|
||||
| tvrc | load-parameters-file-reference | 99.747475 | 198/198 | 9 | - |
|
||||
| tvrc | load-parameters-global-file | 91.28788 | 182/198 | - | - |
|
||||
| tvrc | command-data-helper-data | 99.747475 | 198/198 | 9 | - |
|
||||
| tvrc | command-data-helper-repeat | 99.747475 | 198/198 | 9 | - |
|
||||
| tvrc | command-data-helper-both | 99.747475 | 198/198 | 9 | - |
|
||||
| procmod | reuse-mod-state | 98.80859 | 257/256 | - | - |
|
||||
| procmod | final-state-at-call | 99.90234 | 256/256 | 4 | - |
|
||||
| procmod | reuse-key-value | 99.90234 | 256/256 | 4 | - |
|
||||
| procmod | direct-channel-access | 79.80469 | 282/256 | - | - |
|
||||
| procmod | counter-width | 99.90234 | 256/256 | 4 | - |
|
||||
| procmod | counter-value-unsigned | 99.16016 | 256/256 | 38 | - |
|
||||
| procmod | counter-value-word | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | outer-state-locals | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | outer-state-locals | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | outer-state-snapshot | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | outer-state-snapshot | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | lexical-snapshot-block | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | lexical-snapshot-block | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | combined-union-declaration | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | combined-union-declaration | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | merge-operands-0 | 94.04762 | 42/42 | 7 | kbdProcMod: 99.90234->99.140625 |
|
||||
| procmod | merge-operands-0 | 99.140625 | 256/256 | 5 | KBDSetModState: 99.40476->94.04762 |
|
||||
| setmod | merge-operands-1 | 94.04762 | 42/42 | 7 | kbdProcMod: 99.90234->99.140625 |
|
||||
| procmod | merge-operands-1 | 99.140625 | 256/256 | 5 | KBDSetModState: 99.40476->94.04762 |
|
||||
| setmod | merge-operands-2 | 94.04762 | 42/42 | 7 | kbdProcMod: 99.90234->99.140625 |
|
||||
| procmod | merge-operands-2 | 99.140625 | 256/256 | 5 | KBDSetModState: 99.40476->94.04762 |
|
||||
| setmod | merge-operands-3 | 94.04762 | 42/42 | 7 | kbdProcMod: 99.90234->99.140625 |
|
||||
| procmod | merge-operands-3 | 99.140625 | 256/256 | 5 | KBDSetModState: 99.40476->94.04762 |
|
||||
| setmod | merge-operands-4 | 95.11905 | 43/42 | - | kbdProcMod: 99.90234->99.31641 |
|
||||
| procmod | merge-operands-4 | 99.31641 | 257/256 | - | KBDSetModState: 99.40476->95.11905 |
|
||||
| setmod | merge-operands-5 | 91.666664 | 45/42 | - | kbdProcMod: 99.90234->98.671875 |
|
||||
| procmod | merge-operands-5 | 98.671875 | 259/256 | - | KBDSetModState: 99.40476->91.666664 |
|
||||
| setmod | merge-operands-6 | 98.690475 | 42/42 | 8 | - |
|
||||
| procmod | merge-operands-6 | 99.90234 | 256/256 | 4 | KBDSetModState: 99.40476->98.690475 |
|
||||
| setmod | merge-operands-7 | 94.04762 | 42/42 | 7 | kbdProcMod: 99.90234->99.140625 |
|
||||
| procmod | merge-operands-7 | 99.140625 | 256/256 | 5 | KBDSetModState: 99.40476->94.04762 |
|
||||
| tvrc | file-member-offset | 99.26768 | 197/198 | - | - |
|
||||
| tvrc | file-member-record-pointer | 97.51515 | 197/198 | - | - |
|
||||
| tvrc | file-member-record-reference | 97.51515 | 197/198 | - | - |
|
||||
| setmod | pointer-load | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | pointer-load | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | pointer-store | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | pointer-store | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | pointer-load-store | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | pointer-load-store | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | const-channel-read | 98.690475 | 42/42 | 7 | - |
|
||||
| procmod | const-channel-read | 99.90234 | 256/256 | 4 | KBDSetModState: 99.40476->98.690475 |
|
||||
| setmod | reversed-array-add-read | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | reversed-array-add-read | 99.90234 | 256/256 | 4 | - |
|
||||
| tvrc | raw-output-40-1 | 100.0 | 198/198 | 0 | - |
|
||||
| tvrc | rewrite-repeat-offset-pointer-top | 99.09091 | 198/198 | 3 | - |
|
||||
| tvrc | rewrite-repeat-offset-pointer-local | 99.09091 | 198/198 | 3 | - |
|
||||
| tvrc | rewrite-repeat-offset-reference-local | 100.0 | 198/198 | 0 | - |
|
||||
| tvrc | cleanup-complete-command-array | 100.0 | 198/198 | 0 | - |
|
||||
| tvrc | cleanup-command-header-word | 100.0 | 198/198 | 0 | - |
|
||||
| tvrc | cleanup-command-data-const | 100.0 | 198/198 | 0 | - |
|
||||
| tvrc | final-natural-source | 100.0 | 198/198 | 0 | - |
|
||||
| tvrc | remove-asm-alias-declarations | 100.0 | 198/198 | 0 | - |
|
||||
| tvrc | implicit-float-constants | 100.0 | 198/198 | 0 | - |
|
||||
| tvrc | command-data-reader | 100.0 | 198/198 | 0 | - |
|
||||
| tvrc | signed-time-conversion | 100.0 | 198/198 | 0 | - |
|
||||
| setmod | shared-oldState-union | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | shared-oldState-union | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | shared-oldState-scalar | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | shared-oldState-scalar | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | shared-newState-union | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | shared-newState-union | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | shared-newState-scalar | 94.04762 | 42/42 | 7 | kbdProcMod: 99.90234->99.140625 |
|
||||
| procmod | shared-newState-scalar | 99.140625 | 256/256 | 5 | KBDSetModState: 99.40476->94.04762 |
|
||||
| setmod | update-two-masks | 94.04762 | 42/42 | 7 | kbdProcMod: 99.90234->99.140625 |
|
||||
| procmod | update-two-masks | 99.140625 | 256/256 | 5 | KBDSetModState: 99.40476->94.04762 |
|
||||
| setmod | update-two-masks-local | 94.04762 | 42/42 | 7 | kbdProcMod: 99.90234->95.015625 |
|
||||
| procmod | update-two-masks-local | 95.015625 | 253/256 | - | KBDSetModState: 99.40476->94.04762 |
|
||||
| setmod | update-mask-before-physical | 94.04762 | 42/42 | 7 | kbdProcMod: 99.90234->99.140625 |
|
||||
| procmod | update-mask-before-physical | 99.140625 | 256/256 | 5 | KBDSetModState: 99.40476->94.04762 |
|
||||
| setmod | update-logical-before-mask | 91.666664 | 43/42 | - | kbdProcMod: 99.90234->98.75 |
|
||||
| procmod | update-logical-before-mask | 98.75 | 257/256 | - | KBDSetModState: 99.40476->91.666664 |
|
||||
| setmod | pointer-helper-channel-pointer-first-requested-first | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | pointer-helper-channel-pointer-first-requested-first | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | pointer-helper-channel-pointer-first-physical-first | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | pointer-helper-channel-pointer-first-physical-first | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | pointer-helper-channel-value-first-requested-first | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | pointer-helper-channel-value-first-requested-first | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | pointer-helper-channel-value-first-physical-first | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | pointer-helper-channel-value-first-physical-first | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | pointer-helper-word-pointer-first-requested-first | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | pointer-helper-word-pointer-first-requested-first | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | pointer-helper-word-pointer-first-physical-first | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | pointer-helper-word-pointer-first-physical-first | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | pointer-helper-word-value-first-requested-first | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | pointer-helper-word-value-first-requested-first | 99.90234 | 256/256 | 4 | - |
|
||||
| setmod | pointer-helper-word-value-first-physical-first | 99.40476 | 42/42 | 4 | - |
|
||||
| procmod | pointer-helper-word-value-first-physical-first | 99.90234 | 256/256 | 4 | - |
|
||||
@@ -65,21 +65,17 @@ def prepare(args):
|
||||
directory = CAMPAIGN / args.name
|
||||
directory.mkdir(parents=True, exist_ok=False)
|
||||
source_path, flags = command_for(args.unit)
|
||||
reference = (ROOT / source_path).read_text()
|
||||
source = Path(args.start).read_text() if args.start else reference
|
||||
source = (ROOT / source_path).read_text()
|
||||
mappings = {}
|
||||
edit_name = args.edit_name or args.function
|
||||
start, opening, end = span(source, edit_name)
|
||||
(directory / "original.txt").write_text(source)
|
||||
(directory / "reference.txt").write_text(reference)
|
||||
if args.seed:
|
||||
seed = Path(args.seed).read_text()
|
||||
candidate_name = args.candidate_name or args.function
|
||||
else:
|
||||
preprocessed = directory / "preprocessed.i"
|
||||
preprocess_source = str(Path(args.start).resolve()) if args.start else source_path
|
||||
subprocess.run(flags + ["-i", str(Path(source_path).parent), "-E", preprocess_source,
|
||||
"-o", str(preprocessed)], cwd=ROOT, check=True)
|
||||
subprocess.run(flags + ["-E", source_path, "-o", str(preprocessed)], cwd=ROOT, check=True)
|
||||
seed = strip(preprocessed.read_text(errors="replace"), edit_name)
|
||||
seed = re.sub(r"^#.*", "", seed, flags=re.M)
|
||||
for identifier in set(re.findall(r"\b\w*PERM_\w+", seed)):
|
||||
@@ -97,8 +93,7 @@ def prepare(args):
|
||||
return
|
||||
result, declarations = [], []
|
||||
for item in list(node.block_items or []) + [None]:
|
||||
if (isinstance(item, ca.Decl) and item.init is None
|
||||
and "\n" not in cg.CGenerator().visit(item).rstrip("\n")):
|
||||
if isinstance(item, ca.Decl) and item.init is None:
|
||||
declarations.append(item)
|
||||
continue
|
||||
if len(declarations) > 1:
|
||||
@@ -261,8 +256,7 @@ def run_campaign(args):
|
||||
for name in args.directories:
|
||||
directory = Path(name).resolve()
|
||||
metadata = json.loads((directory / "job.json").read_text())
|
||||
reference = directory / "reference.txt"
|
||||
source = (reference if reference.exists() else directory / "original.txt").read_text()
|
||||
source = (directory / "original.txt").read_text()
|
||||
current = (ROOT / metadata["source"]).read_text()
|
||||
remote = subprocess.check_output(["git", "show", "origin/main:" + metadata["source"]], cwd=ROOT, text=True)
|
||||
if source != current or source != remote:
|
||||
@@ -321,7 +315,6 @@ def main():
|
||||
setup.add_argument("--edit-name")
|
||||
setup.add_argument("--candidate-name")
|
||||
setup.add_argument("--seed")
|
||||
setup.add_argument("--start", help="alternate full translation unit for a source candidate")
|
||||
setup.add_argument("--mappings")
|
||||
setup.add_argument("--lineswap", action="store_true")
|
||||
setup.set_defaults(run=prepare)
|
||||
|
||||
@@ -1,214 +0,0 @@
|
||||
# rx53 zkokeyp matching
|
||||
|
||||
Worktree `/mnt/drive2/projects/wii-ipl-workers/sol-high`, branch
|
||||
`agent/w1005/rx53`, starting commit `bf65a26b`. Fresh fetch confirms
|
||||
`origin/main` at that commit. Only `zkokeyp.c`, its Matching flag when all
|
||||
checks pass, and this log are owned. Existing rx4 artifacts are untouched.
|
||||
New measurements and private tooling are under `/tmp/rx53`.
|
||||
|
||||
## Acceptance checks
|
||||
|
||||
Both requested functions must reach exact-name objdiff 100% and ctxdiff zero
|
||||
differences. Preserve all seven functions and all 180 data bytes. Require
|
||||
identical pools, section order, clean full gate, and the retail DOL SHA1 after
|
||||
the Matching flip. Source must preserve behavior and use ordinary C.
|
||||
|
||||
## Fresh baseline
|
||||
|
||||
- `Zi8_814834AC`: 99.94169%, 343/343 instructions, two operand-order differences.
|
||||
- `Zi8GetKOcandidates`: 98.998505%, 669/669 instructions, 71 differences.
|
||||
- Unit: 5/7 exact functions, 1152/5200 matched code, 180/180 matched data.
|
||||
- Pool identical, zero strings. Compiler is GC/3.0a5.
|
||||
|
||||
Read f-round, common, all levers including 20-23, mwdbg README and the a5
|
||||
port, current source and target assembly, Ghidra output, and rx35 attempts.
|
||||
The port already exists in this worktree. A private launcher changes only
|
||||
the capture path and lock location to keep new artifacts under `/tmp/rx53`.
|
||||
|
||||
## Target register map
|
||||
|
||||
`Zi8_814834AC`, target offsets 0x7a4-0x7d0: i is r28; tableA reload is r4;
|
||||
the scaled row offset is r3. Both character byte addresses use
|
||||
`add r3, r3, r4`. Baseline uses `add r3, r4, r3`. Earlier rx35 evidence
|
||||
identifies a pre-allocation operand order difference, so declaration-order
|
||||
experiments cannot repair those two instructions alone.
|
||||
|
||||
`Zi8GetKOcandidates`: param r31, options r30, wordNode r29, keyTable r28,
|
||||
workspace r27 already match. At 0xb80-0xbdc the target adds shifted index
|
||||
and index before adding keyTable. Baseline instead adds keyTable to the
|
||||
shifted index first. Resulting temporary live ranges change caller-saved
|
||||
register assignments. The target also initializes packed keys with one
|
||||
zero load and initializes remainingLetters and wordIndex separately.
|
||||
|
||||
## Exact filter result
|
||||
|
||||
Three new field access forms all produce objdiff 100%, 343/343 instructions,
|
||||
ctxdiff zero, with no function or data drop. They use a byte subscript plus
|
||||
`offsetof` for the named character fields, with either explicit row arithmetic,
|
||||
`sizeof` row multiplication, or reversed C subscript spelling. Retain the
|
||||
ordinary `sizeof` form. The row is nonnegative and bounded by a 16-bit table
|
||||
count, so row-size and offset arithmetic preserve the original byte addresses.
|
||||
|
||||
Fresh mwdbg captures `filter-baseline` and `filter-exact` confirm the cause.
|
||||
The 155-entry priority list and all nine named-register assignments are
|
||||
unchanged. v112/v114/v115 keep r4/r3/r3 and priority positions 80/78/77.
|
||||
v119/v121/v122 keep r4/r3/r3 and priority positions 73/71/70. These six
|
||||
values are not coalesced. Their graph degrees remain 11/10/10 and 12/11/11.
|
||||
The source change reverses the two pre-color ADD input operands; all colors
|
||||
already matched. Both captures have seven accepted GPR coalesces.
|
||||
The exact capture equals its independent normal-compiler object byte for byte;
|
||||
668 GPR and 96 CR operand rewrites pass with zero mismatches.
|
||||
|
||||
## Candidates address diagnosis
|
||||
|
||||
Replacing all seven remaining computed record-field accesses with named
|
||||
byte-field offsets gives 99.70105%, 669/669 instructions, 180/180 data,
|
||||
and four differences, all in initial zero stores. This remains a private
|
||||
candidate until it is exact. Splitting the two byte counter initializations
|
||||
alone introduces a temporary and an extra call-result copy: 671 instructions,
|
||||
98.28849%, 96/180 data. Rejected.
|
||||
|
||||
Fresh baseline and byte-field mwdbg captures keep the same 213-entry priority
|
||||
list, fourteen accepted GPR coalesces, and saved registers r31-r27. keyTable's
|
||||
reference weight rises 14 to 21, still below wordNode's 27. At the first child
|
||||
address, baseline computes v66=r28+v64 then v67=v65+v66. The candidate computes
|
||||
v66=v64+v65 then v67=v66+r28. The index reload v65 loses one interference edge,
|
||||
and v66 loses one. v63/v64/v65 change r3/r0/r3 to target r0/r3/r0; childLow
|
||||
v68 changes r5 to target r6. Priority positions 186 through 181 stay fixed.
|
||||
This is an expression-lifetime change, not declaration-order or saved-register
|
||||
priority. Its full object equals the independent normal build; 1224 GPR and
|
||||
182 CR operand rewrites pass with zero mismatches.
|
||||
|
||||
The remaining initialization difference already exists in initial PCode.
|
||||
Baseline v34 clears the packed word, v35 clears its suffix, and v36 clears
|
||||
both remainingLetters and wordIndex. Retail shares the packed-key zero and
|
||||
uses separate byte counter zeros. Chained assignments introduce a narrowing
|
||||
instruction; comma, signed-word and explicit byte casts fail to remove it.
|
||||
`memset` and `__builtin_memset` emit a call. A compound-literal aggregate emits
|
||||
copies and enlarges the frame. All are rejected. No allocator tie-break is
|
||||
claimed for this structural difference.
|
||||
|
||||
Three 1200-second searches, seeds 5301-5303, were started from the private
|
||||
99.70105% candidate under the shared 24-slot limiter. They have not yet
|
||||
acquired slots. A late array declaration without a new block does not compile
|
||||
under the current C mode; it is not a valid source attempt.
|
||||
|
||||
After the capacity interruption, fresh status and ctxdiff confirm the source
|
||||
still held the original baseline. Only the proven filter change is now applied;
|
||||
the candidates function is unchanged pending an exact result.
|
||||
|
||||
## Filter acceptance and commit
|
||||
|
||||
The fresh non-quick gate passes: full build OK, retail DOL SHA1, pool
|
||||
identical, 6/7 instruction-exact functions, 2524/5200 matched code,
|
||||
180/180 data. Regressions, forbidden additions and readability warnings
|
||||
are all zero. `Zi8GetKOcandidates` remains unchanged at 98.998505%.
|
||||
Gate evidence: `/tmp/rx53/filter-full-gate.log`.
|
||||
|
||||
## Exact candidate result
|
||||
|
||||
The five-byte key initializer belongs to a real array. Keeping the search
|
||||
aggregate while moving that array into a nested block gives 99.75187% with
|
||||
correct instructions but wrong stack offsets. Flattening the aggregate into
|
||||
ordinary locals gives 99.78924% and puts the array at target stack offset
|
||||
0x38. Reversing those declarations restores every scalar slot and reaches
|
||||
100%, 669/669 instructions, zero ctxdiff differences. The final source removes
|
||||
the search aggregate and packed-word union entirely. No new carrier remains.
|
||||
|
||||
The new block permits the array initializer after the two preceding stores
|
||||
under this C compiler. It lasts through all uses of the buffer. Splitting the
|
||||
word counter zeros preserves the original remainingLetters-then-wordIndex
|
||||
store order. The only addresses that escape are the same independent count,
|
||||
remaining and inserted locals passed to the existing helpers. Those helpers
|
||||
access each pointed-to value independently; no source assumes member adjacency.
|
||||
|
||||
Final mwdbg initial PCode uses v34 for both packedKeys stores, v35 for
|
||||
remainingLetters, and v36 for wordIndex. The 213-entry coloring priority and
|
||||
all fourteen accepted GPR coalesces match the byte-field candidate. Saved
|
||||
assignments remain param/options/wordNode/keyTable/work = r31/r30/r29/r28/r27,
|
||||
with weights 110/40/27/21/14. All remaining named locals stay on the stack.
|
||||
This final change fixes initialization and stack placement without changing
|
||||
the already-correct address-expression allocation.
|
||||
|
||||
The exact candidate capture equals an independent wibo build byte for byte.
|
||||
Validation checks 1224 GPR and 182 CR operand rewrites with zero mismatches,
|
||||
plus 1027 machine-register operands across 537 instructions. The filter
|
||||
capture validates 516 machine-register operands across 266 instructions.
|
||||
The first candidate capture uses the port's snapshot mode; a full-event
|
||||
capture is also running to retain simplify and color-mask evidence.
|
||||
|
||||
Stopped the three queued searches once both functions were exact. None had
|
||||
acquired a slot or executed a trial; they contribute no evidence.
|
||||
|
||||
## Trial measurements
|
||||
|
||||
All variants remain under `/tmp/rx53/zkokeyp`. Only the two exact changes
|
||||
are retained. Initializer chain, cast, comma, memcpy-style and wrapper
|
||||
controls failed the required instruction or stack layout. Reversed scalar
|
||||
declarations plus the ordinary scoped array are the successful source.
|
||||
|
||||
| Trial | Function score | Instructions | Matched data |
|
||||
| --- | ---: | ---: | ---: |
|
||||
| filter-byte-field | 100.0 | 343/343 | 180/180 |
|
||||
| filter-byte-size | 100.0 | 343/343 | 180/180 |
|
||||
| filter-byte-index | 100.0 | 343/343 | 180/180 |
|
||||
| ko-byte-fields | 99.70105 | 669/669 | 180/180 |
|
||||
| ko-byte-fields-split | 98.28849 | 671/669 | 96/180 |
|
||||
| ko-init-compound | 97.98954 | 671/669 | 96/180 |
|
||||
| ko-init-chain-word | 98.28849 | 671/669 | 96/180 |
|
||||
| ko-init-memset | 99.14051 | 670/669 | 96/180 |
|
||||
| ko-init-builtin | 99.14051 | 670/669 | 96/180 |
|
||||
| ko-init-reuse-word | 98.18385 | 672/669 | 96/180 |
|
||||
| ko-init-comma | 97.890884 | 672/669 | 96/180 |
|
||||
| ko-init-chain-byte-cast | 98.28849 | 671/669 | 96/180 |
|
||||
| ko-init-chain-signed | 98.28849 | 671/669 | 96/180 |
|
||||
| ko-init-literal | 97.02242 | 678/669 | 96/180 |
|
||||
| ko-init-assign-list | compile failure | - | - |
|
||||
| ko-init-separate-array | compile failure | - | - |
|
||||
| ko-init-scoped-array | 99.75187 | 669/669 | 180/180 |
|
||||
| ko-init-scoped-array-explicit | 99.75187 | 669/669 | 180/180 |
|
||||
| ko-init-scoped-union | 99.66367 | 669/669 | 180/180 |
|
||||
| ko-init-scoped-struct | 99.75187 | 669/669 | 180/180 |
|
||||
| ko-flat-original | 99.78924 | 669/669 | 180/180 |
|
||||
| ko-flat-reversed | 100.0 | 669/669 | 180/180 |
|
||||
| final-readable | 100.0 | 669/669 | 180/180 |
|
||||
|
||||
## Linking and full gate
|
||||
|
||||
The unit is now Matching in configure.py. All seven text symbols match name,
|
||||
offset and size. symorder.py reports only compiler-generated name differences
|
||||
for the jump table and extab/extabindex labels. A complete comparison of all
|
||||
22 defined symbols confirms identical section order, offsets and sizes;
|
||||
there are no .sbss or .bss symbols to reorder.
|
||||
|
||||
The non-quick gate passes after the Matching flip. Code 5200/5200, data
|
||||
180/180, functions 7/7, linked code 5200. Regressions, forbidden additions and
|
||||
readability warnings are zero. The regenerated canonical report confirms
|
||||
complete code 5200/5200 and complete data 180/180. Pool identical; both
|
||||
requested ctxdiff checks report zero differences. Full build and
|
||||
`ninja -C . progress build/43U/report.json build/43U/ok` pass.
|
||||
|
||||
`doldiff.py` reports 0 differing bytes, both files 3867904 bytes. DOL SHA1
|
||||
is 26116613f624061ba99c8d1a299aaa6efa85670d. Gate output is
|
||||
`/tmp/rx53/final-full-gate.log`; the focused report is
|
||||
`/tmp/rx53/final-report.json`. The first exact gain is committed as 52030c54.
|
||||
|
||||
## Full allocator trace and final verification
|
||||
|
||||
The full-event candidate capture completed and independently validated.
|
||||
Both register classes pass reversed-simplify priority and assignment-event
|
||||
checks. For the first child address, v63-v68 simplify in ascending order
|
||||
with remaining degrees 6, 6, 5, 5, 6, 21 against 24 available registers.
|
||||
They color in reverse. v68 sees legal mask 0x1fc0 and selects target r6;
|
||||
v67 sees 0x1ff8 and selects r3; v66 and v65 see 0x1ff9 and select r0;
|
||||
v64 sees 0x1ff8 and selects r3; v63 sees 0x1ff1 and selects r0. None of
|
||||
these values coalesces. The complete pass retains fourteen accepted moves
|
||||
and 52 interference rejections, with no spill. Capture and validator output
|
||||
are under `/tmp/rx53/candidates-exact-full`.
|
||||
|
||||
After whitespace cleanup, the final worktree object equals the independently
|
||||
validated exact candidate snapshot byte for byte. The fresh non-quick gate,
|
||||
canonical progress report, both zero-diff ctxdiff checks, and zero-byte DOL
|
||||
diff pass again. The retained source changes are confined to the two assigned
|
||||
functions; configure.py changes only the authorized zkokeyp Matching flag.
|
||||
All other eZiText source files and the inherited rx4 artifacts are untouched.
|
||||
@@ -1,323 +0,0 @@
|
||||
# rx55 expression cleanup
|
||||
|
||||
Baseline: `9d225c150d2dd75ba0ee7d53ed581f39da07433d`, branch `agent/w1005/rx55`.
|
||||
Scope: eZiText, excluding `zi81key.c`, `zi8cgetc.c`, `zi8alpha.c`, `zprepare.c`, and `zi8uwd.c`.
|
||||
All 26 permitted units already have 100% code and data. This round preserves their bytes and scores; new matches are not an acceptance condition.
|
||||
|
||||
Acceptance requires unchanged complete object bytes against fresh local baseline objects, identical target string pools, unchanged objdiff measures, zero instruction differences, and the full non-quick gate with DOL SHA1 `26116613f624061ba99c8d1a299aaa6efa85670d`.
|
||||
Shared headers, excluded sources, public identifiers, compiler settings, and unrelated untracked rx4 files remain untouched.
|
||||
|
||||
Baseline objects were rebuilt with normal ninja targets. `ninja -t clean` initially failed on its compiler-directory dependency; removing only the requested object outputs and rebuilding recovered the baseline. Temporary snapshots and detailed trial output are in `/tmp/rx55-cleanup`.
|
||||
The checked-in headers define language IDs and the local `zaddress.c` table-member enum. They do not name the logged error codes or table-kind IDs. Those unnamed values stay numeric.
|
||||
|
||||
## Trials
|
||||
|
||||
- 001 `zaddress.c`: use existing language IDs and table-member constants. ACCEPT, complete object byte-identical. constants: 8.
|
||||
- 002 `zi8cinfo.c`: use existing language IDs and table-member constants. ACCEPT, complete object byte-identical. constants: 13.
|
||||
- 003 `zi8dawg.c`: use existing language IDs and table-member constants. ACCEPT, complete object byte-identical. constants: 3.
|
||||
- 004 `zi8getc2.c`: use existing language IDs and table-member constants. ACCEPT, complete object byte-identical. constants: 12.
|
||||
- 005 `zi8initd.c`: use existing language IDs and table-member constants. ACCEPT, complete object byte-identical. constants: 3.
|
||||
- 006 `zi8is.c`: use existing language IDs and table-member constants. ACCEPT, complete object byte-identical. constants: 7.
|
||||
- 007 `zi8match.c`: use existing language IDs and table-member constants. ACCEPT, complete object byte-identical. constants: 1.
|
||||
- 008 `zi8misc.c`: use existing language IDs and table-member constants. ACCEPT, complete object byte-identical. constants: 7.
|
||||
- 009 `zi8pud2.c`: use existing language IDs and table-member constants. ACCEPT, complete object byte-identical. constants: 4.
|
||||
- 010 `ziswordw.c`: use existing language IDs and table-member constants. ACCEPT, complete object byte-identical. constants: 5.
|
||||
- 011 `zoemdata.c`: use existing language IDs and table-member constants. ACCEPT, complete object byte-identical. constants: 1.
|
||||
- 012 `zi8getc2.c`: name language-switch cases with existing SDK constants. ACCEPT, complete object byte-identical. constants: 10.
|
||||
- 013 `zi8cinfo.c`: type candidate-info work parameters and remove repeated casts. REVERT, object bytes changed; functions: Zi8GetCJInfo. pointers: 13.
|
||||
- 014 `zi8dawg.c`: remove casts from null pointers and the already typed prefix pointer. REVERT, object bytes changed; functions: Zi8MatchROMdata0. casts: 4.
|
||||
- 015 `zi8match.c`: use typed node and dictionary pointers in secondary matching. ACCEPT, complete object byte-identical. pointers: 24.
|
||||
- 016 `zi8match.c`: type the phonetic-code table parameter. ACCEPT, complete object byte-identical. pointers: 3.
|
||||
- 017 `zi8misc.c`: use the shared work accessor instead of an identical local macro. ACCEPT, complete object byte-identical. pointers: 16.
|
||||
- 018 `Zi8punct.c`: type punctuation options and remove repeated casts. ACCEPT, complete object byte-identical. pointers: 5.
|
||||
- 019 `zidawg1.c`: remove casts from typed character arrays. ACCEPT, complete object byte-identical. casts: 3.
|
||||
- 020 `zidawg1.c`: type the DAWG context used to read its graph. ACCEPT, complete object byte-identical. pointers: 4.
|
||||
- 021 `ziswordw.c`: use implicit conversions from void table addresses to typed pointers. ACCEPT, complete object byte-identical. casts: 2.
|
||||
- 022 `zkokeyp.c`: remove a cast from the already typed Korean key table. ACCEPT, complete object byte-identical. casts: 1.
|
||||
- 023 `zmtkey.c`: remove explicit casts on work-owned void pointers. ACCEPT, complete object byte-identical. casts: 2.
|
||||
- 024 `zmtkey.c`: use typed case-mapping arrays throughout the conversion loop. REVERT, object bytes changed; functions: Zi8ChangeCharCase. pointers: 9.
|
||||
- 025 `zi8cinfo.c`: type only the character-info work parameter that reads work fields. ACCEPT, complete object byte-identical. pointers: 3.
|
||||
- 026 `zi8dawg.c`: remove only the already typed prefix pointer cast. ACCEPT, complete object byte-identical. casts: 1.
|
||||
- 027 `zi8cinfo.c`: remove the cast on a null table pointer. ACCEPT, complete object byte-identical. casts: 1.
|
||||
- 028 `zmtkey.c`: remove implicit-conversion casts when storing case arrays. ACCEPT, complete object byte-identical. casts: 4.
|
||||
- 029 `zikorean.c`: type Korean work parameters for direct member access. ACCEPT, complete object byte-identical. pointers: 9.
|
||||
- 030 `zidawg1.c`: use a byte pointer for DAWG end-of-word lookup. ACCEPT, complete object byte-identical. pointers: 1.
|
||||
- 031 `zi8alts.c`: Zi8MatchAltSound: remove casts to the declared scalar type. ACCEPT, complete object byte-identical. casts: 1.
|
||||
- 032 `zi8cinfo.c`: ZiCharInfo2: remove casts to the declared scalar type. ACCEPT, complete object byte-identical. casts: 1.
|
||||
- 033 `zi8initd.c`: Zi8IsZicorpSignature: remove casts to the declared scalar type. ACCEPT, complete object byte-identical. casts: 2.
|
||||
- 034 `zi8is.c`: Zi8IsCharacter: remove casts to the declared scalar type. ACCEPT, complete object byte-identical. casts: 1.
|
||||
- 035 `zi8match.c`: Zi8SecMatchChar: remove casts to the declared scalar type. ACCEPT, complete object byte-identical. casts: 1.
|
||||
- 036 `zi8misc.c`: Zi8Uni2Ptr: remove casts to the declared scalar type. ACCEPT, complete object byte-identical. casts: 5.
|
||||
- 037 `zi8misc.c`: Zi8Ord2Uni: remove casts to the declared scalar type. ACCEPT, complete object byte-identical. casts: 1.
|
||||
- 038 `zi8misc.c`: Zi8Ord2Ord: remove casts to the declared scalar type. ACCEPT, complete object byte-identical. casts: 1.
|
||||
- 039 `Zi8punct.c`: Zi8Punctuation: remove casts to the declared scalar type. ACCEPT, complete object byte-identical. casts: 1.
|
||||
- 040 `zi8space.c`: Zi8ZHaddSpace: remove casts to the declared scalar type. ACCEPT, complete object byte-identical. casts: 2.
|
||||
- 041 `zikorean.c`: Zi8GetKoreanCandidates: remove casts to the declared scalar type. ACCEPT, complete object byte-identical. casts: 5.
|
||||
- 042 `zmtkey.c`: Zi8getKeyLayout: remove casts to the declared scalar type. ACCEPT, complete object byte-identical. casts: 11.
|
||||
- 043 `zoemdata.c`: Zi8MatchOEMdata: remove casts to the declared scalar type. ACCEPT, complete object byte-identical. casts: 1.
|
||||
- 044 `zi8misc.c`: Zi8Uni2Ptr: express Unicode range selection with if/else. REVERT, object bytes changed; functions: metadata/data only. control: 1.
|
||||
- 045 `zmtkey.c`: Zi8getKeyLayout: select the fallback table with if/else. REVERT, object bytes changed; functions: metadata/data only. control: 1.
|
||||
- 046 `zidawg1.c`: ZiDAWGGetGraphInfo: use a while condition for entry scanning. REVERT, object bytes changed; functions: ZiDAWGGetGraphInfo. control: 1.
|
||||
- 047 `zi8dawg.c`: Zi8MatchROMdata0: convert the key-check jump into a for loop. REVERT, object bytes changed; functions: Zi8MatchROMdata0. control: 1.
|
||||
- 048 `zi8match.c`: Zi8GetPyPhonetic: structure ASCII and extended pinyin selection. REVERT, compile failed. control: 1.
|
||||
- 049 `zkokeyp.c`: Zi8_8148302C: read character bytes through the existing key-entry fields. REVERT, object bytes changed; functions: Zi8_8148302C. members: 2.
|
||||
- 050 `zkokeyp.c`: Zi8_814834AC: use the already selected key entry for character bytes. REVERT, object bytes changed; functions: Zi8_814834AC. members: 2.
|
||||
- 051 `zkokeyp.c`: Zi8GetKOcandidates: index existing key-entry fields directly. REVERT, object bytes changed; functions: Zi8GetKOcandidates. members: 8.
|
||||
- 052 `zconvert.c`: Zi8ConvertWC2UC: read the first byte through its existing entry field. ACCEPT, complete object byte-identical. members: 1.
|
||||
- 053 `zconvert.c`: conversion header counts: use the table count member. REVERT, object bytes changed; functions: Zi8ConvertWC2UC, Zi8ConvertUC2Key. members: 2.
|
||||
- 054 `zi8match.c`: Zi8SecMatchChar and Zi8SecMatchComp: use array indexing for dictionary bytes. REVERT, object bytes changed; functions: Zi8SecMatchChar, Zi8SecMatchComp. expressions: 4.
|
||||
- 055 `zi8is.c`: Zi8GetZHCharSet: use the standard workspace accessor. ACCEPT, complete object byte-identical. pointers: 18.
|
||||
- 056 `zikorean.c`: keep void-pointer declarations for functions that only forward the workspace. ACCEPT, complete object byte-identical. scope: 4.
|
||||
- 057 `zi8getc2.c`: candidate dispatch: remove casts from byte-sized return values. ACCEPT, complete object byte-identical. casts: 6.
|
||||
- 058 `zi8cinfo.c`: ZiCharInfo2: remove a cast to the existing return type. ACCEPT, complete object byte-identical. casts: 1.
|
||||
- 059 `zi8getc2.c`: candidate dispatch: test Boolean signature and character results directly. ACCEPT, complete object byte-identical. control: 5.
|
||||
- 060 `zi8match.c`: Zi8GetPyPhonetic: test the Boolean final lookup directly. ACCEPT, complete object byte-identical. control: 6.
|
||||
- 061 `zi8dawg.c`: Zi8MatchROMdata0: test the end-of-word predicate directly. ACCEPT, complete object byte-identical. control: 2.
|
||||
- 062 `zmtkey.c`: Zi8ChangeCharCase: remove a cast to the pointed-to word type. REVERT, object bytes changed; functions: Zi8ChangeCharCase. casts: 1.
|
||||
- 063 `ziswordw.c`: Zi8ConvertUC2UserKey: compare dereferenced word values directly. ACCEPT, complete object byte-identical. casts: 2.
|
||||
- 064 `zmtkey.c`: Zi8ChangeCharCase: type the destination while retaining its load-bearing scalar cast. ACCEPT, complete object byte-identical. pointers: 2.
|
||||
- 065 `zidawg1.c`: ZiDAWGgetCHARattribute: use a byte pointer for node data. REVERT, object bytes changed; functions: metadata/data only. pointers: 5.
|
||||
- 066 `zi8getc2.c`: Zi8IsDupWordW: access the existing flat duplicate buffer without array-pointer casts. REVERT, object bytes changed; functions: Zi8IsDupWordW. casts: 4.
|
||||
- 067 `zi8match.c`: Zi8SecMatchComp: remove casts from integer-promoted comparisons. ACCEPT, complete object byte-identical. casts: 4.
|
||||
- 068 `zi8match.c`: Zi8SecMatchChar: use the ordinary promoted remaining count. ACCEPT, complete object byte-identical. casts: 1.
|
||||
- 069 `zi8match.c`: Zi8GetPyFinal: scan rows with a structured while loop. REVERT, object bytes changed; functions: Zi8GetPyFinal. control: 1.
|
||||
- 070 `zi8match.c`: Zi8GetPyPhonetic: structure pinyin selection while retaining the shared error label. REVERT, object bytes changed; functions: Zi8GetPyPhonetic. control: 1.
|
||||
- 071 `zi8getSW.c`: Zi8GetSyllablesCandidates: use the already typed candidate pointer. ACCEPT, complete object byte-identical. casts: 1.
|
||||
- 072 `zi8cinfo.c`: Zi8GetCJInfo: use the standard work accessor. ACCEPT, complete object byte-identical. pointers: 2.
|
||||
- 073 `zi8cinfo.c`: Zi8GetCJInfo: remove the inner duplicate assignment. REVERT, object bytes changed; functions: Zi8GetCJInfo. expressions: 1.
|
||||
- 074 `zmtkey.c`: Zi8getKeyLayout: remove a cast from a byte array element. REVERT, object bytes changed; functions: Zi8getKeyLayout. casts: 1.
|
||||
- 075 `zi8getSW.c`: Zi8GetSyllablesCandidates: branch directly to cleanup when space is exhausted. REVERT, object bytes changed; functions: Zi8GetSyllablesCandidates. control: 1.
|
||||
- 076 `zi8alts.c`: Zi8MatchAltSound: scan matching rows with a do/while loop. ACCEPT, complete object byte-identical. control: 1.
|
||||
- 077 `zi8cinfo.c`: ZiCharInfo2: pass the word buffer without casting its equivalent typedef. ACCEPT, complete object byte-identical. casts: 6.
|
||||
- 078 `zmtkey.c`: Zi8ChangeCharCase: remove redundant intermediate widening casts. ACCEPT, complete object byte-identical. casts: 3.
|
||||
- 079 `zidawg1.c`: ZiDAWGGetSibling: widen the byte directly to the required word type. REVERT, object bytes changed; functions: ZiDAWGGetSibling. casts: 1.
|
||||
- 080 `zi8alts.c`: Zi8MatchAltSound: scan preceding matches with a structured while loop. REVERT, object bytes changed; functions: metadata/data only. control: 1.
|
||||
- 081 `zi8getc2.c`: candidate dispatch: remove redundant grouping from the cleaned Boolean calls. ACCEPT, complete object byte-identical. expressions: 4.
|
||||
|
||||
## Retained changes and rejected expressions
|
||||
|
||||
The 81 compiled trials retained 58 changes and reverted 23. The final diff changes 20 C files. Counts are 74 existing constants substituted, 113 explicit casts removed, 13 Boolean comparisons simplified, one forward scan changed to a do/while loop, one byte reinterpretation replaced by an existing member access, and four Boolean expressions stripped of redundant grouping. The member-access change accounts for one of the 113 removed casts. Work access now uses typed pointers or `ZI_WORK`; the duplicate `WORKP` macro and its 15 uses are gone.
|
||||
|
||||
Trials 44 and 45 preserve code/data scores but change only `.strtab`, through the compiler's anonymous exception-symbol numbering. Trial 65 also changes metadata only. Trial 80 preserves instruction bytes but changes object metadata. All remain reverted because this round requires complete object equality, including metadata.
|
||||
|
||||
The retained do/while scan removes the `body` and `down_start` labels without changing any object byte. The preceding-row loop, pinyin dispatch, key-selection loop, graph scan, Unicode range dispatch, and syllable exit rewrites were rejected. Existing shared failure paths remain ordinary C gotos.
|
||||
|
||||
The Korean record-field rewrites change address arithmetic or register operands. The current `offsetof` expressions are retained. `rx53.attempts.md` independently records the operand-order constraint on these accesses. The failed removal of the duplicate `packedCodes` assignment and the scalar casts in `Zi8ChangeCharCase` and `Zi8getKeyLayout` confirms those expressions affect code generation.
|
||||
|
||||
Four touched candidate-dispatch expressions retain their evaluation order while dropping redundant parentheses. Their object remains byte-identical.
|
||||
|
||||
The untouched permitted files are `eztx.c`, `zi8copy.c`, `zi8getc.c`, `zi8ver.c`, `zi8ZHuwd.c`, and `zierror.c`. Their remaining pointer conversions cross actual types or encode ABI/data representations; remaining numeric values lack matching named constants. No shared header or excluded source changed.
|
||||
|
||||
No owned function is non-matching. The expression-cleanup contract supersedes the generic matching-round requirement for increased exact counts. The 99 functions in touched units must stay 99/99, with 61,424 code bytes and 4,436 data bytes unchanged.
|
||||
|
||||
## Rejected trial measurements
|
||||
|
||||
Values below are temporary trial results, all reverted. The baseline for every listed unit is 100% code, data, and functions.
|
||||
|
||||
| Trial | Unit | Fuzzy percent | Matched code | Matched data | Exact functions |
|
||||
| --- | --- | ---: | ---: | ---: | ---: |
|
||||
| 013 | zi8cinfo | 99.95981 | 10588/10948 | 1848/1848 | 9/10 |
|
||||
| 014 | zi8dawg | 99.33443 | 2780/4868 | 48/120 | 5/6 |
|
||||
| 024 | zmtkey | 99.45848 | 1052/2216 | 24/60 | 3/4 |
|
||||
| 044 | zi8misc | 100.0 | 1636/1636 | 80/80 | 4/4 |
|
||||
| 045 | zmtkey | 100.0 | 2216/2216 | 60/60 | 4/4 |
|
||||
| 046 | zidawg1 | 98.0649 | 1128/1664 | 32/80 | 5/6 |
|
||||
| 047 | zi8dawg | 98.18406 | 2780/4868 | 120/120 | 5/6 |
|
||||
| 048 | zi8match | compile failed | restored | restored | restored |
|
||||
| 049 | zkokeyp | 99.71923 | 4964/5200 | 96/180 | 6/7 |
|
||||
| 050 | zkokeyp | 98.973076 | 3828/5200 | 40/180 | 6/7 |
|
||||
| 051 | zkokeyp | 96.901535 | 2524/5200 | 40/180 | 6/7 |
|
||||
| 053 | zconvert | 98.509056 | 584/2208 | 32/112 | 2/4 |
|
||||
| 054 | zi8match | 99.98062 | 6740/8256 | 728/728 | 8/10 |
|
||||
| 062 | zmtkey | 99.819496 | 1052/2216 | 24/60 | 3/4 |
|
||||
| 065 | zidawg1 | 100.0 | 1664/1664 | 80/80 | 6/6 |
|
||||
| 066 | zi8getc2 | 99.95122 | 6332/6888 | 332/332 | 16/17 |
|
||||
| 069 | zi8match | 99.997574 | 8044/8256 | 728/728 | 9/10 |
|
||||
| 070 | zi8match | 99.30184 | 5384/8256 | 608/728 | 9/10 |
|
||||
| 073 | zi8cinfo | 99.996346 | 10588/10948 | 1848/1848 | 9/10 |
|
||||
| 074 | zmtkey | 99.819496 | 1488/2216 | 24/60 | 3/4 |
|
||||
| 075 | zi8getSW | 99.967606 | 0/1852 | 20/20 | 0/1 |
|
||||
| 079 | zidawg1 | 99.72356 | 1140/1664 | 32/80 | 5/6 |
|
||||
| 080 | zi8alts | 100.0 | 1200/1200 | 20/20 | 1/1 |
|
||||
|
||||
## Final verification
|
||||
|
||||
- Clean non-quick gate passed. DOL SHA1 `26116613f624061ba99c8d1a299aaa6efa85670d`.
|
||||
- All 1,027 report units retain identical measures, function results, and section results against the fresh local baseline. Global measures are unchanged.
|
||||
- All 99 touched-unit functions pass `ctxdiff.py` with `diffs 0` and identical instruction counts.
|
||||
- All 20 touched-unit string pools are identical to target. All 31 complete eZiText objects equal their saved pre-cleanup bytes.
|
||||
- The five excluded source files equal their saved baseline bytes. No headers, configure settings, symbols, or other translation units changed.
|
||||
- Remaining non-matching owned functions: none. Uncertainty: none in retained edits; rejected expressions are listed above.
|
||||
|
||||
Full non-quick gate output follows verbatim.
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/Zi8punct] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/Zi8punct] objdiff: code 300/300 data 100/100 functions 1/1 fuzzy 100.0000 linked code 300
|
||||
[libs/RVLMiddleware/eZiText/src/clib/Zi8punct] instruction-exact functions: 1/1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/Zi8punct] section .rodata size 80 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/Zi8punct] section .text size 300 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/Zi8punct] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/Zi8punct] section extabindex size 12 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/Zi8punct] baseline: code 300/300 data 100 functions 1 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zaddress] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zaddress] objdiff: code 1244/1244 data 140/140 functions 7/7 fuzzy 100.0000 linked code 1244
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zaddress] instruction-exact functions: 7/7
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zaddress] section .text size 1244 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zaddress] section extab size 56 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zaddress] section extabindex size 84 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zaddress] baseline: code 1244/1244 data 140 functions 7 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] objdiff: code 2208/2208 data 112/112 functions 4/4 fuzzy 100.0000 linked code 2208
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] instruction-exact functions: 4/4
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] section .rodata size 32 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] section .text size 2208 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] section extab size 32 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] section extabindex size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zconvert] baseline: code 2208/2208 data 112 functions 4 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alts] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alts] objdiff: code 1200/1200 data 20/20 functions 1/1 fuzzy 100.0000 linked code 1200
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alts] instruction-exact functions: 1/1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alts] section .text size 1200 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alts] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alts] section extabindex size 12 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8alts] baseline: code 1200/1200 data 20 functions 1 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cinfo] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cinfo] objdiff: code 10948/10948 data 1848/1848 functions 10/10 fuzzy 100.0000 linked code 10948
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cinfo] instruction-exact functions: 10/10
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cinfo] section .data size 1616 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cinfo] section .rodata size 32 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cinfo] section .text size 10948 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cinfo] section extab size 80 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cinfo] section extabindex size 120 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8cinfo] baseline: code 10948/10948 data 1848 functions 10 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] objdiff: code 4868/4868 data 120/120 functions 6/6 fuzzy 100.0000 linked code 4868
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] instruction-exact functions: 6/6
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] section .text size 4868 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] section extab size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] section extabindex size 72 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] baseline: code 4868/4868 data 120 functions 6 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getSW] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getSW] objdiff: code 1852/1852 data 20/20 functions 1/1 fuzzy 100.0000 linked code 1852
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getSW] instruction-exact functions: 1/1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getSW] section .text size 1852 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getSW] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getSW] section extabindex size 12 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getSW] baseline: code 1852/1852 data 20 functions 1 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] objdiff: code 6888/6888 data 332/332 functions 17/17 fuzzy 100.0000 linked code 6888
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] instruction-exact functions: 17/17
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .data size 80 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .rodata size 16 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sbss2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sdata2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .text size 6888 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extab size 88 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extabindex size 132 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] baseline: code 6888/6888 data 332 functions 17 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8initd] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8initd] objdiff: code 704/704 data 20/20 functions 2/2 fuzzy 100.0000 linked code 704
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8initd] instruction-exact functions: 2/2
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8initd] section .text size 704 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8initd] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8initd] section extabindex size 12 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8initd] baseline: code 704/704 data 20 functions 2 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8is] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8is] objdiff: code 1136/1136 data 40/40 functions 3/3 fuzzy 100.0000 linked code 1136
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8is] instruction-exact functions: 3/3
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8is] section .text size 1136 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8is] section extab size 16 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8is] section extabindex size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8is] baseline: code 1136/1136 data 40 functions 3 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] objdiff: code 8256/8256 data 728/728 functions 10/10 fuzzy 100.0000 linked code 8256
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] instruction-exact functions: 10/10
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section .rodata size 528 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section .text size 8256 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section extab size 80 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section extabindex size 120 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] baseline: code 8256/8256 data 728 functions 10 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8misc] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8misc] objdiff: code 1636/1636 data 80/80 functions 4/4 fuzzy 100.0000 linked code 1636
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8misc] instruction-exact functions: 4/4
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8misc] section .text size 1636 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8misc] section extab size 32 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8misc] section extabindex size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8misc] baseline: code 1636/1636 data 80 functions 4 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] objdiff: code 2136/2136 data 120/120 functions 7/7 fuzzy 100.0000 linked code 2136
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] instruction-exact functions: 7/7
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section .text size 2136 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section extab size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section extabindex size 72 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] baseline: code 2136/2136 data 120 functions 7 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8space] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8space] objdiff: code 776/776 data 20/20 functions 1/1 fuzzy 100.0000 linked code 776
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8space] instruction-exact functions: 1/1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8space] section .text size 776 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8space] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8space] section extabindex size 12 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8space] baseline: code 776/776 data 20 functions 1 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] objdiff: code 1664/1664 data 80/80 functions 6/6 fuzzy 100.0000 linked code 1664
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] instruction-exact functions: 6/6
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section .text size 1664 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section extab size 32 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section extabindex size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] baseline: code 1664/1664 data 80 functions 6 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] objdiff: code 5188/5188 data 308/308 functions 3/3 fuzzy 100.0000 linked code 5188
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] instruction-exact functions: 3/3
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section .data size 248 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section .text size 5188 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section extab size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section extabindex size 36 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] baseline: code 5188/5188 data 308 functions 3 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] objdiff: code 2028/2028 data 48/48 functions 2/2 fuzzy 100.0000 linked code 2028
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] instruction-exact functions: 2/2
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section .sdata2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section .text size 2028 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section extab size 16 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section extabindex size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] baseline: code 2028/2028 data 48 functions 2 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] objdiff: code 5200/5200 data 180/180 functions 7/7 fuzzy 100.0000 linked code 5200
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] instruction-exact functions: 7/7
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .data size 40 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .text size 5200 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extab size 56 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extabindex size 84 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] baseline: code 5200/5200 data 180 functions 7 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] objdiff: code 2216/2216 data 60/60 functions 4/4 fuzzy 100.0000 linked code 2216
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] instruction-exact functions: 4/4
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] section .text size 2216 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] section extab size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] section extabindex size 36 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zmtkey] baseline: code 2216/2216 data 60 functions 4 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zoemdata] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zoemdata] objdiff: code 976/976 data 60/60 functions 3/3 fuzzy 100.0000 linked code 976
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zoemdata] instruction-exact functions: 3/3
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zoemdata] section .text size 976 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zoemdata] section extab size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zoemdata] section extabindex size 36 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zoemdata] baseline: code 976/976 data 60 functions 3 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 94.31032 -> 94.31032
|
||||
global fuzzy_match_percent: 99.82008 -> 99.82008
|
||||
global complete_code_percent: 80.92587 -> 80.92587
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
## Commits
|
||||
|
||||
- `9d6a57a201ab01918c66c76344d5aaed36670de8`: simplify ezitext language and work expressions.
|
||||
- `c302ce8110456d91982694f805d4011112355b11`: simplify ezitext matching expressions.
|
||||
- The commit containing this log contains the remaining candidate and conversion cleanups.
|
||||
@@ -1,238 +0,0 @@
|
||||
# rx56 integrity audit
|
||||
|
||||
Baseline: `9d225c150d2dd75ba0ee7d53ed581f39da07433d`; branch `agent/w1005/rx56`; Wii Menu 4.3U. The worktree was clean and fetched origin/main matched HEAD at the start.
|
||||
|
||||
The retained cleanups preserve every complete object byte. The tree still contains compiler-steering constructs and eleven assembly placeholders. A claim of fully decompiled, readable source without matching tricks is not supported.
|
||||
|
||||
## Verification
|
||||
|
||||
The final clean, non-quick [gate run](rx56.gate.txt) ends in `GATE PASS`: zero baseline regressions, zero added forbidden patterns, zero readability warnings, and a successful full 4.3U build.
|
||||
|
||||
The separate [validation record](rx56.validation.json) compares the fresh baseline against the final clean build. It checks all 1027 source objects and all 1027 extracted target objects as whole files, all unit/function/section objdiff measures, every protected source hash, pools for every touched unit, and the DOL.
|
||||
|
||||
- Changed source units: 36; protected source files checked: 260.
|
||||
- Touched instruction-exact functions: 988 -> 988, of 994.
|
||||
- Touched objdiff code: 313864 -> 313864 bytes; data: 131068 -> 131068 bytes.
|
||||
- Whole-tree code: 2824760 -> 2824760 bytes; data: 1832576 -> 1832576 bytes; exact functions: 12485 -> 12485; fuzzy: 99.820076% -> 99.820076%.
|
||||
- DOL SHA1: `26116613f624061ba99c8d1a299aaa6efa85670d`.
|
||||
- `ninja -C . progress build/43U/report.json build/43U/ok`: passed.
|
||||
- Focused ctxdiff: ATERMApplyScanSecuritySettings 124/124 instructions, diffs 0; VFiPFFILE_p_fopen (containing the corrected file-creation helper) 350/350 instructions, diffs 0.
|
||||
- `check_asm_inventory.py`: `ASM INVENTORY FAIL`, unchanged 173 assembly functions / 175 bodies, 162 ORIGINAL and 11 PLACEHOLDER.
|
||||
- `check_decomp_complete.py`: `DECOMPLETE_FAIL`; 94.31032% code matched, 80.925865% code linked, 99.9941% data matched, 85.441246% data linked, 988/1027 units linked. This is the existing incomplete tree, not an audit regression.
|
||||
|
||||
The supplied gate/disassembly helper selects `.text` by name. Some objects have multiple sections with that name, so its instruction-exact counts can inspect the wrong section. The validation above follows each function symbol's section index, preserves conditional-branch CR selectors, and requires complete instruction bytes. Its before/after equality is also independently enforced by whole-object hashes. The gate transcript is saved verbatim; no shared tooling was edited.
|
||||
|
||||
## Coverage and evidence
|
||||
|
||||
Scanned 1958 C/C++/header files and 16569 function definitions across src/, libs/, and include/. Syntax-tree errors occurred in 722 files, including MWCC extensions, inactive branches and UTF-16 source; syntax candidates were supplemented by text searches, source review, assembly inventory and the latest 200 source-changing commits. This is not a proof of absence of all undefined behavior.
|
||||
|
||||
Ran 352 source trials: 274 compiled, 78 were rejected by the compiler. The [trial ledger](rx56.trials.tsv) records every trial, location, transformation, raw-byte decision, code/data cost, changed function percentages and pool result. A failed compile is not a measured byte cost. Many rejected cast candidates remove a required qualifier conversion and are not findings.
|
||||
|
||||
Line references for retained findings below use the baseline commit. Complete temporary sources, build logs and per-trial objdiff reports are in `/tmp/rx56/trials/<trial>/`; the committed ledger preserves the decisions and measurements if temporary files are removed. Rejected trials were restored and rebuilt immediately. No protected file, shared header, configuration, symbol boundary, target object, external gate script or baseline report was edited.
|
||||
|
||||
A cleanup with unchanged objdiff can still change ELF strings, debug information, symbol order or relocation identity. Those trials were restored under the explicit whole-object byte rule. They are useful zero-score-cost candidates for a parent decision, but are not claimed as accepted fixes.
|
||||
|
||||
## Kept cleanups
|
||||
|
||||
| Pattern | Retained change |
|
||||
| --- | --- |
|
||||
| Carrier | `src/scene/setting/ATERM.c:1295`: replace the text/terminator struct with `char keyText[33]`. |
|
||||
| Uninitialized result | `libs/RevoEX/src/vf/fatfs/pf_file.c:600`: assign both file-creation error returns in release builds. The old non-DEBUG path could return uninitialized `err` after either call failed. The form without an extra initial store is byte-identical. |
|
||||
| Duplicate branches | Four sites: `libs/RVL_SDK/src/nand/NANDCore.c:55`, `src/keyboard/tiDebug.cpp:110`, and `src/system/rvl_dec.c:640,663`. Move common tails after the branch. The two decoder edits are in inactive fallback C. |
|
||||
| register | Remove eight uses in `libs/MSL/src/MSL_Common/alloc.c:435,436,684,686,715,716,776,777`. Remaining assembly-register operands belong to inventory-classified ORIGINAL assembly. |
|
||||
| Volatile casts | Seven removed: `libs/RVL_SDK/src/os/OSThread.c:540`, `libs/RVL_SDK/src/os/OS.c:521`, and `libs/RVL_SDK/src/dvd/dvd.c:1897,1907,1913,2180,2187`. |
|
||||
| Placement/retention | Remove five section directives in `libs/RevoEX/src/cdb/CDBDatabase.c:81,1375`, `libs/RevoEX/src/ssl/ssl_api.c:552,555`, and `src/scene/channelTitle/iplChannelTitle.cpp:151`; remove empty surrounding push/pop blocks. Remove the force_active include wrapper at `src/system/iplNwc24Manager.cpp:4,6`. |
|
||||
| Output storage | `src/utility/iplCSFlags.cpp:17`: replace oversized `u32 dummy` plus `(u8*)` with a named byte output. This is a real API output, not deleted work. |
|
||||
| Redundant casts | Remove 48 redundant casts across 22 files. This includes unnecessary qualifier removal immediately converted back to const. The accepted cast ledger rows identify each edit; no API type was changed. |
|
||||
|
||||
Cast files: `libs/MSL/src/MSL_Common/scanf.c`, `libs/MSL/src/MSL_Common/wmem.c`, `libs/NW4R/src/snd/snd_WsdTrack.cpp`, `libs/NW4R/src/ut/ut_ArchiveFont.cpp`, `libs/RVL_SDK/src/card/CARDWrite.c`, `libs/RVL_SDK/src/dvd/dvd_broadway.c`, `libs/RVL_SDK/src/es/es.c`, `libs/RVL_SDK/src/rso/RSOLink.c`, `libs/RVL_SDK/src/vi/vi.c`, `libs/RVL_SDK/src/wad/wad.c`, `libs/RVL_SDK/src/wpad/WPADEncrypt.c`, `libs/RevoEX/src/nwc24/NWC24Mime.c`, `libs/RevoEX/src/vf/common/pf_service.c`, `libs/RevoEX/src/vf/common/pf_str.c`, `libs/RevoEX/src/vf/common/pf_w_clib.c`, `libs/RevoEX/src/vf/dskmng/pdm_disk.c`, `libs/RevoEX/src/vf/fatfs/pf_entry_iterator.c`, `libs/RevoEX/src/vf/fatfs/pf_path.c`, `libs/RevoEX/src/wd/WDScan.c`, `src/BS2/BS2Fatal.c`, `src/scene/board/iplFocusObject.cpp`, `src/system/iplNandSDWorker.cpp`.
|
||||
|
||||
## Carriers and storage reuse left for a decision
|
||||
|
||||
These are review findings; local records with a real packet, hardware, file-format or object meaning are not automatically cheats. Percentages below are exact-name objdiff measurements of the compiled clean candidate. A 99.9% result is not a match.
|
||||
|
||||
| Baseline location | Pattern and clean attempt | Measured cost; restored unless stated |
|
||||
| --- | --- | --- |
|
||||
| `src/scene/board/iplBoard.cpp:432` | RecordReadState groups unrelated interrupt states, date fields, size, key and IDs. Split members into locals; declaration order and type grouping tested (3 forms). Trial `board-carrier-reversed`. | appendRecord 100% -> 97.837456%. |
|
||||
| `src/scene/setting/AOSS.c:1854` | integrity groups expected and actual checksums. Two scalar orders and branch-local actual checksum (3 compiled forms). Trial `aoss-integrity-declared`. | AOSSDecryptMessage 100% -> 99.75078%. |
|
||||
| `src/scene/setting/AOSS.c:2330` | construction bundles packet pointer, name buffer, destination and AES schedule. Separate meaningful locals (2 orders). Trial `aoss-construction-reversed`. | AOSSSendHelloRequest 92.48351% -> 91.72527%. |
|
||||
| `src/scene/setting/AOSS.c:428` | waitIntervals overlays unsigned defaults and signed limits; defaults are overwritten. Independent connection/response limits. Trial `aoss-wait-union`. | AOSS_Init_old 96.18624% -> 95.2601%. |
|
||||
| `libs/RevoEX/src/cdb/CDBDatabase.c:353` | decoded groups maker/game/date/type scratch values. Separate and scoped locals (3 forms). Trial `cdb-decoded-reversed`. | CDBDatabaseSearchConditionsIsMatch 100% -> 99.96875%. |
|
||||
| `libs/RevoEX/src/cdb/CDBRecordKey.c:32` | keyStrings groups three unrelated output arrays. Independent arrays (3 declaration orders). Trial `cdb-key-strings-declared`. | CDBRecordKeyInit 100% -> 99.92308%. |
|
||||
| `libs/RevoEX/src/cdb/CDBConv.c:349` | epochBuffer has an unused 8-byte prefix before its text buffer. Plain 12-byte array, size derived from key, and existing epoch buffer reuse. Trial `cdb-epoch-padding-sized`. | CDBConvKeyStrToFullPath_ 100% -> 99.96532%. |
|
||||
| `libs/RevoEX/src/nwc24/NWC24MBoxCtrl.c:564` | mailbox groups a volatile ID and header pointer; GetOldestMsgId forces a write through the ID pointer. Two scalar orders; plain scalar/direct assignment also tested (96.92647%). This order has no objdiff cost but changes the ELF string table. Trial `mbox-carrier-reversed`. | Objdiff measures unchanged; ELF .strtab changed. |
|
||||
| `libs/RevoEX/src/ncd/ncdsystem.c:55` | state overlays interrupt-enable BOOL and configuration pointer. Separate locals, reverse order, scoped interrupt state (3 forms). Trial `ncd-union-separate`. | NCDSetIfConfig 100% -> 99.935486%. |
|
||||
| `src/iplwww/www_window.cpp:52` | BrowserWindow constructor initializes an unused two-word struct. Remove unused initialization. Trial `browser-unused`. | __ct__Q37ext_ead3www13BrowserWindowFPQ37ext_ead3www13BrowserThread 100% -> 96.969696%. |
|
||||
| `libs/RevoEX/src/nhttp/NHTTP_thread.c:989` | Single-field TokenMatch and equal stores in opposite branches. Scalar flag, plain if, direct comparison (3 forms). Trial `nhttp-token-carrier`. | NHTTPi_ThreadParseHeaderProc 100% -> 98.58639%. |
|
||||
| `src/channelScript/CHANSVm.c:7106` | CHANSVmStep scratch groups unrelated operands, floats, copies and load state. Independent locals (2 orders). Trial `vm-scratch-True`. | CHANSVmStep 96.98723% -> 96.97526%. |
|
||||
| `src/channelScript/CHANSVm.c:347` | VmReserveChunkEntry overlays byte/index offset and output pointer. Split locals; remove dead offset bookkeeping (2 forms). Trial `vm-chunk-no-dead-offset`. | CHANSVmNewObjData 100% -> 99.375%. |
|
||||
| `src/BS2/BS2Mach.c:495` | BS2ESGetTicketViews uses a 256-byte aligned carrier for an 8-byte title and 4-byte count. Separate aligned request values. Trial `bs2-ticket-buffers`. | BS2ESGetTicketViews 100% -> 99.788734%. |
|
||||
| `src/BS2/BS2Mach.c:537` | BS2Reboot wraps one title ID in a 32-element array. One aligned title ID. Trial `bs2-launch-buffer`. | BS2Reboot 100% -> 99.88321%. |
|
||||
| `src/BS2/BS2Mach.c:1333` | BS2Tick loaderRead groups offset, length and address outputs. Separate output locals (2 orders). Trial `bs2-loader-False`. | BS2Tick 98.799484% -> 98.78196%. |
|
||||
| `src/keyboard/tiCellPhone.cpp:178` | NumericKeyView wraps one reference and is used once. Reference, pointer and direct indexing (3 forms). Direct indexing preserves objdiff but changes ELF strings. Trial `numeric-key-indexed`. | Objdiff measures unchanged; ELF .strtab changed. |
|
||||
| `libs/RevoEX/src/nwc24/NWC24MsgCommit.c:205` | MBFieldWork groups flags and output buffer in two helpers. Independent locals (2 orders). Trial `mbfield-True`. | NWC24CommitMsgInternal 100% -> 99.91536%. |
|
||||
| `libs/RVL_SDK/src/kpr/kpr_lib.c:159` | once union adds u64 storage/alignment to a byte initialization flag. Use a byte flag. Trial `kpr-alignment-carrier`. | matched data 1104 -> 1088 B. |
|
||||
| `libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main.c:591` | CopyBlock64 makes a casted 64-byte struct assignment. Use memcpy for the quantization table. Trial `jpeg-copy-wrapper`. | TMCJPEGDEC_parse_dqt 100% -> 88.32927%. |
|
||||
| `libs/RVL_SDK/src/wad/wad.c:3499` | parts combines unrelated parsed section state and a cidxMode field that remains zero. Separate section locals and remove unreachable content-mask branches. A first flattening failed to compile and was not counted as a measurement. Trial `wad-import-clean-sections`. | WADImportDVDExForBS 100% -> 72.37643%. |
|
||||
| `src/scene/address/iplAddress.cpp:1628` | MessageValue overlays text pointer and message ID; default converts a text pointer to an ID. Separate pointer/ID and scoped ID (2 forms). Default behavior still needs semantic review. Trial `address-message-union-split`. | set_err_msg 100% -> 99.875%. |
|
||||
| `src/scene/setting/iplNCDSetting.cpp:767` | mac reuses text storage as a numeric MAC value. Separate text and number; byte extraction remains meaningful. Suspicious storage reuse, not proof of invented original layout. Trial `ncd-mac-separate-representations`. | makeMacAddr 100% -> 88.87013%. |
|
||||
| `libs/EGG/src/core/eggAudioExpMgr.cpp:33` | Unused ExpAudioMgr class and constructor/destructor affect thunk emission order. Remove implementation definitions; header is untouched. The synthetic class in libs/EGG/include/egg/core/eggAudioExpMgr.h:25 needs parent review. Trial `egg-thunk-carrier`. | Objdiff measures unchanged; ELF .comment, .data, .rela.data, .rela.text, .strtab, .symtab, .text changed. |
|
||||
|
||||
## Other retained hazards and synthetic storage
|
||||
|
||||
| Baseline location | Pattern and clean attempt | Measured cost; restored unless stated |
|
||||
| --- | --- | --- |
|
||||
| `src/keyboard/tiPcKeyboard.cpp:1643` | Uninitialized keyMode in setTranslateMode when mode is outside the three enumerators. Initial zero and input-mode forms give 99.04762%; current-mode fallback gives 95.2381%. All restored. Trial `keyboard-init-zero`. | setTranslateMode 100% -> 99.04762%. |
|
||||
| `src/channelScript/CHANSVm.c:7104` | CHANSVmStep result stores immediate width before becoming a VM status. Use separate immediateSize. Objdiff unchanged; raw-object rule rejects the changed string table. Trial `vm-status-width`. | Objdiff measures unchanged; ELF .strtab changed. |
|
||||
| `libs/RVL_SDK/src/dvd/dvd.c:1899` | Two DVDCommandBlock volatile casts remain at dvd.c:1899 and :1917. Individual removal costs 98% and 89.94%; five other casts in this file were removed. Trial `dvd-volatile-remainder-0`. | DVDGetCommandBlockStatus 100% -> 98%. |
|
||||
| `libs/RVL_SDK/src/os/OSSemaphore.c:16` | OSWaitSemaphore reads a normal field through a volatile cast. Direct field read. Trial `semaphore-volatile`. | OSWaitSemaphore 100% -> 89.10714%. |
|
||||
| `libs/RVL_SDK/src/cx/CXStreamingUncompression.c:362` | CXReadUncompHuffman reads decodeTable through vu8*. Read the union raw field. Trial `cx-volatile-raw-field`. | CXReadUncompHuffman 100% -> 96.53509%. |
|
||||
| `src/system/RsoSystem.cpp:14` | RsoSystem fatal-color macro casts four constant objects to volatile. All four and each individual cast tested; no identical object. Trial `rso-volatile`. | GetTextColor 100% -> 91.23077%. |
|
||||
| `src/system/iplNwc24Manager.cpp:936` | addDlTask casts twelve download constants to volatile. All-at-once and individual removals tested. The grouped form changes relocations despite unchanged objdiff measures. Trial `nwc24-volatile`. | Objdiff measures unchanged; ELF .comment, .rela.data, .rela.text, .strtab, .symtab changed. |
|
||||
| `libs/RevoEX/src/wd/WDScan.c:34` | WDScan defines nine same-named macros that read constants through volatile casts. All-at-once and individual removals tested. Trial `wd-volatile`. | WDGetPrivacyMode 100% -> 75.36522%. |
|
||||
| `src/scene/board/iplUrlProcessor.cpp:246` | url_processor_data_pad is a weak fake function retaining a placed zero word. Remove fake function/data; matched data 48 -> 24 bytes. Trial `url-data-padding`. | matched data 48 -> 24 B. |
|
||||
| `src/scene/calendar/iplCalendar.cpp:882` | Calendar retains an unused float through used/section attributes. Remove forced zero; matched data 1244 -> 516 bytes. Trial `calendar-data-padding`. | matched data 1244 -> 516 B. |
|
||||
| `src/scene/calendar/iplDate.cpp:65` | Date has a 16-byte padding object kept by DECOMP_FORCE_ACTIVE. Remove object and force-retention call. Trial `date-data-padding`. | Objdiff measures unchanged; ELF .comment, .rela.data, .rela.text, .strtab, .symtab, .text changed. |
|
||||
| `libs/RVL_SDK/src/wpad/WPAD.c:790` | FAKE_ALIGNMENT adds 16 bytes and a force-retention call. Remove storage and retention. Trial `wpad-data-padding`. | WPADiInitSub 100% -> 99.992424%. |
|
||||
| `src/scene/channelEdit/iplChanAppEdit.cpp:31` | CHANAPPEDIT_dummyFunctionToKeepAConstructorStuffFromInlining has no target function. Remove fake function. Trial `chanedit-fake-constructor`. | Objdiff measures unchanged; ELF .comment, .rela.data, .rela.text, .strtab, .symtab, .text changed. |
|
||||
| `libs/EGG/src/core/eggAudioExpMgr.cpp:13` | ArgWithFx constructor creates two unused argument objects. Remove constructor-forcing locals. Trial `egg-unused-constructors`. | __ct__Q33EGG20SimpleAudioMgrWithFx9ArgWithFxFv 100% -> 77.44444%. |
|
||||
| `src/system/iplNandSDWorker.cpp:3168` | do_copy_sd_save_to_nand initializes an unused 64-byte path. Remove local: function size 2252 -> 2224 bytes, 563 -> 556 instructions. Trial `nandsd-unused-path`. | do_copy_sd_save_to_nand 100% -> 97.30728%. |
|
||||
| `src/system/iplChannelScriptManager.cpp:156` | isValidAddr saves two unused getEndAddress results. Retain calls and discard unused results. Trial `channel-unused-locals`. | isValidAddr 100% -> 72.166664%. |
|
||||
| `src/scene/calendar/iplDate.cpp:187` | Date::onEvent stores an unused controller number. Retain the chosen call, discard its result. Trial `date-unused-local`. | Objdiff measures unchanged; ELF .strtab changed. |
|
||||
| `libs/RevoEX/src/nhttp/d_nhttp.c:664` | debugSet records a first call but guards no other work. Remove state; reported scores do not include this function. Trial `nhttp-unused-once`. | Objdiff measures unchanged; ELF .comment, .rela.text, .sbss, .strtab, .symtab, .text changed. |
|
||||
| `src/system/iplNand.cpp:278` | File::read has a dummy zero local in an otherwise empty close_ failure branch. Keep close_ call and remove dummy branch. Trial `nand-close-dummy`. | read 100% -> 99.479164%. |
|
||||
| `libs/RevoEX/src/nwc24/NWC24Schedule.c:184` | NWC24ExecDownloadTask has an empty protected-result branch with a dummy local. Remove dummy branch. Trial `schedule-protected-dummy`. | NWC24ExecDownloadTask 100% -> 97.083336%. |
|
||||
| `libs/RevoEX/src/nwc24/NWC24Parser.c:41` | NWC24GetMIMETypeStr contains if (conv && !conv) and a dummy zero local. Remove impossible condition. Trial `mime-impossible-condition-dummy`. | NWC24GetMIMETypeStr 100% -> 93.333336%. |
|
||||
| `libs/RVL_SDK/src/sdi/sdi_api.c:314` | sduOpenFD has an empty switch used to retain comparisons. Return the IOS result directly. Trial `sdi-switch-dummy`. | ISD_ProbeCard 100% -> 96.8421%; ISD_MountCard 100% -> 94.33962%. |
|
||||
| `libs/RevoEX/src/ncd/ncdsystem.c:15` | Global NCDMutex wraps OSMutex plus eight unused padding bytes. Use the mutex directly. Review whether target symbol extent represents omitted real state or artificial storage. Trial `ncd-mutex-padding`. | matched data 496 -> 400 B. |
|
||||
| `src/system/iplNandSDWorker.cpp:39` | forceStackWeaks is an uncalled function solely retaining template bodies. Remove fake function. Several template/caller scores change; full details in ledger. Trial `nand-force-stack-weaks`. | push 100% -> 50.866665%; recursion_nand 100% -> 82.701256%. |
|
||||
| `src/system/iplNandSDWorker.cpp:3688` | NandSDWorker manually expands NETCalcMD5 to preserve thumbPtr allocation. Use NETCalcMD5 while keeping thumbPtr for later encryption. Trial `nand-thumbnail-md5-helper`. | do_copy_nand_app_to_sd 100% -> 98.72891%. |
|
||||
| `src/scene/channelTitle/iplChannelTitle.cpp:2558` | ChannelTitle has a source-marked fakematch for minutes using subtraction. Try ordinary remainder. Existing arithmetic has domain meaning; the comment alone does not prove a cheat. Trial `channel-time-remainder`. | isTimeLimitedChannel 100% -> 80.29412%. |
|
||||
|
||||
## Thin helpers and redundant casts retained
|
||||
|
||||
| Baseline location | Pattern and clean attempt | Measured cost; restored unless stated |
|
||||
| --- | --- | --- |
|
||||
| `src/scene/letterWriter/iplLetterWriter.cpp:17` | letterWriterCaption returns its argument and is used once. Direct call result; mutable pointer and split assignment also tested (3 forms). Trial `letter-identity`. | initCalcNormal 100% -> 99.92908%. |
|
||||
| `src/keyboard/tiCellPhone.cpp:174` | inputKeys is a single-use address getter. Inline the actual typed member access. Trial `cell-input-keys-helper`. | onKey 100% -> 99.95601%. |
|
||||
| `libs/RVL_SDK/src/dvd/dvdfs.c:329` | dvdfs redundant pointer cast. Remove cast; objdiff unchanged, string table changes. Trial `casts-15`. | Objdiff measures unchanged; ELF .strtab changed. |
|
||||
| `libs/RevoEX/src/vf/fatfs/pf_path.c:172` | pf_path redundant pointer cast (second candidate). Remove cast; debug/symbol metadata changes. Trial `casts-43-single-1`. | Objdiff measures unchanged; ELF .line, .symtab changed. |
|
||||
| `libs/RevoEX/src/vf/fatfs/pf_path.c:182` | pf_path redundant pointer cast (third candidate). Remove cast; debug/string metadata changes. Trial `casts-43-single-2`. | Objdiff measures unchanged; ELF .line, .strtab changed. |
|
||||
| `src/system/iplCdbWrapper.cpp:38` | CDB wrapper casts a value to the same integral representation. Remove redundant cast; register allocation changes. Trial `casts-54-single-0`. | _condition 100% -> 92.69231%. |
|
||||
| `src/system/iplNandWrapper.cpp:116` | NAND wrapper casts an int to int. Remove redundant cast; register allocation changes. Trial `casts-56-single-0`. | _condition 100% -> 84.21875%. |
|
||||
|
||||
## Duplicate branch trials
|
||||
|
||||
Seventy-two independently compiled branch simplifications produced four retained changes. The other 68 were restored; their exact locations, lifted statements, function score changes and code/data costs are in the duplicate-0 through duplicate-71 ledger rows. Repeated code alone does not establish deliberate cheating: common cleanup/return tails can be ordinary source. Four rejected trials keep objdiff measures unchanged but change object metadata; the rest have recorded code, data or instruction costs. No fuzzy improvement was accepted in place of byte equality.
|
||||
|
||||
## Force-retention inventory
|
||||
|
||||
Found 171 DECOMP_FORCE_ACTIVE/LITERAL/DTOR call sites in 25 source files. Each editable file received a grouped removal trial; all 24 removals changed its object and were restored. The 11 ESMisc sites were protected. Macro definitions in `include/global/decomp/utils.h` generate artificial retention functions and were not edited because doing so would change multiple owners' outputs.
|
||||
|
||||
| File and baseline lines | Grouped removal cost |
|
||||
| --- | --- |
|
||||
| `libs/RVL_SDK/src/axfx/AXFXReverbHiExp.c:374` | matched data 480 -> 416 B. |
|
||||
| `libs/RVL_SDK/src/axfx/AXFXReverbHiExpDpl2.c:388` | matched data 512 -> 448 B. |
|
||||
| `libs/RVL_SDK/src/cnt/cnt.c:14,15,16` | __CNTConvertErrorCode 100% -> 99.96429%. Pool diverges. |
|
||||
| `libs/RVL_SDK/src/dvd/dvd_broadway.c:102,138,405,406,408,409,410,411,412,584,655,656,657,658,659,660,757,758,759,760,761,762,763,764,765,766,767,768,769,770,847,848,944` | DVDLowOpenPartitionWithTmdAndTicketView 100% -> 99.90849%; DVDLowSeek 100% -> 99.95789%; DVDLowClosePartition 100% -> 99.955055%; DVDLowUnencryptedRead 100% -> 99.960396%; DVDLowClearCoverInterrupt 100% -> 99.955055%; DVDLowInquiry 100% -> 99.95556%; DVDLowGetNoDiscOpenPartitionParams 100% -> 99.945786%; DVDLowPrepareCoverRegister 100% -> 99.95556%; DVDLowAudioBufferConfig 100% -> 99.960396%; DVDLowReset 100% -> 99.95789%; DVDLowRequestError 100% -> 99.95556%; DVDLowGetNoDiscBufferSizes 100% -> 99.91603%; DVDLowReadDiskID 100% -> 99.94898%; DVDLowOpenPartition 100% -> 99.94156%; DVDLowPrepareStatusRegister 100% -> 99.95556%; DVDLowInit 100% -> 99.94118%; DVDLowStopMotor 100% -> 99.960396%; DVDLowSetMaximumRotation 100% -> 99.958336%; DVDLowRead 100% -> 99.953705%. Pool diverges. |
|
||||
| `libs/RVL_SDK/src/ipc/ipcProfile.c:16` | Objdiff measures unchanged; ELF .comment, .rela.text, .strtab, .symtab, .text changed. |
|
||||
| `libs/RVL_SDK/src/os/OSExec.c:22,23,497,498,499,500,501,502,503` | LaunchCommon 100% -> 99.98322%. Pool diverges. |
|
||||
| `libs/RVL_SDK/src/os/OSNet.c:41,42,43,44,45,46,47,48` | matched data 360 -> 0 B. Pool diverges. |
|
||||
| `libs/RVL_SDK/src/os/OSPlayRecord.c:13` | Objdiff measures unchanged; ELF .comment, .rela.text, .strtab, .symtab, .text changed. |
|
||||
| `libs/RVL_SDK/src/os/OSReset.c:66,67,69,70,258,259` | __OSReturnToMenuForError 100% -> 99.902435%; OSReturnToSetting 100% -> 99.80851%. Pool diverges. |
|
||||
| `libs/RVL_SDK/src/os/OSThread.c:863` | matched data 4656 -> 2088 B. |
|
||||
| `libs/RVL_SDK/src/usb/usb.c:216,217,218,219,251,252,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522` | __IntrBlkMsgInt 100% -> 99.980675%; __CtrlMsgInt 100% -> 99.98615%; IUSB_CloseDeviceAsync 100% -> 99.9589%. Pool diverges. |
|
||||
| `libs/RVL_SDK/src/wpad/WPAD.c:791` | WPADiInitSub 100% -> 99.992424%. |
|
||||
| `libs/RVL_SDK/src/wud/WUD.c:1057,1616,1617,1984,2957,2958,2959,2960,2969` | WUDSecurityCallback 100% -> 99.935486%; WUDStoredLinkKeyCallback 100% -> 99.93048%; WUDVendorSpecificCallback 100% -> 99.96135%; WUDiRemoveDevice 100% -> 99.93104%; WUDPowerManagerCallback 100% -> 99.93671%; WUDSearchCallback 100% -> 99.9542%; WUDiRegisterDevice 100% -> 99.97369%. Pool diverges. |
|
||||
| `libs/RevoEX/src/cdb/CDBConv.c:134,315` | CDBConvKeyStrToFullPath_ 100% -> 99.98266%. Pool diverges. |
|
||||
| `libs/RevoEX/src/cdb/CDBFileSystem.c:14,15,16,17,18,19,22,23,24,25,26,27,28,102,103,104` | CDBFSInit 100% -> 99.94095%. Pool diverges. |
|
||||
| `libs/RevoEX/src/cdb/CDBFileSystemSD.c:287` | Objdiff measures unchanged; ELF .comment, .rela.text, .strtab, .symtab, .text changed. |
|
||||
| `src/channelScript/systemmenu/iplCSMtx.cpp:9` | matched data 232 -> 72 B. |
|
||||
| `src/channelScript/systemmenu/iplCSSavedata.cpp:622,623,624` | Objdiff measures unchanged; ELF .comment, .rela.rodata, .rela.text, .strtab, .symtab, .text changed. |
|
||||
| `src/keyboard/tiDebug.cpp:15` | Objdiff measures unchanged; ELF .comment, .rela.text, .sdata2, .strtab, .symtab, .text changed. |
|
||||
| `src/keyboard/tiPredictLang.cpp:518` | Objdiff measures unchanged; ELF .comment, .rela.data, .rela.text, .strtab, .symtab, .text changed. |
|
||||
| `src/scene/board/iplFocusObject.cpp:1246,1247,1248,1249,1250,1251,1252,1253` | onEventDerived 100% -> 99.98578%. |
|
||||
| `src/scene/calendar/iplDate.cpp:67` | Objdiff measures unchanged; ELF .comment, .rela.data, .rela.text, .strtab, .symtab, .text changed. |
|
||||
| `src/scene/sdButton/iplSDMenuButton.cpp:26` | Objdiff measures unchanged; ELF .comment, .rela.data, .rela.text, .sdata2, .strtab, .symtab, .text changed. |
|
||||
| `src/scene/setting/iplParental.cpp:327,328,329,330,331,332,333,334,335,336,337` | matched data 1576 -> 1240 B. Pool diverges. |
|
||||
| `src/utility/iplESMisc.cpp:365,366,367,368,369,370,371,372,373,374,375` | Protected rx50; no modified build. |
|
||||
|
||||
## Section and retention pragma trials
|
||||
|
||||
Default section directives can be redundant; a directive is not proof of cheating by itself. The ten tested non-runtime groups are below. Boot `.init`, runtime ctor/dtor sections, hardware access types, and SDK export/version retention need their actual linker purpose considered, not blanket deletion.
|
||||
|
||||
| Baseline location | Pattern and clean attempt | Measured cost; restored unless stated |
|
||||
| --- | --- | --- |
|
||||
| `src/scene/calendar/iplDate.cpp:17` | Existing section or force_active directive group. Remove the directive group. Trial `placement-0`. | matched data 356 -> 252 B. Pool diverges. |
|
||||
| `src/scene/channelTitle/iplChannelTitle.cpp:151` | Existing section or force_active directive group. Remove the directive group. Trial `placement-1`. | Complete object identical; kept. |
|
||||
| `src/scene/channelEdit/iplChanAppBox.cpp:6` | Existing section or force_active directive group. Remove the directive group. Trial `placement-2`. | draw 100% -> 99.392265%. Pool diverges. |
|
||||
| `src/system/iplNwc24Manager.cpp:4` | Existing section or force_active directive group. Remove the directive group. Trial `placement-3`. | Complete object identical; kept. |
|
||||
| `src/system/iplKeyboard.cpp:48` | Existing section or force_active directive group. Remove the directive group. Trial `placement-4`. | Objdiff measures unchanged; ELF .comment changed. |
|
||||
| `src/homebutton/HBMBase.cpp:46` | Existing section or force_active directive group. Remove the directive group. Trial `placement-5`. | Objdiff measures unchanged; ELF .comment changed. |
|
||||
| `src/channelScript/systemmenu/iplCSPane.cpp:624` | Existing section or force_active directive group. Remove the directive group. Trial `placement-6`. | matched data 672 -> 320 B. Pool diverges. |
|
||||
| `libs/RevoEX/src/cdb/CDBDatabase.c:81` | Existing section or force_active directive group. Remove the directive group. Trial `placement-7`. | Complete object identical; kept. |
|
||||
| `libs/RevoEX/src/ssl/ssl_api.c:552` | Existing section or force_active directive group. Remove the directive group. Trial `placement-8`. | Complete object identical; kept. |
|
||||
| `libs/RevoEX/src/wd/WDScan.c:12` | Existing section or force_active directive group. Remove the directive group. Trial `placement-9`. | matched data 16 -> 8 B. |
|
||||
|
||||
## Assembly placeholders
|
||||
|
||||
All five editable placeholders were tried as C; none retained exact output. The source inventory remains unchanged. CNTCACHEClear also has a packed `scCntCacheStrs[0xd0]` blob at `libs/RVL_SDK/src/cntcache/cntcache.c:10` accessed by fixed offsets in the assembly. Its replacement needs ordinary source literals in encounter order, not a relocated copy of the blob.
|
||||
|
||||
| Baseline location | Pattern and clean attempt | Measured cost; restored unless stated |
|
||||
| --- | --- | --- |
|
||||
| `libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main.c:903` | TMCJPEGDEC_err_restart assembly placeholder. Compile the existing fallback C. Trial `asm-jpeg-restart-clean`. | TMCJPEGDEC_err_restart 100% -> 82.791306%. |
|
||||
| `libs/RVL_SDK/src/cntcache/cntcache.c:42` | CNTCACHEClear assembly placeholder. Compile the prior readable C body with ordinary literals; pool diverges. Trial `asm-cache-clear-clean`. | CNTCACHEClear 100% -> 69.13908%. Pool diverges. |
|
||||
| `libs/RVL_SDK/src/cntcache/cntcache.c:266` | _CNTCACHEIsTitleRemovable assembly placeholder. Prior C body with separate error status and loop counter. Trial `asm-cache-removable-clean`. | _CNTCACHEIsTitleRemovable 100% -> 87.42683%. |
|
||||
| `libs/RVL_SDK/src/cntcache/cntcache.c:360` | _CNTCACHEDeleteContent assembly placeholder. Compile prior readable C body. Trial `asm-cache-content-clean`. | _CNTCACHEDeleteContent 100% -> 95.793106%. |
|
||||
| `libs/RevoEX/src/nwc24/NWC24UserId.c:10` | getUnScrambleId assembly placeholder. Prior C byte permutation, keeping the original out-of-line call boundary. Trial `asm-userid-out-of-line`. | getUnScrambleId 100% -> 76.27329%. |
|
||||
|
||||
The reused C bodies came from local Git evidence (`6b4a0311`, rx30; `51ce189e`, rx18), not another worktree. Values in this table were remeasured here. Historical better scores in docs/asm-inventory.md are not presented as fresh results.
|
||||
|
||||
Six protected placeholders were only reported: TVRCSendStartAsync (perm), getTitleName (rx54), hasChannel / makePriorTitleIDList / doUpdateChanInfos (rx54), warning_run (rx54). Their locations and prior C measurements remain in [the assembly inventory](../../docs/asm-inventory.md).
|
||||
|
||||
## Protected-file handoff
|
||||
|
||||
No trial edited these files. Costs are unmeasured by rx56 because the ownership exclusion takes precedence; owners should test the proposed plain-local or direct-access form. This table separates strong steering candidates from records that may describe real data.
|
||||
|
||||
| Owner | Baseline location | Finding |
|
||||
| --- | --- | --- |
|
||||
| rx55 | `libs/RVLMiddleware/eZiText/src/clib/zi8getc2.c:92,117,307` | Single-field version carrier, signature-pointer carrier, multi-purpose saved-state carrier. |
|
||||
| rx55 | `libs/RVLMiddleware/eZiText/src/clib/zikorean.c:30` | Candidate-search local carrier. This is a different function from the user's already-fixed Zi8GetKOcandidates example. |
|
||||
| rx55 | `libs/RVLMiddleware/eZiText/src/clib/zi8match.c:116,293` | Local matching-state carriers. |
|
||||
| rx55 | `libs/RVLMiddleware/eZiText/src/clib/zi8pud2.c:60` | Fallback/workspace grouping; review field lifetimes. |
|
||||
| rx51 | `libs/RVLMiddleware/eZiText/src/clib/zi8cgetc.c:2870` | savedState local carrier. |
|
||||
| rx51 | `libs/RVLMiddleware/eZiText/src/clib/zprepare.c:31` | Prepare-match work-state carrier. |
|
||||
| rx45 | `src/keyboard/tiInputForm.cpp:1610,1619` | RowCursor wraps a single pointer at two sites. |
|
||||
| rx45 | `src/keyboard/tiInputForm.cpp:634,3206` | InputModeState may represent real mode state; WordWrapDrawInfo duplicates DrawInfo and is reference-cast to it. Review whether real types can be used directly. |
|
||||
| rx45 | `src/keyboard/tiCandidateBox.cpp:322` | predictionState combines int mode and enabled flag only within setOnOff. |
|
||||
| rx45 | `src/keyboard/tiCandidateBox.cpp:43,44` | commonScrollAnimationName/commonTextAnimationName are constant-address getters; section placement also occurs at lines 16,22,209. |
|
||||
| rx46 | `src/scene/cardSequence/iplCardSequence.cpp:412,695` | CardThreadLocals and CardSequenceFileData need carrier review. The message-word bitfields at 402/670 have real protocol meaning. |
|
||||
| rx47 | `libs/RVL_SDK/src/fa/pf_cluster.c:606` | ClusterDeletion local grouping. |
|
||||
| rx47 | `libs/RVL_SDK/src/fa/pf_fat12.c:178` | Entry-read work-state grouping. |
|
||||
| rx47 | `libs/RVL_SDK/src/fa/pf_file.c:1876,1926` | saved_hint and file-info state grouping; line 626 also masks error via arithmetic. |
|
||||
| rx47 | `libs/RVL_SDK/src/fa/pf_path.c:421` | Local path comparison work carrier. |
|
||||
| rx47 | `libs/RVL_SDK/src/fa/msc/puh_msc_blk.c:96` | Transfer-state carrier; distinguish command data from compiler-only grouping. |
|
||||
| rx49 | `src/BS2/BS2Update.c:93` | free-space/inode/channel-count local grouping; retention pragma at 45. |
|
||||
| rx50 | `src/system/odh.cpp:715,1276` | statusOrOffset is used both for codec status and byte offset. |
|
||||
| rx50 | `libs/NW4R/src/lyt/lyt_window.cpp:13,14` | Four constant-color volatile use casts. |
|
||||
| rx50 | `src/utility/iplESMisc.cpp:365` | Eleven force-retained literals at 365 through 375; full list above. |
|
||||
| rx54 | `src/system/iplSystem.cpp:530` | BlankNameStorage wraps an owner nickname; review use of the real nickname buffer. |
|
||||
| rx54 | `src/system/iplSystem.cpp:1332,1339` | Eight constant orthographic-bound volatile use casts. |
|
||||
| rx54 | `src/system/iplChannelManager.cpp:1118` | Source-marked MD5 size-expression workaround; protected, no trial. |
|
||||
|
||||
Protected assembly, casts, padding or local-record candidates in the remaining excluded units were scanned but not changed. No additional confirmed steering finding was established there. Same-address views for TitleCode/MakerCode in sdChannelTitle, hardware register bitfields, callback packet structures, endian conversion API identities, zero-initialized statics, out-reference parameters and loop variables assigned before their update expression were not treated as uninitialized or fake solely because of syntax. The timer operator() belongs to a persistent timer API; no single-use allocation-steering functor was confirmed. WeekYear, AES byte/word views and Huffman table entries also have identifiable data meanings.
|
||||
|
||||
## Remaining touched-unit mismatches
|
||||
|
||||
All six existed at the baseline and are unchanged. This audit does not attempt unrelated matching work:
|
||||
|
||||
| Function | Objdiff | Remaining evidence |
|
||||
| --- | ---: | --- |
|
||||
| `ATERMDiscoverAccessPoints` | 98.31939% | Baseline instruction/code difference; complete source object unchanged. |
|
||||
| `ATERMBuildEncryptedMessage` | 99.791664% | Baseline instruction/code difference; complete source object unchanged. |
|
||||
| `ATERMBuildAssociationRequest` | 98.7594% | Baseline instruction/code difference; complete source object unchanged. |
|
||||
| `ATERMRunConfigProtocol` | 92.100945% | Baseline instruction/code difference; complete source object unchanged. |
|
||||
| `ATERMi_AutoConfigThread` | 94.75% | Baseline instruction/code difference; complete source object unchanged. |
|
||||
| `ATERMAesExpandEncryptKey` | 98.94403% | Baseline instruction/code difference; complete source object unchanged. |
|
||||
|
||||
The source diff adds no assembly, labels, padding, fake functions, volatile casts, register declarations or ownership changes. No push, PR, merge, rebase, branch switch or other worktree edit was performed. The audit is complete as a byte-preserving review pass; the unresolved integrity findings remain explicit parent decisions.
|
||||
@@ -1,284 +0,0 @@
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/system/rvl_dec] pool: IDENTICAL
|
||||
[src/system/rvl_dec] objdiff: code 2600/2600 data 36872/36872 functions 4/4 fuzzy 100.0000 linked code 2600
|
||||
[src/system/rvl_dec] instruction-exact functions: 4/4
|
||||
[src/system/rvl_dec] section .bss size 36872 match 100.0
|
||||
[src/system/rvl_dec] section .text size 2600 match 100.0
|
||||
[src/system/rvl_dec] baseline: code 2600/2600 data 36872 functions 4 fuzzy 100.0000
|
||||
[src/system/iplNwc24Manager] pool: IDENTICAL
|
||||
[src/system/iplNwc24Manager] objdiff: code 10252/10252 data 888/888 functions 53/53 fuzzy 100.0000 linked code 10252
|
||||
[src/system/iplNwc24Manager] instruction-exact functions: 53/53
|
||||
[src/system/iplNwc24Manager] section .bss size 256 match 100.0
|
||||
[src/system/iplNwc24Manager] section .data size 576 match 100.0
|
||||
[src/system/iplNwc24Manager] section .sdata size 16 match 100.0
|
||||
[src/system/iplNwc24Manager] section .sdata2 size 40 match 100.0
|
||||
[src/system/iplNwc24Manager] section .text size 10252 match 100.0
|
||||
[src/system/iplNwc24Manager] baseline: code 10252/10252 data 888 functions 53 fuzzy 100.0000
|
||||
[src/system/iplNandSDWorker] pool: IDENTICAL
|
||||
[src/system/iplNandSDWorker] objdiff: code 51428/51428 data 12312/12312 functions 203/203 fuzzy 100.0000 linked code 51428
|
||||
[src/system/iplNandSDWorker] instruction-exact functions: 7/203
|
||||
[src/system/iplNandSDWorker] section .data size 12128 match 100.0
|
||||
[src/system/iplNandSDWorker] section .rodata size 48 match 100.0
|
||||
[src/system/iplNandSDWorker] section .sbss size 8 match 100.0
|
||||
[src/system/iplNandSDWorker] section .sdata size 96 match 100.0
|
||||
[src/system/iplNandSDWorker] section .sdata2 size 32 match 100.0
|
||||
[src/system/iplNandSDWorker] section .text size 51428 match 100.0
|
||||
[src/system/iplNandSDWorker] baseline: code 51428/51428 data 12312 functions 203 fuzzy 100.0000
|
||||
[src/utility/iplCSFlags] pool: IDENTICAL
|
||||
[src/utility/iplCSFlags] objdiff: code 1172/1172 data 816/816 functions 5/5 fuzzy 100.0000 linked code 1172
|
||||
[src/utility/iplCSFlags] instruction-exact functions: 5/5
|
||||
[src/utility/iplCSFlags] section .data size 816 match 100.0
|
||||
[src/utility/iplCSFlags] section .text size 1172 match 100.0
|
||||
[src/utility/iplCSFlags] baseline: code 1172/1172 data 816 functions 5 fuzzy 100.0000
|
||||
[src/BS2/BS2Fatal] pool: IDENTICAL
|
||||
[src/BS2/BS2Fatal] objdiff: code 3116/3116 data 2448/2448 functions 10/10 fuzzy 100.0000 linked code 3116
|
||||
[src/BS2/BS2Fatal] instruction-exact functions: 10/10
|
||||
[src/BS2/BS2Fatal] section .bss size 736 match 100.0
|
||||
[src/BS2/BS2Fatal] section .data size 1584 match 100.0
|
||||
[src/BS2/BS2Fatal] section .rodata size 40 match 100.0
|
||||
[src/BS2/BS2Fatal] section .sbss size 8 match 100.0
|
||||
[src/BS2/BS2Fatal] section .sdata size 8 match 100.0
|
||||
[src/BS2/BS2Fatal] section .sdata2 size 72 match 100.0
|
||||
[src/BS2/BS2Fatal] section .text size 3116 match 100.0
|
||||
[src/BS2/BS2Fatal] baseline: code 3116/3116 data 2448 functions 10 fuzzy 100.0000
|
||||
[src/scene/board/iplFocusObject] pool: IDENTICAL
|
||||
[src/scene/board/iplFocusObject] objdiff: code 20332/20332 data 2576/2576 functions 89/89 fuzzy 100.0000 linked code 20332
|
||||
[src/scene/board/iplFocusObject] instruction-exact functions: 89/89
|
||||
[src/scene/board/iplFocusObject] section .data size 2168 match 100.0
|
||||
[src/scene/board/iplFocusObject] section .rodata size 176 match 100.0
|
||||
[src/scene/board/iplFocusObject] section .sdata size 176 match 100.0
|
||||
[src/scene/board/iplFocusObject] section .sdata2 size 56 match 100.0
|
||||
[src/scene/board/iplFocusObject] section .text size 20332 match 100.0
|
||||
[src/scene/board/iplFocusObject] baseline: code 20332/20332 data 2576 functions 89 fuzzy 100.0000
|
||||
[src/scene/channelTitle/iplChannelTitle] pool: IDENTICAL
|
||||
[src/scene/channelTitle/iplChannelTitle] objdiff: code 28788/28788 data 3144/3144 functions 95/95 fuzzy 100.0000 linked code 28788
|
||||
[src/scene/channelTitle/iplChannelTitle] instruction-exact functions: 95/95
|
||||
[src/scene/channelTitle/iplChannelTitle] section .bss size 440 match 100.0
|
||||
[src/scene/channelTitle/iplChannelTitle] section .data size 2384 match 100.0
|
||||
[src/scene/channelTitle/iplChannelTitle] section .rodata size 48 match 100.0
|
||||
[src/scene/channelTitle/iplChannelTitle] section .sdata size 240 match 100.0
|
||||
[src/scene/channelTitle/iplChannelTitle] section .sdata2 size 32 match 100.0
|
||||
[src/scene/channelTitle/iplChannelTitle] section .text size 28788 match 100.0
|
||||
[src/scene/channelTitle/iplChannelTitle] baseline: code 28788/28788 data 3144 functions 95 fuzzy 100.0000
|
||||
[src/scene/setting/ATERM] pool: IDENTICAL
|
||||
[src/scene/setting/ATERM] objdiff: code 12200/19204 data 18864/18864 functions 20/26 fuzzy 98.2020 linked code 0
|
||||
[src/scene/setting/ATERM] instruction-exact functions: 20/26
|
||||
[src/scene/setting/ATERM] section .bss size 8160 match 100.0
|
||||
[src/scene/setting/ATERM] section .data size 280 match 100.0
|
||||
[src/scene/setting/ATERM] section .rodata size 10280 match 100.0
|
||||
[src/scene/setting/ATERM] section .sbss size 80 match 100.0
|
||||
[src/scene/setting/ATERM] section .sdata size 56 match 100.0
|
||||
[src/scene/setting/ATERM] section .sdata2 size 8 match 100.0
|
||||
[src/scene/setting/ATERM] section .text size 19204 match 98.20204
|
||||
[src/scene/setting/ATERM] below 100: ATERMDiscoverAccessPoints 98.31939
|
||||
[src/scene/setting/ATERM] below 100: ATERMBuildEncryptedMessage 99.791664
|
||||
[src/scene/setting/ATERM] below 100: ATERMBuildAssociationRequest 98.7594
|
||||
[src/scene/setting/ATERM] below 100: ATERMRunConfigProtocol 92.100945
|
||||
[src/scene/setting/ATERM] below 100: ATERMi_AutoConfigThread 94.75
|
||||
[src/scene/setting/ATERM] below 100: ATERMAesExpandEncryptKey 98.94403
|
||||
[src/scene/setting/ATERM] baseline: code 12200/19204 data 18864 functions 20 fuzzy 98.2020
|
||||
[src/keyboard/tiDebug] pool: IDENTICAL
|
||||
[src/keyboard/tiDebug] objdiff: code 1556/1556 data 24/24 functions 2/2 fuzzy 100.0000 linked code 1556
|
||||
[src/keyboard/tiDebug] instruction-exact functions: 2/2
|
||||
[src/keyboard/tiDebug] section .sdata2 size 24 match 100.0
|
||||
[src/keyboard/tiDebug] section .text size 1556 match 100.0
|
||||
[src/keyboard/tiDebug] baseline: code 1556/1556 data 24 functions 2 fuzzy 100.0000
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] pool: IDENTICAL
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] objdiff: code 12152/12152 data 312/312 functions 33/33 fuzzy 100.0000 linked code 12152
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] instruction-exact functions: 33/33
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] section .data size 312 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] section .text size 12152 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] baseline: code 12152/12152 data 312 functions 33 fuzzy 100.0000
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] objdiff: code 6124/6124 data 88/88 functions 16/16 fuzzy 100.0000 linked code 6124
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] instruction-exact functions: 16/16
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] section .data size 72 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] section .sdata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] section .text size 6124 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] baseline: code 6124/6124 data 88 functions 16 fuzzy 100.0000
|
||||
[libs/RevoEX/src/ssl/ssl_api] pool: IDENTICAL
|
||||
[libs/RevoEX/src/ssl/ssl_api] objdiff: code 3404/3404 data 12424/12424 functions 10/10 fuzzy 100.0000 linked code 3404
|
||||
[libs/RevoEX/src/ssl/ssl_api] instruction-exact functions: 10/10
|
||||
[libs/RevoEX/src/ssl/ssl_api] section .bss size 12320 match 100.0
|
||||
[libs/RevoEX/src/ssl/ssl_api] section .data size 88 match 100.0
|
||||
[libs/RevoEX/src/ssl/ssl_api] section .sbss size 8 match 100.0
|
||||
[libs/RevoEX/src/ssl/ssl_api] section .sdata size 8 match 100.0
|
||||
[libs/RevoEX/src/ssl/ssl_api] section .text size 3404 match 100.0
|
||||
[libs/RevoEX/src/ssl/ssl_api] baseline: code 3404/3404 data 12424 functions 10 fuzzy 100.0000
|
||||
[libs/RevoEX/src/vf/common/pf_service] pool: IDENTICAL
|
||||
[libs/RevoEX/src/vf/common/pf_service] objdiff: code 280/280 data None/None functions 1/1 fuzzy 100.0000 linked code 280
|
||||
[libs/RevoEX/src/vf/common/pf_service] instruction-exact functions: 1/1
|
||||
[libs/RevoEX/src/vf/common/pf_service] section .text size 280 match 100.0
|
||||
[libs/RevoEX/src/vf/common/pf_service] baseline: code 280/280 data None functions 1 fuzzy 100.0000
|
||||
[libs/RevoEX/src/vf/common/pf_str] pool: IDENTICAL
|
||||
[libs/RevoEX/src/vf/common/pf_str] objdiff: code 1332/1332 data None/None functions 10/10 fuzzy 100.0000 linked code 1332
|
||||
[libs/RevoEX/src/vf/common/pf_str] instruction-exact functions: 10/10
|
||||
[libs/RevoEX/src/vf/common/pf_str] section .text size 1332 match 100.0
|
||||
[libs/RevoEX/src/vf/common/pf_str] baseline: code 1332/1332 data None functions 10 fuzzy 100.0000
|
||||
[libs/RevoEX/src/vf/common/pf_w_clib] pool: IDENTICAL
|
||||
[libs/RevoEX/src/vf/common/pf_w_clib] objdiff: code 148/148 data None/None functions 3/3 fuzzy 100.0000 linked code 148
|
||||
[libs/RevoEX/src/vf/common/pf_w_clib] instruction-exact functions: 3/3
|
||||
[libs/RevoEX/src/vf/common/pf_w_clib] section .text size 148 match 100.0
|
||||
[libs/RevoEX/src/vf/common/pf_w_clib] baseline: code 148/148 data None functions 3 fuzzy 100.0000
|
||||
[libs/RevoEX/src/vf/dskmng/pdm_disk] pool: IDENTICAL
|
||||
[libs/RevoEX/src/vf/dskmng/pdm_disk] objdiff: code 5584/5584 data None/None functions 18/18 fuzzy 100.0000 linked code 5584
|
||||
[libs/RevoEX/src/vf/dskmng/pdm_disk] instruction-exact functions: 18/18
|
||||
[libs/RevoEX/src/vf/dskmng/pdm_disk] section .text size 5584 match 100.0
|
||||
[libs/RevoEX/src/vf/dskmng/pdm_disk] baseline: code 5584/5584 data None functions 18 fuzzy 100.0000
|
||||
[libs/RevoEX/src/vf/fatfs/pf_entry_iterator] pool: IDENTICAL
|
||||
[libs/RevoEX/src/vf/fatfs/pf_entry_iterator] objdiff: code 8560/8560 data 40/40 functions 15/15 fuzzy 100.0000 linked code 8560
|
||||
[libs/RevoEX/src/vf/fatfs/pf_entry_iterator] instruction-exact functions: 15/15
|
||||
[libs/RevoEX/src/vf/fatfs/pf_entry_iterator] section .sdata size 40 match 100.0
|
||||
[libs/RevoEX/src/vf/fatfs/pf_entry_iterator] section .text size 8560 match 100.0
|
||||
[libs/RevoEX/src/vf/fatfs/pf_entry_iterator] baseline: code 8560/8560 data 40 functions 15 fuzzy 100.0000
|
||||
[libs/RevoEX/src/vf/fatfs/pf_file] pool: IDENTICAL
|
||||
[libs/RevoEX/src/vf/fatfs/pf_file] objdiff: code 14052/14052 data None/None functions 24/24 fuzzy 100.0000 linked code 14052
|
||||
[libs/RevoEX/src/vf/fatfs/pf_file] instruction-exact functions: 24/24
|
||||
[libs/RevoEX/src/vf/fatfs/pf_file] section .text size 14052 match 100.0
|
||||
[libs/RevoEX/src/vf/fatfs/pf_file] baseline: code 14052/14052 data None functions 24 fuzzy 100.0000
|
||||
[libs/RevoEX/src/vf/fatfs/pf_path] pool: IDENTICAL
|
||||
[libs/RevoEX/src/vf/fatfs/pf_path] objdiff: code 10636/10636 data 64/64 functions 24/24 fuzzy 100.0000 linked code 10636
|
||||
[libs/RevoEX/src/vf/fatfs/pf_path] instruction-exact functions: 24/24
|
||||
[libs/RevoEX/src/vf/fatfs/pf_path] section .sdata size 48 match 100.0
|
||||
[libs/RevoEX/src/vf/fatfs/pf_path] section .sdata2 size 16 match 100.0
|
||||
[libs/RevoEX/src/vf/fatfs/pf_path] section .text size 10636 match 100.0
|
||||
[libs/RevoEX/src/vf/fatfs/pf_path] baseline: code 10636/10636 data 64 functions 24 fuzzy 100.0000
|
||||
[libs/RevoEX/src/wd/WDScan] pool: IDENTICAL
|
||||
[libs/RevoEX/src/wd/WDScan] objdiff: code 2180/2180 data 16/16 functions 5/5 fuzzy 100.0000 linked code 2180
|
||||
[libs/RevoEX/src/wd/WDScan] instruction-exact functions: 5/5
|
||||
[libs/RevoEX/src/wd/WDScan] section .sdata size 8 match 100.0
|
||||
[libs/RevoEX/src/wd/WDScan] section .sdata2 size 8 match 100.0
|
||||
[libs/RevoEX/src/wd/WDScan] section .text size 2180 match 100.0
|
||||
[libs/RevoEX/src/wd/WDScan] baseline: code 2180/2180 data 16 functions 5 fuzzy 100.0000
|
||||
[libs/NW4R/src/snd/snd_WsdTrack] pool: IDENTICAL
|
||||
[libs/NW4R/src/snd/snd_WsdTrack] objdiff: code 2408/2408 data 40/40 functions 9/9 fuzzy 100.0000 linked code 2408
|
||||
[libs/NW4R/src/snd/snd_WsdTrack] instruction-exact functions: 9/9
|
||||
[libs/NW4R/src/snd/snd_WsdTrack] section .sdata2 size 40 match 100.0
|
||||
[libs/NW4R/src/snd/snd_WsdTrack] section .text size 2408 match 100.0
|
||||
[libs/NW4R/src/snd/snd_WsdTrack] baseline: code 2408/2408 data 40 functions 9 fuzzy 100.0000
|
||||
[libs/NW4R/src/ut/ut_ArchiveFont] pool: IDENTICAL
|
||||
[libs/NW4R/src/ut/ut_ArchiveFont] objdiff: code 2312/2312 data 144/144 functions 7/7 fuzzy 100.0000 linked code 2312
|
||||
[libs/NW4R/src/ut/ut_ArchiveFont] instruction-exact functions: 7/7
|
||||
[libs/NW4R/src/ut/ut_ArchiveFont] section .data size 144 match 100.0
|
||||
[libs/NW4R/src/ut/ut_ArchiveFont] section .text size 2312 match 100.0
|
||||
[libs/NW4R/src/ut/ut_ArchiveFont] baseline: code 2312/2312 data 144 functions 7 fuzzy 100.0000
|
||||
[libs/RVL_SDK/src/os/OS] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/os/OS] objdiff: code 5084/5084 data 1240/1240 functions 21/21 fuzzy 100.0000 linked code 5084
|
||||
[libs/RVL_SDK/src/os/OS] instruction-exact functions: 21/21
|
||||
[libs/RVL_SDK/src/os/OS] section .bss size 112 match 100.0
|
||||
[libs/RVL_SDK/src/os/OS] section .data size 1008 match 100.0
|
||||
[libs/RVL_SDK/src/os/OS] section .sbss size 72 match 100.0
|
||||
[libs/RVL_SDK/src/os/OS] section .sdata size 48 match 100.0
|
||||
[libs/RVL_SDK/src/os/OS] section .text size 5084 match 100.0
|
||||
[libs/RVL_SDK/src/os/OS] baseline: code 5084/5084 data 1240 functions 21 fuzzy 100.0000
|
||||
[libs/RVL_SDK/src/os/OSThread] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/os/OSThread] objdiff: code 8232/8232 data 4656/4656 functions 33/33 fuzzy 100.0000 linked code 8232
|
||||
[libs/RVL_SDK/src/os/OSThread] instruction-exact functions: 33/33
|
||||
[libs/RVL_SDK/src/os/OSThread] section .bss size 2568 match 100.0
|
||||
[libs/RVL_SDK/src/os/OSThread] section .data size 2064 match 100.0
|
||||
[libs/RVL_SDK/src/os/OSThread] section .sbss size 16 match 100.0
|
||||
[libs/RVL_SDK/src/os/OSThread] section .sdata size 8 match 100.0
|
||||
[libs/RVL_SDK/src/os/OSThread] section .text size 8232 match 100.0
|
||||
[libs/RVL_SDK/src/os/OSThread] baseline: code 8232/8232 data 4656 functions 33 fuzzy 100.0000
|
||||
[libs/RVL_SDK/src/vi/vi] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/vi/vi] objdiff: code 11296/11296 data 1944/1944 functions 30/30 fuzzy 100.0000 linked code 11296
|
||||
[libs/RVL_SDK/src/vi/vi] instruction-exact functions: 30/30
|
||||
[libs/RVL_SDK/src/vi/vi] section .bss size 368 match 100.0
|
||||
[libs/RVL_SDK/src/vi/vi] section .data size 1368 match 100.0
|
||||
[libs/RVL_SDK/src/vi/vi] section .sbss size 176 match 100.0
|
||||
[libs/RVL_SDK/src/vi/vi] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/vi/vi] section .text size 11296 match 100.0
|
||||
[libs/RVL_SDK/src/vi/vi] baseline: code 11296/11296 data 1944 functions 30 fuzzy 100.0000
|
||||
[libs/RVL_SDK/src/dvd/dvd] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/dvd/dvd] objdiff: code 21692/21692 data 20688/20688 functions 65/65 fuzzy 100.0000 linked code 21692
|
||||
[libs/RVL_SDK/src/dvd/dvd] instruction-exact functions: 65/65
|
||||
[libs/RVL_SDK/src/dvd/dvd] section .bss size 19632 match 100.0
|
||||
[libs/RVL_SDK/src/dvd/dvd] section .data size 880 match 100.0
|
||||
[libs/RVL_SDK/src/dvd/dvd] section .sbss size 152 match 100.0
|
||||
[libs/RVL_SDK/src/dvd/dvd] section .sdata size 24 match 100.0
|
||||
[libs/RVL_SDK/src/dvd/dvd] section .text size 21692 match 100.0
|
||||
[libs/RVL_SDK/src/dvd/dvd] baseline: code 21692/21692 data 20688 functions 65 fuzzy 100.0000
|
||||
[libs/RVL_SDK/src/dvd/dvd_broadway] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/dvd/dvd_broadway] objdiff: code 8900/8900 data 4248/4248 functions 30/30 fuzzy 100.0000 linked code 8900
|
||||
[libs/RVL_SDK/src/dvd/dvd_broadway] instruction-exact functions: 30/30
|
||||
[libs/RVL_SDK/src/dvd/dvd_broadway] section .bss size 416 match 100.0
|
||||
[libs/RVL_SDK/src/dvd/dvd_broadway] section .data size 3776 match 100.0
|
||||
[libs/RVL_SDK/src/dvd/dvd_broadway] section .sbss size 40 match 100.0
|
||||
[libs/RVL_SDK/src/dvd/dvd_broadway] section .sdata size 16 match 100.0
|
||||
[libs/RVL_SDK/src/dvd/dvd_broadway] section .text size 8900 match 100.0
|
||||
[libs/RVL_SDK/src/dvd/dvd_broadway] baseline: code 8900/8900 data 4248 functions 30 fuzzy 100.0000
|
||||
[libs/RVL_SDK/src/card/CARDWrite] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/card/CARDWrite] objdiff: code 828/828 data None/None functions 3/3 fuzzy 100.0000 linked code 828
|
||||
[libs/RVL_SDK/src/card/CARDWrite] instruction-exact functions: 3/3
|
||||
[libs/RVL_SDK/src/card/CARDWrite] section .text size 828 match 100.0
|
||||
[libs/RVL_SDK/src/card/CARDWrite] baseline: code 828/828 data None functions 3 fuzzy 100.0000
|
||||
[libs/RVL_SDK/src/nand/NANDCore] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/nand/NANDCore] objdiff: code 4472/4472 data 800/800 functions 26/26 fuzzy 100.0000 linked code 4472
|
||||
[libs/RVL_SDK/src/nand/NANDCore] instruction-exact functions: 26/26
|
||||
[libs/RVL_SDK/src/nand/NANDCore] section .bss size 96 match 100.0
|
||||
[libs/RVL_SDK/src/nand/NANDCore] section .data size 336 match 100.0
|
||||
[libs/RVL_SDK/src/nand/NANDCore] section .rodata size 328 match 100.0
|
||||
[libs/RVL_SDK/src/nand/NANDCore] section .sbss size 8 match 100.0
|
||||
[libs/RVL_SDK/src/nand/NANDCore] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/nand/NANDCore] section .text size 4472 match 100.0
|
||||
[libs/RVL_SDK/src/nand/NANDCore] baseline: code 4472/4472 data 800 functions 26 fuzzy 100.0000
|
||||
[libs/RVL_SDK/src/wpad/WPADEncrypt] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/wpad/WPADEncrypt] objdiff: code 4264/4264 data 4912/4912 functions 3/3 fuzzy 100.0000 linked code 4264
|
||||
[libs/RVL_SDK/src/wpad/WPADEncrypt] instruction-exact functions: 3/3
|
||||
[libs/RVL_SDK/src/wpad/WPADEncrypt] section .data size 4904 match 100.0
|
||||
[libs/RVL_SDK/src/wpad/WPADEncrypt] section .sbss size 8 match 100.0
|
||||
[libs/RVL_SDK/src/wpad/WPADEncrypt] section .text size 4264 match 100.0
|
||||
[libs/RVL_SDK/src/wpad/WPADEncrypt] baseline: code 4264/4264 data 4912 functions 3 fuzzy 100.0000
|
||||
[libs/RVL_SDK/src/rso/RSOLink] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/rso/RSOLink] objdiff: code 5604/5604 data 288/288 functions 16/16 fuzzy 100.0000 linked code 5604
|
||||
[libs/RVL_SDK/src/rso/RSOLink] instruction-exact functions: 16/16
|
||||
[libs/RVL_SDK/src/rso/RSOLink] section .data size 280 match 100.0
|
||||
[libs/RVL_SDK/src/rso/RSOLink] section .sbss size 8 match 100.0
|
||||
[libs/RVL_SDK/src/rso/RSOLink] section .text size 5604 match 100.0
|
||||
[libs/RVL_SDK/src/rso/RSOLink] baseline: code 5604/5604 data 288 functions 16 fuzzy 100.0000
|
||||
[libs/RVL_SDK/src/es/es] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/es/es] objdiff: code 7572/7572 data 16/16 functions 45/45 fuzzy 100.0000 linked code 7572
|
||||
[libs/RVL_SDK/src/es/es] instruction-exact functions: 45/45
|
||||
[libs/RVL_SDK/src/es/es] section .sdata size 16 match 100.0
|
||||
[libs/RVL_SDK/src/es/es] section .text size 7572 match 100.0
|
||||
[libs/RVL_SDK/src/es/es] baseline: code 7572/7572 data 16 functions 45 fuzzy 100.0000
|
||||
[libs/RVL_SDK/src/wad/wad] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/wad/wad] objdiff: code 24500/24500 data 528/528 functions 40/40 fuzzy 100.0000 linked code 24500
|
||||
[libs/RVL_SDK/src/wad/wad] instruction-exact functions: 40/40
|
||||
[libs/RVL_SDK/src/wad/wad] section .data size 464 match 100.0
|
||||
[libs/RVL_SDK/src/wad/wad] section .sdata size 64 match 100.0
|
||||
[libs/RVL_SDK/src/wad/wad] section .text size 24500 match 100.0
|
||||
[libs/RVL_SDK/src/wad/wad] baseline: code 24500/24500 data 528 functions 40 fuzzy 100.0000
|
||||
[libs/MSL/src/MSL_Common/alloc] pool: IDENTICAL
|
||||
[libs/MSL/src/MSL_Common/alloc] objdiff: code 5176/5176 data 288/288 functions 13/13 fuzzy 100.0000 linked code 5176
|
||||
[libs/MSL/src/MSL_Common/alloc] instruction-exact functions: 13/13
|
||||
[libs/MSL/src/MSL_Common/alloc] section .bss size 56 match 100.0
|
||||
[libs/MSL/src/MSL_Common/alloc] section .rodata size 24 match 100.0
|
||||
[libs/MSL/src/MSL_Common/alloc] section .sbss size 8 match 100.0
|
||||
[libs/MSL/src/MSL_Common/alloc] section .text size 5176 match 100.0
|
||||
[libs/MSL/src/MSL_Common/alloc] section extab size 80 match 100.0
|
||||
[libs/MSL/src/MSL_Common/alloc] section extabindex size 120 match 100.0
|
||||
[libs/MSL/src/MSL_Common/alloc] baseline: code 5176/5176 data 288 functions 13 fuzzy 100.0000
|
||||
[libs/MSL/src/MSL_Common/scanf] pool: IDENTICAL
|
||||
[libs/MSL/src/MSL_Common/scanf] objdiff: code 5484/5484 data 388/388 functions 4/4 fuzzy 100.0000 linked code 5484
|
||||
[libs/MSL/src/MSL_Common/scanf] instruction-exact functions: 4/4
|
||||
[libs/MSL/src/MSL_Common/scanf] section .data size 288 match 100.0
|
||||
[libs/MSL/src/MSL_Common/scanf] section .rodata size 40 match 100.0
|
||||
[libs/MSL/src/MSL_Common/scanf] section .text size 5484 match 100.0
|
||||
[libs/MSL/src/MSL_Common/scanf] section extab size 24 match 100.0
|
||||
[libs/MSL/src/MSL_Common/scanf] section extabindex size 36 match 100.0
|
||||
[libs/MSL/src/MSL_Common/scanf] baseline: code 5484/5484 data 388 functions 4 fuzzy 100.0000
|
||||
[libs/MSL/src/MSL_Common/wmem] pool: IDENTICAL
|
||||
[libs/MSL/src/MSL_Common/wmem] objdiff: code 144/144 data None/None functions 3/3 fuzzy 100.0000 linked code 144
|
||||
[libs/MSL/src/MSL_Common/wmem] instruction-exact functions: 3/3
|
||||
[libs/MSL/src/MSL_Common/wmem] section .text size 144 match 100.0
|
||||
[libs/MSL/src/MSL_Common/wmem] baseline: code 144/144 data None functions 3 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 94.31032 -> 94.31032
|
||||
global fuzzy_match_percent: 99.82008 -> 99.82008
|
||||
global complete_code_percent: 80.92587 -> 80.92587
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
@@ -1,353 +0,0 @@
|
||||
trial baseline_location category decision source_change code_bytes_before_after data_bytes_before_after function_score_changes ELF_sections_changed pool_target_identical pool_baseline_identical
|
||||
board-carrier-declared src/scene/board/iplBoard.cpp:432 targeted source cleanup restored - struct RecordReadState { | - BOOL recordInterrupts; | - u32 dataSize; | - BOOL waitInterrupts; | - BOOL slotInterrupts; | - int recordSecond; | - int recordMin; | - int recordHour; | - u32 recordGC; | - CDBId cdbId; | - char recordType[8]; | - utility::Date recordDate; | - CDBRecordKey recordKey; | - } state; | - state.recordGC = 0; | + BOOL recordInterrupts; | + u32 dataSize; | + BOOL waitInterrupts; | + BOOL slotInterrupts; | + int recordSecond; | + int recordMin; | + int recordHour; | + u32 recordGC; | + CDBId cdbId; | + char recordType[8]; | + utility::Date recordDate; | + CDBRecordKey recordKey; | + recordGC = 0; | - state.recordType[0] = 0; | - state.recordType[1] = 0; | - state.recordType[2] = 0; | - state.recordType[3] = 0; | - state.recordType[4] = 0; | - state.recordType[5] = 0; | - state.recordType[6] = 0; | - state.recordType[7] = 0; | + recordType[0] = 0; | + recordType[1] = 0; | + recordType[2] = 0; | + recordType[3] = 0; | + recordType[4] = 0; | + recordType[5] = 0; | + recordType[6] = 0; | + recordType[7] = 0; | - CDBRecordGetCalendarTimeForce(record, &state.recordDate.year, &state.recordDate.month, &state.recordDate.day, | - &state.recordHour, &state.recordMin, &state.recordSecond); | - CDBRecordGetKeyForce(record, &state.recordKey); | - CDBRecordGetTypeForce(record, state.recordType); | - CDBRecordGetGameCodeForce(record, (char*)&state.recordGC); | + CDBReco [see trial candidate in /tmp/rx56/trials] 20276 -> 19144 896 -> 896 appendRecord__Q33ipl5scene5BoardFP10_CDBRecord 100% -> 97.678444% .strtab, .text True True
|
||||
board-carrier-reversed src/scene/board/iplBoard.cpp:432 targeted source cleanup restored - struct RecordReadState { | - BOOL recordInterrupts; | - u32 dataSize; | - BOOL waitInterrupts; | - BOOL slotInterrupts; | - int recordSecond; | - int recordMin; | - int recordHour; | - u32 recordGC; | - CDBId cdbId; | - char recordType[8]; | - utility::Date recordDate; | - CDBRecordKey recordKey; | - } state; | - state.recordGC = 0; | + CDBRecordKey recordKey; | + utility::Date recordDate; | + char recordType[8]; | + CDBId cdbId; | + u32 recordGC; | + int recordHour; | + int recordMin; | + int recordSecond; | + BOOL slotInterrupts; | + BOOL waitInterrupts; | + u32 dataSize; | + BOOL recordInterrupts; | + recordGC = 0; | - state.recordType[0] = 0; | - state.recordType[1] = 0; | - state.recordType[2] = 0; | - state.recordType[3] = 0; | - state.recordType[4] = 0; | - state.recordType[5] = 0; | - state.recordType[6] = 0; | - state.recordType[7] = 0; | + recordType[0] = 0; | + recordType[1] = 0; | + recordType[2] = 0; | + recordType[3] = 0; | + recordType[4] = 0; | + recordType[5] = 0; | + recordType[6] = 0; | + recordType[7] = 0; | - CDBRecordGetCalendarTimeForce(record, &state.recordDate.year, &state.recordDate.month, &state.recordDate.day, | - &state.recordHour, &state.recordMin, &state.recordSecond); | - CDBRecordGetKeyForce(record, &state.recordKey); | - CDBRecordGetTypeForce(record, state.recordType); | - CDBRecordGetGameCodeForce(record, (char*)&state.recordGC); | + CDBReco [see trial candidate in /tmp/rx56/trials] 20276 -> 19144 896 -> 896 appendRecord__Q33ipl5scene5BoardFP10_CDBRecord 100% -> 97.837456% .strtab, .text True True
|
||||
aoss-integrity-declared src/scene/setting/AOSS.c:1854 targeted source cleanup restored - struct { u32 expected; u32 actual; } integrity; | + u32 expectedChecksum; | + u32 actualChecksum; | - integrity.expected = message->checksum; | + expectedChecksum = message->checksum; | - integrity.actual = 0xffffffff; | + actualChecksum = 0xffffffff; | - integrity.actual = (integrity.actual >> 8) ^ s_crcTable[(integrity.actual ^ decryptedData[crcIndex]) & 0xff]; | + actualChecksum = (actualChecksum >> 8) ^ s_crcTable[(actualChecksum ^ decryptedData[crcIndex]) & 0xff]; | - if (((integrity.actual ^ 0xffffffff) & 0xff) != integrity.expected) { | + if (((actualChecksum ^ 0xffffffff) & 0xff) != expectedChecksum) { 7720 -> 6436 3928 -> 3928 AOSSDecryptMessage 100% -> 99.75078% .strtab, .text True True
|
||||
aoss-integrity-reversed src/scene/setting/AOSS.c:1854 targeted source cleanup restored - struct { u32 expected; u32 actual; } integrity; | + u32 actualChecksum; | + u32 expectedChecksum; | - integrity.expected = message->checksum; | + expectedChecksum = message->checksum; | - integrity.actual = 0xffffffff; | + actualChecksum = 0xffffffff; | - integrity.actual = (integrity.actual >> 8) ^ s_crcTable[(integrity.actual ^ decryptedData[crcIndex]) & 0xff]; | + actualChecksum = (actualChecksum >> 8) ^ s_crcTable[(actualChecksum ^ decryptedData[crcIndex]) & 0xff]; | - if (((integrity.actual ^ 0xffffffff) & 0xff) != integrity.expected) { | + if (((actualChecksum ^ 0xffffffff) & 0xff) != expectedChecksum) { 7720 -> 6436 3928 -> 3928 AOSSDecryptMessage 100% -> 99.75078% .strtab, .text True True
|
||||
aoss-construction-declared src/scene/setting/AOSS.c:2330 targeted source cleanup restored - struct { | - AOSSSocketAddress destination; | - AOSSHelloRecord hello; | - u8 accessPointName[8]; | - AOSSKeySchedule schedule; | - } construction; | + AOSSSocketAddress destination; | + AOSSHelloRecord hello; | + u8 accessPointName[8]; | + AOSSKeySchedule schedule; | - memset(&construction.hello, 0, sizeof(construction.hello)); | + memset(&hello, 0, sizeof(hello)); | - 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); | - checksum = (checksum >> 8) ^ crcTable[(checksum ^ construction.hello.data.bytes[part * 2 + index]) & 0xff]; | + checksum = (checksum >> 8) ^ crcTable[(checksum ^ hello.data.bytes[part * 2 + index]) & 0xff]; | - construction.schedule.bytes = (u8*)AOSSi_Alloc(8); | - if (construction.schedule.bytes != 0) { | + schedule.bytes = (u8*)AOSSi_Alloc(8); | + if (schedule.bytes != 0) { | - AOSSInitKeySchedule(&construction.schedule, (const u8*)&s_pack [see trial candidate in /tmp/rx56/trials] 7720 -> 7720 3928 -> 3928 AOSSSendHelloRequest 92.48351% -> 91.69231% .strtab, .text True True
|
||||
aoss-construction-reversed src/scene/setting/AOSS.c:2330 targeted source cleanup restored - struct { | - AOSSSocketAddress destination; | - AOSSHelloRecord hello; | - u8 accessPointName[8]; | - AOSSKeySchedule schedule; | - } construction; | + AOSSKeySchedule schedule; | + u8 accessPointName[8]; | + AOSSHelloRecord hello; | + AOSSSocketAddress destination; | - memset(&construction.hello, 0, sizeof(construction.hello)); | + memset(&hello, 0, sizeof(hello)); | - 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); | - checksum = (checksum >> 8) ^ crcTable[(checksum ^ construction.hello.data.bytes[part * 2 + index]) & 0xff]; | + checksum = (checksum >> 8) ^ crcTable[(checksum ^ hello.data.bytes[part * 2 + index]) & 0xff]; | - construction.schedule.bytes = (u8*)AOSSi_Alloc(8); | - if (construction.schedule.bytes != 0) { | + schedule.bytes = (u8*)AOSSi_Alloc(8); | + if (schedule.bytes != 0) { | - AOSSInitKeySchedule(&construction.schedule, (const u8*)&s_pack [see trial candidate in /tmp/rx56/trials] 7720 -> 7720 3928 -> 3928 AOSSSendHelloRequest 92.48351% -> 91.72527% .strtab, .text True True
|
||||
cdb-decoded-declared libs/RevoEX/src/cdb/CDBDatabase.c:353 targeted source cleanup restored - struct { | - u16 makerCode; | - u32 gameCode; | - CDBDate date; | - char type[8]; | - } decoded; | - CDBConvKeyStrToEpochValue(key, &decoded.date); | - if (conditions->beginDate > decoded.date || decoded.date > conditions->endDate) return CDB_ERROR_OK; | + u16 makerCode; | + u32 gameCode; | + CDBDate date; | + char type[8]; | + CDBConvKeyStrToEpochValue(key, &date); | + if (conditions->beginDate > date || date > conditions->endDate) return CDB_ERROR_OK; | - CDBConvKeyStrToMakerCode(key, (u32*)&decoded.makerCode); | - if (conditions->makerCode != decoded.makerCode) return CDB_ERROR_OK; | + CDBConvKeyStrToMakerCode(key, (u32*)&makerCode); | + if (conditions->makerCode != makerCode) return CDB_ERROR_OK; | - CDBConvKeyStrToGameCode(key, &decoded.gameCode); | - if (conditions->gameCode != decoded.gameCode) return CDB_ERROR_OK; | + CDBConvKeyStrToGameCode(key, &gameCode); | + if (conditions->gameCode != gameCode) return CDB_ERROR_OK; | - CDBConvKeyStrToType(key, decoded.type); | - if (CDBCompareTypeStr(conditions->type, decoded.type)) return CDB_ERROR_OK; | + CDBConvKeyStrToType(key, type); | + if (CDBCompareTypeStr(conditions->type, type)) return CDB_ERROR_OK; 12152 -> 11896 312 -> 312 CDBDatabaseSearchConditionsIsMatch 100% -> 99.90625% .text True True
|
||||
cdb-decoded-reversed libs/RevoEX/src/cdb/CDBDatabase.c:353 targeted source cleanup restored - struct { | - u16 makerCode; | - u32 gameCode; | - CDBDate date; | - char type[8]; | - } decoded; | - CDBConvKeyStrToEpochValue(key, &decoded.date); | - if (conditions->beginDate > decoded.date || decoded.date > conditions->endDate) return CDB_ERROR_OK; | + char type[8]; | + CDBDate date; | + u32 gameCode; | + u16 makerCode; | + CDBConvKeyStrToEpochValue(key, &date); | + if (conditions->beginDate > date || date > conditions->endDate) return CDB_ERROR_OK; | - CDBConvKeyStrToMakerCode(key, (u32*)&decoded.makerCode); | - if (conditions->makerCode != decoded.makerCode) return CDB_ERROR_OK; | + CDBConvKeyStrToMakerCode(key, (u32*)&makerCode); | + if (conditions->makerCode != makerCode) return CDB_ERROR_OK; | - CDBConvKeyStrToGameCode(key, &decoded.gameCode); | - if (conditions->gameCode != decoded.gameCode) return CDB_ERROR_OK; | + CDBConvKeyStrToGameCode(key, &gameCode); | + if (conditions->gameCode != gameCode) return CDB_ERROR_OK; | - CDBConvKeyStrToType(key, decoded.type); | - if (CDBCompareTypeStr(conditions->type, decoded.type)) return CDB_ERROR_OK; | + CDBConvKeyStrToType(key, type); | + if (CDBCompareTypeStr(conditions->type, type)) return CDB_ERROR_OK; 12152 -> 11896 312 -> 312 CDBDatabaseSearchConditionsIsMatch 100% -> 99.96875% .text True True
|
||||
cdb-key-strings-declared libs/RevoEX/src/cdb/CDBRecordKey.c:32 targeted source cleanup restored "- struct { | - char mcStr[4]; | - char typeStr[8]; | - char gcStr[8]; | - } strings; | + char mcStr[4]; | + char typeStr[8]; | + char gcStr[8]; | - CDBConvMCValueToMCStr(makerCode, strings.mcStr); | - CDBConvGCValueToGCStr(gameCode, strings.gcStr); | + CDBConvMCValueToMCStr(makerCode, mcStr); | + CDBConvGCValueToGCStr(gameCode, gcStr); | - strcpy(strings.typeStr, fileType); | - CDBToLower(((char*)strings.typeStr), typeLength); | + strcpy(typeStr, fileType); | + CDBToLower(((char*)typeStr), typeLength); | - sprintf(recordKey->keyString, ""%010u_%s_%s_%03d.%s"", epoch, strings.gcStr, strings.mcStr, serialNumber, strings.typeStr); | + sprintf(recordKey->keyString, ""%010u_%s_%s_%03d.%s"", epoch, gcStr, mcStr, serialNumber, typeStr);" 2424 -> 2164 64 -> 64 CDBRecordKeyInit 100% -> 99.92308% .strtab, .text True True
|
||||
cdb-key-strings-reversed libs/RevoEX/src/cdb/CDBRecordKey.c:32 targeted source cleanup restored "- struct { | - char mcStr[4]; | - char typeStr[8]; | - char gcStr[8]; | - } strings; | + char gcStr[8]; | + char typeStr[8]; | + char mcStr[4]; | - CDBConvMCValueToMCStr(makerCode, strings.mcStr); | - CDBConvGCValueToGCStr(gameCode, strings.gcStr); | + CDBConvMCValueToMCStr(makerCode, mcStr); | + CDBConvGCValueToGCStr(gameCode, gcStr); | - strcpy(strings.typeStr, fileType); | - CDBToLower(((char*)strings.typeStr), typeLength); | + strcpy(typeStr, fileType); | + CDBToLower(((char*)typeStr), typeLength); | - sprintf(recordKey->keyString, ""%010u_%s_%s_%03d.%s"", epoch, strings.gcStr, strings.mcStr, serialNumber, strings.typeStr); | + sprintf(recordKey->keyString, ""%010u_%s_%s_%03d.%s"", epoch, gcStr, mcStr, serialNumber, typeStr);" 2424 -> 2164 64 -> 64 CDBRecordKeyInit 100% -> 99.92308% .strtab, .text True True
|
||||
mbox-carrier-declared libs/RevoEX/src/nwc24/NWC24MBoxCtrl.c:564 targeted source cleanup restored - struct { | - volatile u32 oldestId; | - MBCHeader* header; | - } mailbox; | + volatile u32 oldestId; | + MBCHeader* header; | - err = GetCachedMBCHeader(type, &mailbox.header); | + err = GetCachedMBCHeader(type, &header); | - if (mailbox.header->numMessages >= mailbox.header->capacity) | + if (header->numMessages >= header->capacity) | - if (mailbox.header->freeBytes <= required) | + if (header->freeBytes <= required) | - while (mailbox.header->numMessages >= mailbox.header->capacity || mailbox.header->freeBytes <= required) { | - GetOldestMsgId(mailbox.header, &mailbox.oldestId); | - err = DeleteMsg(type, mailbox.oldestId, FALSE); | + while (header->numMessages >= header->capacity || header->freeBytes <= required) { | + GetOldestMsgId(header, &oldestId); | + err = DeleteMsg(type, oldestId, FALSE); | - err = GetCachedMBCHeader(type, &mailbox.header); | + err = GetCachedMBCHeader(type, &header); 10604 -> 10332 192 -> 192 NWC24iMBoxCheck 100% -> 99.911766% .strtab, .text True True
|
||||
mbox-carrier-reversed libs/RevoEX/src/nwc24/NWC24MBoxCtrl.c:564 targeted source cleanup restored - struct { | - volatile u32 oldestId; | - MBCHeader* header; | - } mailbox; | + MBCHeader* header; | + volatile u32 oldestId; | - err = GetCachedMBCHeader(type, &mailbox.header); | + err = GetCachedMBCHeader(type, &header); | - if (mailbox.header->numMessages >= mailbox.header->capacity) | + if (header->numMessages >= header->capacity) | - if (mailbox.header->freeBytes <= required) | + if (header->freeBytes <= required) | - while (mailbox.header->numMessages >= mailbox.header->capacity || mailbox.header->freeBytes <= required) { | - GetOldestMsgId(mailbox.header, &mailbox.oldestId); | - err = DeleteMsg(type, mailbox.oldestId, FALSE); | + while (header->numMessages >= header->capacity || header->freeBytes <= required) { | + GetOldestMsgId(header, &oldestId); | + err = DeleteMsg(type, oldestId, FALSE); | - err = GetCachedMBCHeader(type, &mailbox.header); | + err = GetCachedMBCHeader(type, &header); 10604 -> 10604 192 -> 192 .strtab True True
|
||||
ncd-union-separate libs/RevoEX/src/ncd/ncdsystem.c:55 targeted source cleanup restored - union { | - BOOL enabled; | - NCDConfig* config; | - } state; | + BOOL enabled; | + NCDConfig* config; | - state.enabled = OSDisableInterrupts(); | + enabled = OSDisableInterrupts(); | - OSRestoreInterrupts(state.enabled); | + OSRestoreInterrupts(enabled); | - state.config = ncdCommonBuffer; | + config = ncdCommonBuffer; | - state.config->selectedMedia = 0; | + config->selectedMedia = 0; | - state.config->selectedMedia = ifConfig->selectedMedia; | - profile = state.config->profiles; | + config->selectedMedia = ifConfig->selectedMedia; | + profile = config->profiles; | - state.config->linkTimeout = ifConfig->linkTimeout; | + config->linkTimeout = ifConfig->linkTimeout; | - if (state.config->profiles[i].flags & 0x80) { | + if (config->profiles[i].flags & 0x80) { | - state.config->profiles[i].flags &= ~1; | + config->profiles[i].flags &= ~1; | - state.config->profiles[i].flags |= 1; | + config->profiles[i].flags |= 1; | - state.config->profiles[0].flags |= 0x80; | + config->profiles[0].flags |= 0x80; | - state.config->profiles[0].flags &= ~1; | - memcpy(&state.config->profiles[0].netif.wireless, &ifConfig->netif, 0x15c); | + config->profiles[0].flags &= ~1; | + memcpy(&config->profiles[0].netif.wireless, &ifConfig->netif, 0x15c); | - state.config->profiles[0].flags |= 1; | - memcpy(&state.config->profiles[0].netif.wired, &ifConfig->netif, 4); | + config->profiles[0].flags |= 1; [see trial candidate in /tmp/rx56/trials] 4180 -> 3560 496 -> 496 NCDSetIfConfig 100% -> 99.935486% .strtab, .text True True
|
||||
ncd-union-reverse libs/RevoEX/src/ncd/ncdsystem.c:55 targeted source cleanup restored - union { | - BOOL enabled; | - NCDConfig* config; | - } state; | + NCDConfig* config; | + BOOL enabled; | - state.enabled = OSDisableInterrupts(); | + enabled = OSDisableInterrupts(); | - OSRestoreInterrupts(state.enabled); | + OSRestoreInterrupts(enabled); | - state.config = ncdCommonBuffer; | + config = ncdCommonBuffer; | - state.config->selectedMedia = 0; | + config->selectedMedia = 0; | - state.config->selectedMedia = ifConfig->selectedMedia; | - profile = state.config->profiles; | + config->selectedMedia = ifConfig->selectedMedia; | + profile = config->profiles; | - state.config->linkTimeout = ifConfig->linkTimeout; | + config->linkTimeout = ifConfig->linkTimeout; | - if (state.config->profiles[i].flags & 0x80) { | + if (config->profiles[i].flags & 0x80) { | - state.config->profiles[i].flags &= ~1; | + config->profiles[i].flags &= ~1; | - state.config->profiles[i].flags |= 1; | + config->profiles[i].flags |= 1; | - state.config->profiles[0].flags |= 0x80; | + config->profiles[0].flags |= 0x80; | - state.config->profiles[0].flags &= ~1; | - memcpy(&state.config->profiles[0].netif.wireless, &ifConfig->netif, 0x15c); | + config->profiles[0].flags &= ~1; | + memcpy(&config->profiles[0].netif.wireless, &ifConfig->netif, 0x15c); | - state.config->profiles[0].flags |= 1; | - memcpy(&state.config->profiles[0].netif.wired, &ifConfig->netif, 4); | + config->profiles[0].flags |= 1; [see trial candidate in /tmp/rx56/trials] 4180 -> 3560 496 -> 496 NCDSetIfConfig 100% -> 99.935486% .strtab, .text True True
|
||||
browser-unused src/iplwww/www_window.cpp:52 targeted source cleanup restored - struct { | - int v0, v1; | - } unused = {0, 0}; 3392 -> 3128 1264 -> 1264 __ct__Q37ext_ead3www13BrowserWindowFPQ37ext_ead3www13BrowserThread 100% -> 96.969696% .rela.text, .strtab, .symtab, .text True True
|
||||
nhttp-token-carrier libs/RevoEX/src/nhttp/NHTTP_thread.c:989 targeted source cleanup restored - struct TokenMatch { | - BOOL matched; | - }; | - struct TokenMatch match = {FALSE}; | + BOOL matched = FALSE; | - match.matched = TRUE; | - context->keepAlive = match.matched; | + matched = TRUE; | + context->keepAlive = matched; | - else context->keepAlive = match.matched; | + else context->keepAlive = matched; 11292 -> 10528 504 -> 504 NHTTPi_ThreadParseHeaderProc 100% -> 98.58639% .rela.text, .strtab, .text True True
|
||||
casts-0 libs/MSL/src/MSL_Common/mbstring.c:45 cast candidate compile rejected - src_ptr = (char*)src; | + src_ptr = src; | - source = (wchar_t*)pwcs; | + source = pwcs; not measured not measured
|
||||
casts-0-single-0 libs/MSL/src/MSL_Common/mbstring.c:45 cast candidate compile rejected - src_ptr = (char*)src; | + src_ptr = src; not measured not measured
|
||||
casts-0-single-1 libs/MSL/src/MSL_Common/mbstring.c:79 cast candidate compile rejected - source = (wchar_t*)pwcs; | + source = pwcs; not measured not measured
|
||||
casts-1 libs/MSL/src/MSL_Common/scanf.c:745 cast candidate compile rejected - *(char*)arg_ptr = chars_read; | + *arg_ptr = chars_read; | - isc.NextChar = (char*)s; | + isc.NextChar = s; not measured not measured
|
||||
casts-1-single-0 libs/MSL/src/MSL_Common/scanf.c:745 cast candidate kept - *(char*)arg_ptr = chars_read; | + *arg_ptr = chars_read; 5484 -> 5484 388 -> 388 True True
|
||||
casts-1-single-1 libs/MSL/src/MSL_Common/scanf.c:802 cast candidate compile rejected - isc.NextChar = (char*)s; | + isc.NextChar = s; not measured not measured
|
||||
casts-2 libs/MSL/src/MSL_Common/string.c:370 cast candidate compile rejected - return ((char*)str); | + return (str); not measured not measured
|
||||
casts-3 libs/MSL/src/MSL_Common/strtold.c:643 cast candidate compile rejected - isc.NextChar = (char*)str; | + isc.NextChar = str; | - *end = (char*)str + count; | + *end = str + count; not measured not measured
|
||||
casts-3-single-0 libs/MSL/src/MSL_Common/strtold.c:643 cast candidate compile rejected - isc.NextChar = (char*)str; | + isc.NextChar = str; | - *end = (char*)str + count; | + *end = str + count; not measured not measured
|
||||
casts-3-single-1 libs/MSL/src/MSL_Common/strtold.c:643 cast candidate compile rejected - isc.NextChar = (char*)str; | + isc.NextChar = str; | - *end = (char*)str + count; | + *end = str + count; not measured not measured
|
||||
casts-4 libs/MSL/src/MSL_Common/strtoul.c:308 cast candidate compile rejected - isc.spNextChar = (char*)str; | + isc.spNextChar = str; | - *end = (char*)str + count; | + *end = str + count; | - isc.spNextChar = (char*)str; | + isc.spNextChar = str; | - *end = (char*)str + count; | + *end = str + count; | - isc.spNextChar = (char*)str; | + isc.spNextChar = str; | - *end = (char*)str + count; | + *end = str + count; not measured not measured
|
||||
casts-4-single-0 libs/MSL/src/MSL_Common/strtoul.c:308 cast candidate compile rejected - isc.spNextChar = (char*)str; | + isc.spNextChar = str; | - *end = (char*)str + count; | + *end = str + count; | - isc.spNextChar = (char*)str; | + isc.spNextChar = str; | - *end = (char*)str + count; | + *end = str + count; | - isc.spNextChar = (char*)str; | + isc.spNextChar = str; | - *end = (char*)str + count; | + *end = str + count; not measured not measured
|
||||
casts-4-single-1 libs/MSL/src/MSL_Common/strtoul.c:308 cast candidate compile rejected - isc.spNextChar = (char*)str; | + isc.spNextChar = str; | - *end = (char*)str + count; | + *end = str + count; | - isc.spNextChar = (char*)str; | + isc.spNextChar = str; | - *end = (char*)str + count; | + *end = str + count; | - isc.spNextChar = (char*)str; | + isc.spNextChar = str; | - *end = (char*)str + count; | + *end = str + count; not measured not measured
|
||||
casts-4-single-2 libs/MSL/src/MSL_Common/strtoul.c:308 cast candidate compile rejected - isc.spNextChar = (char*)str; | + isc.spNextChar = str; | - *end = (char*)str + count; | + *end = str + count; | - isc.spNextChar = (char*)str; | + isc.spNextChar = str; | - *end = (char*)str + count; | + *end = str + count; | - isc.spNextChar = (char*)str; | + isc.spNextChar = str; | - *end = (char*)str + count; | + *end = str + count; not measured not measured
|
||||
casts-4-single-3 libs/MSL/src/MSL_Common/strtoul.c:308 cast candidate compile rejected - isc.spNextChar = (char*)str; | + isc.spNextChar = str; | - *end = (char*)str + count; | + *end = str + count; | - isc.spNextChar = (char*)str; | + isc.spNextChar = str; | - *end = (char*)str + count; | + *end = str + count; | - isc.spNextChar = (char*)str; | + isc.spNextChar = str; | - *end = (char*)str + count; | + *end = str + count; not measured not measured
|
||||
casts-4-single-4 libs/MSL/src/MSL_Common/strtoul.c:308 cast candidate compile rejected - isc.spNextChar = (char*)str; | + isc.spNextChar = str; | - *end = (char*)str + count; | + *end = str + count; | - isc.spNextChar = (char*)str; | + isc.spNextChar = str; | - *end = (char*)str + count; | + *end = str + count; | - isc.spNextChar = (char*)str; | + isc.spNextChar = str; | - *end = (char*)str + count; | + *end = str + count; not measured not measured
|
||||
casts-4-single-5 libs/MSL/src/MSL_Common/strtoul.c:308 cast candidate compile rejected - isc.spNextChar = (char*)str; | + isc.spNextChar = str; | - *end = (char*)str + count; | + *end = str + count; | - isc.spNextChar = (char*)str; | + isc.spNextChar = str; | - *end = (char*)str + count; | + *end = str + count; | - isc.spNextChar = (char*)str; | + isc.spNextChar = str; | - *end = (char*)str + count; | + *end = str + count; not measured not measured
|
||||
casts-5 libs/MSL/src/MSL_Common/wmem.c:20 cast candidate kept - return (wchar_t*)ptr; | + return ptr; 144 -> 144 0 -> 0 True True
|
||||
casts-6 libs/MSL/src/MSL_Common/wprintf.c:987 cast candidate compile rejected - if (!(curr_format = wcschr((wchar_t*)format_ptr, L'%'))) { | + if (!(curr_format = wcschr(format_ptr, L'%'))) { not measured not measured
|
||||
casts-7 libs/MSL/src/MSL_Common/wstring.c:135 cast candidate compile rejected - return (wchar_t*)s1; | + return s1; | - return (wchar_t*)p1; | + return p1; not measured not measured
|
||||
casts-7-single-0 libs/MSL/src/MSL_Common/wstring.c:135 cast candidate compile rejected - return (wchar_t*)s1; | + return s1; not measured not measured
|
||||
casts-7-single-1 libs/MSL/src/MSL_Common/wstring.c:154 cast candidate compile rejected - return (wchar_t*)p1; | + return p1; not measured not measured
|
||||
casts-8 libs/NW4R/src/snd/snd_AxVoice.cpp:509 cast candidate compile rejected - mVoiceChannelParam[channelIndex].waveData = (void*)baseAddress; | + mVoiceChannelParam[channelIndex].waveData = baseAddress; not measured not measured
|
||||
casts-9 libs/NW4R/src/snd/snd_WsdTrack.cpp:31 cast candidate kept - mWsdData = (void*)wsdData; | + mWsdData = wsdData; 2408 -> 2408 40 -> 40 True True
|
||||
casts-10 libs/NW4R/src/ut/ut_ArchiveFont.cpp:80 cast candidate kept - dataSheets = (const u32*)((u32)dataSheetsOff + (u32)fontData); | - data0A = (const u32*)((u32)data0AOff + (u32)fontData); | - data0C = (const u32*)((u32)data0COff + (u32)fontData); | + dataSheets = (const u32*)(dataSheetsOff + (u32)fontData); | + data0A = (const u32*)(data0AOff + (u32)fontData); | + data0C = (const u32*)(data0COff + (u32)fontData); | - flagsSheets = (const u32*)((u32)flagsSheetsOff + (u32)fontData); | - flags0A = (const u32*)((u32)flags0AOff + (u32)fontData); | - flags0C = (const u32*)((u32)flags0COff + (u32)fontData); | + flagsSheets = (const u32*)(flagsSheetsOff + (u32)fontData); | + flags0A = (const u32*)(flags0AOff + (u32)fontData); | + flags0C = (const u32*)(flags0COff + (u32)fontData); | - flagWord |= *(const u32*)((const u8*)offsetFlags + ROUNDDOWN(j * stepSheets, 4)); | + flagWord |= *(const u32*)(offsetFlags + ROUNDDOWN(j * stepSheets, 4)); | - flagWord |= *(const u32*)((const u8*)offsetFlags + ROUNDDOWN(j * step0A, 4)); | + flagWord |= *(const u32*)(offsetFlags + ROUNDDOWN(j * step0A, 4)); | - offsetData = (const u32*)data0A + i * 32; | + offsetData = data0A + i * 32; | - flagWord |= *(const u32*)((const u8*)offsetFlags + ROUNDDOWN(j * step0C, 4)); | + flagWord |= *(const u32*)(offsetFlags + ROUNDDOWN(j * step0C, 4)); | - offsetData = (const u32*)data0C + i * 32; | + offsetData = data0C + i * 32; 2312 -> 2312 144 -> 144 True True
|
||||
casts-11 libs/RVLFaceLib/src/RFL_Database.c:358 cast candidate compile rejected - ((RFLiCharInfo*)src)->personal.localonly = TRUE; | + (src)->personal.localonly = TRUE; not measured not measured
|
||||
casts-12 libs/RVL_SDK/src/bte/bta_sys_main.c:93 cast candidate compile rejected - bta_sys_cb.reg[id] = (tBTA_SYS_REG *)p_reg; | + bta_sys_cb.reg[id] = p_reg; not measured not measured
|
||||
casts-13 libs/RVL_SDK/src/card/CARDWrite.c:97 cast candidate kept - DCStoreRange((void*)buf, (u32)length); | + DCStoreRange(buf, (u32)length); | - card->buffer = (void*)buf; | + card->buffer = buf; 828 -> 828 0 -> 0 True True
|
||||
casts-14 libs/RVL_SDK/src/dvd/dvd_broadway.c:382 cast candidate kept - ioVec[2].base = (u8*)certificates; | + ioVec[2].base = certificates; | - ioVec[3].base = (u8*)certificates; | + ioVec[3].base = certificates; 8900 -> 8900 4248 -> 4248 True True
|
||||
casts-15 libs/RVL_SDK/src/dvd/dvdfs.c:329 cast candidate restored - state = ((DVDCommandBlock*)block)->state; | + state = (block)->state; 3488 -> 3488 472 -> 472 .strtab True True
|
||||
casts-16 libs/RVL_SDK/src/es/es.c:1273 cast candidate kept - vec[1].base = (u8*)iv; | + vec[1].base = iv; | - vec[2].base = (u8*)input; | + vec[2].base = input; | - vec[3].base = (u8*)iv; | + vec[3].base = iv; | - vec[4].base = (u8*)output; | + vec[4].base = output; | - vec[1].base = (u8*)iv; | + vec[1].base = iv; | - vec[2].base = (u8*)input; | + vec[2].base = input; | - vec[3].base = (u8*)iv; | + vec[3].base = iv; | - vec[4].base = (u8*)output; | + vec[4].base = output; 7572 -> 7572 16 -> 16 True True
|
||||
casts-17 libs/RVL_SDK/src/euart/euart.c:104 cast candidate compile rejected - for (it = (char*)p; it - msg < n; it++) { | + for (it = p; it - msg < n; it++) { not measured not measured
|
||||
casts-18 libs/RVL_SDK/src/os/OSExec.c:473 cast candidate compile rejected - LaunchCommon(titleId, launchCode, (const char**)argv, FALSE); | + LaunchCommon(titleId, launchCode, argv, FALSE); | - LaunchCommon(EXEC_SYSTEM_MENU_ID, launchArg, (const char**)argv, FALSE); | + LaunchCommon(EXEC_SYSTEM_MENU_ID, launchArg, argv, FALSE); not measured not measured
|
||||
casts-18-single-0 libs/RVL_SDK/src/os/OSExec.c:473 cast candidate compile rejected - LaunchCommon(titleId, launchCode, (const char**)argv, FALSE); | + LaunchCommon(titleId, launchCode, argv, FALSE); | - LaunchCommon(EXEC_SYSTEM_MENU_ID, launchArg, (const char**)argv, FALSE); | + LaunchCommon(EXEC_SYSTEM_MENU_ID, launchArg, argv, FALSE); not measured not measured
|
||||
casts-18-single-1 libs/RVL_SDK/src/os/OSExec.c:473 cast candidate compile rejected - LaunchCommon(titleId, launchCode, (const char**)argv, FALSE); | + LaunchCommon(titleId, launchCode, argv, FALSE); | - LaunchCommon(EXEC_SYSTEM_MENU_ID, launchArg, (const char**)argv, FALSE); | + LaunchCommon(EXEC_SYSTEM_MENU_ID, launchArg, argv, FALSE); not measured not measured
|
||||
casts-19 libs/RVL_SDK/src/os/OSFont.c:385 cast candidate compile rejected - return (char*)string; | + return string; | - return (char*)string; | + return string; | - string = ParseString(encode, (char*)string, &font, &fontCode); | + string = ParseString(encode, string, &font, &fontCode); | - return (char*)string; | + return string; not measured not measured
|
||||
casts-19-single-0 libs/RVL_SDK/src/os/OSFont.c:385 cast candidate compile rejected - return (char*)string; | + return string; | - return (char*)string; | + return string; | - string = ParseString(encode, (char*)string, &font, &fontCode); | + string = ParseString(encode, string, &font, &fontCode); | - return (char*)string; | + return string; not measured not measured
|
||||
casts-19-single-1 libs/RVL_SDK/src/os/OSFont.c:385 cast candidate compile rejected - return (char*)string; | + return string; | - return (char*)string; | + return string; | - string = ParseString(encode, (char*)string, &font, &fontCode); | + string = ParseString(encode, string, &font, &fontCode); | - return (char*)string; | + return string; not measured not measured
|
||||
casts-19-single-2 libs/RVL_SDK/src/os/OSFont.c:385 cast candidate compile rejected - return (char*)string; | + return string; | - return (char*)string; | + return string; | - string = ParseString(encode, (char*)string, &font, &fontCode); | + string = ParseString(encode, string, &font, &fontCode); | - return (char*)string; | + return string; not measured not measured
|
||||
casts-19-single-3 libs/RVL_SDK/src/os/OSFont.c:385 cast candidate compile rejected - return (char*)string; | + return string; | - return (char*)string; | + return string; | - string = ParseString(encode, (char*)string, &font, &fontCode); | + string = ParseString(encode, string, &font, &fontCode); | - return (char*)string; | + return string; not measured not measured
|
||||
casts-20 libs/RVL_SDK/src/os/OSUtf.c:63 cast candidate compile rejected - return (char*)utf8; | + return utf8; | - return (u16*)utf16; | + return utf16; not measured not measured
|
||||
casts-20-single-0 libs/RVL_SDK/src/os/OSUtf.c:63 cast candidate compile rejected - return (char*)utf8; | + return utf8; not measured not measured
|
||||
casts-20-single-1 libs/RVL_SDK/src/os/OSUtf.c:92 cast candidate compile rejected - return (u16*)utf16; | + return utf16; not measured not measured
|
||||
casts-21 libs/RVL_SDK/src/rso/RSOLink.c:464 cast candidate compile rejected - RSORelocateSmallDataSection(rsoImp, i, (RSOObjectHeader*)rsoExp); | + RSORelocateSmallDataSection(rsoImp, i, rsoExp); | - if (((u32)x != 0) && (x != y)) { | + if ((x != 0) && (x != y)) { not measured not measured
|
||||
casts-21-single-0 libs/RVL_SDK/src/rso/RSOLink.c:464 cast candidate compile rejected - RSORelocateSmallDataSection(rsoImp, i, (RSOObjectHeader*)rsoExp); | + RSORelocateSmallDataSection(rsoImp, i, rsoExp); not measured not measured
|
||||
casts-21-single-1 libs/RVL_SDK/src/rso/RSOLink.c:744 cast candidate kept - if (((u32)x != 0) && (x != y)) { | + if ((x != 0) && (x != y)) { 5604 -> 5604 288 -> 288 True True
|
||||
casts-22 libs/RVL_SDK/src/usb/usb.c:347 cast candidate compile rejected - DCFlushRange((void*)buffer, length); | - return __IntrBlkMsgInt(fd, endpoint, length, (void*)buffer, USB_IOCTLV_BLKMSG, callback, callbackArg, TRUE); | + DCFlushRange(buffer, length); | + return __IntrBlkMsgInt(fd, endpoint, length, buffer, USB_IOCTLV_BLKMSG, callback, callbackArg, TRUE); not measured not measured
|
||||
casts-22-single-0 libs/RVL_SDK/src/usb/usb.c:347 cast candidate compile rejected - DCFlushRange((void*)buffer, length); | - return __IntrBlkMsgInt(fd, endpoint, length, (void*)buffer, USB_IOCTLV_BLKMSG, callback, callbackArg, TRUE); | + DCFlushRange(buffer, length); | + return __IntrBlkMsgInt(fd, endpoint, length, buffer, USB_IOCTLV_BLKMSG, callback, callbackArg, TRUE); not measured not measured
|
||||
casts-22-single-1 libs/RVL_SDK/src/usb/usb.c:347 cast candidate compile rejected - DCFlushRange((void*)buffer, length); | - return __IntrBlkMsgInt(fd, endpoint, length, (void*)buffer, USB_IOCTLV_BLKMSG, callback, callbackArg, TRUE); | + DCFlushRange(buffer, length); | + return __IntrBlkMsgInt(fd, endpoint, length, buffer, USB_IOCTLV_BLKMSG, callback, callbackArg, TRUE); not measured not measured
|
||||
casts-23 libs/RVL_SDK/src/vi/vi.c:1042 cast candidate kept - register54 = (u32)originalRegister54 & ~1; | + register54 = originalRegister54 & ~1; | - register54 = ((u32)originalRegister54 & ~1) | 1; | + register54 = (originalRegister54 & ~1) | 1; | - register54 = (u32)originalRegister54 & ~1; | + register54 = originalRegister54 & ~1; 11296 -> 11296 1944 -> 1944 True True
|
||||
casts-24 libs/RVL_SDK/src/wad/wad.c:2958 cast candidate kept - u8* tail = (u8*)words; | + u8* tail = words; 24500 -> 24500 528 -> 528 True True
|
||||
casts-25 libs/RVL_SDK/src/wenc/wenc.c:46 cast candidate compile rejected - pSrc = (s16*)pbyPcmData; | + pSrc = pbyPcmData; not measured not measured
|
||||
casts-26 libs/RVL_SDK/src/wpad/WPADEncrypt.c:399 cast candidate kept - buffer = (u8*)data; | + buffer = data; 4264 -> 4264 4912 -> 4912 True True
|
||||
casts-27 libs/RevoEX/src/cdb/CDBDatabase.c:329 cast candidate compile rejected - return CDBRecordCreateAtOnce(record, database, typeStr, (char*)fileTypeStr, date, gameCode, makerCode, recordData, recordDataSize); | + return CDBRecordCreateAtOnce(record, database, typeStr, fileTypeStr, date, gameCode, makerCode, recordData, recordDataSize); not measured not measured
|
||||
casts-28 libs/RevoEX/src/ncd/ncdsystem.c:51 cast candidate compile rejected "- return ExecConfigCommand(""NCDWriteConfig"", (NCDConfig*)config, 6); | + return ExecConfigCommand(""NCDWriteConfig"", config, 6);" not measured not measured
|
||||
casts-29 libs/RevoEX/src/nwc24/NWC24FileAPI.c:301 cast candidate compile rejected - result = VFWriteFile(file->vf, (void*)src, size); | + result = VFWriteFile(file->vf, src, size); not measured not measured
|
||||
casts-30 libs/RevoEX/src/nwc24/NWC24Mime.c:645 cast candidate kept - while ((s32)inputSize > 0 && remainingCapacity > 0 && *input != '\0') { | + while (inputSize > 0 && remainingCapacity > 0 && *input != '\0') { | - DecodeWord((char*)charsetData, charsetDataSize, (char*)output, remainingCapacity, &copiedSize, (char*)input, inputSize, &consumedSize); | + DecodeWord((char*)charsetData, charsetDataSize, (char*)output, remainingCapacity, &copiedSize, input, inputSize, &consumedSize); 6124 -> 6124 88 -> 88 True True
|
||||
casts-31 libs/RevoEX/src/nwc24/NWC24MsgCommit.c:723 cast candidate compile rejected - NWC24Base64Encode((u8*)data, chunk, (u8*)(buffer + offset), 76, &length); | + NWC24Base64Encode(data, chunk, (u8*)(buffer + offset), 76, &length); | - NWC24Base64Encode((u8*)data, chunk, (u8*)(buffer + offset), 76, &length); | + NWC24Base64Encode(data, chunk, (u8*)(buffer + offset), 76, &length); | - err = NWC24Base64Encode((u8*)cursor, 57, (u8*)buffer, 76, &length); | + err = NWC24Base64Encode(cursor, 57, (u8*)buffer, 76, &length); | - err = NWC24Base64Encode((u8*)cursor, size, (u8*)buffer, 76, &length); | + err = NWC24Base64Encode(cursor, size, (u8*)buffer, 76, &length); | - err = NWC24EncodeQuotedPrintable(buffer, 1024, &length, (u8*)cursor, remaining, &consumed); | + err = NWC24EncodeQuotedPrintable(buffer, 1024, &length, cursor, remaining, &consumed); not measured not measured
|
||||
casts-31-single-0 libs/RevoEX/src/nwc24/NWC24MsgCommit.c:723 cast candidate compile rejected - NWC24Base64Encode((u8*)data, chunk, (u8*)(buffer + offset), 76, &length); | + NWC24Base64Encode(data, chunk, (u8*)(buffer + offset), 76, &length); | - NWC24Base64Encode((u8*)data, chunk, (u8*)(buffer + offset), 76, &length); | + NWC24Base64Encode(data, chunk, (u8*)(buffer + offset), 76, &length); not measured not measured
|
||||
casts-31-single-1 libs/RevoEX/src/nwc24/NWC24MsgCommit.c:723 cast candidate compile rejected - NWC24Base64Encode((u8*)data, chunk, (u8*)(buffer + offset), 76, &length); | + NWC24Base64Encode(data, chunk, (u8*)(buffer + offset), 76, &length); | - NWC24Base64Encode((u8*)data, chunk, (u8*)(buffer + offset), 76, &length); | + NWC24Base64Encode(data, chunk, (u8*)(buffer + offset), 76, &length); not measured not measured
|
||||
casts-31-single-2 libs/RevoEX/src/nwc24/NWC24MsgCommit.c:871 cast candidate compile rejected - err = NWC24Base64Encode((u8*)cursor, 57, (u8*)buffer, 76, &length); | + err = NWC24Base64Encode(cursor, 57, (u8*)buffer, 76, &length); | - err = NWC24Base64Encode((u8*)cursor, size, (u8*)buffer, 76, &length); | + err = NWC24Base64Encode(cursor, size, (u8*)buffer, 76, &length); | - err = NWC24EncodeQuotedPrintable(buffer, 1024, &length, (u8*)cursor, remaining, &consumed); | + err = NWC24EncodeQuotedPrintable(buffer, 1024, &length, cursor, remaining, &consumed); not measured not measured
|
||||
casts-31-single-3 libs/RevoEX/src/nwc24/NWC24MsgCommit.c:871 cast candidate compile rejected - err = NWC24Base64Encode((u8*)cursor, 57, (u8*)buffer, 76, &length); | + err = NWC24Base64Encode(cursor, 57, (u8*)buffer, 76, &length); | - err = NWC24Base64Encode((u8*)cursor, size, (u8*)buffer, 76, &length); | + err = NWC24Base64Encode(cursor, size, (u8*)buffer, 76, &length); | - err = NWC24EncodeQuotedPrintable(buffer, 1024, &length, (u8*)cursor, remaining, &consumed); | + err = NWC24EncodeQuotedPrintable(buffer, 1024, &length, cursor, remaining, &consumed); not measured not measured
|
||||
casts-31-single-4 libs/RevoEX/src/nwc24/NWC24MsgCommit.c:871 cast candidate compile rejected - err = NWC24Base64Encode((u8*)cursor, 57, (u8*)buffer, 76, &length); | + err = NWC24Base64Encode(cursor, 57, (u8*)buffer, 76, &length); | - err = NWC24Base64Encode((u8*)cursor, size, (u8*)buffer, 76, &length); | + err = NWC24Base64Encode(cursor, size, (u8*)buffer, 76, &length); | - err = NWC24EncodeQuotedPrintable(buffer, 1024, &length, (u8*)cursor, remaining, &consumed); | + err = NWC24EncodeQuotedPrintable(buffer, 1024, &length, cursor, remaining, &consumed); not measured not measured
|
||||
casts-32 libs/RevoEX/src/nwc24/NWC24MsgSubject.c:860 cast candidate compile rejected - result = NWC24EncodeWord(second, secondSize, &outputLength, charsetName, 0x40, 'B', (u8*)encodedInput, workHalf - 1); | + result = NWC24EncodeWord(second, secondSize, &outputLength, charsetName, 0x40, 'B', encodedInput, workHalf - 1); | - result = NWC24EncodeWord(second + total, secondSize - total, &outputLength, charsetName, 0x40, 'B', (u8*)encodedInput, workHalf - 1); | + result = NWC24EncodeWord(second + total, secondSize - total, &outputLength, charsetName, 0x40, 'B', encodedInput, workHalf - 1); not measured not measured
|
||||
casts-32-single-0 libs/RevoEX/src/nwc24/NWC24MsgSubject.c:860 cast candidate compile rejected - result = NWC24EncodeWord(second, secondSize, &outputLength, charsetName, 0x40, 'B', (u8*)encodedInput, workHalf - 1); | + result = NWC24EncodeWord(second, secondSize, &outputLength, charsetName, 0x40, 'B', encodedInput, workHalf - 1); | - result = NWC24EncodeWord(second + total, secondSize - total, &outputLength, charsetName, 0x40, 'B', (u8*)encodedInput, workHalf - 1); | + result = NWC24EncodeWord(second + total, secondSize - total, &outputLength, charsetName, 0x40, 'B', encodedInput, workHalf - 1); not measured not measured
|
||||
casts-32-single-1 libs/RevoEX/src/nwc24/NWC24MsgSubject.c:860 cast candidate compile rejected - result = NWC24EncodeWord(second, secondSize, &outputLength, charsetName, 0x40, 'B', (u8*)encodedInput, workHalf - 1); | + result = NWC24EncodeWord(second, secondSize, &outputLength, charsetName, 0x40, 'B', encodedInput, workHalf - 1); | - result = NWC24EncodeWord(second + total, secondSize - total, &outputLength, charsetName, 0x40, 'B', (u8*)encodedInput, workHalf - 1); | + result = NWC24EncodeWord(second + total, secondSize - total, &outputLength, charsetName, 0x40, 'B', encodedInput, workHalf - 1); not measured not measured
|
||||
casts-33 libs/RevoEX/src/nwc24/NWC24Parser.c:212 cast candidate compile rejected - char* pStr2 = (char*)string2; | - char* pStr1 = (char*)string1; | + char* pStr2 = string2; | + char* pStr1 = string1; not measured not measured
|
||||
casts-33-single-0 libs/RevoEX/src/nwc24/NWC24Parser.c:212 cast candidate compile rejected - char* pStr2 = (char*)string2; | + char* pStr2 = string2; not measured not measured
|
||||
casts-33-single-1 libs/RevoEX/src/nwc24/NWC24Parser.c:213 cast candidate compile rejected - char* pStr1 = (char*)string1; | + char* pStr1 = string1; not measured not measured
|
||||
casts-34 libs/RevoEX/src/vf/common/pf_service.c:14 cast candidate kept - *((pf_u8*)sSrc + cnt) = *((pf_u8*)sSrc + cnt + 1); | - *((pf_u8*)sSrc + cnt + 1) = tmp_src; | + *(sSrc + cnt) = *(sSrc + cnt + 1); | + *(sSrc + cnt + 1) = tmp_src; 280 -> 280 0 -> 0 True True
|
||||
casts-35 libs/RevoEX/src/vf/common/pf_str.c:123 cast candidate kept - VFipf_vol_set.codeset.oem2unicode((pf_s8*)s, &wc); | + VFipf_vol_set.codeset.oem2unicode(s, &wc); | - VFipf_vol_set.codeset.oem2unicode((pf_s8*)s, &wc); | + VFipf_vol_set.codeset.oem2unicode(s, &wc); 1332 -> 1332 0 -> 0 True True
|
||||
casts-36 libs/RevoEX/src/vf/common/pf_w_clib.c:23 cast candidate kept - const pf_u16* p1 = (pf_u16*)s1; | - const pf_u16* p2 = (pf_u16*)s2; | + const pf_u16* p1 = s1; | + const pf_u16* p2 = s2; 148 -> 148 0 -> 0 True True
|
||||
casts-37 libs/RevoEX/src/vf/develop/d_hash.c:188 cast candidate compile rejected - VFipf_memcpy(&hashTable[newHash], (u16*)i_Name, 0x10U); | + VFipf_memcpy(&hashTable[newHash], i_Name, 0x10U); not measured not measured
|
||||
casts-38 libs/RevoEX/src/vf/develop/d_vf.c:865 cast candidate compile rejected - return (char*)ret_p; | + return ret_p; not measured not measured
|
||||
casts-39 libs/RevoEX/src/vf/develop/nand_drv.c:666 cast candidate compile rejected - nandError = A32_NANDWrite(fileInfo_p, (u8*)buf, size, p_disk); | + nandError = A32_NANDWrite(fileInfo_p, buf, size, p_disk); not measured not measured
|
||||
casts-40 libs/RevoEX/src/vf/dskmng/pdm_disk.c:355 cast candidate kept - err = lp_disk->disk_tbl.p_func->format(p_disk, (pf_u8*)param); | + err = lp_disk->disk_tbl.p_func->format(p_disk, param); 5584 -> 5584 0 -> 0 True True
|
||||
casts-41 libs/RevoEX/src/vf/fatfs/pf_cache.c:447 cast candidate compile rejected - VFipf_memcpy(p_page->p_buf, (pf_u8*)p_buf, p_vol->bpb.bytes_per_sector); | + VFipf_memcpy(p_page->p_buf, p_buf, p_vol->bpb.bytes_per_sector); | - VFipf_memcpy(&p_page->buffer[(sector - p_page->sector) << p_vol->bpb.log2_bytes_per_sector], (pf_u8*)p_buf, | + VFipf_memcpy(&p_page->buffer[(sector - p_page->sector) << p_vol->bpb.log2_bytes_per_sector], p_buf, | - VFipf_memcpy(&p_page->buffer[(sector - p_page->sector) << p_vol->bpb.log2_bytes_per_sector], (pf_u8*)p_buf, | + VFipf_memcpy(&p_page->buffer[(sector - p_page->sector) << p_vol->bpb.log2_bytes_per_sector], p_buf, not measured not measured
|
||||
casts-41-single-0 libs/RevoEX/src/vf/fatfs/pf_cache.c:447 cast candidate compile rejected - VFipf_memcpy(p_page->p_buf, (pf_u8*)p_buf, p_vol->bpb.bytes_per_sector); | + VFipf_memcpy(p_page->p_buf, p_buf, p_vol->bpb.bytes_per_sector); | - VFipf_memcpy(&p_page->buffer[(sector - p_page->sector) << p_vol->bpb.log2_bytes_per_sector], (pf_u8*)p_buf, | + VFipf_memcpy(&p_page->buffer[(sector - p_page->sector) << p_vol->bpb.log2_bytes_per_sector], p_buf, | - VFipf_memcpy(&p_page->buffer[(sector - p_page->sector) << p_vol->bpb.log2_bytes_per_sector], (pf_u8*)p_buf, | + VFipf_memcpy(&p_page->buffer[(sector - p_page->sector) << p_vol->bpb.log2_bytes_per_sector], p_buf, not measured not measured
|
||||
casts-41-single-1 libs/RevoEX/src/vf/fatfs/pf_cache.c:447 cast candidate compile rejected - VFipf_memcpy(p_page->p_buf, (pf_u8*)p_buf, p_vol->bpb.bytes_per_sector); | + VFipf_memcpy(p_page->p_buf, p_buf, p_vol->bpb.bytes_per_sector); | - VFipf_memcpy(&p_page->buffer[(sector - p_page->sector) << p_vol->bpb.log2_bytes_per_sector], (pf_u8*)p_buf, | + VFipf_memcpy(&p_page->buffer[(sector - p_page->sector) << p_vol->bpb.log2_bytes_per_sector], p_buf, | - VFipf_memcpy(&p_page->buffer[(sector - p_page->sector) << p_vol->bpb.log2_bytes_per_sector], (pf_u8*)p_buf, | + VFipf_memcpy(&p_page->buffer[(sector - p_page->sector) << p_vol->bpb.log2_bytes_per_sector], p_buf, not measured not measured
|
||||
casts-41-single-2 libs/RevoEX/src/vf/fatfs/pf_cache.c:447 cast candidate compile rejected - VFipf_memcpy(p_page->p_buf, (pf_u8*)p_buf, p_vol->bpb.bytes_per_sector); | + VFipf_memcpy(p_page->p_buf, p_buf, p_vol->bpb.bytes_per_sector); | - VFipf_memcpy(&p_page->buffer[(sector - p_page->sector) << p_vol->bpb.log2_bytes_per_sector], (pf_u8*)p_buf, | + VFipf_memcpy(&p_page->buffer[(sector - p_page->sector) << p_vol->bpb.log2_bytes_per_sector], p_buf, | - VFipf_memcpy(&p_page->buffer[(sector - p_page->sector) << p_vol->bpb.log2_bytes_per_sector], (pf_u8*)p_buf, | + VFipf_memcpy(&p_page->buffer[(sector - p_page->sector) << p_vol->bpb.log2_bytes_per_sector], p_buf, not measured not measured
|
||||
casts-42 libs/RevoEX/src/vf/fatfs/pf_entry_iterator.c:82 cast candidate kept - is_valid = VFiPFENT_CompareAttr(attr, (pf_u8)attr_required); | + is_valid = VFiPFENT_CompareAttr(attr, attr_required); 8560 -> 8560 40 -> 40 True True
|
||||
casts-43 libs/RevoEX/src/vf/fatfs/pf_path.c:89 cast candidate restored - VFipf_vol_set.codeset.oem2unicode((pf_s8*)src, dst); | + VFipf_vol_set.codeset.oem2unicode(src, dst); | - tmp_wc = (pf_u16)tmp_wc; | + tmp_wc = tmp_wc; | - if (VFiPFPATH_UNI_ConvertFWchar((pf_u16)wc, &twc) == 1) { | + if (VFiPFPATH_UNI_ConvertFWchar(wc, &twc) == 1) { 10636 -> 10636 64 -> 64 .line, .symtab, .strtab True True
|
||||
casts-43-single-0 libs/RevoEX/src/vf/fatfs/pf_path.c:89 cast candidate kept - VFipf_vol_set.codeset.oem2unicode((pf_s8*)src, dst); | + VFipf_vol_set.codeset.oem2unicode(src, dst); 10636 -> 10636 64 -> 64 True True
|
||||
casts-43-single-1 libs/RevoEX/src/vf/fatfs/pf_path.c:172 cast candidate restored - tmp_wc = (pf_u16)tmp_wc; | + tmp_wc = tmp_wc; 10636 -> 10636 64 -> 64 .line, .symtab True True
|
||||
casts-43-single-2 libs/RevoEX/src/vf/fatfs/pf_path.c:182 cast candidate restored - if (VFiPFPATH_UNI_ConvertFWchar((pf_u16)wc, &twc) == 1) { | + if (VFiPFPATH_UNI_ConvertFWchar(wc, &twc) == 1) { 10636 -> 10636 64 -> 64 .line, .strtab True True
|
||||
casts-44 libs/RevoEX/src/vf/fatfs/pf_sector.c:46 cast candidate compile rejected - VFipf_memcpy(&p_page->p_buf[offset], (pf_u8*)p_buf, size); | + VFipf_memcpy(&p_page->p_buf[offset], p_buf, size); not measured not measured
|
||||
casts-45 libs/RevoEX/src/vf/fatfs/pf_volume.c:545 cast candidate compile rejected - VFipf_memcpy(p_vol->label, (pf_u8*)buf, 11U); | + VFipf_memcpy(p_vol->label, buf, 11U); not measured not measured
|
||||
casts-46 libs/RevoEX/src/wd/WDScan.c:285 cast candidate kept - infoElement = (WDInfoElement*)((u8*)ptr + offset); | + infoElement = (WDInfoElement*)(ptr + offset); 2180 -> 2180 16 -> 16 True True
|
||||
casts-47 src/BS2/BS2Fatal.c:85 cast candidate kept - string = OSGetFontTexel((char*)string, image, 0, 6, &width); | + string = OSGetFontTexel(string, image, 0, 6, &width); 3116 -> 3116 2448 -> 2448 True True
|
||||
casts-48 src/bannerSound/AudioWaveUtility.cpp:388 cast candidate compile rejected - BinaryReader reader((u8*)data); | + BinaryReader reader(data); | - fileEnd = (u8*)data + fileSize; | + fileEnd = data + fileSize; | - if ((dataLen - ((u8*)self->mpDataCur - (u8*)data)) / (self->mNumChans * 2) < self->mFrames) { | + if ((dataLen - ((u8*)self->mpDataCur - data)) / (self->mNumChans * 2) < self->mFrames) { not measured not measured
|
||||
casts-48-single-0 src/bannerSound/AudioWaveUtility.cpp:260 cast candidate compile rejected - BinaryReader reader((u8*)dataOffset); | + BinaryReader reader(dataOffset); | - u8* fileEnd = (u8*)dataOffset + fileSize; | + u8* fileEnd = dataOffset + fileSize; | - BinaryReader reader((u8*)data); | + BinaryReader reader(data); | - fileEnd = (u8*)data + fileSize; | + fileEnd = data + fileSize; | - if ((dataLen - ((u8*)self->mpDataCur - (u8*)data)) / (self->mNumChans * 2) < self->mFrames) { | + if ((dataLen - ((u8*)self->mpDataCur - data)) / (self->mNumChans * 2) < self->mFrames) { | - BinaryReaderLittleEndian reader((u8*)data); | + BinaryReaderLittleEndian reader(data); | - u8* fileEnd = (u8*)data + fileSize; | + u8* fileEnd = data + fileSize; | - BinaryReaderLittleEndian reader((u8*)data); | + BinaryReaderLittleEndian reader(data); | - u8* fileEnd = (u8*)data + fileSize; | + u8* fileEnd = data + fileSize; | - if ((dataLen - ((u8*)mpDataCur - (u8*)data)) / (mNumChans * 2) < mFrames) { | + if ((dataLen - ((u8*)mpDataCur - data)) / (mNumChans * 2) < mFrames) { not measured not measured
|
||||
casts-48-single-1 src/bannerSound/AudioWaveUtility.cpp:260 cast candidate compile rejected - BinaryReader reader((u8*)dataOffset); | + BinaryReader reader(dataOffset); | - u8* fileEnd = (u8*)dataOffset + fileSize; | + u8* fileEnd = dataOffset + fileSize; | - BinaryReader reader((u8*)data); | + BinaryReader reader(data); | - fileEnd = (u8*)data + fileSize; | + fileEnd = data + fileSize; | - if ((dataLen - ((u8*)self->mpDataCur - (u8*)data)) / (self->mNumChans * 2) < self->mFrames) { | + if ((dataLen - ((u8*)self->mpDataCur - data)) / (self->mNumChans * 2) < self->mFrames) { | - BinaryReaderLittleEndian reader((u8*)data); | + BinaryReaderLittleEndian reader(data); | - u8* fileEnd = (u8*)data + fileSize; | + u8* fileEnd = data + fileSize; | - BinaryReaderLittleEndian reader((u8*)data); | + BinaryReaderLittleEndian reader(data); | - u8* fileEnd = (u8*)data + fileSize; | + u8* fileEnd = data + fileSize; | - if ((dataLen - ((u8*)mpDataCur - (u8*)data)) / (mNumChans * 2) < mFrames) { | + if ((dataLen - ((u8*)mpDataCur - data)) / (mNumChans * 2) < mFrames) { not measured not measured
|
||||
casts-48-single-2 src/bannerSound/AudioWaveUtility.cpp:260 cast candidate compile rejected - BinaryReader reader((u8*)dataOffset); | + BinaryReader reader(dataOffset); | - u8* fileEnd = (u8*)dataOffset + fileSize; | + u8* fileEnd = dataOffset + fileSize; | - BinaryReader reader((u8*)data); | + BinaryReader reader(data); | - fileEnd = (u8*)data + fileSize; | + fileEnd = data + fileSize; | - if ((dataLen - ((u8*)self->mpDataCur - (u8*)data)) / (self->mNumChans * 2) < self->mFrames) { | + if ((dataLen - ((u8*)self->mpDataCur - data)) / (self->mNumChans * 2) < self->mFrames) { | - BinaryReaderLittleEndian reader((u8*)data); | + BinaryReaderLittleEndian reader(data); | - u8* fileEnd = (u8*)data + fileSize; | + u8* fileEnd = data + fileSize; | - BinaryReaderLittleEndian reader((u8*)data); | + BinaryReaderLittleEndian reader(data); | - u8* fileEnd = (u8*)data + fileSize; | + u8* fileEnd = data + fileSize; | - if ((dataLen - ((u8*)mpDataCur - (u8*)data)) / (mNumChans * 2) < mFrames) { | + if ((dataLen - ((u8*)mpDataCur - data)) / (mNumChans * 2) < mFrames) { not measured not measured
|
||||
casts-49 src/channelScript/CHANSVm.c:3175 cast candidate compile rejected - return VmStringObjectDup(VmInst, VmReturnObj, (CHANSVmObjHdr *)VmParentObj) ? vmTrue : vmFalse; | + return VmStringObjectDup(VmInst, VmReturnObj, VmParentObj) ? vmTrue : vmFalse; not measured not measured
|
||||
casts-50 src/iplwww/www_arcreader.cpp:80 cast candidate compile rejected - if (ARCInitHandle((void*)data, mHandles + i)) { | + if (ARCInitHandle(data, mHandles + i)) { not measured not measured
|
||||
casts-51 src/scene/board/iplFocusObject.cpp:1329 cast candidate kept - mpChJpData = (NWC24CHJumpObj*)((u8*)pArc + ARCGetStartOffset(&arcFile)); | + mpChJpData = (NWC24CHJumpObj*)(pArc + ARCGetStartOffset(&arcFile)); 20332 -> 20332 2576 -> 2576 True True
|
||||
casts-52 src/scene/channelSelect/iplChannelObj.cpp:246 cast candidate compile rejected - mpBasePane = (nw4r::lyt::Pane*)basePane; | + mpBasePane = basePane; not measured not measured
|
||||
casts-53 src/scene/textBalloon/iplBalloon.cpp:51 cast candidate compile rejected - mpText = (wchar_t*)text; | + mpText = text; not measured not measured
|
||||
casts-54 src/system/iplCdbWrapper.cpp:38 cast candidate restored - if (((int)nandResult == NAND_RESULT_BUSY || (int)nandResult == NAND_RESULT_ALLOC_FAILED) && tries < MAX_TRIES) { | + if ((nandResult == NAND_RESULT_BUSY || nandResult == NAND_RESULT_ALLOC_FAILED) && tries < MAX_TRIES) { 256 -> 100 0 -> 0 _condition__Q33ipl3cdb7wrapperF6CDBErri 100% -> 92.69231% .text, .symtab, .rela.text True True
|
||||
casts-54-single-0 src/system/iplCdbWrapper.cpp:38 cast candidate restored - if (((int)nandResult == NAND_RESULT_BUSY || (int)nandResult == NAND_RESULT_ALLOC_FAILED) && tries < MAX_TRIES) { | + if ((nandResult == NAND_RESULT_BUSY || nandResult == NAND_RESULT_ALLOC_FAILED) && tries < MAX_TRIES) { 256 -> 100 0 -> 0 _condition__Q33ipl3cdb7wrapperF6CDBErri 100% -> 92.69231% .text, .symtab, .rela.text True True
|
||||
casts-54-single-1 src/system/iplCdbWrapper.cpp:38 cast candidate restored - if (((int)nandResult == NAND_RESULT_BUSY || (int)nandResult == NAND_RESULT_ALLOC_FAILED) && tries < MAX_TRIES) { | + if ((nandResult == NAND_RESULT_BUSY || nandResult == NAND_RESULT_ALLOC_FAILED) && tries < MAX_TRIES) { 256 -> 100 0 -> 0 _condition__Q33ipl3cdb7wrapperF6CDBErri 100% -> 92.69231% .text, .symtab, .rela.text True True
|
||||
casts-55 src/system/iplNandSDWorker.cpp:3936 cast candidate compile rejected - ret = read_file(fd, fileKind, iconBinOffset, thumbnailSize, ((SDAppBackupData*)appBnrOut)->thumbnail); | + ret = read_file(fd, fileKind, iconBinOffset, thumbnailSize, (appBnrOut)->thumbnail); | - Rvl_decode(uncmpr, (u8*)cmpr + offset); | + Rvl_decode(uncmpr, cmpr + offset); not measured not measured
|
||||
casts-55-single-0 src/system/iplNandSDWorker.cpp:3936 cast candidate kept - ret = read_file(fd, fileKind, iconBinOffset, thumbnailSize, ((SDAppBackupData*)appBnrOut)->thumbnail); | + ret = read_file(fd, fileKind, iconBinOffset, thumbnailSize, (appBnrOut)->thumbnail); 51428 -> 51428 12312 -> 12312 True True
|
||||
casts-55-single-1 src/system/iplNandSDWorker.cpp:4672 cast candidate compile rejected - Rvl_decode(uncmpr, (u8*)cmpr + offset); | + Rvl_decode(uncmpr, cmpr + offset); not measured not measured
|
||||
casts-56 src/system/iplNandWrapper.cpp:116 cast candidate restored - if (((int)result == NAND_RESULT_BUSY || (int)result == NAND_RESULT_ALLOC_FAILED) && tries < MAX_TRIES) { | + if ((result == NAND_RESULT_BUSY || result == NAND_RESULT_ALLOC_FAILED) && tries < MAX_TRIES) { 2888 -> 2760 0 -> 0 _condition__Q33ipl4nand7wrapperFii 100% -> 84.21875% .text, .symtab, .rela.text True True
|
||||
casts-56-single-0 src/system/iplNandWrapper.cpp:116 cast candidate restored - if (((int)result == NAND_RESULT_BUSY || (int)result == NAND_RESULT_ALLOC_FAILED) && tries < MAX_TRIES) { | + if ((result == NAND_RESULT_BUSY || result == NAND_RESULT_ALLOC_FAILED) && tries < MAX_TRIES) { 2888 -> 2760 0 -> 0 _condition__Q33ipl4nand7wrapperFii 100% -> 84.21875% .text, .symtab, .rela.text True True
|
||||
casts-56-single-1 src/system/iplNandWrapper.cpp:116 cast candidate restored - if (((int)result == NAND_RESULT_BUSY || (int)result == NAND_RESULT_ALLOC_FAILED) && tries < MAX_TRIES) { | + if ((result == NAND_RESULT_BUSY || result == NAND_RESULT_ALLOC_FAILED) && tries < MAX_TRIES) { 2888 -> 2760 0 -> 0 _condition__Q33ipl4nand7wrapperFii 100% -> 84.21875% .text, .symtab, .rela.text True True
|
||||
duplicate-0 libs/MSL/src/MSL_Common/strtold.c:556 duplicate branch restored - return result; | - return result; | + return result; 5284 -> 5284 112 -> 112 .strtab True True
|
||||
duplicate-1 libs/MSL/src/MSL_Common/strtold.c:420 duplicate branch restored - c = fetch(); | - c = fetch(); | + c = fetch(); 5284 -> 176 112 -> 88 __strtold 100% -> 99.23649% .strtab, .rela.text, .text, .symtab, extabindex True True
|
||||
duplicate-2 libs/MSL/src/MSL_Common/strtold.c:386 duplicate branch restored - c = fetch(); | - c = fetch(); | + c = fetch(); 5284 -> 176 112 -> 88 __strtold 100% -> 99.23649% .strtab, .rela.text, .text, .symtab, extabindex True True
|
||||
duplicate-3 libs/MSL/src/MSL_Common/time.c:326 duplicate branch restored - localtime_tm.tm_isdst = __isdst(); | - return &localtime_tm; | - localtime_tm.tm_isdst = __isdst(); | - return &localtime_tm; | + localtime_tm.tm_isdst = __isdst(); | + return &localtime_tm; 6440 -> 6292 988 -> 808 localtime 100% -> 80.37838% .strtab, extab, .rela.text, .text, .symtab, extabindex True True
|
||||
duplicate-4 libs/MSL/src/MSL_Common_Embedded/Math/e_fmod.c:131 duplicate branch restored - lx = (hx<<(32-n))|(lx>>n); hx = sx; | + lx = (hx<<(32-n))|(lx>>n); | - lx = hx>>(n-32); hx = sx; | + lx = hx>>(n-32); | + hx = sx; 816 -> 0 16 -> 16 __ieee754_fmod 100% -> 95.43137% .text, .symtab True True
|
||||
duplicate-5 libs/NW4R/src/snd/snd_AxVoice.cpp:748 duplicate branch restored - targetVol = volume * mVeTargetVolume * (AX_MAX_VOLUME - 1); | - targetVol = volume * mVeTargetVolume * (AX_MAX_VOLUME - 1); | + targetVol = volume * mVeTargetVolume * (AX_MAX_VOLUME - 1); 13568 -> 12996 104 -> 104 UpdateAxVe__Q44nw4r3snd6detail7AxVoiceFv 100% -> 85.02098% .strtab, .rela.text, .text, .symtab True True
|
||||
duplicate-6 libs/NW4R/src/snd/snd_WsdFile.cpp:52 duplicate branch restored - soundInfo->fxSendA = 0; | - soundInfo->fxSendB = 0; | - soundInfo->fxSendC = 0; | - soundInfo->mainSend = 127; | - soundInfo->fxSendA = 0; | - soundInfo->fxSendB = 0; | - soundInfo->fxSendC = 0; | - soundInfo->mainSend = 127; | + soundInfo->fxSendA = 0; | + soundInfo->fxSendB = 0; | + soundInfo->fxSendC = 0; | + soundInfo->mainSend = 127; 840 -> 552 8 -> 8 ReadWaveSoundInfo__Q44nw4r3snd6detail13WsdFileReaderCFPQ44nw4r3snd6detail13WaveSoundInfoi 100% -> 83.06944% .rela.text, .text, .symtab True True
|
||||
duplicate-7 libs/RVLFaceLib/src/RFL_HiddenDatabase.c:503 duplicate branch restored - curNode->next = -1; | - curNode->next = -1; | + curNode->next = -1; 3356 -> 3108 340 -> 136 create_ 100% -> 88.629036% .rela.text, .text, .symtab, extabindex True True
|
||||
duplicate-8 libs/RVL_SDK/src/ax/AXAlloc.c:112 duplicate branch restored - __AXStackHead[priority] = vpb; | - __AXStackHead[priority] = vpb; | + __AXStackHead[priority] = vpb; 1208 -> 668 264 -> 264 AXAcquireVoice 100% -> 96.125%; AXSetVoicePriority 100% -> 90.76923% .rela.text, .text, .symtab True True
|
||||
duplicate-9 libs/RVL_SDK/src/bte/hcisu_h2.c:300 duplicate branch restored - p_cb->rx_state[pipe] = 0; | - p_cb->rx_state[pipe] = 0; | + p_cb->rx_state[pipe] = 0; 1692 -> 772 208 -> 208 hcisu_h2_receive_msg 100% -> 98.82609% .strtab, .rela.text, .text, .symtab True True
|
||||
duplicate-10 libs/RVL_SDK/src/bte/l2c_csm.c:815 duplicate branch restored - p_buf = GKI_dequeue(&p_ccb->xmit_hold_q); | - p_buf = GKI_dequeue(&p_ccb->xmit_hold_q); | + p_buf = GKI_dequeue(&p_ccb->xmit_hold_q); 5340 -> 4920 2104 -> 2104 forward_peer_data 100% -> 97.09524% .rela.text, .text, .symtab True True
|
||||
duplicate-11 libs/RVL_SDK/src/bte/l2c_link.c:356 duplicate branch restored - L2C_LINK_SEND_ACL_DATA(p_buf); | - L2C_LINK_SEND_ACL_DATA(p_buf); | + L2C_LINK_SEND_ACL_DATA(p_buf); 4492 -> 4228 624 -> 624 l2c_link_send_to_lower 100% -> 83.86364% .rela.text, .text, .symtab True True
|
||||
duplicate-12 libs/RVL_SDK/src/bte/rfc_ts_frames.c:550 duplicate branch restored - return RFC_EVENT_UIH; | - return RFC_EVENT_UIH; | + return RFC_EVENT_UIH; 5704 -> 4308 232 -> 232 rfc_parse_data 100% -> 99.33811% .rela.text, .text, .symtab True True
|
||||
duplicate-13 libs/RVL_SDK/src/bte/sdp_discovery.c:706 duplicate branch restored - p += MAX_UUID_SIZE - 4; | - p += MAX_UUID_SIZE - 4; | + p += MAX_UUID_SIZE - 4; 4728 -> 3296 352 -> 0 add_attr 100% -> 99.70112% .strtab, .rela.text, .text, .symtab, .rela.data True True
|
||||
duplicate-14 libs/RVL_SDK/src/dvd/dvd.c:1771 duplicate branch restored - stateReady(); | - stateReady(); | + stateReady(); 21692 -> 19164 20688 -> 20688 cbForStateBusy 100% -> 99.81013% .strtab, .rela.text, .text, .symtab True True
|
||||
duplicate-15 libs/RVL_SDK/src/dvd/dvd.c:1711 duplicate branch restored - return; | - return; | + return; 21692 -> 21692 20688 -> 20688 .strtab True True
|
||||
duplicate-16 libs/RVL_SDK/src/dvd/dvd.c:600 duplicate branch restored - return; | - return; | + return; 21692 -> 21692 20688 -> 20688 .strtab True True
|
||||
duplicate-17 libs/RVL_SDK/src/kpad/KPAD.c:1435 duplicate branch restored - coreButtons = 0; | - coreButtons = 0; | + coreButtons = 0; 13056 -> 11220 8032 -> 8032 KPADRead 100% -> 99.54248% .rela.text, .text, .symtab True True
|
||||
duplicate-18 libs/RVL_SDK/src/nand/NANDCore.c:357 duplicate branch restored - return TRUE; | - return TRUE; | + return TRUE; 4472 -> 4268 800 -> 800 nandOnShutdown 100% -> 93.62745% .rela.text, .text, .symtab True True
|
||||
duplicate-19 libs/RVL_SDK/src/nand/NANDCore.c:58 duplicate branch kept - break; | - break; | + break; 4472 -> 4472 800 -> 800 True True
|
||||
duplicate-20 libs/RVL_SDK/src/nand/NANDLogging.c:136 duplicate branch restored - } else if (s_fd >= 0) { | - busy_flag = TRUE; | - } else { | - busy_flag = TRUE; | - } | + } else busy_flag = TRUE; 2228 -> 1980 1048 -> 1048 NANDLoggingAddMessageAsync 100% -> 67.1129% .strtab, .rela.text, .text, .symtab True True
|
||||
duplicate-21 libs/RVL_SDK/src/os/OSAudioSystem.c:43 duplicate branch restored - ACRIOP_WRITE_REG32(HW_PLLAI, reg); | - ACRIOP_WRITE_REG32(HW_PLLAI, reg); | + ACRIOP_WRITE_REG32(HW_PLLAI, reg); 1204 -> 660 128 -> 128 __AIClockInit 100% -> 97.64706% .text True True
|
||||
duplicate-22 libs/RVL_SDK/src/sc/scsystem.c:172 duplicate branch restored - __SCClearDirtyFlag(); | - OSRestoreInterrupts(enabled); | - __SCClearDirtyFlag(); | + } | + __SCClearDirtyFlag(); | - OSRestoreInterrupts(enabled); | - } | + OSRestoreInterrupts(enabled); 7440 -> 7156 34072 -> 34072 SCCheckStatus 100% -> 94.22535% .strtab, .rela.text, .text, .symtab True True
|
||||
duplicate-23 libs/RVL_SDK/src/sdi/sdi_api.c:146 duplicate branch restored - __sdReq = 0; | - __sdReq = 0; | + __sdReq = 0; 5948 -> 5348 248 -> 248 ISD_GetDeviceStatus 100% -> 90.545456%; ISD_ProbeCard 100% -> 26.978947% .debug, .strtab, .line, .rela.debug, .rela.text, .text, .symtab True True
|
||||
duplicate-24 libs/RVL_SDK/src/si/SIBios.c:529 duplicate branch restored - CallTypeAndStatusCallback(chan, Type[chan]); | - CallTypeAndStatusCallback(chan, Type[chan]); | + CallTypeAndStatusCallback(chan, Type[chan]); 5488 -> 4800 680 -> 680 GetTypeCallback 100% -> 89.50581% .rela.text, .text, .symtab True True
|
||||
duplicate-25 libs/RVL_SDK/src/vi/vi3in1.c:460 duplicate branch restored - __VISendI2CData(0xe0, data, 2); | - WaitMicroTime(2); | - __VISendI2CData(0xe0, data, 2); | - WaitMicroTime(2); | + __VISendI2CData(0xe0, data, 2); | + WaitMicroTime(2); 6976 -> 5776 1512 -> 1512 __VISetRevolutionModeSimple 100% -> 96.985016%; __VISetRGBOverDrive 100% -> 75.454544% .rela.text, .text, .symtab True True
|
||||
duplicate-26 libs/RVL_SDK/src/wpad/WPADHIDParser.c:877 duplicate branch restored - (*p_status)->obj[i].traceId = i; | - (*p_status)->obj[i].traceId = i; | + (*p_status)->obj[i].traceId = i; 21664 -> 20536 1664 -> 1664 __parse_dpd_data 100% -> 94.05674% .strtab, .rela.text, .text, .symtab True True
|
||||
duplicate-27 libs/RVL_SDK/src/wpad/WPADHIDParser.c:515 duplicate branch restored - WPADiSendWriteData(cmdq, p_wpd->encryptionKey, 6, 0x4A40040, abortInitExtension); | - WPADiSendWriteData(cmdq, p_wpd->encryptionKey + 6, 6, 0x4A40046, abortInitExtension); | - WPADiSendWriteData(cmdq, p_wpd->encryptionKey + 12, 4, 0x4A4004C, abortInitExtension); | - WPADiSendReadData(cmdq, p_wpd->wmReadDataBuf, 32, 0x4A40020, p_wpd->extensionCB); | - WPADiSendWriteData(cmdq, p_wpd->encryptionKey, 6, 0x4A40040, abortInitExtension); | - WPADiSendWriteData(cmdq, p_wpd->encryptionKey + 6, 6, 0x4A40046, abortInitExtension); | - WPADiSendWriteData(cmdq, p_wpd->encryptionKey + 12, 4, 0x4A4004C, abortInitExtension); | - WPADiSendReadData(cmdq, p_wpd->wmReadDataBuf, 32, 0x4A40020, p_wpd->extensionCB); | + WPADiSendWriteData(cmdq, p_wpd->encryptionKey, 6, 0x4A40040, abortInitExtension); | + WPADiSendWriteData(cmdq, p_wpd->encryptionKey + 6, 6, 0x4A40046, abortInitExtension); | + WPADiSendWriteData(cmdq, p_wpd->encryptionKey + 12, 4, 0x4A4004C, abortInitExtension); | + WPADiSendReadData(cmdq, p_wpd->wmReadDataBuf, 32, 0x4A40020, p_wpd->extensionCB); 21664 -> 20912 1664 -> 1664 getExtType 100% -> 84.276596% .strtab, .rela.text, .text, .symtab True True
|
||||
duplicate-28 libs/RVL_SDK/src/wud/WUD.c:241 duplicate branch restored - if (status == SC_STATUS_OK) { | - p->deleteState = WUD_STATE_DELETE_DONE; | - } else { | - p->deleteState = WUD_STATE_DELETE_DONE; | - } | + p->deleteState = WUD_STATE_DELETE_DONE; 18852 -> 18852 12016 -> 12016 .strtab True True
|
||||
duplicate-29 libs/RevoEX/src/ncd/ncdsystem.c:253 duplicate branch restored - memcpy(&ipConfig->ip, &config->profiles[idx].ip, 0x14); | - memcpy(&ipConfig->ip, &config->profiles[idx].ip, 0x14); | + memcpy(&ipConfig->ip, &config->profiles[idx].ip, 0x14); 4180 -> 3836 496 -> 496 NCDGetCurrentIpConfig 100% -> 83.46512% .rela.text, .text, .symtab True True
|
||||
duplicate-30 libs/RevoEX/src/ncd/ncdsystem.c:202 duplicate branch restored - memcpy(&profile->ip, &ipConfig->ip, 0x14); | - memcpy(&profile->ip, &ipConfig->ip, 0x14); | + memcpy(&profile->ip, &ipConfig->ip, 0x14); 4180 -> 3496 496 -> 496 NCDSetIpConfig 100% -> 95.2924% .rela.text, .text, .symtab True True
|
||||
duplicate-31 libs/RevoEX/src/ncd/ncdsystem.c:180 duplicate branch restored - memcpy(&profile->ip, &ipConfig->ip, 0x14); | - memcpy(&profile->ip, &ipConfig->ip, 0x14); | + memcpy(&profile->ip, &ipConfig->ip, 0x14); 4180 -> 3496 496 -> 496 NCDSetIpConfig 100% -> 95.2924% .rela.text, .text, .symtab True True
|
||||
duplicate-32 libs/RevoEX/src/nhttp/NHTTP_thread.c:726 duplicate branch restored - if (request->proxyEnabled) { context->error = NHTTP_ERROR_CONNECT_PROXY; return FALSE; } | + if (request->proxyEnabled) { context->error = NHTTP_ERROR_CONNECT_PROXY; } | - context->error = NHTTP_ERROR_CONNECT; return FALSE; | + context->error = NHTTP_ERROR_CONNECT; | + return FALSE; 11292 -> 10908 504 -> 504 NHTTPi_ThreadConnectProc 100% -> 96.760414% .strtab, .rela.text, .text, .symtab True True
|
||||
duplicate-33 libs/RevoEX/src/nwc24/NWC24Mime.c:288 duplicate branch restored - encodedOffset++; | - encodedOffset++; | + encodedOffset++; 6124 -> 5540 88 -> 88 QDecode 100% -> 99.28082% .rela.text, .text, .symtab True True
|
||||
duplicate-34 libs/RevoEX/src/nwc24/NWC24StdAPI.c:204 duplicate branch restored - charsWritten++; | - charsWritten++; | + charsWritten++; 3772 -> 2388 136 -> 136 convNum 100% -> 99.69653% .rela.text, .text, .symtab True True
|
||||
duplicate-35 libs/RevoEX/src/vf/develop/sd_drv.c:110 duplicate branch restored - *sectorSize = 0x200; | - *totalSize = *totalSectors << 9; | - *sectorSize = 0x200; | - *totalSize = *totalSectors << 9; | + *sectorSize = 0x200; | + *totalSize = *totalSectors << 9; 3608 -> 3328 992 -> 992 _VFiGetCardSize 100% -> 89.35714% .rela.text, .text, .symtab True True
|
||||
duplicate-36 libs/RevoEX/src/vf/fatfs/pf_cache.c:275 duplicate branch restored - (*pp_page)->sector = sector - (sector % (*pp_page)->size); | - (*pp_page)->p_buf = &(*pp_page)->buffer[(sector % (*pp_page)->size) << p_vol->bpb.log2_bytes_per_sector]; | - (*pp_page)->sector = sector - (sector % (*pp_page)->size); | - (*pp_page)->p_buf = &(*pp_page)->buffer[(sector % (*pp_page)->size) << p_vol->bpb.log2_bytes_per_sector]; | + (*pp_page)->sector = sector - (sector % (*pp_page)->size); | + (*pp_page)->p_buf = &(*pp_page)->buffer[(sector % (*pp_page)->size) << p_vol->bpb.log2_bytes_per_sector]; 7148 -> 6368 0 -> 0 VFiPFCACHE_DoAllocatePage 100% -> 91.097435% .rela.text, .text, .symtab True True
|
||||
duplicate-37 libs/RevoEX/src/vf/fatfs/pf_cache.c:159 duplicate branch restored - *pp_head = p_page; | - *pp_head = p_page; | + *pp_head = p_page; 7148 -> 5956 0 -> 0 VFiPFCACHE_WriteFATPage 100% -> 95.71429%; VFiPFCACHE_DoAllocatePage 100% -> 98.92308%; VFiPFCACHE_WriteDataPage 100% -> 96.111115% .rela.text, .text, .symtab True True
|
||||
duplicate-38 libs/RevoEX/src/vf/fatfs/pf_fat.c:306 duplicate branch restored - *is_found = PF_TRUE; | - *is_found = PF_TRUE; | + *is_found = PF_TRUE; 12232 -> 11788 64 -> 64 VFiPFFAT_FindClusterLink 100% -> 97.61261% .rela.text, .text, .symtab True True
|
||||
duplicate-39 src/BS2/BS2Mach.c:1448 duplicate branch restored - State = BS2_STT_8; | - State = BS2_STT_8; | + State = BS2_STT_8; 5112 -> 5112 158528 -> 155504 BS2Tick 98.799484% -> 99.052574% .rela.data, .strtab, .rela.text, .text, .symtab True True
|
||||
duplicate-40 src/BS2/BS2Mach.c:209 duplicate branch restored - OSRestoreInterrupts(enabled); | - OSRestoreInterrupts(enabled); | + OSRestoreInterrupts(enabled); 5112 -> 4740 158528 -> 158528 BS2AbortStateMachine 100% -> 88.97849% .strtab, .rela.text, .text True True
|
||||
duplicate-41 src/channelScript/CHANSVm.c:5273 duplicate branch restored - intObj = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_INTEGER, intObj); | - intObj = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_INTEGER, intObj); | + intObj = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_INTEGER, intObj); 44588 -> 44588 6904 -> 6904 VmBlobPackCommon 98.0988% -> 97.5% .strtab, .rela.text, .text, .symtab True True
|
||||
duplicate-42 src/channelScript/CHANSVm.c:189 duplicate branch restored - object = (CHANSVmObjHdr*)ptr; | - object = (CHANSVmObjHdr*)ptr; | + object = (CHANSVmObjHdr*)ptr; 44588 -> 44416 6904 -> 6904 CHANSVmNewObjHdr 100% -> 94.88372% .strtab, .text True True
|
||||
duplicate-43 src/homebutton/HBMBase.cpp:676 duplicate branch restored - mpGroupAnmController[idx]->play(); | - mpGroupAnmController[idx]->play(); | + mpGroupAnmController[idx]->play(); 23608 -> 23364 3800 -> 3800 init_vib__Q210homebutton10HomeButtonFv 100% -> 79.44262% .strtab, .rela.text, .text, .symtab True True
|
||||
duplicate-44 src/homebutton/HBMBase.cpp:658 duplicate branch restored - mpGroupAnmController[idx]->play(); | - mpGroupAnmController[idx]->play(); | + mpGroupAnmController[idx]->play(); 23608 -> 23260 3800 -> 3800 init_volume__Q210homebutton10HomeButtonFv 100% -> 88.85058% .strtab, .rela.text, .text, .symtab True True
|
||||
duplicate-45 src/keyboard/tiDebug.cpp:113 duplicate branch kept - GXEnd(); | - GXEnd(); | + GXEnd(); 1556 -> 1556 24 -> 24 True True
|
||||
duplicate-46 src/keyboard/tiLayout.cpp:40 duplicate branch restored - if (cnt->type == nw4r::lyt::res::AnimationContent::ANIMTYPE_PANE) { | - if (strncmp(cnt->name, name, 17) == 0) { | - count++; | - } | - } else { | - if (strncmp(cnt->name, name, 17) == 0) { | - count++; | - } | + if (strncmp(cnt->name, name, 17) == 0) { | + count++; 2180 -> 876 88 -> 88 CountAnimForPane___Q29textinput17AnimTransformPaneFPCc 100% -> 73.19149%; ForceBind__Q29textinput17AnimTransformPaneFPQ34nw4r3lyt4PanePCc 100% -> 74%; Bind__Q29textinput17AnimTransformPaneFPQ34nw4r3lyt4Paneb 100% -> 64.121216%; CountAnimForPane___Q29textinput17AnimTransformPaneFPQ34nw4r3lyt4Paneb 100% -> 52.2807% .strtab, .rela.text, .text, .symtab, .comment, .rela.data True True
|
||||
duplicate-47 src/scene/address/iplAddressEdit.cpp:2575 duplicate branch restored - frame->initFrame(); | - frame->restart(); | - frame->initFrame(); | - frame->restart(); | + frame->initFrame(); | + frame->restart(); 23344 -> 21204 2560 -> 408 onEventDerived__Q33ipl5scene11AddressEditFUlUlPCQ33ipl10controller9Interface 100% -> 98.24112% .rela.data, .rela.text, .text, .symtab True True
|
||||
duplicate-48 src/scene/board/iplBoardObject.cpp:594 duplicate branch restored - DELETE_PTR_ARRAY_FORCE(picture->mpWork); | - DELETE_PTR_ARRAY_FORCE(picture->mpWork); | + DELETE_PTR_ARRAY_FORCE(picture->mpWork); 9184 -> 8788 1320 -> 1320 create_picture__Q33ipl5scene11BoardObjectFPQ33ipl5scene7picturePQ23EGG4HeapPQ23EGG4HeapPUcUl 100% -> 92.71717% .strtab, .rela.text, .text, .symtab True True
|
||||
duplicate-49 src/scene/channelEdit/iplChannelEdit.cpp:1346 duplicate branch restored - mState = STATE_ON_VERIFY1ST; | - mState = STATE_ON_VERIFY1ST; | + mState = STATE_ON_VERIFY1ST; 13412 -> 13196 1600 -> 1600 on_exist_app__Q33ipl5scene11ChannelEditFv 100% -> 96.111115% .rela.text, .text, .symtab True True
|
||||
duplicate-50 src/scene/channelEdit/iplChannelEdit.cpp:1310 duplicate branch restored - mState = STATE_ON_END_FORMAT; | - mState = STATE_ON_END_FORMAT; | + mState = STATE_ON_END_FORMAT; 13412 -> 13236 1600 -> 1600 on_end_process__Q33ipl5scene11ChannelEditFv 100% -> 95.34091% .strtab, .rela.text, .text, .symtab True True
|
||||
duplicate-51 src/scene/channelEdit/iplChannelEdit.cpp:1231 duplicate branch restored - mState = STATE_ON_CHANGE_TAG1ST; | - mState = STATE_ON_CHANGE_TAG1ST; | + mState = STATE_ON_CHANGE_TAG1ST; 13412 -> 13308 1600 -> 1600 on_sd_message3rd__Q33ipl5scene11ChannelEditFv 100% -> 92.11539% .rela.text, .text, .symtab True True
|
||||
duplicate-52 src/scene/channelEdit/iplNandSDCardManager.cpp:420 duplicate branch restored - mState = STATE_LIST_SDAPP; | - mState = STATE_LIST_SDAPP; | + mState = STATE_LIST_SDAPP; 11264 -> 9772 416 -> 16 on_normal__Q33ipl5scene17NandSDCardManagerFv 100% -> 99.4504% .strtab, .line, .rela.debug, .rela.text, .symtab, .rela.data True True
|
||||
duplicate-53 src/scene/channelEdit/iplNandSDCardManager.cpp:407 duplicate branch restored - mState = STATE_LIST_NANDAPP; | - mState = STATE_LIST_NANDAPP; | + mState = STATE_LIST_NANDAPP; 11264 -> 9772 416 -> 16 on_normal__Q33ipl5scene17NandSDCardManagerFv 100% -> 99.4504% .strtab, .line, .rela.debug, .rela.text, .symtab, .rela.data True True
|
||||
duplicate-54 src/scene/channelEdit/iplNandSDCardManager.cpp:373 duplicate branch restored - mState = STATE_DEL_NANDAPP; | - mState = STATE_DEL_NANDAPP; | + mState = STATE_DEL_NANDAPP; 11264 -> 9772 416 -> 16 on_normal__Q33ipl5scene17NandSDCardManagerFv 100% -> 99.4504% .strtab, .line, .rela.debug, .rela.text, .symtab, .rela.data True True
|
||||
duplicate-55 src/scene/channelSelect/iplChannelSelect.cpp:1662 duplicate branch restored - return isPageCreated(page); | - return isPageCreated(page); | + return isPageCreated(page); 25668 -> 25576 2336 -> 2336 prepareRestarting__Q33ipl5scene13ChannelSelectFi 100% -> 90.86957% .strtab, .rela.text, .text, .symtab True True
|
||||
duplicate-56 src/scene/letterWriter/iplLetterWriter.cpp:143 duplicate branch restored - TextWriter::initCalcNormal(); | - TextWriter::initCalcNormal(); | + TextWriter::initCalcNormal(); 6092 -> 5528 632 -> 632 initCalcNormal__Q33ipl5scene12LetterWriterFv 100% -> 97.12766% .strtab, .rela.text, .text, .symtab True True
|
||||
duplicate-57 src/scene/memory/iplMemory.cpp:1339 duplicate branch restored - mState = STATE_ON_VERIFY1ST; | - mState = STATE_ON_VERIFY1ST; | + mState = STATE_ON_VERIFY1ST; 12984 -> 12768 1560 -> 1560 on_exist_save__Q33ipl5scene6MemoryFv 100% -> 96.111115% .rela.text, .text, .symtab True True
|
||||
duplicate-58 src/scene/memory/iplMemory.cpp:1303 duplicate branch restored - mState = STATE_ON_END_FORMAT; | - mState = STATE_ON_END_FORMAT; | + mState = STATE_ON_END_FORMAT; 12984 -> 12808 1560 -> 1560 on_end_process__Q33ipl5scene6MemoryFv 100% -> 95.34091% .strtab, .rela.text, .text, .symtab True True
|
||||
duplicate-59 src/scene/memory/iplMemory.cpp:1175 duplicate branch restored - mState = STATE_ON_CHANGE_TAG1ST; | - mState = STATE_ON_CHANGE_TAG1ST; | + mState = STATE_ON_CHANGE_TAG1ST; 12984 -> 12880 1560 -> 1560 on_sd_message3rd__Q33ipl5scene6MemoryFv 100% -> 92.11539% .rela.text, .text, .symtab True True
|
||||
duplicate-60 src/scene/nakamuraTest/iplNakamuraTest.cpp:417 duplicate branch restored - cmd = FADER_SCN_NEXT; | - cmd = FADER_SCN_NEXT; | + cmd = FADER_SCN_NEXT; 3596 -> 744 912 -> 40 calcNormal__Q33ipl5scene12NakamuraTestFv 100% -> 99.85274% .rela.data, .strtab, .rela.text, .text, .symtab True True
|
||||
duplicate-61 src/scene/parentalDialog/iplParentalDialog.cpp:289 duplicate branch restored - mState = STATE_WAIT_MSG; | - mState = STATE_WAIT_MSG; | + mState = STATE_WAIT_MSG; 4540 -> 3900 808 -> 808 start_trig_event__Q33ipl5scene14ParentalDialogFPCci 100% -> 97.39375% .strtab, .rela.text, .text, .symtab True True
|
||||
duplicate-62 src/scene/setting/AOSS.c:780 duplicate branch restored - resultCode = 0xffffffff; | - resultCode = 0xffffffff; | + resultCode = 0xffffffff; 7720 -> 7720 3928 -> 3928 AOSS_Init_old 96.18624% -> 96.21149% .strtab, .rela.text, .text True True
|
||||
duplicate-63 src/scene/setting/AOSS.c:497 duplicate branch restored - resultCode = 0xffffffff; | - resultCode = 0xffffffff; | + resultCode = 0xffffffff; 7720 -> 7720 3928 -> 3928 AOSS_Init_old 96.18624% -> 95.88952% .rela.text, .text, .symtab True True
|
||||
duplicate-64 src/scene/setting/iplSetting.cpp:1472 duplicate branch restored - static_cast<utility::FrameController*>(wideMaterial)->initFrame(); | - static_cast<utility::FrameController*>(wideMaterial)->restart(); | - static_cast<utility::FrameController*>(wideMaterial)->initFrame(); | - static_cast<utility::FrameController*>(wideMaterial)->restart(); | + static_cast<utility::FrameController*>(wideMaterial)->initFrame(); | + static_cast<utility::FrameController*>(wideMaterial)->restart(); 36796 -> 34268 5696 -> 5696 draw__Q33ipl5scene7SettingFv 100% -> 99.35918% .strtab, .rela.text, .text, .symtab True True
|
||||
duplicate-65 src/system/iplNand.cpp:309 duplicate branch restored - if (mpArc) { | - if (mbIsNandFile) { | - result = wrapper::Close(&mNandFile); | - return nand_error_handling(result); | - } else { | - return ARCClose(&mArcFile) == TRUE; | - } | + if (mbIsNandFile) { | + result = wrapper::Close(&mNandFile); | + return nand_error_handling(result); | - if (mbIsNandFile) { | - result = wrapper::Close(&mNandFile); | - return nand_error_handling(result); | - } else { | - return ARCClose(&mArcFile) == TRUE; | - } | + return ARCClose(&mArcFile) == TRUE; 5108 -> 4940 272 -> 272 close___Q33ipl4nand4FileFv 100% -> 57% .strtab, .rela.text, .text, .symtab True True
|
||||
duplicate-66 src/system/iplNandMeta.cpp:46 duplicate branch restored - nand_error_handling(result); | - nand_error_handling(result); | + nand_error_handling(result); 1536 -> 1356 136 -> 136 readNandBlock___Q33ipl4nand8MetaFileFPvii 100% -> 93.22222% .strtab, .rela.text, .text, .symtab True True
|
||||
duplicate-67 src/system/iplNandSDWorker.cpp:1714 duplicate branch restored - myWork->asyncResult = thumbnailSize; | - myWork->asyncResult = thumbnailSize; | + myWork->asyncResult = thumbnailSize; 51428 -> 50928 12312 -> 12312 do_get_sd_app_meta__Q23ipl12NandSDWorkerFv 100% -> 96.6% .rela.line, .strtab, .symtab, .line, .rela.debug True True
|
||||
duplicate-68 src/system/iplNandSDWorker.cpp:1676 duplicate branch restored - myWork->asyncResult = thumbnailSize; | - myWork->asyncResult = thumbnailSize; | + myWork->asyncResult = thumbnailSize; 51428 -> 50968 12312 -> 12312 do_get_sd_app_thumbnail__Q23ipl12NandSDWorkerFv 100% -> 96.304344% .rela.line, .strtab, .symtab, .line, .rela.debug True True
|
||||
duplicate-69 src/system/rvl_dec.c:666 duplicate branch kept - distanceBitWord = nextDistanceBits; | - distanceBitWord = nextDistanceBits; | + distanceBitWord = nextDistanceBits; 2600 -> 2600 36872 -> 36872 True True
|
||||
duplicate-70 src/system/rvl_dec.c:643 duplicate branch kept - literalBitWord = decodeBitsOrCount; | - literalBitWord = decodeBitsOrCount; | + literalBitWord = decodeBitsOrCount; 2600 -> 2600 36872 -> 36872 True True
|
||||
duplicate-71 src/utility/iplTree.cpp:13 duplicate branch restored - tree->mpParent = this; | - tree->mpParent = this; | + tree->mpParent = this; 324 -> 264 32 -> 32 attach__Q33ipl7utility4TreeFPQ33ipl7utility4Tree 100% -> 79.666664% .rela.text, .text, .symtab True True
|
||||
vm-scratch-False src/channelScript/CHANSVm.c:7106 targeted source cleanup restored - struct { | - CHANSVmObjType operandTypes[2]; | - double floatLiteral; | - CHANSVmObjHdr copies[2]; | - CHANSVmObjHdr load; | - CHANSVmObjHdr operand; | - } scratch; | + CHANSVmObjType operandTypes[2]; | + double floatLiteral; | + CHANSVmObjHdr copies[2]; | + CHANSVmObjHdr load; | + CHANSVmObjHdr operand; | - memset(&scratch.operand, 0, sizeof(scratch.operand)); | - stackPtr = scratch.copies; | + memset(&operand, 0, sizeof(operand)); | + stackPtr = copies; | - memcpy(&scratch.floatLiteral, operandBuf, 8); | - result = CHANSVmSetFloat(vm, &pVm->accumulator, scratch.floatLiteral); | + memcpy(&floatLiteral, operandBuf, 8); | + result = CHANSVmSetFloat(vm, &pVm->accumulator, floatLiteral); | - rightOp = &scratch.operand; | + rightOp = &operand; | - result = VmLoadImmInteger(vm, &scratch.operand, operandBuf, 1); | + result = VmLoadImmInteger(vm, &operand, operandBuf, 1); | - enumedType = scratch.operandTypes; | + enumedType = operandTypes; | - convTypeIdx = convTbl[scratch.operandTypes[0] * 6 + scratch.operandTypes[1]]; | + convTypeIdx = convTbl[operandTypes[0] * 6 + operandTypes[1]]; | - result = CHANSVmDeleteObject(vm, &scratch.operand); | - if (result == CHANS_VM_OK && leftOp != &pVm->accumulator && leftOp != &scratch.operand && (leftOp->flags.raw & CHANSVM_OBJ_FLAG_READONLY) == 0 && | + result = CHANSVmDeleteObject(vm, &operand); | + if (result == CHANS_VM_OK && leftOp != &pVm- [see trial candidate in /tmp/rx56/trials] 44588 -> 44588 6904 -> 6904 CHANSVmStep 96.98723% -> 96.97207% .strtab, .text True True
|
||||
vm-scratch-True src/channelScript/CHANSVm.c:7106 targeted source cleanup restored - struct { | - CHANSVmObjType operandTypes[2]; | - double floatLiteral; | - CHANSVmObjHdr copies[2]; | - CHANSVmObjHdr load; | - CHANSVmObjHdr operand; | - } scratch; | + CHANSVmObjHdr operand; | + CHANSVmObjHdr load; | + CHANSVmObjHdr copies[2]; | + double floatLiteral; | + CHANSVmObjType operandTypes[2]; | - memset(&scratch.operand, 0, sizeof(scratch.operand)); | - stackPtr = scratch.copies; | + memset(&operand, 0, sizeof(operand)); | + stackPtr = copies; | - memcpy(&scratch.floatLiteral, operandBuf, 8); | - result = CHANSVmSetFloat(vm, &pVm->accumulator, scratch.floatLiteral); | + memcpy(&floatLiteral, operandBuf, 8); | + result = CHANSVmSetFloat(vm, &pVm->accumulator, floatLiteral); | - rightOp = &scratch.operand; | + rightOp = &operand; | - result = VmLoadImmInteger(vm, &scratch.operand, operandBuf, 1); | + result = VmLoadImmInteger(vm, &operand, operandBuf, 1); | - enumedType = scratch.operandTypes; | + enumedType = operandTypes; | - convTypeIdx = convTbl[scratch.operandTypes[0] * 6 + scratch.operandTypes[1]]; | + convTypeIdx = convTbl[operandTypes[0] * 6 + operandTypes[1]]; | - result = CHANSVmDeleteObject(vm, &scratch.operand); | - if (result == CHANS_VM_OK && leftOp != &pVm->accumulator && leftOp != &scratch.operand && (leftOp->flags.raw & CHANSVM_OBJ_FLAG_READONLY) == 0 && | + result = CHANSVmDeleteObject(vm, &operand); | + if (result == CHANS_VM_OK && leftOp != &pVm- [see trial candidate in /tmp/rx56/trials] 44588 -> 44588 6904 -> 6904 CHANSVmStep 96.98723% -> 96.97526% .strtab, .text True True
|
||||
bs2-loader-False src/BS2/BS2Mach.c:1333 targeted source cleanup restored "- struct { | - u32 offset; | - u32 length; | - u32 address; | - } loaderRead; | + u32 loaderOffset; | + u32 loaderLength; | + u32 loaderAddress; | - status = ((int (*)(u32 *, u32 *, u32 *))((*(void **)&LoaderMain)))(&loaderRead.address, &loaderRead.length, &loaderRead.offset); | + status = ((int (*)(u32 *, u32 *, u32 *))((*(void **)&LoaderMain)))(&loaderAddress, &loaderLength, &loaderOffset); | - BS2Report(""Addr [0x%x] length [0x%x] offset [0x%x]\n"", loaderRead.address, loaderRead.length, loaderRead.offset); | + BS2Report(""Addr [0x%x] length [0x%x] offset [0x%x]\n"", loaderAddress, loaderLength, loaderOffset); | - DVDReadAbsAsyncForBS(&Block, (void *)loaderRead.address, loaderRead.length, loaderRead.offset >> __DVDLayoutFormat, BS2DVDCallback); | + DVDReadAbsAsyncForBS(&Block, (void *)loaderAddress, loaderLength, loaderOffset >> __DVDLayoutFormat, BS2DVDCallback); | - DvdTransferLength = loaderRead.length; | + DvdTransferLength = loaderLength; | - status = ((int (*)(u32 *, u32 *, u32 *))((*(void **)&LoaderMain)))(&loaderRead.address, &loaderRead.length, &loaderRead.offset); | + status = ((int (*)(u32 *, u32 *, u32 *))((*(void **)&LoaderMain)))(&loaderAddress, &loaderLength, &loaderOffset); | - BS2Report(""Addr [0x%x] length [0x%x] offset [0x%x]\n"", loaderRead.address, loaderRead.length, loaderRead.offset); | + BS2Report(""Addr [0x%x] length [0x%x] offset [0x%x]\n"", loaderAddress, [see trial candidate in /tmp/rx56/trials]" 5112 -> 5112 158528 -> 158528 BS2Tick 98.799484% -> 98.78196% .strtab, .text True True
|
||||
bs2-loader-True src/BS2/BS2Mach.c:1333 targeted source cleanup restored "- struct { | - u32 offset; | - u32 length; | - u32 address; | - } loaderRead; | + u32 loaderAddress; | + u32 loaderLength; | + u32 loaderOffset; | - status = ((int (*)(u32 *, u32 *, u32 *))((*(void **)&LoaderMain)))(&loaderRead.address, &loaderRead.length, &loaderRead.offset); | + status = ((int (*)(u32 *, u32 *, u32 *))((*(void **)&LoaderMain)))(&loaderAddress, &loaderLength, &loaderOffset); | - BS2Report(""Addr [0x%x] length [0x%x] offset [0x%x]\n"", loaderRead.address, loaderRead.length, loaderRead.offset); | + BS2Report(""Addr [0x%x] length [0x%x] offset [0x%x]\n"", loaderAddress, loaderLength, loaderOffset); | - DVDReadAbsAsyncForBS(&Block, (void *)loaderRead.address, loaderRead.length, loaderRead.offset >> __DVDLayoutFormat, BS2DVDCallback); | + DVDReadAbsAsyncForBS(&Block, (void *)loaderAddress, loaderLength, loaderOffset >> __DVDLayoutFormat, BS2DVDCallback); | - DvdTransferLength = loaderRead.length; | + DvdTransferLength = loaderLength; | - status = ((int (*)(u32 *, u32 *, u32 *))((*(void **)&LoaderMain)))(&loaderRead.address, &loaderRead.length, &loaderRead.offset); | + status = ((int (*)(u32 *, u32 *, u32 *))((*(void **)&LoaderMain)))(&loaderAddress, &loaderLength, &loaderOffset); | - BS2Report(""Addr [0x%x] length [0x%x] offset [0x%x]\n"", loaderRead.address, loaderRead.length, loaderRead.offset); | + BS2Report(""Addr [0x%x] length [0x%x] offset [0x%x]\n"", loaderAddress, [see trial candidate in /tmp/rx56/trials]" 5112 -> 5112 158528 -> 158528 BS2Tick 98.799484% -> 98.78196% .strtab, .text True True
|
||||
bs2-ticket-buffers src/BS2/BS2Mach.c:495 targeted source cleanup restored - struct { | - ESTitleId title[4]; | - u32 count[56]; | - } work ALIGN32; | + ESTitleId titleWork ALIGN32; | + u32 countWork ALIGN32; | - ESTitleId *title = work.title; | - u32 *ticketCount = work.count; | + ESTitleId *title = &titleWork; | + u32 *ticketCount = &countWork; 5112 -> 4828 158528 -> 158528 BS2ESGetTicketViews 100% -> 99.788734% .strtab, .text True True
|
||||
bs2-launch-buffer src/BS2/BS2Mach.c:537 targeted source cleanup restored - struct { | - ESTitleId title[32]; | - } launchWork ALIGN32; | + ESTitleId launchTitle ALIGN32; | - ESTitleId *title = launchWork.title; | + ESTitleId *title = &launchTitle; 5112 -> 4564 158528 -> 158528 BS2Reboot 100% -> 99.88321% .text True True
|
||||
cdb-epoch-padding-sized libs/RevoEX/src/cdb/CDBConv.c:349 targeted source cleanup restored "- union { | - char storage[20]; | - struct { | - char prefix[8]; | - char value[12]; | - } epoch; | - } epochBuffer; | - strncpy(epochBuffer.epoch.value, CDBKeyStrEpoch(keyString), CDB_KEYSTR_EPOCH_SIZE); | - epochBuffer.epoch.value[CDB_KEYSTR_EPOCH_SIZE] = 0; | - sscanf(epochBuffer.epoch.value, ""%ul"", &epoch); | + char epochString[12]; | + strncpy(epochString, CDBKeyStrEpoch(keyString), CDB_KEYSTR_EPOCH_SIZE); | + epochString[CDB_KEYSTR_EPOCH_SIZE] = 0; | + sscanf(epochString, ""%ul"", &epoch);" 4676 -> 3984 232 -> 232 CDBConvKeyStrToFullPath_ 100% -> 99.96532% .text True True
|
||||
cdb-epoch-padding-terminated libs/RevoEX/src/cdb/CDBConv.c:349 targeted source cleanup restored "- union { | - char storage[20]; | - struct { | - char prefix[8]; | - char value[12]; | - } epoch; | - } epochBuffer; | - strncpy(epochBuffer.epoch.value, CDBKeyStrEpoch(keyString), CDB_KEYSTR_EPOCH_SIZE); | - epochBuffer.epoch.value[CDB_KEYSTR_EPOCH_SIZE] = 0; | - sscanf(epochBuffer.epoch.value, ""%ul"", &epoch); | + char epochString[CDB_KEYSTR_EPOCH_SIZE + 1]; | + strncpy(epochString, CDBKeyStrEpoch(keyString), CDB_KEYSTR_EPOCH_SIZE); | + epochString[CDB_KEYSTR_EPOCH_SIZE] = 0; | + sscanf(epochString, ""%ul"", &epoch);" 4676 -> 3984 232 -> 232 CDBConvKeyStrToFullPath_ 100% -> 99.96532% .text True True
|
||||
mbfield-True libs/RevoEX/src/nwc24/NWC24MsgCommit.c:205 targeted source cleanup restored "- typedef struct { | + static inline NWC24Err WriteMBRegDateField(NWC24MsgObjPrivate* msg) { | - } MBFieldWork; | - static inline NWC24Err WriteMBRegDateField(NWC24MsgObjPrivate* msg) { | - MBFieldWork field; | - field.flags = msg->msgBoardFlags.raw & 0xFFFF; | - if (!field.flags) | + flags = msg->msgBoardFlags.raw & 0xFFFF; | + if (!flags) | - field.buffer = NWC24WorkP->stringWork; | - Mail_memset(field.buffer, 0, 1024); | - Mail_sprintf(field.buffer, ""X-Wii-MB-RegDate: %04X\r\n"", field.flags); | - length = STD_strnlen(field.buffer, 1024); | - err = NWC24FWrite(field.buffer, length, m_pFile); | + buffer = NWC24WorkP->stringWork; | + Mail_memset(buffer, 0, 1024); | + Mail_sprintf(buffer, ""X-Wii-MB-RegDate: %04X\r\n"", flags); | + length = STD_strnlen(buffer, 1024); | + err = NWC24FWrite(buffer, length, m_pFile); | - MBFieldWork field; | + u32 flags; | + char* buffer; | - field.flags = msg->msgBoardFlags.raw & 0xFF0000; | - if (!field.flags) | + flags = msg->msgBoardFlags.raw & 0xFF0000; | + if (!flags) | - field.buffer = NWC24WorkP->stringWork; | - Mail_memset(field.buffer, 0, 1024); | - Mail_sprintf(field.buffer, ""X-Wii-MB-Delay: %02X\r\n"", field.flags >> 16); | - length = STD_strnlen(field.buffer, 1024); | - err = NWC24FWrite(field.buffer, length, m_pFile); | + buffer = NWC24WorkP->stringWork; | + Mail_memset(buffer, 0, 1024); | + Mail_sprintf(buffer, ""X-Wii-MB-Delay: %02X\r\n [see trial candidate in /tmp/rx56/trials]" 8532 -> 5224 904 -> 904 NWC24CommitMsgInternal 100% -> 99.91536% .strtab, .text True True
|
||||
mbfield-False libs/RevoEX/src/nwc24/NWC24MsgCommit.c:205 targeted source cleanup restored "- typedef struct { | + static inline NWC24Err WriteMBRegDateField(NWC24MsgObjPrivate* msg) { | + char* buffer; | - char* buffer; | - } MBFieldWork; | - static inline NWC24Err WriteMBRegDateField(NWC24MsgObjPrivate* msg) { | - MBFieldWork field; | - field.flags = msg->msgBoardFlags.raw & 0xFFFF; | - if (!field.flags) | + flags = msg->msgBoardFlags.raw & 0xFFFF; | + if (!flags) | - field.buffer = NWC24WorkP->stringWork; | - Mail_memset(field.buffer, 0, 1024); | - Mail_sprintf(field.buffer, ""X-Wii-MB-RegDate: %04X\r\n"", field.flags); | - length = STD_strnlen(field.buffer, 1024); | - err = NWC24FWrite(field.buffer, length, m_pFile); | + buffer = NWC24WorkP->stringWork; | + Mail_memset(buffer, 0, 1024); | + Mail_sprintf(buffer, ""X-Wii-MB-RegDate: %04X\r\n"", flags); | + length = STD_strnlen(buffer, 1024); | + err = NWC24FWrite(buffer, length, m_pFile); | - MBFieldWork field; | + char* buffer; | + u32 flags; | - field.flags = msg->msgBoardFlags.raw & 0xFF0000; | - if (!field.flags) | + flags = msg->msgBoardFlags.raw & 0xFF0000; | + if (!flags) | - field.buffer = NWC24WorkP->stringWork; | - Mail_memset(field.buffer, 0, 1024); | - Mail_sprintf(field.buffer, ""X-Wii-MB-Delay: %02X\r\n"", field.flags >> 16); | - length = STD_strnlen(field.buffer, 1024); | - err = NWC24FWrite(field.buffer, length, m_pFile); | + buffer = NWC24WorkP->stringWork; | + Mail_memset(buffer, 0, 1024); | + Mail_sprin [see trial candidate in /tmp/rx56/trials]" 8532 -> 5224 904 -> 904 NWC24CommitMsgInternal 100% -> 99.91536% .strtab, .text True True
|
||||
aterm-key-array src/scene/setting/ATERM.c:1295 targeted source cleanup kept - struct { | - char text[32]; | - char terminator; | - } keyText; | + char keyText[33]; | - keyString = keyText.text; | + keyString = keyText; | - memcpy(keyText.text, sourceKey, 0x20); | - keyText.terminator = '\0'; | - keyLength = strlen(keyText.text); | + memcpy(keyText, sourceKey, 0x20); | + keyText[32] = '\0'; | + keyLength = strlen(keyText); 12200 -> 12200 18864 -> 18864 True True
|
||||
nhttp-token-comparison libs/RevoEX/src/nhttp/NHTTP_thread.c:989 targeted source cleanup restored "- struct TokenMatch { | - BOOL matched; | - }; | - struct TokenMatch match = {FALSE}; | - if (NHTTPi_compareTokenN_HdrRecvBuf(response, offset, offset + length, ""Keep-Alive"", 0) == 0) | - { | - match.matched = TRUE; | - context->keepAlive = match.matched; | - } | - else context->keepAlive = match.matched; | + context->keepAlive = NHTTPi_compareTokenN_HdrRecvBuf(response, offset, offset + length, ""Keep-Alive"", 0) == 0;" 11292 -> 10528 504 -> 504 NHTTPi_ThreadParseHeaderProc 100% -> 96.910995% .rela.text, .strtab, .text, .symtab True True
|
||||
nhttp-token-if libs/RevoEX/src/nhttp/NHTTP_thread.c:989 targeted source cleanup restored - struct TokenMatch { | - BOOL matched; | - }; | - struct TokenMatch match = {FALSE}; | - match.matched = TRUE; | - context->keepAlive = match.matched; | + context->keepAlive = TRUE; | - else context->keepAlive = match.matched; | + else context->keepAlive = FALSE; 11292 -> 10528 504 -> 504 NHTTPi_ThreadParseHeaderProc 100% -> 98.58639% .rela.text, .strtab, .text True True
|
||||
letter-identity src/scene/letterWriter/iplLetterWriter.cpp:17 targeted source cleanup restored - static inline wchar_t* letterWriterCaption(wchar_t* caption) { | - return caption; | - } | - const wchar_t* caption = letterWriterCaption(makeHeaderCaption((const wchar_t*)mFriendInfo.attr.name)); | + const wchar_t* caption = makeHeaderCaption((const wchar_t*)mFriendInfo.attr.name); 6092 -> 5528 632 -> 632 initCalcNormal__Q33ipl5scene12LetterWriterFv 100% -> 99.92908% .strtab, .text True True
|
||||
keyboard-init-zero src/keyboard/tiPcKeyboard.cpp:1643 targeted source cleanup restored - u32 keyMode; | + u32 keyMode = 0; 28484 -> 28064 18564 -> 18564 setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode 100% -> 99.04762% .rela.text, .text, .symtab True True
|
||||
keyboard-init-input-mode src/keyboard/tiPcKeyboard.cpp:1643 targeted source cleanup restored - u32 keyMode; | + u32 keyMode = mode; 28484 -> 28064 18564 -> 18564 setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode 100% -> 99.04762% .rela.text, .text, .symtab True True
|
||||
keyboard-init-current-mode src/keyboard/tiPcKeyboard.cpp:1643 targeted source cleanup restored - u32 keyMode; | + u32 keyMode = mKeyState.abcFlags & 15; 28484 -> 28064 18564 -> 18564 setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode 100% -> 95.2381% .strtab, .rela.text, .text, .symtab True True
|
||||
alloc-register libs/MSL/src/MSL_Common/alloc.c:435 targeted source cleanup kept - register Block* bp; | - register SubBlock* ptr; | + Block* bp; | + SubBlock* ptr; | - void* malloc(register unsigned int size) { | + void* malloc(unsigned int size) { | - register __mem_pool_obj* pool_obj; | + __mem_pool_obj* pool_obj; | - register unsigned int rv = size; | - register __mem_pool_obj* pool; | + unsigned int rv = size; | + __mem_pool_obj* pool; | - register void* ptr; | - register unsigned int total; | + void* ptr; | + unsigned int total; 5176 -> 5176 288 -> 288 True True
|
||||
cx-volatile libs/RVL_SDK/src/cx/CXStreamingUncompression.c:362 volatile cast compile rejected - int c = (*(vu8*)context->decodeTable << currBit) & 0x80; // ? | + int c = (*context->decodeTable << currBit) & 0x80; // ? not measured not measured
|
||||
semaphore-volatile libs/RVL_SDK/src/os/OSSemaphore.c:16 volatile cast restored - while ((count = ((volatile OSSemaphore*)sem)->count) <= 0) { | + while ((count = sem->count) <= 0) { 296 -> 184 0 -> 0 OSWaitSemaphore 100% -> 89.10714% .text, .symtab, .rela.text True True
|
||||
thread-volatile libs/RVL_SDK/src/os/OSThread.c:540 volatile cast kept - if (((volatile OSThread*)thread)->state == OS_THREAD_STATE_DEAD) { | + if (thread->state == OS_THREAD_STATE_DEAD) { 8232 -> 8232 4656 -> 4656 True True
|
||||
dvd-volatile libs/RVL_SDK/src/dvd/dvd.c:1897 volatile cast restored - if (((volatile DVDCommandBlock*)block)->state == DVD_STATE_COVER_CLOSED) { | + if (block->state == DVD_STATE_COVER_CLOSED) { | - } else if (((volatile DVDCommandBlock*)block)->state == DVD_STATE_COVER_OPENED) { | + } else if (block->state == DVD_STATE_COVER_OPENED) { | - retVal = ((volatile DVDCommandBlock*)block)->state; | + retVal = block->state; | - retVal = ((volatile DVDCommandBlock*)block)->state; | + retVal = block->state; | - retVal = ((volatile DVDCommandBlock*)block)->state; | + retVal = block->state; | - state = ((volatile DVDCommandBlock*)block)->state; | + state = block->state; | - command = ((volatile DVDCommandBlock*)block)->command; | + command = block->command; 21692 -> 21492 20688 -> 20688 DVDGetCommandBlockStatus 100% -> 87.94% .rela.text, .text, .symtab True True
|
||||
rso-volatile src/system/RsoSystem.cpp:14 volatile cast restored - GXColor front = {*((volatile const unsigned char*)&scRsoFatalColorR), *((volatile const unsigned char*)&scRsoFatalColorG), *((volatile const unsigned char*)&scRsoFatalColorB), *((volatile const unsigned char*)&scRsoFatalColorA)}; \ | + GXColor front = {scRsoFatalColorR, scRsoFatalColorG, scRsoFatalColorB, scRsoFatalColorA}; \ 2848 -> 2640 96 -> 96 GetTextColor__Q34nw4r3lyt7TextBoxCFUl 100% -> 91.23077% .rela.text, .strtab, .text, .symtab, .comment True True
|
||||
nwc24-volatile src/system/iplNwc24Manager.cpp:936 volatile cast restored - *(volatile const NWC24DlId*)&DL_ID_0, | - *(volatile const NWC24DlId*)&DL_ID_1, | - *(volatile const NWC24DlId*)&DL_ID_5, | - *(volatile const NWC24DlId*)&DL_ID_6, | + DL_ID_0, | + DL_ID_1, | + DL_ID_5, | + DL_ID_6, | - *(volatile const u16*)&DL_INTERVAL_0, | - *(volatile const u16*)&DL_INTERVAL_1, | - *(volatile const u16*)&DL_INTERVAL_2, | - *(volatile const u16*)&DL_INTERVAL_3, | + DL_INTERVAL_0, | + DL_INTERVAL_1, | + DL_INTERVAL_2, | + DL_INTERVAL_3, | - *(volatile const u8*)&DL_PRIORITY_0, | - *(volatile const u8*)&DL_PRIORITY_1, | - *(volatile const u8*)&DL_PRIORITY_2, | - *(volatile const u8*)&DL_PRIORITY_3, | + DL_PRIORITY_0, | + DL_PRIORITY_1, | + DL_PRIORITY_2, | + DL_PRIORITY_3, 10252 -> 10252 888 -> 888 .rela.text, .strtab, .symtab, .comment, .rela.data True True
|
||||
wd-volatile libs/RevoEX/src/wd/WDScan.c:34 volatile cast restored - #define scRsnOui0 (*((volatile const u8*)&scRsnOui0)) | - #define scRsnOui1 (*((volatile const u8*)&scRsnOui1)) | - #define scRsnOui2 (*((volatile const u8*)&scRsnOui2)) | - #define scWpaOui0 (*((volatile const u8*)&scWpaOui0)) | - #define scWpaOui1 (*((volatile const u8*)&scWpaOui1)) | - #define scWpaOui2 (*((volatile const u8*)&scWpaOui2)) | - #define scWpaFindOui0 (*((volatile const u8*)&scWpaFindOui0)) | - #define scWpaFindOui1 (*((volatile const u8*)&scWpaFindOui1)) | - #define scWpaFindOui2 (*((volatile const u8*)&scWpaFindOui2)) 2180 -> 1720 16 -> 16 WDGetPrivacyMode 100% -> 75.36522% .rela.text, .text, .symtab True True
|
||||
url-data-padding src/scene/board/iplUrlProcessor.cpp:246 targeted source cleanup restored "- namespace ipl { | - namespace scene { | - __declspec(weak) u32 url_processor_data_pad() { | - static const u32 pad __attribute__((section("".data""), aligned(1))) = 0; | - return *((volatile const u32*)&pad); | - } | - } // namespace scene | - } // namespace ipl" 2488 -> 2488 48 -> 24 .rela.text, .data, .strtab, .text, .symtab, .comment, .rela.data True True
|
||||
calendar-data-padding src/scene/calendar/iplCalendar.cpp:882 targeted source cleanup restored "- static const f32 pad0 __attribute__((section("".data""), aligned(1), used)) = 0.0f;" 7452 -> 7452 1244 -> 516 .rela.text, .data, .strtab, .symtab, .comment, .rela.data True True
|
||||
date-data-padding src/scene/calendar/iplDate.cpp:65 targeted source cleanup restored - u8 padding[0x10]; | - DECOMP_FORCE_ACTIVE(iplDate_cpp, padding); 2868 -> 2868 356 -> 356 .rela.text, .strtab, .text, .symtab, .comment, .rela.data True True
|
||||
wpad-data-padding libs/RVL_SDK/src/wpad/WPAD.c:790 targeted source cleanup restored - static u8 FAKE_ALIGNMENT[0x10]; | - DECOMP_FORCE_ACTIVE(WPAD_c, _dev_handle_index, FAKE_ALIGNMENT); | + DECOMP_FORCE_ACTIVE(WPAD_c, _dev_handle_index); 31040 -> 30512 15096 -> 15096 WPADiInitSub 100% -> 99.992424% .rela.sdata, .rela.text, .strtab, .text, .symtab, .comment, .rela.data True True
|
||||
chanedit-fake-constructor src/scene/channelEdit/iplChanAppEdit.cpp:31 targeted source cleanup restored - // TODO: Figure out what this might've been/why it isn't inlining | - void CHANAPPEDIT_dummyFunctionToKeepAConstructorStuffFromInlining(nw4r::math::VEC3& vec) { | - math::VEC3 end(vec); | - } 6696 -> 6696 1392 -> 1392 .rela.text, .strtab, .text, .symtab, .comment, .rela.data True True
|
||||
numeric-key-reference src/keyboard/tiCellPhone.cpp:178 targeted source cleanup restored - struct NumericKeyView { | - const PaneNameToCharCode& key; | - NumericKeyView(const KeySet& set, u16 index) : key(set.pPaneNameToCharCode[index]) {} | - bool matches(const char* paneName) const { return util::strcmp(key.szPaneName, paneName); } | - wchar_t character() const { return key.wc[0]; } | - }; | - const NumericKeyView key(csKeySetNumber, index); | - if (key.matches(paneName)) { | - wchar_t character = key.character(); | + const PaneNameToCharCode& key = csKeySetNumber.pPaneNameToCharCode[index]; | + if (util::strcmp(key.szPaneName, paneName)) { | + wchar_t character = key.wc[0]; 19028 -> 16300 3860 -> 3860 onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 100% -> 99.98534% .strtab, .text True True
|
||||
numeric-key-pointer src/keyboard/tiCellPhone.cpp:178 targeted source cleanup restored - struct NumericKeyView { | - const PaneNameToCharCode& key; | - NumericKeyView(const KeySet& set, u16 index) : key(set.pPaneNameToCharCode[index]) {} | - bool matches(const char* paneName) const { return util::strcmp(key.szPaneName, paneName); } | - wchar_t character() const { return key.wc[0]; } | - }; | - const NumericKeyView key(csKeySetNumber, index); | - if (key.matches(paneName)) { | - wchar_t character = key.character(); | + const PaneNameToCharCode* key = &csKeySetNumber.pPaneNameToCharCode[index]; | + if (util::strcmp(key->szPaneName, paneName)) { | + wchar_t character = key->wc[0]; 19028 -> 16300 3860 -> 3860 onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 100% -> 99.98534% .strtab, .text True True
|
||||
numeric-key-indexed src/keyboard/tiCellPhone.cpp:178 targeted source cleanup restored - struct NumericKeyView { | - const PaneNameToCharCode& key; | - NumericKeyView(const KeySet& set, u16 index) : key(set.pPaneNameToCharCode[index]) {} | - bool matches(const char* paneName) const { return util::strcmp(key.szPaneName, paneName); } | - wchar_t character() const { return key.wc[0]; } | - }; | - const NumericKeyView key(csKeySetNumber, index); | - if (key.matches(paneName)) { | - wchar_t character = key.character(); | + if (util::strcmp(csKeySetNumber.pPaneNameToCharCode[index].szPaneName, paneName)) { | + wchar_t character = csKeySetNumber.pPaneNameToCharCode[index].wc[0]; 19028 -> 19028 3860 -> 3860 .strtab True True
|
||||
cell-input-keys-helper src/keyboard/tiCellPhone.cpp:174 targeted source cleanup restored - static inline const PaneNameToCharCode* inputKeys(const LanguageDependencyData* table, u32 mode) { | - return table->keySets[mode]->pPaneNameToCharCode; | - } | - const PaneNameToCharCode* currentKeys = inputKeys(static_cast<const LanguageDependencyData*>(mpInputModeTable), mCurrentInputMode); | + const PaneNameToCharCode* currentKeys = static_cast<const LanguageDependencyData*>(mpInputModeTable)->keySets[mCurrentInputMode]->pPaneNameToCharCode; 19028 -> 16300 3860 -> 3860 onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 100% -> 99.95601% .strtab, .text True True
|
||||
vm-status-width src/channelScript/CHANSVm.c:7104 targeted source cleanup restored + u32 immediateSize; | - result = 1; | + immediateSize = 1; | - result = 2; | + immediateSize = 2; | - result = 4; | + immediateSize = 4; | - result = 8; | + immediateSize = 8; | - opSize = result + 1; | + opSize = immediateSize + 1; | - result = VmLoadImmInteger(vm, &pVm->accumulator, operandBuf, result); | + result = VmLoadImmInteger(vm, &pVm->accumulator, operandBuf, immediateSize); 44588 -> 44588 6904 -> 6904 .strtab True True
|
||||
aoss-wait-union src/scene/setting/AOSS.c:428 targeted source cleanup restored - u16 defaultConnection; | - u16 defaultResponse; | - union { | - struct { s16 connection; s16 response; } limits; | - struct { u16 connection; u16 response; } defaults; | - } waitIntervals; | + s16 connectionWait; | + s16 responseWait; | - defaultConnection = s_defaultOptions[0]; | - defaultResponse = s_defaultOptions[1]; | - waitIntervals.defaults.connection = defaultConnection; | - waitIntervals.defaults.response = defaultResponse; | - waitIntervals.limits.connection = input->options[0]; | - if (waitIntervals.limits.connection == -1) { | - waitIntervals.limits.connection = 10; | + connectionWait = input->options[0]; | + if (connectionWait == -1) { | + connectionWait = 10; | - waitIntervals.limits.response = input->options[1]; | - if (waitIntervals.limits.response == -1) { | - waitIntervals.limits.response = 100; | + responseWait = input->options[1]; | + if (responseWait == -1) { | + responseWait = 100; | - initialWait = waitIntervals.limits.connection; | + initialWait = connectionWait; | - remainingWait = waitIntervals.limits.response; | + remainingWait = responseWait; | - initialWait = waitIntervals.limits.connection; | + initialWait = connectionWait; | - remainingWait = (u16)waitIntervals.limits.response; | + remainingWait = (u16)responseWait; | - if (attemptCount == waitIntervals.limits.connection) { | + if (attemptCount == connectionWait) { | - initialWait = waitInterval [see trial candidate in /tmp/rx56/trials] 7720 -> 7720 3928 -> 3920 AOSS_Init_old 96.18624% -> 95.2601% .comment, .rela.data, .rela.text, .sdata2, .shstrtab, .strtab, .symtab, .text True True
|
||||
cx-volatile-raw-field libs/RVL_SDK/src/cx/CXStreamingUncompression.c:362 volatile cast restored - int c = (*(vu8*)context->decodeTable << currBit) & 0x80; // ? | + int c = (context->decodeTable->raw << currBit) & 0x80; // ? 2684 -> 1772 0 -> 0 CXReadUncompHuffman 100% -> 96.53509% .symtab, .text True True
|
||||
mbox-plain-locals libs/RevoEX/src/nwc24/NWC24MBoxCtrl.c:558 targeted source cleanup restored - static inline void GetOldestMsgId(const MBCHeader* header, volatile u32* id) { | - *id = header->oldestId; | - } | - struct { | - volatile u32 oldestId; | - MBCHeader* header; | - } mailbox; | + MBCHeader* header; | + u32 oldestId; | - err = GetCachedMBCHeader(type, &mailbox.header); | + err = GetCachedMBCHeader(type, &header); | - if (mailbox.header->numMessages >= mailbox.header->capacity) | + if (header->numMessages >= header->capacity) | - if (mailbox.header->freeBytes <= required) | + if (header->freeBytes <= required) | - while (mailbox.header->numMessages >= mailbox.header->capacity || mailbox.header->freeBytes <= required) { | - GetOldestMsgId(mailbox.header, &mailbox.oldestId); | - err = DeleteMsg(type, mailbox.oldestId, FALSE); | + while (header->numMessages >= header->capacity || header->freeBytes <= required) { | + oldestId = header->oldestId; | + err = DeleteMsg(type, oldestId, FALSE); | - err = GetCachedMBCHeader(type, &mailbox.header); | + err = GetCachedMBCHeader(type, &header); 10604 -> 10332 192 -> 192 NWC24iMBoxCheck 100% -> 96.92647% .rela.text, .strtab, .symtab, .text True True
|
||||
ncd-interrupt-scope libs/RevoEX/src/ncd/ncdsystem.c:55 targeted source cleanup restored - union { | - BOOL enabled; | - NCDConfig* config; | - } state; | + NCDConfig* config; | - state.enabled = OSDisableInterrupts(); | + { | + BOOL enabled = OSDisableInterrupts(); | - OSRestoreInterrupts(state.enabled); | + OSRestoreInterrupts(enabled); | + } | - state.config = ncdCommonBuffer; | + config = ncdCommonBuffer; | - state.config->selectedMedia = 0; | + config->selectedMedia = 0; | - state.config->selectedMedia = ifConfig->selectedMedia; | - profile = state.config->profiles; | + config->selectedMedia = ifConfig->selectedMedia; | + profile = config->profiles; | - state.config->linkTimeout = ifConfig->linkTimeout; | + config->linkTimeout = ifConfig->linkTimeout; | - if (state.config->profiles[i].flags & 0x80) { | + if (config->profiles[i].flags & 0x80) { | - state.config->profiles[i].flags &= ~1; | + config->profiles[i].flags &= ~1; | - state.config->profiles[i].flags |= 1; | + config->profiles[i].flags |= 1; | - state.config->profiles[0].flags |= 0x80; | + config->profiles[0].flags |= 0x80; | - state.config->profiles[0].flags &= ~1; | - memcpy(&state.config->profiles[0].netif.wireless, &ifConfig->netif, 0x15c); | + config->profiles[0].flags &= ~1; | + memcpy(&config->profiles[0].netif.wireless, &ifConfig->netif, 0x15c); | - state.config->profiles[0].flags |= 1; | - memcpy(&state.config->profiles[0].netif.wired, &ifConfig->netif, 4); | + config->profiles[0].flags |= 1; | [see trial candidate in /tmp/rx56/trials] 4180 -> 3560 496 -> 496 NCDSetIfConfig 100% -> 99.935486% .strtab, .text True True
|
||||
kpr-alignment-carrier libs/RVL_SDK/src/kpr/kpr_lib.c:159 targeted source cleanup restored - static union { u64 align; u8 flag; } once; | - if (!once.flag) { | + static u8 once; | + if (!once) { | - once.flag = TRUE; | + once = TRUE; 1536 -> 1536 1104 -> 1088 .comment, .sbss, .symtab True True
|
||||
nhttp-unused-once libs/RevoEX/src/nhttp/d_nhttp.c:664 targeted source cleanup restored - { | - static s32 debugSet; | - if (debugSet == 0) | - { | - debugSet = 1; | - } | - } 3180 -> 3180 720 -> 720 .comment, .rela.text, .sbss, .strtab, .symtab, .text True True
|
||||
egg-thunk-carrier libs/EGG/src/core/eggAudioExpMgr.cpp:33 targeted source cleanup restored - ExpAudioMgr::ExpAudioMgr() { | - } | - ExpAudioMgr::~ExpAudioMgr() { | - } 524 -> 524 120 -> 120 .comment, .data, .rela.data, .rela.text, .strtab, .symtab, .text True True
|
||||
whitespace-NANDCore libs/RVL_SDK/src/nand/NANDCore.c:58 targeted source cleanup kept 4472 -> 4472 800 -> 800 True True
|
||||
whitespace-tiDebug src/keyboard/tiDebug.cpp:113 targeted source cleanup kept 1556 -> 1556 24 -> 24 True True
|
||||
whitespace-rvl_dec src/system/rvl_dec.c:643 targeted source cleanup kept 2600 -> 2600 36872 -> 36872 True True
|
||||
force-macros-0 libs/RVL_SDK/src/axfx/AXFXReverbHiExp.c:374 force-retention macro restored - DECOMP_FORCE_LITERAL(AXFXReverbHiExp_c, -3.0f, 10.0); 3892 -> 3892 480 -> 416 .comment, .rela.text, .sdata2, .strtab, .symtab, .text True True
|
||||
force-macros-1 libs/RVL_SDK/src/axfx/AXFXReverbHiExpDpl2.c:388 force-retention macro restored - DECOMP_FORCE_LITERAL(AXFXReverbHiExpDpl2_c, -3.0f, 10.0); 4096 -> 4096 512 -> 448 .comment, .rela.text, .sdata2, .strtab, .symtab, .text True True
|
||||
force-macros-2 libs/RVL_SDK/src/cnt/cnt.c:14 force-retention macro restored "- DECOMP_FORCE_ACTIVE(cnt_c, ""<< RVL_SDK - CNT \trelease build: Apr 20 2010 11:21:37 (0x4199_60831) >>""); | - DECOMP_FORCE_ACTIVE(cnt_c, ""/content%d""); | - DECOMP_FORCE_ACTIVE(cnt_c, ""Warning: CNTInitHandle(): directory '%s' is not found under '/'\n"");" 2228 -> 1892 888 -> 632 __CNTConvertErrorCode 100% -> 99.96429% .comment, .data, .rela.text, .strtab, .symtab, .text False False
|
||||
force-macros-3 libs/RVL_SDK/src/dvd/dvd_broadway.c:102 force-retention macro restored "- DECOMP_FORCE_ACTIVE(dvd_broadway_c, dvdContexts); | - DECOMP_FORCE_ACTIVE(dvd_broadway_c, ""(doCoverCallback) Error - context mangled!\n""); | - DECOMP_FORCE_ACTIVE(dvd_broadway_c, coverStatus); | - DECOMP_FORCE_ACTIVE(dvd_broadway_c, coverRegister); | - DECOMP_FORCE_ACTIVE(dvd_broadway_c, ""DVDLowOpenPartitionWithTmdAndTicket""); | - DECOMP_FORCE_ACTIVE(dvd_broadway_c, ""(%s) eTicket memory is unaligned\n""); | - DECOMP_FORCE_ACTIVE(dvd_broadway_c, ""(%s) tmd parameter cannot be NULL\n""); | - DECOMP_FORCE_ACTIVE(dvd_broadway_c, ""(%s) tmd memory is unaligned\n""); | - DECOMP_FORCE_ACTIVE(dvd_broadway_c, ""(%s) eTicket parameter cannot be NULL\n""); | - DECOMP_FORCE_ACTIVE(dvd_broadway_c, ""DVDLowNoDiscOpenPartition""); | - DECOMP_FORCE_ACTIVE(dvd_broadway_c, ""@@@ (DVDLowWaitForCoverClose) IOS_IoctlAsync returned error: %d\n""); | - DECOMP_FORCE_ACTIVE(dvd_broadway_c, ""@@@ (DVDLowInquiry) IOS_IoctlAsync returned error: %d\n""); | - DECOMP_FORCE_ACTIVE(dvd_broadway_c, ""@@@ (DVDLowRequestError) IOS_IoctlAsync returned error: %d\n""); | - DECOMP_FORCE_ACTIVE(dvd_broadway_c, ""(DVDLowSetSpinupFlag): Synch functions can't be called in callbacks\n""); | - DECOMP_FORCE_ACTIVE(dvd_broadway_c, ""@@@ (DVDLowNotifyReset) IOS_IoctlAsync returned error: %d\n""); | - DECOMP_FORCE_ACTIVE(dvd_broadway_c, ""@@@ (DVDLowReset) IOS_IoctlAsync returned error: %d\n""); | - DECOMP_FORCE_ACTIVE(dvd_broadway_c, ""(DVDLowGe [see trial candidate in /tmp/rx56/trials]" 8900 -> 540 4248 -> 56 DVDLowOpenPartitionWithTmdAndTicketView 100% -> 99.90849%; DVDLowSeek 100% -> 99.95789%; DVDLowClosePartition 100% -> 99.955055%; DVDLowUnencryptedRead 100% -> 99.960396%; DVDLowClearCoverInterrupt 100% -> 99.955055%; DVDLowInquiry 100% -> 99.95556%; DVDLowGetNoDiscOpenPartitionParams 100% -> 99.945786%; DVDLowPrepareCoverRegister 100% -> 99.95556%; DVDLowAudioBufferConfig 100% -> 99.960396%; DVDLowReset 100% -> 99.95789%; DVDLowRequestError 100% -> 99.95556%; DVDLowGetNoDiscBufferSizes 100% -> 99.91603%; DVDLowReadDiskID 100% -> 99.94898%; DVDLowOpenPartition 100% -> 99.94156%; DVDLowPrepareStatusRegister 100% -> 99.95556%; DVDLowInit 100% -> 99.94118%; DVDLowStopMotor 100% -> 99.960396%; DVDLowSetMaximumRotation 100% -> 99.958336%; DVDLowRead 100% -> 99.953705% .bss, .comment, .data, .rela.text, .strtab, .symtab, .text False False
|
||||
force-macros-4 libs/RVL_SDK/src/ipc/ipcProfile.c:16 force-retention macro restored - DECOMP_FORCE_ACTIVE(ipcProfile_c, IpcFdArray); // Force `IpcFdArray` to be first 452 -> 452 264 -> 264 .comment, .rela.text, .strtab, .symtab, .text True True
|
||||
force-macros-5 libs/RVL_SDK/src/os/OSExec.c:22 force-retention macro restored "- DECOMP_FORCE_ACTIVE(OSExec_c, ""\nOSExec(): Failed to exec %d in %d\n""); | - DECOMP_FORCE_ACTIVE(OSExec_c, ""\nOSExec(): The specified game doesn't exist in the disc\n""); | - DECOMP_FORCE_ACTIVE(OSExec_c, ""OSLaunchDisk(): You can't call this API from DVD application. \n""); | - DECOMP_FORCE_ACTIVE(OSExec_c, ""OSLaunchDisk(): You must call DVDPrepareDisk before launching disc.\n""); | - DECOMP_FORCE_ACTIVE(OSExec_c, ""OSLaunchDisk(): Specified id is different from one specified to DVDPrepareDisk.\n""); | - DECOMP_FORCE_ACTIVE(OSExec_c, ""0000000000000000""); | - DECOMP_FORCE_ACTIVE(OSExec_c, ""2004/02/01""); | - DECOMP_FORCE_ACTIVE(OSExec_c, ""OSLaunchPartition(): You can't call this API from NAND application. \n""); | - DECOMP_FORCE_ACTIVE(OSExec_c, ""OSLaunchPartition(): Specified title ID is not DISC application. \n"");" 3476 -> 2284 864 -> 16 LaunchCommon 100% -> 99.98322% .comment, .data, .rela.text, .strtab, .symtab, .text False False
|
||||
force-macros-6 libs/RVL_SDK/src/os/OSNet.c:41 force-retention macro restored "- DECOMP_FORCE_ACTIVE(OSNet_c, ""NWC24iPrepareShutdown""); | - DECOMP_FORCE_ACTIVE(OSNet_c, ""/dev/net/kd/request""); | - DECOMP_FORCE_ACTIVE(OSNet_c, ""NWC24SuspendScheduler""); | - DECOMP_FORCE_ACTIVE(OSNet_c, ""NWC24ResumeScheduler""); | - DECOMP_FORCE_ACTIVE(OSNet_c, ""NWC24iRequestShutdown""); | - DECOMP_FORCE_ACTIVE(OSNet_c, ""NWC24Shutdown_: Give up!\n""); // Give up! | - DECOMP_FORCE_ACTIVE(OSNet_c, ""NWC24iSetRtcCounter_""); | - DECOMP_FORCE_ACTIVE(OSNet_c, ""/dev/net/kd/time"");" 188 -> 188 360 -> 0 .comment, .data, .rela.text, .strtab, .symtab, .text False False
|
||||
force-macros-7 libs/RVL_SDK/src/os/OSPlayRecord.c:13 force-retention macro restored - DECOMP_FORCE_ACTIVE(OSPlayRecord_c, PlayRecord); 2288 -> 2288 624 -> 624 .comment, .rela.text, .strtab, .symtab, .text True True
|
||||
force-macros-8 libs/RVL_SDK/src/os/OSReset.c:66 force-retention macro restored "- DECOMP_FORCE_ACTIVE(OSReset_c, ""OSReset.c""); | - DECOMP_FORCE_ACTIVE(OSReset_c, ""__OSHotReset(): Falied to reset system.\n""); | - DECOMP_FORCE_ACTIVE(OSReset_c, ""OSReturnToMenu(): Falied to boot system menu.\n""); | - DECOMP_FORCE_ACTIVE(OSReset_c, ""OSReturnToDataManager(): Falied to boot system menu.\n""); | - DECOMP_FORCE_ACTIVE(OSReset_c, ""OSResetSystem() is obsoleted. It doesn't work any longer.\n""); | - DECOMP_FORCE_ACTIVE(OSReset_c, ""OSSetBootDol() is obsoleted. It doesn't work any longer.\n"");" 1308 -> 956 672 -> 24 __OSReturnToMenuForError 100% -> 99.902435%; OSReturnToSetting 100% -> 99.80851% .comment, .data, .rela.data, .rela.text, .strtab, .symtab, .text False False
|
||||
force-macros-9 libs/RVL_SDK/src/os/OSThread.c:863 force-retention macro restored - DECOMP_FORCE_ACTIVE(OSThread_c, IdleThread); // IdleThread is unused but linked anyway. 8232 -> 8232 4656 -> 2088 .bss, .comment, .rela.text, .strtab, .symtab, .text True True
|
||||
force-macros-10 libs/RVL_SDK/src/usb/usb.c:216 force-retention macro restored "- DECOMP_FORCE_ACTIVE(usb_c, ""OpenDevice\n""); | - DECOMP_FORCE_ACTIVE(usb_c, ""OpenDeviceIdsAsync: Not enough memory\n""); | - DECOMP_FORCE_ACTIVE(usb_c, ""CloseDevice\n""); | - DECOMP_FORCE_ACTIVE(usb_c, ""CloseDevice returned: %d\n""); | - DECOMP_FORCE_ACTIVE(usb_c, ""openDevice: Not enough memory\n""); | - DECOMP_FORCE_ACTIVE(usb_c, ""getDeviceList: Not enough memory\n""); | - DECOMP_FORCE_ACTIVE(usb_c, ""CloseDeviceAsync: Not enough memory\n""); | - DECOMP_FORCE_ACTIVE(usb_c, ""openDevice: Not enough memory\n""); | - DECOMP_FORCE_ACTIVE(usb_c, ""getDeviceList: Not enough memory\n""); | - DECOMP_FORCE_ACTIVE(usb_c, ""getDeviceList: Not enough memory\n""); | - DECOMP_FORCE_ACTIVE(usb_c, ""__IntrBlkMsgInt: Not enough memory\n""); | - DECOMP_FORCE_ACTIVE(usb_c, ""intr/blk ioctl returned: %d\n""); | - DECOMP_FORCE_ACTIVE(usb_c, ""IntBlkMsgInt (async): Not enough memory\n""); | - DECOMP_FORCE_ACTIVE(usb_c, ""intrblkmsg: cb = 0x%x cbArg = 0x%x\n""); | - DECOMP_FORCE_ACTIVE(usb_c, ""ctrlmsg: bad data buffer\n""); | - DECOMP_FORCE_ACTIVE(usb_c, ""Ctrl Msg: Not enough memory\n""); | - DECOMP_FORCE_ACTIVE(usb_c, ""CtrlMsgInt (async): Not enough memory\n""); | - DECOMP_FORCE_ACTIVE(usb_c, ""ctrlmsgint: cb = 0x%x cbArg = 0x%x\n""); | - DECOMP_FORCE_ACTIVE(usb_c, ""Ctrl Msg async returned: %d\n""); | - DECOMP_FORCE_ACTIVE(usb_c, ""GetStrCb returned: %d\n""); | - DECOMP_FORCE_ACTIVE(usb_c, ""GetStrCb: buf = 0x%x buflen = %u\n"" [see trial candidate in /tmp/rx56/trials]" 4396 -> 1832 1712 -> 32 __IntrBlkMsgInt 100% -> 99.980675%; __CtrlMsgInt 100% -> 99.98615%; IUSB_CloseDeviceAsync 100% -> 99.9589% .comment, .data, .rela.text, .strtab, .symtab, .text False False
|
||||
force-macros-11 libs/RVL_SDK/src/wpad/WPAD.c:791 force-retention macro restored - DECOMP_FORCE_ACTIVE(WPAD_c, _dev_handle_index, FAKE_ALIGNMENT); 31040 -> 30512 15096 -> 15096 WPADiInitSub 100% -> 99.992424% .bss, .comment, .rela.data, .rela.sdata, .rela.text, .strtab, .symtab, .text True True
|
||||
force-macros-12 libs/RVL_SDK/src/wud/WUD.c:1057 force-retention macro restored "- DECOMP_FORCE_ACTIVE(WUD_c, ""name : %s\n"") | - DECOMP_FORCE_ACTIVE(WUD_c1, ""WUDStartSyncSpDevice()\n""); | - DECOMP_FORCE_ACTIVE(WUD_c2, ""WUDCancelSyncDevice()\n""); | - DECOMP_FORCE_ACTIVE(WUD_c3, ""WUDiCancelSync()\n""); | - DECOMP_FORCE_ACTIVE(WUD_c4, ""_WUDEnableTestMode\n"") | - DECOMP_FORCE_ACTIVE(WUD_c5, ""_WUDStartSyncDevice()\n"") | - DECOMP_FORCE_ACTIVE(WUD_c6, ""_WUDDeleteStoreDevice()\n"") | - DECOMP_FORCE_ACTIVE(WUD_c7, ""dev number = %d\n"") | - DECOMP_FORCE_ACTIVE(WUD_c8, ""Nintendo RVL-WBC"")" 18852 -> 14420 12016 -> 8152 WUDSecurityCallback 100% -> 99.935486%; WUDStoredLinkKeyCallback 100% -> 99.93048%; WUDVendorSpecificCallback 100% -> 99.96135%; WUDiRemoveDevice 100% -> 99.93104%; WUDPowerManagerCallback 100% -> 99.93671%; WUDSearchCallback 100% -> 99.9542%; WUDiRegisterDevice 100% -> 99.97369% .comment, .data, .rela.data, .rela.text, .strtab, .symtab, .text False False
|
||||
force-macros-13 libs/RevoEX/src/cdb/CDBConv.c:134 force-retention macro restored "- DECOMP_FORCE_ACTIVE(CDBConv_c, ""%08X""); | - DECOMP_FORCE_ACTIVE(CDBConv_c, ""%04d%02d%02d"");" 4676 -> 3984 232 -> 0 CDBConvKeyStrToFullPath_ 100% -> 99.98266% .comment, .data, .rela.data, .rela.text, .sdata, .strtab, .symtab, .text False False
|
||||
force-macros-14 libs/RevoEX/src/cdb/CDBFileSystem.c:14 force-retention macro restored "- DECOMP_FORCE_ACTIVE(CDBFileSystem_c, ""NANDCreateDir %s\n""); | - DECOMP_FORCE_ACTIVE(CDBFileSystem_c, ""NANDCreateDir() error = %d\n""); | - DECOMP_FORCE_ACTIVE(CDBFileSystem_c, ""NANDPrivateGetStatus %s = %d\n""); | - DECOMP_FORCE_ACTIVE(CDBFileSystem_c, ""ownerId=%u, groupId=%u, attribute=%u, permission=""); | - DECOMP_FORCE_ACTIVE(CDBFileSystem_c, ""(other-group-owner)\n""); | - DECOMP_FORCE_ACTIVE(CDBFileSystem_c, ""nocopy/cdbwiiid.dat""); | - DECOMP_FORCE_ACTIVE(CDBFileSystem_c, ""VFMountDriveNANDFlashEx VFErr=%d(%s)\n""); | - DECOMP_FORCE_ACTIVE(CDBFileSystem_c, ""home=%s\n""); | - DECOMP_FORCE_ACTIVE(CDBFileSystem_c, ""VFCreateSystemFileNANDFlashEx DEVErr=%d\n""); | - DECOMP_FORCE_ACTIVE(CDBFileSystem_c, ""VFMountDriveNANDFlashEx VFErr=%d\n""); | - DECOMP_FORCE_ACTIVE(CDBFileSystem_c, ""VFFormatDrive VFErr=%d\n""); | - DECOMP_FORCE_ACTIVE(CDBFileSystem_c, ""VFMountDriveNANDFlashEx %s->%s succeeded\n""); | - DECOMP_FORCE_ACTIVE(CDBFileSystem_c, ""VFChangeDir %s %s\n""); | - DECOMP_FORCE_ACTIVE(CDBFileSystem_c, ""NANDPrivateDelete %s-->\n""); | - DECOMP_FORCE_ACTIVE(CDBFileSystem_c, ""NANDPrivateDelete=%d\n""); | - DECOMP_FORCE_ACTIVE(CDBFileSystem_c, ""<--NANDPrivateDelete\n"");" 1672 -> 656 952 -> 152 CDBFSInit 100% -> 99.94095% .comment, .data, .rela.text, .strtab, .symtab, .text False False
|
||||
force-macros-15 libs/RevoEX/src/cdb/CDBFileSystemSD.c:287 force-retention macro restored - DECOMP_FORCE_ACTIVE(CDBFileSystem_c, CDB_SD_VFF_FILE_NAME); // Unused but linked 2072 -> 2072 616 -> 616 .comment, .rela.text, .strtab, .symtab, .text True True
|
||||
force-macros-16 src/channelScript/systemmenu/iplCSMtx.cpp:9 force-retention macro restored "- DECOMP_FORCE_ACTIVE(iplCSMtx_cpp, ""MTX34"");" 1492 -> 1492 232 -> 72 .comment, .rela.rodata, .rela.text, .sdata, .strtab, .symtab, .text True True
|
||||
force-macros-17 src/channelScript/systemmenu/iplCSSavedata.cpp:622 force-retention macro restored - DECOMP_FORCE_LITERAL(iplCSSavedata_cpp, util::get_int<COMPRESSION_LZ>) | - DECOMP_FORCE_LITERAL(iplCSSavedata_cpp, util::get_int<COMPRESSION_HUFFMAN>) | - DECOMP_FORCE_LITERAL(iplCSSavedata_cpp, util::get_int<COMPRESSION_RL>) 5836 -> 5836 512 -> 512 .comment, .rela.rodata, .rela.text, .strtab, .symtab, .text True True
|
||||
force-macros-18 src/keyboard/tiDebug.cpp:15 force-retention macro restored - DECOMP_FORCE_LITERAL(tiDebug_cpp, 0.0f); 1556 -> 1556 24 -> 24 .comment, .rela.text, .sdata2, .strtab, .symtab, .text True True
|
||||
force-macros-19 src/keyboard/tiPredictLang.cpp:518 force-retention macro restored - DECOMP_FORCE_ACTIVE(tiPredictLang_cpp, (((CommandSender*)(NULL))->updateFromReceiver(0, NULL), 0)) 5536 -> 5536 2300 -> 2300 .comment, .rela.data, .rela.text, .strtab, .symtab, .text True True
|
||||
force-macros-20 src/scene/board/iplFocusObject.cpp:1246 force-retention macro restored "- DECOMP_FORCE_ACTIVE(iplFocusObject_cpp, L"".html""); | - DECOMP_FORCE_ACTIVE(iplFocusObject_cpp, L"".htm""); | - DECOMP_FORCE_ACTIVE(iplFocusObject_cpp, L"".shtml""); | - DECOMP_FORCE_ACTIVE(iplFocusObject_cpp, L"".shtm""); | - DECOMP_FORCE_ACTIVE(iplFocusObject_cpp, L"".cgi""); | - DECOMP_FORCE_ACTIVE(iplFocusObject_cpp, L"".php""); | - DECOMP_FORCE_ACTIVE(iplFocusObject_cpp, L"".asp""); | - DECOMP_FORCE_ACTIVE(iplFocusObject_cpp, L"".jsp"");" 20332 -> 19488 2576 -> 232 onEventDerived__Q33ipl5scene12button_eventFUlUlPCQ33ipl10controller9Interface 100% -> 99.98578% .comment, .data, .rela.data, .rela.rodata, .rela.text, .strtab, .symtab, .text True True
|
||||
force-macros-21 src/scene/calendar/iplDate.cpp:67 force-retention macro restored - DECOMP_FORCE_ACTIVE(iplDate_cpp, padding); 2868 -> 2868 356 -> 356 .comment, .rela.data, .rela.text, .strtab, .symtab, .text True True
|
||||
force-macros-22 src/scene/sdButton/iplSDMenuButton.cpp:26 force-retention macro restored - DECOMP_FORCE_LITERAL(iplSDMenuButton_cpp, -152.0f); 3120 -> 3120 560 -> 560 .comment, .rela.data, .rela.text, .sdata2, .strtab, .symtab, .text True True
|
||||
force-macros-23 src/scene/setting/iplParental.cpp:327 force-retention macro restored "- DECOMP_FORCE_ACTIVE(iplParental_cpp, ""flags:%d\n""); | - DECOMP_FORCE_ACTIVE(iplParental_cpp, ""rating:%d\n""); | - DECOMP_FORCE_ACTIVE(iplParental_cpp, ""password:%s\n""); | - DECOMP_FORCE_ACTIVE(iplParental_cpp, ""secretQuestion:%d\n""); | - DECOMP_FORCE_ACTIVE(iplParental_cpp, ""secretAnswer:%s\n""); | - DECOMP_FORCE_ACTIVE(iplParental_cpp, ""secretAnswerLength:%d\n""); | - DECOMP_FORCE_ACTIVE(iplParental_cpp, ""net contents restrictions:%02x\n""); | - DECOMP_FORCE_ACTIVE(iplParental_cpp, ""www channel restriction :%d\n""); | - DECOMP_FORCE_ACTIVE(iplParental_cpp, ""requestNum:%s\n""); | - DECOMP_FORCE_ACTIVE(iplParental_cpp, ""masterkey:%s\n""); | - DECOMP_FORCE_ACTIVE(iplParental_cpp, ""country: %d\n"");" 2376 -> 2376 1576 -> 1240 .comment, .data, .rela.text, .strtab, .symtab, .text False False
|
||||
egg-unused-constructors libs/EGG/src/core/eggAudioExpMgr.cpp:13 targeted source cleanup restored - // auto generates constructors | - SimpleAudioMgrArg unused0; | - AudioFxMgr::AudioFxMgrArg unused1; 524 -> 452 120 -> 120 __ct__Q33EGG20SimpleAudioMgrWithFx9ArgWithFxFv 100% -> 77.44444% .rela.text, .symtab, .text True True
|
||||
board-carrier-types src/scene/board/iplBoard.cpp:432 targeted source cleanup restored - struct RecordReadState { | - BOOL recordInterrupts; | - u32 dataSize; | - BOOL waitInterrupts; | - BOOL slotInterrupts; | - int recordSecond; | - int recordMin; | - int recordHour; | - u32 recordGC; | - CDBId cdbId; | - char recordType[8]; | - utility::Date recordDate; | - CDBRecordKey recordKey; | - } state; | - state.recordGC = 0; | + u32 dataSize; | + BOOL slotInterrupts; | + BOOL waitInterrupts; | + BOOL recordInterrupts; | + int recordSecond; | + int recordMin; | + int recordHour; | + u32 recordGC; | + CDBId cdbId; | + char recordType[8]; | + utility::Date recordDate; | + CDBRecordKey recordKey; | + recordGC = 0; | - state.recordType[0] = 0; | - state.recordType[1] = 0; | - state.recordType[2] = 0; | - state.recordType[3] = 0; | - state.recordType[4] = 0; | - state.recordType[5] = 0; | - state.recordType[6] = 0; | - state.recordType[7] = 0; | + recordType[0] = 0; | + recordType[1] = 0; | + recordType[2] = 0; | + recordType[3] = 0; | + recordType[4] = 0; | + recordType[5] = 0; | + recordType[6] = 0; | + recordType[7] = 0; | - CDBRecordGetCalendarTimeForce(record, &state.recordDate.year, &state.recordDate.month, &state.recordDate.day, | - &state.recordHour, &state.recordMin, &state.recordSecond); | - CDBRecordGetKeyForce(record, &state.recordKey); | - CDBRecordGetTypeForce(record, state.recordType); | - CDBRecordGetGameCodeForce(record, (char*)&state.recordGC); | + CDBReco [see trial candidate in /tmp/rx56/trials] 20276 -> 19144 896 -> 896 appendRecord__Q33ipl5scene5BoardFP10_CDBRecord 100% -> 97.837456% .strtab, .text True True
|
||||
aoss-integrity-scope src/scene/setting/AOSS.c:1854 targeted source cleanup compile rejected - struct { u32 expected; u32 actual; } integrity; | + u32 expectedChecksum; | - integrity.expected = message->checksum; | + expectedChecksum = message->checksum; | - integrity.actual = 0xffffffff; | + u32 actualChecksum = 0xffffffff; | - integrity.actual = (integrity.actual >> 8) ^ s_crcTable[(integrity.actual ^ decryptedData[crcIndex]) & 0xff]; | + actualChecksum = (actualChecksum >> 8) ^ s_crcTable[(actualChecksum ^ decryptedData[crcIndex]) & 0xff]; | - if (((integrity.actual ^ 0xffffffff) & 0xff) != integrity.expected) { | + if (((actualChecksum ^ 0xffffffff) & 0xff) != expectedChecksum) { not measured not measured
|
||||
cdb-epoch-reuse libs/RevoEX/src/cdb/CDBConv.c:349 targeted source cleanup restored "- union { | - char storage[20]; | - struct { | - char prefix[8]; | - char value[12]; | - } epoch; | - } epochBuffer; | - strncpy(epochBuffer.epoch.value, CDBKeyStrEpoch(keyString), CDB_KEYSTR_EPOCH_SIZE); | - epochBuffer.epoch.value[CDB_KEYSTR_EPOCH_SIZE] = 0; | - sscanf(epochBuffer.epoch.value, ""%ul"", &epoch); | + strncpy(fileEpochStr, CDBKeyStrEpoch(keyString), CDB_KEYSTR_EPOCH_SIZE); | + fileEpochStr[CDB_KEYSTR_EPOCH_SIZE] = 0; | + sscanf(fileEpochStr, ""%ul"", &epoch);" 4676 -> 3984 232 -> 232 CDBConvKeyStrToFullPath_ 100% -> 99.93063% .strtab, .text True True
|
||||
cdb-decoded-scope libs/RevoEX/src/cdb/CDBDatabase.c:353 targeted source cleanup restored - struct { | + CDBDate date; | + char type[8]; | + CDBConvKeyStrToEpochValue(key, &date); | + if (conditions->beginDate > date || date > conditions->endDate) return CDB_ERROR_OK; | + if (conditions->makerCode != 0xFFFF) { | - u32 gameCode; | - CDBDate date; | - char type[8]; | - } decoded; | - CDBConvKeyStrToEpochValue(key, &decoded.date); | - if (conditions->beginDate > decoded.date || decoded.date > conditions->endDate) return CDB_ERROR_OK; | - if (conditions->makerCode != 0xFFFF) { | - CDBConvKeyStrToMakerCode(key, (u32*)&decoded.makerCode); | - if (conditions->makerCode != decoded.makerCode) return CDB_ERROR_OK; | + CDBConvKeyStrToMakerCode(key, (u32*)&makerCode); | + if (conditions->makerCode != makerCode) return CDB_ERROR_OK; | - CDBConvKeyStrToGameCode(key, &decoded.gameCode); | - if (conditions->gameCode != decoded.gameCode) return CDB_ERROR_OK; | + u32 gameCode; | + CDBConvKeyStrToGameCode(key, &gameCode); | + if (conditions->gameCode != gameCode) return CDB_ERROR_OK; | - CDBConvKeyStrToType(key, decoded.type); | - if (CDBCompareTypeStr(conditions->type, decoded.type)) return CDB_ERROR_OK; | + CDBConvKeyStrToType(key, type); | + if (CDBCompareTypeStr(conditions->type, type)) return CDB_ERROR_OK; 12152 -> 11896 312 -> 312 CDBDatabaseSearchConditionsIsMatch 100% -> 99.96875% .text True True
|
||||
cdb-key-strings-semantic libs/RevoEX/src/cdb/CDBRecordKey.c:32 targeted source cleanup restored "- struct { | - char mcStr[4]; | - char typeStr[8]; | - char gcStr[8]; | - } strings; | + char mcStr[4]; | + char gcStr[8]; | + char typeStr[8]; | - CDBConvMCValueToMCStr(makerCode, strings.mcStr); | - CDBConvGCValueToGCStr(gameCode, strings.gcStr); | + CDBConvMCValueToMCStr(makerCode, mcStr); | + CDBConvGCValueToGCStr(gameCode, gcStr); | - strcpy(strings.typeStr, fileType); | - CDBToLower(((char*)strings.typeStr), typeLength); | + strcpy(typeStr, fileType); | + CDBToLower(((char*)typeStr), typeLength); | - sprintf(recordKey->keyString, ""%010u_%s_%s_%03d.%s"", epoch, strings.gcStr, strings.mcStr, serialNumber, strings.typeStr); | + sprintf(recordKey->keyString, ""%010u_%s_%s_%03d.%s"", epoch, gcStr, mcStr, serialNumber, typeStr);" 2424 -> 2164 64 -> 64 CDBRecordKeyInit 100% -> 99.92308% .strtab, .text True True
|
||||
letter-identity-mutable src/scene/letterWriter/iplLetterWriter.cpp:17 targeted source cleanup restored - static inline wchar_t* letterWriterCaption(wchar_t* caption) { | - return caption; | - } | - const wchar_t* caption = letterWriterCaption(makeHeaderCaption((const wchar_t*)mFriendInfo.attr.name)); | + wchar_t* caption = makeHeaderCaption((const wchar_t*)mFriendInfo.attr.name); | - const wchar_t* caption = makeHeaderCaption((const wchar_t*)mFriendInfo.attr.name); | + wchar_t* caption = makeHeaderCaption((const wchar_t*)mFriendInfo.attr.name); 6092 -> 5528 632 -> 632 initCalcNormal__Q33ipl5scene12LetterWriterFv 100% -> 99.92908% .strtab, .text True True
|
||||
letter-identity-assignment src/scene/letterWriter/iplLetterWriter.cpp:17 targeted source cleanup restored - static inline wchar_t* letterWriterCaption(wchar_t* caption) { | - return caption; | - } | - const wchar_t* caption = letterWriterCaption(makeHeaderCaption((const wchar_t*)mFriendInfo.attr.name)); | + const wchar_t* caption; | + caption = makeHeaderCaption((const wchar_t*)mFriendInfo.attr.name); | - const wchar_t* caption = makeHeaderCaption((const wchar_t*)mFriendInfo.attr.name); | + const wchar_t* caption; | + caption = makeHeaderCaption((const wchar_t*)mFriendInfo.attr.name); 6092 -> 5528 632 -> 632 initCalcNormal__Q33ipl5scene12LetterWriterFv 100% -> 99.92908% .strtab, .text True True
|
||||
nandsd-unused-path src/system/iplNandSDWorker.cpp:3168 targeted source cleanup restored "- char unusedPath[NAND_MAX_PATH] = """";" 51428 -> 49176 12312 -> 12312 do_copy_sd_save_to_nand__Q23ipl12NandSDWorkerFv 100% -> 97.30728% .comment, .debug, .line, .rela.data, .rela.debug, .rela.line, .rela.text, .strtab, .symtab, .text True True
|
||||
channel-unused-locals src/system/iplChannelScriptManager.cpp:156 targeted source cleanup restored - void* unused1 = heap1->getEndAddress(); | - void* unused2 = heap2->getEndAddress(); | + heap1->getEndAddress(); | + heap2->getEndAddress(); 2148 -> 2076 1024 -> 1024 isValidAddr__Q33ipl7channel20ChannelScriptManagerFPv 100% -> 72.166664% .strtab, .text True True
|
||||
date-unused-local src/scene/calendar/iplDate.cpp:187 targeted source cleanup restored - int unused = con != NULL ? con->getChannel() : getLatestEventCtrlNo(); | + if (con != NULL) { | + con->getChannel(); | + } else { | + getLatestEventCtrlNo(); | + } 2868 -> 2868 356 -> 356 .strtab True True
|
||||
asm-userid-clean libs/RevoEX/src/nwc24/NWC24UserId.c:56 assembly placeholder restored - static asm NWC24UserId getUnScrambleId(register NWC24UserId id) { | - li r9,-1 | - lis r7,0x20 | - lis r6,0x5e5e | - stwu r1,-0x20(r1) | - subi r7,r7,1 | - and r8,r4,r9 | - addi r0,r6,0x5e5e | - stw r31,0x1c(r1) | - and r3,r3,r7 | - lis r5,-1 | - xor r8,r8,r0 | - stw r30,0x18(r1) | - and r8,r8,r9 | - xori r3,r3,0x5e5e | - rlwinm r0,r8,0x15,0xa,0xa | - li r6,-0x100 | - and r3,r3,r7 | - rlwinm r8,r8,0x1f,0,0x1f | - or r3,r3,r0 | - stw r29,0x14(r1) | - rlwimi r8,r3,0x1f,0,0 | - lis r4,-0xff | - rlwinm r7,r3,0x1f,1,0x1f | - addi r5,r5,0xff | - rlwinm r30,r8,0x18,0,0x1f | - rlwinm r29,r3,0x17,0x18,0x1f | - and r12,r7,r9 | - li r0,0 | - rlwimi r30,r3,0x17,0,7 | - and r31,r8,r6 | - rlwimi r31,r30,0,0x18,0x1f | - rlwinm r11,r3,0x1f,0x10,0x17 | - and r30,r31,r5 | - and r12,r12,r9 | - rlwimi r0,r29,8,0x18,0x1f | - subi r4,r4,1 | - or r12,r12,r0 | - or r11,r30,r11 | - and r30,r11,r4 | - rlwinm r31,r8,0,0x18,0x1f | - li r0,0 | - rlwinm r11,r8,0x10,8,0xf | - lis r10,0x100 | - and r12,r12,r9 | - rlwimi r0,r31,0x10,0x10,0x1f | - or r30,r30,r11 | - or r29,r12,r0 | - rlwinm r12,r3,0x1f,0x18,0x1f | - subi r0,r10,1 | - li r10,0 | - rlwimi r10,r12,0x18,8,0x1f | - and r11,r29,r9 | - and r12,r30,r0 | - rlwinm r3,r3,0x17,0,7 | - or r3,r12,r3 | - or r12,r11,r10 | - and r10,r3,r9 | - lis r3,TtableInv@ha | - and r31,r10,r9 | - rlwinm r30,r8,0x10,0,0x1f | - rlwinm r11,r31,0x1c,0x1c,0x1f | - addi r3,r3, [see trial candidate in /tmp/rx56/trials] 1032 -> 644 16 -> 16 .comment, .rela.text, .sdata2, .shstrtab, .strtab, .symtab, .text True True
|
||||
asm-cache-clear-clean libs/RVL_SDK/src/cntcache/cntcache.c:42 assembly placeholder restored - void CNTCACHEClear(); | + s32 CNTCACHEClear(); | - asm void CNTCACHEClear() { | - clrlwi r11, r1, 0x1b | - mr r12, r1 | - subfic r11, r11, -0x500 | - stwux r1, r1, r11 | - mflr r0 | - mr r11, r12 | - stw r0, 4(r12) | - bl _savegpr_23 | - lis r30, scCntCacheStrs@ha | - lis r3, _CNTCACHEMutex@ha | - addi r30, r30, scCntCacheStrs@l | - li r29, 0 | - addi r3, r3, _CNTCACHEMutex@l | - bl OSLockMutex | - addi r3, r30, 0x50 | - addi r4, r1, 0x24 | - li r27, 1 | - li r5, 3 | - bl NANDPrivateOpen | - cmpwi r3, -0xc | - mr r28, r3 | - bne L_d4 | - li r28, 0 | - b L_28c | - L_d4: | - cmpwi r3, 0 | - beq L_e0 | - b L_268 | - L_e0: | - addi r3, r1, 0x24 | - addi r4, r1, 0x20 | - bl NANDGetLength | - cmpwi r3, 0 | - mr r28, r3 | - beq L_fc | - b L_268 | - L_fc: | - li r26, 0 | - li r31, 0 | - b L_25c | - L_108: | - lwz r25, 0x20(r1) | - cmplwi r25, 0x400 | - ble L_118 | - li r25, 0x400 | - L_118: | - addi r24, r1, 0xc0 | - addi r0, r25, 0x1f | - addi r3, r1, 0x24 | - mr r4, r24 | - rlwinm r5, r0, 0, 0, 0x1a | - bl NANDRead | - cmpw r3, r25 | - beq L_140 | - li r28, -0x14b3 | - b L_268 | - L_140: | - mr r4, r24 | - li r28, 0 | - mtctr r25 | - cmplwi r25, 0 | - ble L_16c | - L_154: | - lbz r0, 0(r4) | - cmpwi r0, 0xa | - bne L_164 | - b L_170 | - L_164: | - addi r4, r4, 1 | - bdnz L_154 | - L_16c: | - li r4, 0 | - L_170: | - cmpwi r4, 0 | - bne L_224 | - li r28, 0 | - b L_268 | - b L_224 | - [see trial candidate in /tmp/rx56/trials] 1828 -> 1224 280 -> 280 CNTCACHEClear 100% -> 69.13908% .comment, .data, .rela.sdata, .rela.text, .strtab, .symtab, .text False False
|
||||
asm-cache-removable-clean libs/RVL_SDK/src/cntcache/cntcache.c:266 assembly placeholder restored - asm int _CNTCACHEIsTitleRemovable(ESTitleId titleId) { | - clrlwi r11, r1, 0x1b | - mr r12, r1 | - subfic r11, r11, -0x2100 | - stwux r1, r1, r11 | - mflr r0 | - lis r5, scCntCacheTitleDataFmt@ha | - stw r0, 4(r12) | - li r0, 1 | - addi r5, r5, scCntCacheTitleDataFmt@l | - stw r31, -4(r12) | - stw r30, -8(r12) | - mr r30, r3 | - addi r3, r1, 0x40 | - stw r29, -0xc(r12) | - mr r29, r4 | - li r4, -1 | - stw r0, 0x20(r1) | - and r6, r30, r4 | - and r7, r29, r4 | - li r4, 0x40 | - stw r0, 0x24(r1) | - crclr 4*cr1+eq | - bl snprintf | - addi r3, r1, 0x40 | - addi r4, r1, 0x20 | - addi r5, r1, 0x24 | - bl NANDSecretGetUsage | - cmpwi r3, -0xc | - mr r4, r3 | - bne L_418 | - li r4, 2 | - b L_444 | - L_418: | - cmpwi r3, 0 | - blt L_444 | - lwz r0, 0x24(r1) | - cmplwi r0, 1 | - bne L_440 | - lwz r0, 0x20(r1) | - cmpwi r0, 0 | - bne L_440 | - li r4, 1 | - b L_444 | - L_440: | - li r4, 0 | - L_444: | - cmpwi r4, 1 | - bne L_4bc | - mr r4, r29 | - mr r3, r30 | - addi r31, r1, 0x80 | - addi r6, r1, 0x28 | - li r5, 0 | - bl ES_GetTmdView | - cmpwi r3, 0 | - beq L_470 | - b L_4c0 | - L_470: | - lwz r0, 0x28(r1) | - cmplwi r0, 0x2060 | - ble L_484 | - li r3, -0x400 | - b L_4c0 | - L_484: | - mr r4, r29 | - mr r3, r30 | - mr r5, r31 | - addi r6, r1, 0x28 | - bl ES_GetTmdView | - cmpwi r3, 0 | - beq L_4a4 | - b L_4c0 | - L_4a4: | - lhz r0, 0xd8(r1) | - rlwinm. r0, r0, 0x18, 0x18, 0x1f | - bne [see trial candidate in /tmp/rx56/trials] 1828 -> 1500 280 -> 280 _CNTCACHEIsTitleRemovable 100% -> 87.42683% .comment, .rela.text, .strtab, .symtab, .text True True
|
||||
asm-cache-content-clean libs/RVL_SDK/src/cntcache/cntcache.c:360 assembly placeholder restored - asm void _CNTCACHEDeleteContent() { | - clrlwi r11, r1, 0x1b | - mr r12, r1 | - subfic r11, r11, -0x2100 | - stwux r1, r1, r11 | - mflr r0 | - mr r11, r12 | - stw r0, 4(r12) | - bl _savegpr_26 | - li r3, 0 | - la r4, scCntCacheSpaceNl | - bl strtok | - li r31, 0 | - li r4, 0 | - stw r31, errno(r0) | - li r5, 0x10 | - bl strtoull | - lwz r0, errno(r0) | - mr r29, r4 | - mr r30, r3 | - cmpwi r0, 0 | - bne L_708 | - li r0, -1 | - and r5, r3, r0 | - addis r0, r5, -1 | - cmplwi r0, 5 | - bne L_708 | - addi r28, r1, 0x80 | - addi r6, r1, 0x28 | - li r5, 0 | - bl ES_GetTmdView | - cmpwi r3, -0x6a | - beq L_708 | - cmpwi r3, 0 | - bne L_708 | - mr r4, r29 | - mr r3, r30 | - mr r5, r28 | - addi r6, r1, 0x28 | - bl ES_GetTmdView | - cmpwi r3, 0 | - bne L_708 | - lwz r3, 0x94(r1) | - rlwinm. r0, r3, 0, 0x1c, 0x1c | - beq L_6f0 | - rlwinm. r0, r3, 0, 0x1b, 0x1b | - beq L_6f0 | - li r3, 0 | - la r4, scCntCacheSpaceNl | - bl strtok | - li r26, 1 | - lis r27, scCntCacheTitleDataFmt@ha | - b L_6e8 | - L_5b0: | - stw r31, errno(r0) | - li r4, 0 | - li r5, 0xa | - bl strtoul | - lwz r0, errno(r0) | - cmpwi r0, 0 | - bne L_6dc | - cmplwi r3, 0x1fe | - bgt L_6dc | - lhz r0, 0xda(r1) | - li r4, 0 | - mtctr r0 | - cmplwi r0, 0 | - ble L_6dc | - L_5e8: | - add r5, r28, r4 | - lhz r0, 0x60(r5) | - cmplw r3, r0 | - bne L_6d4 | - lhz r0, 0x62(r5) | - rlwinm. r0, r0, 0, 0x10, 0x10 | - bne L_6dc | - lwz [see trial candidate in /tmp/rx56/trials] 1828 -> 1248 280 -> 280 _CNTCACHEDeleteContent 100% -> 95.793106% .comment, .rela.text, .strtab, .symtab, .text True True
|
||||
asm-jpeg-restart-clean libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main.c:903 assembly placeholder restored - #ifdef __MWERKS__ | - asm s32 TMCJPEGDEC_err_restart(register TMCCJPEGDecWork* work) { | - nofralloc | - stwu r1, -0x20(r1) | - mflr r0 | - stw r0, 0x24(r1) | - stw r31, 0x1c(r1) | - stw r30, 0x18(r1) | - mr r30, r3 | - stw r29, 0x14(r1) | - stw r28, 0x10(r1) | - lbz r0, 0x181c(r3) | - lwz r31, 0x19e4(r3) | - cmplwi r0, 1 | - bne _err_restart_rewind | - li r0, 0 | - li r3, 0 | - stw r0, 0x6cc(r31) | - b _err_restart_return | - _err_restart_rewind: | - bl TMCJPEGDEC_rewind_ptr | - cmpwi r3, 0 | - bge _err_restart_load_byte | - b _err_restart_return | - _err_restart_load_byte: | - lwz r3, 0xc(r30) | - lbz r0, 0(r3) | - stb r0, 8(r1) | - b _err_restart_check_byte | - _err_restart_read_byte: | - mr r4, r30 | - addi r3, r1, 8 | - bl TMCJPEGDEC_get_byte | - cmpwi r3, 0 | - bge _err_restart_check_byte | - b _err_restart_return | - _err_restart_check_byte: | - lbz r0, 8(r1) | - cmplwi r0, 0xff | - bne _err_restart_read_byte | - mr r4, r30 | - addi r3, r1, 8 | - bl TMCJPEGDEC_get_byte | - lbz r6, 8(r1) | - cmplwi r6, 0xd9 | - bne _err_restart_check_result | - cmpwi r3, 0 | - bge _err_restart_eoi | - cmpwi r3, -0x90 | - beq _err_restart_eoi | - b _err_restart_return | - _err_restart_eoi: | - li r3, 0 | - b _err_restart_return | - _err_restart_check_result: | - cmpwi r3, 0 | - bge _err_restart_check_marker | - b _err_restart_return | - _err_restart_check_marker: | - cmplwi r6, 0xd0 | - [see trial candidate in /tmp/rx56/trials] 5604 -> 5144 256 -> 256 TMCJPEGDEC_err_restart 100% -> 82.791306% .rela.text, .symtab, .text True True
|
||||
jpeg-copy-wrapper libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main.c:591 targeted source cleanup restored - typedef struct { | - u32 data[64]; | - } CopyBlock64; | - *(CopyBlock64*)d = *(CopyBlock64*)scJpegAanScale; | + memcpy(d, scJpegAanScale, sizeof(tblCopy)); 5604 -> 5276 256 -> 256 TMCJPEGDEC_parse_dqt 100% -> 88.32927% .comment, .rela.text, .strtab, .symtab, .text True True
|
||||
aoss-integrity-branch-scope src/scene/setting/AOSS.c:1854 targeted source cleanup restored - struct { u32 expected; u32 actual; } integrity; | + u32 expectedChecksum; | - integrity.expected = message->checksum; | + expectedChecksum = message->checksum; | + u32 actualChecksum; | - integrity.actual = 0xffffffff; | + actualChecksum = 0xffffffff; | - integrity.actual = (integrity.actual >> 8) ^ s_crcTable[(integrity.actual ^ decryptedData[crcIndex]) & 0xff]; | + actualChecksum = (actualChecksum >> 8) ^ s_crcTable[(actualChecksum ^ decryptedData[crcIndex]) & 0xff]; | - if (((integrity.actual ^ 0xffffffff) & 0xff) != integrity.expected) { | + if (((actualChecksum ^ 0xffffffff) & 0xff) != expectedChecksum) { 7720 -> 6436 3928 -> 3928 AOSSDecryptMessage 100% -> 99.75078% .strtab, .text True True
|
||||
asm-userid-out-of-line libs/RevoEX/src/nwc24/NWC24UserId.c:10 assembly placeholder restored - static NWC24UserId getUnScrambleId(NWC24UserId id); | + static NWC24UserId getUnScrambleId(NWC24UserId id) NO_INLINE; | - static asm NWC24UserId getUnScrambleId(register NWC24UserId id) { | - li r9,-1 | - lis r7,0x20 | - lis r6,0x5e5e | - stwu r1,-0x20(r1) | - subi r7,r7,1 | - and r8,r4,r9 | - addi r0,r6,0x5e5e | - stw r31,0x1c(r1) | - and r3,r3,r7 | - lis r5,-1 | - xor r8,r8,r0 | - stw r30,0x18(r1) | - and r8,r8,r9 | - xori r3,r3,0x5e5e | - rlwinm r0,r8,0x15,0xa,0xa | - li r6,-0x100 | - and r3,r3,r7 | - rlwinm r8,r8,0x1f,0,0x1f | - or r3,r3,r0 | - stw r29,0x14(r1) | - rlwimi r8,r3,0x1f,0,0 | - lis r4,-0xff | - rlwinm r7,r3,0x1f,1,0x1f | - addi r5,r5,0xff | - rlwinm r30,r8,0x18,0,0x1f | - rlwinm r29,r3,0x17,0x18,0x1f | - and r12,r7,r9 | - li r0,0 | - rlwimi r30,r3,0x17,0,7 | - and r31,r8,r6 | - rlwimi r31,r30,0,0x18,0x1f | - rlwinm r11,r3,0x1f,0x10,0x17 | - and r30,r31,r5 | - and r12,r12,r9 | - rlwimi r0,r29,8,0x18,0x1f | - subi r4,r4,1 | - or r12,r12,r0 | - or r11,r30,r11 | - and r30,r11,r4 | - rlwinm r31,r8,0,0x18,0x1f | - li r0,0 | - rlwinm r11,r8,0x10,8,0xf | - lis r10,0x100 | - and r12,r12,r9 | - rlwimi r0,r31,0x10,0x10,0x1f | - or r30,r30,r11 | - or r29,r12,r0 | - rlwinm r12,r3,0x1f,0x18,0x1f | - subi r0,r10,1 | - li r10,0 | - rlwimi r10,r12,0x18,8,0x1f | - and r11,r29,r9 | - and r12,r30,r0 | - rlwinm r3,r3,0x17,0,7 | - or r3,r12,r3 | - or r12,r11,r10 | - and r10,r3,r9 [see trial candidate in /tmp/rx56/trials] 1032 -> 388 16 -> 16 getUnScrambleId 100% -> 76.27329% .comment, .rela.text, .sdata2, .shstrtab, .strtab, .symtab, .text True True
|
||||
wad-import-carrier libs/RVL_SDK/src/wad/wad.c:3499 targeted source cleanup compile rejected - struct { | - s32 type; | - u16 cidxMode; | - u16 version; | - u32 certificateSize; | - void* certificates; | - u32 crlSize; | - void* crls; | - u32 ticketSize; | - void* ticket; | - u32 titleMetaSize; | - void* titleMeta; | - } parts; | + s32 type; | + u16 cidxMode = 0; | + u32 certificateSize = 0; | + void* certificates = NULL; | + u32 crlSize = 0; | + void* crls = NULL; | + u32 ticketSize = 0; | + void* ticket = NULL; | + u32 titleMetaSize = 0; | + void* titleMetaData = NULL; | - memset(&parts, 0, sizeof(parts)); | - if (WAD_815C2F44(&header, &parts.type) != 2) { | + if (WAD_815C2F44(&header, &type) != 2) { | - parts.certificateSize = header.certSize; | - parts.certificates = readBuffer + sectionOffset; | + certificateSize = header.certSize; | + certificates = readBuffer + sectionOffset; | - parts.crlSize = header.crlSize; | - parts.crls = readBuffer + sectionOffset; | + crlSize = header.crlSize; | + crls = readBuffer + sectionOffset; | - parts.ticketSize = header.ticketSize; | - parts.ticket = readBuffer + sectionOffset; | + ticketSize = header.ticketSize; | + ticket = readBuffer + sectionOffset; | - parts.titleMetaSize = header.tmdSize; | - parts.titleMeta = readBuffer + sectionOffset; | + titleMetaSize = header.tmdSize; | + titleMetaData = readBuffer + sectionOffset; | - if (parts.type == 3) { | + if (type == 3) { | - if (parts.ticket != 0) { | - result = ES_ImportTicket [see trial candidate in /tmp/rx56/trials] not measured not measured
|
||||
dvd-volatile-single-0 libs/RVL_SDK/src/dvd/dvd.c:1897 volatile cast kept - if (((volatile DVDCommandBlock*)block)->state == DVD_STATE_COVER_CLOSED) { | + if (block->state == DVD_STATE_COVER_CLOSED) { 21692 -> 21692 20688 -> 20688 True True
|
||||
dvd-volatile-single-1 libs/RVL_SDK/src/dvd/dvd.c:1907 volatile cast kept - retVal = ((volatile DVDCommandBlock*)block)->state; | + retVal = block->state; 21692 -> 21692 20688 -> 20688 True True
|
||||
dvd-volatile-single-2 libs/RVL_SDK/src/dvd/dvd.c:1917 volatile cast restored - retVal = ((volatile DVDCommandBlock*)block)->state; | + retVal = block->state; 21692 -> 21492 20688 -> 20688 DVDGetCommandBlockStatus 100% -> 89.94% .rela.text, .strtab, .text True True
|
||||
dvd-volatile-single-3 libs/RVL_SDK/src/dvd/dvd.c:2180 volatile cast kept - state = ((volatile DVDCommandBlock*)block)->state; | + state = block->state; 21692 -> 21692 20688 -> 20688 True True
|
||||
rso-volatile-single-0 src/system/RsoSystem.cpp:14 volatile cast restored - GXColor front = {*((volatile const unsigned char*)&scRsoFatalColorR), *((volatile const unsigned char*)&scRsoFatalColorG), *((volatile const unsigned char*)&scRsoFatalColorB), *((volatile const unsigned char*)&scRsoFatalColorA)}; \ | + GXColor front = {scRsoFatalColorR, *((volatile const unsigned char*)&scRsoFatalColorG), *((volatile const unsigned char*)&scRsoFatalColorB), *((volatile const unsigned char*)&scRsoFatalColorA)}; \ 2848 -> 2640 96 -> 96 GetTextColor__Q34nw4r3lyt7TextBoxCFUl 100% -> 90.96154% .comment, .rela.text, .strtab, .symtab, .text True True
|
||||
rso-volatile-single-1 src/system/RsoSystem.cpp:14 volatile cast restored - GXColor front = {*((volatile const unsigned char*)&scRsoFatalColorR), *((volatile const unsigned char*)&scRsoFatalColorG), *((volatile const unsigned char*)&scRsoFatalColorB), *((volatile const unsigned char*)&scRsoFatalColorA)}; \ | + GXColor front = {*((volatile const unsigned char*)&scRsoFatalColorR), scRsoFatalColorG, *((volatile const unsigned char*)&scRsoFatalColorB), *((volatile const unsigned char*)&scRsoFatalColorA)}; \ 2848 -> 2640 96 -> 96 GetTextColor__Q34nw4r3lyt7TextBoxCFUl 100% -> 91.05769% .comment, .rela.text, .strtab, .symtab, .text True True
|
||||
rso-volatile-single-2 src/system/RsoSystem.cpp:14 volatile cast restored - GXColor front = {*((volatile const unsigned char*)&scRsoFatalColorR), *((volatile const unsigned char*)&scRsoFatalColorG), *((volatile const unsigned char*)&scRsoFatalColorB), *((volatile const unsigned char*)&scRsoFatalColorA)}; \ | + GXColor front = {*((volatile const unsigned char*)&scRsoFatalColorR), *((volatile const unsigned char*)&scRsoFatalColorG), scRsoFatalColorB, *((volatile const unsigned char*)&scRsoFatalColorA)}; \ 2848 -> 2640 96 -> 96 GetTextColor__Q34nw4r3lyt7TextBoxCFUl 100% -> 91.15385% .comment, .rela.text, .strtab, .symtab, .text True True
|
||||
rso-volatile-single-3 src/system/RsoSystem.cpp:14 volatile cast restored - GXColor front = {*((volatile const unsigned char*)&scRsoFatalColorR), *((volatile const unsigned char*)&scRsoFatalColorG), *((volatile const unsigned char*)&scRsoFatalColorB), *((volatile const unsigned char*)&scRsoFatalColorA)}; \ | + GXColor front = {*((volatile const unsigned char*)&scRsoFatalColorR), *((volatile const unsigned char*)&scRsoFatalColorG), *((volatile const unsigned char*)&scRsoFatalColorB), scRsoFatalColorA}; \ 2848 -> 2640 96 -> 96 GetTextColor__Q34nw4r3lyt7TextBoxCFUl 100% -> 92.88461% .comment, .rela.text, .strtab, .symtab, .text True True
|
||||
nwc-volatile-single-0 src/system/iplNwc24Manager.cpp:936 volatile cast restored - *(volatile const NWC24DlId*)&DL_ID_0, | + DL_ID_0, 10252 -> 9860 888 -> 848 addDlTask__Q33ipl5nwc247ManagerFv 100% -> 94.21429% .comment, .rela.data, .rela.text, .sdata2, .strtab, .symtab, .text True True
|
||||
nwc-volatile-single-1 src/system/iplNwc24Manager.cpp:937 volatile cast restored - *(volatile const NWC24DlId*)&DL_ID_1, | + DL_ID_1, 10252 -> 9860 888 -> 848 addDlTask__Q33ipl5nwc247ManagerFv 100% -> 97.581635% .comment, .rela.text, .sdata2, .strtab, .symtab, .text True True
|
||||
nwc-volatile-single-2 src/system/iplNwc24Manager.cpp:938 volatile cast restored - *(volatile const NWC24DlId*)&DL_ID_5, | + DL_ID_5, 10252 -> 9860 888 -> 848 addDlTask__Q33ipl5nwc247ManagerFv 100% -> 97.57143% .comment, .rela.text, .sdata2, .strtab, .symtab, .text True True
|
||||
nwc-volatile-single-3 src/system/iplNwc24Manager.cpp:939 volatile cast restored - *(volatile const NWC24DlId*)&DL_ID_6, | + DL_ID_6, 10252 -> 9860 888 -> 848 addDlTask__Q33ipl5nwc247ManagerFv 100% -> 97.561226% .comment, .rela.text, .sdata2, .strtab, .symtab, .text True True
|
||||
nwc-volatile-single-4 src/system/iplNwc24Manager.cpp:942 volatile cast restored - *(volatile const u16*)&DL_INTERVAL_0, | + DL_INTERVAL_0, 10252 -> 9860 888 -> 848 addDlTask__Q33ipl5nwc247ManagerFv 100% -> 97.80612% .comment, .rela.text, .sdata2, .strtab, .symtab, .text True True
|
||||
nwc-volatile-single-5 src/system/iplNwc24Manager.cpp:943 volatile cast restored - *(volatile const u16*)&DL_INTERVAL_1, | + DL_INTERVAL_1, 10252 -> 9860 888 -> 848 addDlTask__Q33ipl5nwc247ManagerFv 100% -> 97.78571% .comment, .rela.text, .sdata2, .strtab, .symtab, .text True True
|
||||
nwc-volatile-single-6 src/system/iplNwc24Manager.cpp:944 volatile cast restored - *(volatile const u16*)&DL_INTERVAL_2, | + DL_INTERVAL_2, 10252 -> 9860 888 -> 848 addDlTask__Q33ipl5nwc247ManagerFv 100% -> 97.77551% .comment, .rela.text, .sdata2, .strtab, .symtab, .text True True
|
||||
nwc-volatile-single-7 src/system/iplNwc24Manager.cpp:945 volatile cast restored - *(volatile const u16*)&DL_INTERVAL_3, | + DL_INTERVAL_3, 10252 -> 9860 888 -> 848 addDlTask__Q33ipl5nwc247ManagerFv 100% -> 97.765305% .comment, .rela.text, .sdata2, .strtab, .symtab, .text True True
|
||||
nwc-volatile-single-8 src/system/iplNwc24Manager.cpp:948 volatile cast restored - *(volatile const u8*)&DL_PRIORITY_0, | + DL_PRIORITY_0, 10252 -> 9860 888 -> 848 addDlTask__Q33ipl5nwc247ManagerFv 100% -> 99.84694% .comment, .rela.text, .sdata2, .strtab, .symtab, .text True True
|
||||
nwc-volatile-single-9 src/system/iplNwc24Manager.cpp:949 volatile cast restored - *(volatile const u8*)&DL_PRIORITY_1, | + DL_PRIORITY_1, 10252 -> 9860 888 -> 848 addDlTask__Q33ipl5nwc247ManagerFv 100% -> 99.82653% .comment, .rela.text, .sdata2, .strtab, .symtab, .text True True
|
||||
nwc-volatile-single-10 src/system/iplNwc24Manager.cpp:950 volatile cast restored - *(volatile const u8*)&DL_PRIORITY_2, | + DL_PRIORITY_2, 10252 -> 9860 888 -> 848 addDlTask__Q33ipl5nwc247ManagerFv 100% -> 99.81633% .comment, .rela.text, .sdata2, .strtab, .symtab, .text True True
|
||||
nwc-volatile-single-11 src/system/iplNwc24Manager.cpp:951 volatile cast restored - *(volatile const u8*)&DL_PRIORITY_3, | + DL_PRIORITY_3, 10252 -> 9860 888 -> 848 addDlTask__Q33ipl5nwc247ManagerFv 100% -> 99.80612% .comment, .rela.text, .sdata2, .strtab, .symtab, .text True True
|
||||
wd-volatile-single-0 libs/RevoEX/src/wd/WDScan.c:34 volatile cast restored - #define scRsnOui0 (*((volatile const u8*)&scRsnOui0)) 2180 -> 1720 16 -> 16 WDGetPrivacyMode 100% -> 95.90435% .rela.text, .symtab, .text True True
|
||||
wd-volatile-single-1 libs/RevoEX/src/wd/WDScan.c:35 volatile cast restored - #define scRsnOui1 (*((volatile const u8*)&scRsnOui1)) 2180 -> 1720 16 -> 16 WDGetPrivacyMode 100% -> 97.17391% .rela.text, .text True True
|
||||
wd-volatile-single-2 libs/RevoEX/src/wd/WDScan.c:36 volatile cast restored - #define scRsnOui2 (*((volatile const u8*)&scRsnOui2)) 2180 -> 1720 16 -> 16 WDGetPrivacyMode 100% -> 97.21739% .rela.text, .text True True
|
||||
wd-volatile-single-3 libs/RevoEX/src/wd/WDScan.c:37 volatile cast restored - #define scWpaOui0 (*((volatile const u8*)&scWpaOui0)) 2180 -> 1720 16 -> 16 WDGetPrivacyMode 100% -> 97.13043% .rela.text, .text True True
|
||||
wd-volatile-single-4 libs/RevoEX/src/wd/WDScan.c:38 volatile cast restored - #define scWpaOui1 (*((volatile const u8*)&scWpaOui1)) 2180 -> 1720 16 -> 16 WDGetPrivacyMode 100% -> 97.17391% .rela.text, .text True True
|
||||
wd-volatile-single-5 libs/RevoEX/src/wd/WDScan.c:39 volatile cast restored - #define scWpaOui2 (*((volatile const u8*)&scWpaOui2)) 2180 -> 1720 16 -> 16 WDGetPrivacyMode 100% -> 97.21739% .rela.text, .text True True
|
||||
wd-volatile-single-6 libs/RevoEX/src/wd/WDScan.c:40 volatile cast restored - #define scWpaFindOui0 (*((volatile const u8*)&scWpaFindOui0)) 2180 -> 1720 16 -> 16 WDGetPrivacyMode 100% -> 94.295654% .rela.text, .text True True
|
||||
wd-volatile-single-7 libs/RevoEX/src/wd/WDScan.c:41 volatile cast restored - #define scWpaFindOui1 (*((volatile const u8*)&scWpaFindOui1)) 2180 -> 1720 16 -> 16 WDGetPrivacyMode 100% -> 94.252174% .rela.text, .text True True
|
||||
wd-volatile-single-8 libs/RevoEX/src/wd/WDScan.c:42 volatile cast restored - #define scWpaFindOui2 (*((volatile const u8*)&scWpaFindOui2)) 2180 -> 1720 16 -> 16 WDGetPrivacyMode 100% -> 94.208694% .rela.text, .text True True
|
||||
osinit-reboot-volatile libs/RVL_SDK/src/os/OS.c:521 volatile cast kept - volatile OSExecParams* params = (volatile OSExecParams*)&__OSRebootParams; | + OSExecParams* params = &__OSRebootParams; 5084 -> 5084 1240 -> 1240 True True
|
||||
wad-import-clean-sections libs/RVL_SDK/src/wad/wad.c:3499 targeted source cleanup restored - struct { | - s32 type; | - u16 cidxMode; | - u16 version; | - u32 certificateSize; | - void* certificates; | - u32 crlSize; | - void* crls; | - u32 ticketSize; | - void* ticket; | - u32 titleMetaSize; | - void* titleMeta; | - } parts; | + s32 type; | + u32 certificateSize = 0; | + void* certificates = NULL; | + u32 crlSize = 0; | + void* crls = NULL; | + u32 ticketSize = 0; | + void* ticket = NULL; | + u32 titleMetaSize = 0; | + void* titleMetaData = NULL; | - memset(&parts, 0, sizeof(parts)); | - if (WAD_815C2F44(&header, &parts.type) != 2) { | + if (WAD_815C2F44(&header, &type) != 2) { | - parts.certificateSize = header.certSize; | - parts.certificates = readBuffer + sectionOffset; | + certificateSize = header.certSize; | + certificates = readBuffer + sectionOffset; | - parts.crlSize = header.crlSize; | - parts.crls = readBuffer + sectionOffset; | + crlSize = header.crlSize; | + crls = readBuffer + sectionOffset; | - parts.ticketSize = header.ticketSize; | - parts.ticket = readBuffer + sectionOffset; | + ticketSize = header.ticketSize; | + ticket = readBuffer + sectionOffset; | - parts.titleMetaSize = header.tmdSize; | - parts.titleMeta = readBuffer + sectionOffset; | + titleMetaSize = header.tmdSize; | + titleMetaData = readBuffer + sectionOffset; | - if (parts.type == 3) { | + if (type == 3) { | - if (parts.ticket != 0) { | - result = ES_ImportTicket(parts.ticket, parts.c [see trial candidate in /tmp/rx56/trials] 24500 -> 23448 528 -> 528 WADImportDVDExForBS 100% -> 72.37643% .rela.text, .strtab, .symtab, .text True True
|
||||
dvd-volatile-remainder-3 libs/RVL_SDK/src/dvd/dvd.c:2187 volatile cast kept - command = ((volatile DVDCommandBlock*)block)->command; | + command = block->command; 21692 -> 21692 20688 -> 20688 True True
|
||||
dvd-volatile-remainder-2 libs/RVL_SDK/src/dvd/dvd.c:1917 volatile cast restored - retVal = ((volatile DVDCommandBlock*)block)->state; | + retVal = block->state; 21692 -> 21492 20688 -> 20688 DVDGetCommandBlockStatus 100% -> 89.94% .rela.text, .strtab, .text True True
|
||||
dvd-volatile-remainder-1 libs/RVL_SDK/src/dvd/dvd.c:1913 volatile cast kept - retVal = ((volatile DVDCommandBlock*)block)->state; | + retVal = block->state; 21692 -> 21692 20688 -> 20688 True True
|
||||
dvd-volatile-remainder-0 libs/RVL_SDK/src/dvd/dvd.c:1899 volatile cast restored - } else if (((volatile DVDCommandBlock*)block)->state == DVD_STATE_COVER_OPENED) { | + } else if (block->state == DVD_STATE_COVER_OPENED) { 21692 -> 21492 20688 -> 20688 DVDGetCommandBlockStatus 100% -> 98% .rela.text, .symtab, .text True True
|
||||
vm-chunk-union-split src/channelScript/CHANSVm.c:347 targeted source cleanup restored - union { | - u32 off; | - ChunkEntry* entry; | - } u; | + u32 chunkOffset; | + ChunkEntry* entry; | - u.off = 0; | + chunkOffset = 0; | - u.off = idx + (chunkIdx << 10); | - idx = u.off; | + chunkOffset = idx + (chunkIdx << 10); | + idx = chunkOffset; | - u.off += 4; | + chunkOffset += 4; | - u.off = 0; | + entry = vmNull; | - u.entry = &chunk[idx & 0x3FF]; | - memset(u.entry, 0, sizeof(CHANSVmObjHdr)); | - u.entry->inUse = 1; | + entry = &chunk[idx & 0x3FF]; | + memset(entry, 0, sizeof(CHANSVmObjHdr)); | + entry->inUse = 1; | - return u.entry; | + return entry; 44588 -> 44204 6904 -> 6904 CHANSVmNewObjData 100% -> 99.375% .strtab, .text True True
|
||||
vm-chunk-no-dead-offset src/channelScript/CHANSVm.c:347 targeted source cleanup restored - union { | - u32 off; | - ChunkEntry* entry; | - } u; | + ChunkEntry* entry; | - u.off = 0; | - u.off = idx + (chunkIdx << 10); | - idx = u.off; | + idx += chunkIdx << 10; | - u.off += 4; | - u.off = 0; | + entry = vmNull; | - u.entry = &chunk[idx & 0x3FF]; | - memset(u.entry, 0, sizeof(CHANSVmObjHdr)); | - u.entry->inUse = 1; | + entry = &chunk[idx & 0x3FF]; | + memset(entry, 0, sizeof(CHANSVmObjHdr)); | + entry->inUse = 1; | - return u.entry; | + return entry; 44588 -> 44204 6904 -> 6904 CHANSVmNewObjData 100% -> 99.375% .text True True
|
||||
address-message-union-split src/scene/address/iplAddress.cpp:1628 targeted source cleanup restored - union MessageValue { | - const wchar_t* text; | - u32 id; | - } message; | - message.text = System::getMessage(MESG_ERROR_CODE); | - wcsncat(errMsg, message.text, errMsgLen - wcslen(errMsg)); | + const wchar_t* messageText; | + u32 messageId; | + messageText = System::getMessage(MESG_ERROR_CODE); | + wcsncat(errMsg, messageText, errMsgLen - wcslen(errMsg)); | - message.id = MESG_ERROR_NWC24_NETWORK; | + messageId = MESG_ERROR_NWC24_NETWORK; | - message.id = MESG_ERROR_NWC24_SERVER; | + messageId = MESG_ERROR_NWC24_SERVER; | - message.id = reinterpret_cast<u32>(message.text); | + messageId = reinterpret_cast<u32>(messageText); | - message.text = System::getMessage(message.id); | - wcsncat(errMsg, message.text, errMsgLen - wcslen(errMsg)); | + messageText = System::getMessage(messageId); | + wcsncat(errMsg, messageText, errMsgLen - wcslen(errMsg)); 23988 -> 23668 1964 -> 1964 set_err_msg__Q33ipl5scene7AddressFPwUl8NWC24Err 100% -> 99.875% .strtab, .text True True
|
||||
address-message-scoped src/scene/address/iplAddress.cpp:1628 targeted source cleanup restored - union MessageValue { | - const wchar_t* text; | - u32 id; | - } message; | - message.text = System::getMessage(MESG_ERROR_CODE); | - wcsncat(errMsg, message.text, errMsgLen - wcslen(errMsg)); | + const wchar_t* messageText; | + messageText = System::getMessage(MESG_ERROR_CODE); | + wcsncat(errMsg, messageText, errMsgLen - wcslen(errMsg)); | + u32 messageId; | - message.id = MESG_ERROR_NWC24_NETWORK; | + messageId = MESG_ERROR_NWC24_NETWORK; | - message.id = MESG_ERROR_NWC24_SERVER; | + messageId = MESG_ERROR_NWC24_SERVER; | - message.id = reinterpret_cast<u32>(message.text); | + messageId = reinterpret_cast<u32>(messageText); | - message.text = System::getMessage(message.id); | - wcsncat(errMsg, message.text, errMsgLen - wcslen(errMsg)); | + messageText = System::getMessage(messageId); | + wcsncat(errMsg, messageText, errMsgLen - wcslen(errMsg)); 23988 -> 23668 1964 -> 1964 set_err_msg__Q33ipl5scene7AddressFPwUl8NWC24Err 100% -> 99.875% .strtab, .text True True
|
||||
ncd-mac-separate-representations src/scene/setting/iplNCDSetting.cpp:767 targeted source cleanup restored "- union { | - char str[sizeof(""XX-XX-XX-XX-XX-XX"")]; | - u64 num; | - u8 bytes[8]; | - } PACKED mac; | + char macText[sizeof(""XX-XX-XX-XX-XX-XX"")]; | + u64 macNumber = 0; | - sprintf(mac.str, ""%02x-%02x-%02x-%02x-%02x-%02x"", macAddress[0], macAddress[1], macAddress[2], macAddress[3], macAddress[4], | + sprintf(macText, ""%02x-%02x-%02x-%02x-%02x-%02x"", macAddress[0], macAddress[1], macAddress[2], macAddress[3], macAddress[4], | - OSReport(""MAC: %s\n"", &mac); | + OSReport(""MAC: %s\n"", macText); | - utility::CharacterCode::ANSIToUTF8((char*)mMac, (u8*)&mac); | + utility::CharacterCode::ANSIToUTF8((char*)mMac, (u8*)macText); | - memset(&mac, 0, sizeof(mac.str)); | - memcpy(mac.bytes + 2, &macAddress, 6); | + memcpy((u8*)&macNumber + 2, &macAddress, 6); | - mMacNum = mac.num % 100000000; | - OSReport(""%lld %d\n"", mMacNum, mac.num, mMacNum); | + mMacNum = macNumber % 100000000; | + OSReport(""%lld %d\n"", mMacNum, macNumber, mMacNum);" 6796 -> 6488 14232 -> 14232 makeMacAddr__Q33ipl3ncd10NCDSettingFv 100% -> 88.87013% .rela.text, .symtab, .text True True
|
||||
placement-0 src/scene/calendar/iplDate.cpp:17 section/retention pragma restored "- #pragma section const_type "".data"" | - #pragma section const_type "".data"" | - #pragma section const_type "".sdata"" | - #pragma section sconst_type "".sdata2""" 2868 -> 2868 356 -> 252 .data, .rela.data, .rodata, .symtab False False
|
||||
placement-1 src/scene/channelTitle/iplChannelTitle.cpp:151 section/retention pragma kept "- #pragma section data_type "".sdata""" 28788 -> 28788 3144 -> 3144 True True
|
||||
placement-2 src/scene/channelEdit/iplChanAppBox.cpp:6 section/retention pragma restored "- #pragma section const_type "".data"" | - #pragma section const_type "".sdata"" | - #pragma section sconst_type "".sdata2""" 3532 -> 2808 536 -> 520 draw__Q33ipl5scene10ChanAppBoxFv 100% -> 99.392265% .data, .rela.data, .rela.text, .rodata, .strtab, .symtab, .text False False
|
||||
placement-3 src/system/iplNwc24Manager.cpp:4 section/retention pragma kept - #pragma force_active on | - #pragma force_active off 10252 -> 10252 888 -> 888 True True
|
||||
placement-4 src/system/iplKeyboard.cpp:48 section/retention pragma restored - #pragma force_active on | - #pragma force_active off 6024 -> 6024 1184 -> 1184 .comment True True
|
||||
placement-5 src/homebutton/HBMBase.cpp:46 section/retention pragma restored - #pragma force_active on | - #pragma force_active off 23608 -> 23608 3800 -> 3800 .comment True True
|
||||
placement-6 src/channelScript/systemmenu/iplCSPane.cpp:624 section/retention pragma restored "- #pragma section const_type "".data"" | - #pragma section data_type "".sdata""" 5804 -> 5804 672 -> 320 .data, .rodata, .symtab False False
|
||||
placement-7 libs/RevoEX/src/cdb/CDBDatabase.c:81 section/retention pragma kept "- #pragma section sdata_type "".sdata"" | - #pragma section data_type "".data""" 12152 -> 12152 312 -> 312 True True
|
||||
placement-8 libs/RevoEX/src/ssl/ssl_api.c:552 section/retention pragma kept "- #pragma section data_type "".data"" | - #pragma section data_type "".sdata""" 3404 -> 3404 12424 -> 12424 True True
|
||||
placement-9 libs/RevoEX/src/wd/WDScan.c:12 section/retention pragma restored "- #pragma section sconst_type "".sdata2"" | - #pragma section sconst_type "".sdata""" 2180 -> 2180 16 -> 8 .comment, .rela.text, .sdata, .sdata2, .shstrtab, .symtab True True
|
||||
ssl-empty-section-blocks libs/RevoEX/src/ssl/ssl_api.c:551 section/retention pragma kept - #pragma push | - #pragma pop | - #pragma push | - #pragma pop 3404 -> 3404 12424 -> 12424 True True
|
||||
channel-title-empty-section-block src/scene/channelTitle/iplChannelTitle.cpp:150 section/retention pragma kept - #pragma push | - #pragma pop 28788 -> 28788 3144 -> 3144 True True
|
||||
ssl-final-newline libs/RevoEX/src/ssl/ssl_api.c:550 targeted source cleanup kept 3404 -> 3404 12424 -> 12424 True True
|
||||
nand-thumbnail-parentheses src/system/iplNandSDWorker.cpp:3936 targeted source cleanup kept - ret = read_file(fd, fileKind, iconBinOffset, thumbnailSize, (appBnrOut)->thumbnail); | + ret = read_file(fd, fileKind, iconBinOffset, thumbnailSize, appBnrOut->thumbnail); 51428 -> 51428 12312 -> 12312 True True
|
||||
nwc-include-spacing src/system/iplNwc24Manager.cpp:6 targeted source cleanup kept 10252 -> 10252 888 -> 888 True True
|
||||
nand-close-dummy src/system/iplNand.cpp:278 targeted source cleanup restored - // Seems like there was going to be logic when close_ returns false, but it seemed like it was not included on release. | - // However it did left the compare instruction! | - if (!close_()) { | - u32 dummy = 0; | - } | + close_(); 5108 -> 4340 272 -> 272 read__Q33ipl4nand4FileFv 100% -> 99.479164% .rela.text, .strtab, .symtab, .text True True
|
||||
schedule-protected-dummy libs/RevoEX/src/nwc24/NWC24Schedule.c:184 targeted source cleanup restored - } else if (result == NWC24_ERR_PROTECTED) { | - // Stripped out but left out if statement | - u32 dummy = 0; 4140 -> 3852 584 -> 584 NWC24ExecDownloadTask 100% -> 97.083336% .rela.text, .strtab, .symtab, .text True True
|
||||
mime-impossible-condition-dummy libs/RevoEX/src/nwc24/NWC24Parser.c:41 targeted source cleanup restored - if (conv && !conv) { | - u32 dummy = 0; | - } 1512 -> 1440 784 -> 784 NWC24GetMIMETypeStr 100% -> 93.333336% .rela.text, .text True True
|
||||
sdi-switch-dummy libs/RVL_SDK/src/sdi/sdi_api.c:314 targeted source cleanup restored - switch (ret) { | - case IPC_RESULT_ACCESS: | - case IPC_RESULT_EXISTS: { | - int dummy = 0; | - } | - } 5948 -> 5356 248 -> 248 ISD_ProbeCard 100% -> 96.8421%; ISD_MountCard 100% -> 94.33962% .line, .rela.debug, .rela.text, .strtab, .symtab, .text True True
|
||||
ncd-mutex-padding libs/RevoEX/src/ncd/ncdsystem.c:15 targeted source cleanup restored - struct NCDMutex { | - OSMutex mutex; | - u8 padding[8]; | - } ncdMutex; | + OSMutex ncdMutex; | - OSUnlockMutex(&ncdMutex.mutex); | + OSUnlockMutex(&ncdMutex); | - OSUnlockMutex(&ncdMutex.mutex); | + OSUnlockMutex(&ncdMutex); | - OSUnlockMutex(&ncdMutex.mutex); | + OSUnlockMutex(&ncdMutex); | - OSUnlockMutex(&ncdMutex.mutex); | + OSUnlockMutex(&ncdMutex); | - OSUnlockMutex(&ncdMutex.mutex); | + OSUnlockMutex(&ncdMutex); | - OSUnlockMutex(&ncdMutex.mutex); | + OSUnlockMutex(&ncdMutex); | - OSUnlockMutex(&ncdMutex.mutex); | + OSUnlockMutex(&ncdMutex); | - OSUnlockMutex(&ncdMutex.mutex); | + OSUnlockMutex(&ncdMutex); | - OSUnlockMutex(&ncdMutex.mutex); | + OSUnlockMutex(&ncdMutex); | - OSUnlockMutex(&ncdMutex.mutex); | + OSUnlockMutex(&ncdMutex); | - OSInitMutex(&ncdMutex.mutex); | + OSInitMutex(&ncdMutex); | - OSLockMutex(&ncdMutex.mutex); | + OSLockMutex(&ncdMutex); 4180 -> 4180 496 -> 400 .symtab True True
|
||||
flags-byte-output src/utility/iplCSFlags.cpp:17 targeted source cleanup kept - u32 dummy; | + u8 fileType; | - s32 result = NANDPrivateGetType(FLAG_FILE_PATH, (u8*)&dummy); | + s32 result = NANDPrivateGetType(FLAG_FILE_PATH, &fileType); 1172 -> 1172 816 -> 816 True True
|
||||
vf-empty-file-status-assigned libs/RevoEX/src/vf/fatfs/pf_file.c:600 targeted source cleanup restored - // stinky fakematch | - #ifdef DEBUG | - #endif | - #ifdef DEBUG | - #else | - if (VFiPFENT_InitENT(p_ent, p_fname, 0x20U, 1U, p_parent_ent, p_vol) == 0) | - #endif | - #ifdef DEBUG | - #else | - if (VFiPFENT_allocateEntry(p_ent, (p_ent->num_entry_LFNs + 1), &ffd, prev_chain, p_fname, 0x77U, &pos) == 0) | - #endif 14052 -> 12652 0 -> 0 VFiPFFILE_p_fopen 100% -> 85.597145% .comment, .rela.text, .strtab, .symtab, .text True True
|
||||
vf-empty-file-status-no-initial-store libs/RevoEX/src/vf/fatfs/pf_file.c:600 targeted source cleanup kept - // stinky fakematch | - #ifdef DEBUG | - err = 0; | - #endif | - #ifdef DEBUG | - #else | - if (VFiPFENT_InitENT(p_ent, p_fname, 0x20U, 1U, p_parent_ent, p_vol) == 0) | - #endif | - #ifdef DEBUG | - #else | - if (VFiPFENT_allocateEntry(p_ent, (p_ent->num_entry_LFNs + 1), &ffd, prev_chain, p_fname, 0x77U, &pos) == 0) | - #endif 14052 -> 14052 0 -> 0 True True
|
||||
vf-empty-file-status-early-return libs/RevoEX/src/vf/fatfs/pf_file.c:607 targeted source cleanup restored - if (err == 0) | - { | - VFiPFFAT_InitFFD(&ffd, &hint, p_vol, &p_parent_ent->start_cluster); | - err = VFiPFENT_allocateEntry(p_ent, (p_ent->num_entry_LFNs + 1), &ffd, prev_chain, p_fname, 0x77U, &pos); | - if (err == 0) | - { | - p_ent->start_cluster = 0; | - if ((p_ent->long_name[0] != 0) && ((VFipf_vol_set.setting & 2) == 2)) { | - VFiPFPATH_AdjustExtShortName(p_ent->short_name, pos); | - p_ent->check_sum = VFiPFENT_CalcCheckSum(p_ent); | - } | - err = VFiPFENT_UpdateEntry(p_ent, prev_chain, 0U); | - } | + if (err != 0) { | + return err; | - return err; | + VFiPFFAT_InitFFD(&ffd, &hint, p_vol, &p_parent_ent->start_cluster); | + err = VFiPFENT_allocateEntry(p_ent, p_ent->num_entry_LFNs + 1, &ffd, prev_chain, p_fname, 0x77U, &pos); | + if (err != 0) { | + return err; | + } | + p_ent->start_cluster = 0; | + if (p_ent->long_name[0] != 0 && (VFipf_vol_set.setting & 2) == 2) { | + VFiPFPATH_AdjustExtShortName(p_ent->short_name, pos); | + p_ent->check_sum = VFiPFENT_CalcCheckSum(p_ent); | + } | + return VFiPFENT_UpdateEntry(p_ent, prev_chain, 0U); 14052 -> 12652 0 -> 0 VFiPFFILE_p_fopen 100% -> 85.597145% .comment, .rela.text, .strtab, .symtab, .text True True
|
||||
nand-force-stack-weaks src/system/iplNandSDWorker.cpp:39 targeted source cleanup restored - #ifndef NON_MATCHING | - // this could work as a seperate unit??? | - void forceStackWeaks() { | - ut::FreeList freeList; | - freeList.init(NULL, 0, 0); | - freeList.get(); | - ut::Stack stack; | - stack.init(NULL, 0, 0); | - stack.push(NULL); | - stack.pop(NULL); | - } | - #endif 51428 -> 50036 12312 -> 12312 push__Q33ipl2ut5StackFPCv 100% -> 50.866665%; recursion_nand__Q23ipl12NandSDWorkerFPCcPCcQ33ipl12NandSDWorker16RecursiveProcessPPCcUl 100% -> 82.701256% .comment, .debug, .line, .rela.data, .rela.debug, .rela.line, .rela.rodata, .rela.sdata, .rela.sdata2, .rela.text, .strtab, .symtab, .text True True
|
||||
nand-thumbnail-md5-helper src/system/iplNandSDWorker.cpp:3688 targeted source cleanup restored - // FAKEMATCH: Should be using NETCalcMD5, but thumbPtr had to ruin everything. | - NETMD5Context context; | - NETMD5Init(&context); | - void* thumbPtr; | - thumbPtr = sdBanner->thumbnail; | - NETMD5Update(&context, thumbPtr, wadOffset - sizeof(SDAppBanner)); | - NETMD5GetDigest(&context, MD5Sum); | + void* thumbPtr = sdBanner->thumbnail; | + NETCalcMD5(MD5Sum, thumbPtr, wadOffset - sizeof(SDAppBanner)); 51428 -> 50100 12312 -> 12312 do_copy_nand_app_to_sd__Q23ipl12NandSDWorkerFv 100% -> 98.72891% .comment, .debug, .line, .rela.data, .rela.debug, .rela.line, .rela.text, .strtab, .symtab, .text True True
|
||||
channel-time-remainder src/scene/channelTitle/iplChannelTitle.cpp:2558 targeted source cleanup restored - // FAKEMATCH: should be modular division. not whatever this is | - *minute = (mTimeLimitRemain - ((60 * 60) * *hour)) / 60; | - //*minute = (u32)(mTimeLimitRemain % (60 * 60)) / 60U; | + *minute = mTimeLimitRemain % (60 * 60) / 60; 28788 -> 28720 3144 -> 3144 isTimeLimitedChannel__Q33ipl5scene12ChannelTitleFPUlPUl 100% -> 80.29412% .rela.text, .symtab, .text True True
|
||||
vf-empty-file-braces libs/RevoEX/src/vf/fatfs/pf_file.c:610 targeted source cleanup kept - if (err == 0) | - { | + if (err == 0) { | - if (err == 0) | - { | + if (err == 0) { 14052 -> 14052 0 -> 0 True True
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user