Compare commits
1 Commits
cleanup/ip
...
agent/w092
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
08ee68fe8e |
@@ -53,9 +53,9 @@ Progress
|
||||
<!-- progress:start -->
|
||||
| Decompiled | Matched | Linked | Data |
|
||||
|:---:|:---:|:---:|:---:|
|
||||
| 97.98% | 84.60% | 58.20% | 90.33% |
|
||||
| 98.02% | 84.69% | 58.20% | 90.34% |
|
||||
|
||||
units 778/1027 complete, functions 12068/12563 matched.
|
||||
units 778/1027 complete, functions 12069/12563 matched.
|
||||
|
||||
decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data
|
||||
<!-- progress:end -->
|
||||
|
||||
@@ -292,33 +292,37 @@ ziU8 _Zi8CheckCandidates(ziGetParam* parameters ZI_NEED_WORK) {
|
||||
ziU8 Zi8LangSupported(ziU8 language, ziPtr work);
|
||||
ziBool Zi8IsCharacter(ziWChar character, ziPtr work);
|
||||
ziU8 Zi8GetCharInfo(ziWChar character, ziWChar* output, ziU8 capacity, ziU8 type, ziPtr work);
|
||||
ziU8 Zi8GetKOcandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU8 Zi8GetKoreanCandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU8 Zi8Punctuation(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU8 Zi8GetChineseCandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU8 Zi8Get1KeyPressCandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU8 Zi8Get1KeyPressSpelling(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU8 Zi8GetSyllablesCandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU8 Zi8AlphaGetCandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU32 Zi8GetKOcandidates(ziGetParam* parameters, ziPtr 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);
|
||||
ziU32 Zi8GetSyllablesCandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU32 Zi8AlphaGetCandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
|
||||
ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* options ZI_NEED_WORK) {
|
||||
|
||||
ziU8 savedElementCount;
|
||||
ziU16 savedCharacter;
|
||||
ziWChar* savedElements;
|
||||
ziBool restoreCandidates;
|
||||
int elementCount;
|
||||
int error;
|
||||
unsigned int candidateCount;
|
||||
ziU8 savedOptions;
|
||||
ziWChar* savedCandidates;
|
||||
ziU16 characterInfo[16];
|
||||
ziU16 lastInfoCharacter;
|
||||
struct {
|
||||
ziU8 savedGetMode;
|
||||
ziU8 savedElementCount;
|
||||
ziU8 convertedElementCount;
|
||||
ziBool restoreCandidates;
|
||||
ziU8 savedOptions;
|
||||
ziU16 savedCharacter;
|
||||
ziU16 lastInfoCharacter;
|
||||
ziWChar* savedElements;
|
||||
ziWChar* savedCandidates;
|
||||
} saved;
|
||||
ziU8 outputIndex;
|
||||
ziU16 error;
|
||||
unsigned int candidateCount;
|
||||
|
||||
error = 0;
|
||||
savedOptions = 0;
|
||||
savedCandidates = 0;
|
||||
restoreCandidates = 0;
|
||||
saved.savedOptions = 0;
|
||||
saved.savedCandidates = 0;
|
||||
saved.restoreCandidates = 0;
|
||||
if (options->lookupMode == '\0') {
|
||||
if (((ZI_WORK->unk_0x00 == '\t') && (parameters->elementCount != 0)) &&
|
||||
(((parameters->elements[parameters->elementCount - 1] == 0xEFF8 &&
|
||||
@@ -330,13 +334,11 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
|
||||
parameters->letters = 0;
|
||||
}
|
||||
Zi8LogError(100,ZI_WORK);
|
||||
goto finishCandidates;
|
||||
return candidateCount;
|
||||
}
|
||||
if ((parameters->elementCount == 1) && (parameters->firstCandidate == 0)) {
|
||||
elementCount = parameters->language;
|
||||
if (elementCount == 0x11) goto latinSequence;
|
||||
if (elementCount < 0x11) {
|
||||
if (elementCount == 1) {
|
||||
switch (parameters->language) {
|
||||
case 1:
|
||||
if ((ZI_WORK->unk_0x00 == '\0') || (ZI_WORK->unk_0x01 == options->countOnly)) {
|
||||
switch(ZI_WORK->unk_0x00) {
|
||||
case '\0':
|
||||
@@ -345,22 +347,22 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
|
||||
ZI_WORK->unk_0x00 = '\x01';
|
||||
}
|
||||
break;
|
||||
case '\x01':
|
||||
case '\x03':
|
||||
case '\x05':
|
||||
case '\a':
|
||||
if (parameters->elements[0] == 0xEF01) {
|
||||
ZI_WORK->unk_0x00 = ZI_WORK->unk_0x00 + '\x01';
|
||||
case '\x02':
|
||||
case '\x04':
|
||||
case '\x06':
|
||||
if (parameters->elements[0] == 0xEF04) {
|
||||
++ZI_WORK->unk_0x00;
|
||||
}
|
||||
else {
|
||||
ZI_WORK->unk_0x00 = '\0';
|
||||
}
|
||||
break;
|
||||
case '\x02':
|
||||
case '\x04':
|
||||
case '\x06':
|
||||
if (parameters->elements[0] == 0xEF04) {
|
||||
ZI_WORK->unk_0x00 = ZI_WORK->unk_0x00 + '\x01';
|
||||
case '\x01':
|
||||
case '\x03':
|
||||
case '\x05':
|
||||
case '\a':
|
||||
if (parameters->elements[0] == 0xEF01) {
|
||||
++ZI_WORK->unk_0x00;
|
||||
}
|
||||
else {
|
||||
ZI_WORK->unk_0x00 = '\0';
|
||||
@@ -376,7 +378,7 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
|
||||
parameters->letters = 0;
|
||||
}
|
||||
Zi8LogError(100,ZI_WORK);
|
||||
goto finishCandidates;
|
||||
return candidateCount;
|
||||
}
|
||||
default:
|
||||
ZI_WORK->unk_0x00 = '\0';
|
||||
@@ -385,12 +387,19 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
|
||||
ZI_WORK->unk_0x00 = '\x01';
|
||||
}
|
||||
}
|
||||
}
|
||||
else if ((elementCount == 0) || (elementCount < 0x10)) goto latinSequence;
|
||||
}
|
||||
else if (elementCount < 0x77) {
|
||||
if (0x12 < elementCount) {
|
||||
latinSequence:
|
||||
break;
|
||||
case 0x10:
|
||||
case 0x12:
|
||||
case 0x77:
|
||||
case 0x78:
|
||||
case 0x79:
|
||||
case 0x7A:
|
||||
case 0x7B:
|
||||
case 0x7C:
|
||||
case 0x7D:
|
||||
break;
|
||||
case 0x11:
|
||||
default:
|
||||
if ((ZI_WORK->unk_0x00 == '\0') || (ZI_WORK->unk_0x01 == options->countOnly)) {
|
||||
switch(ZI_WORK->unk_0x00) {
|
||||
case '\0':
|
||||
@@ -465,7 +474,7 @@ latinSequence:
|
||||
parameters->letters = 0;
|
||||
}
|
||||
Zi8LogError(100,ZI_WORK);
|
||||
goto finishCandidates;
|
||||
return candidateCount;
|
||||
}
|
||||
default:
|
||||
ZI_WORK->unk_0x00 = '\0';
|
||||
@@ -474,23 +483,21 @@ latinSequence:
|
||||
ZI_WORK->unk_0x00 = '\x01';
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
else if (0x7d < elementCount) goto latinSequence;
|
||||
}
|
||||
else if (1 < parameters->elementCount) {
|
||||
ZI_WORK->unk_0x00 = '\0';
|
||||
}
|
||||
}
|
||||
ZI_WORK->unk_0x18 = parameters->subLanguage;
|
||||
elementCount = Zi8GetFormatVersion(1,ZI_WORK);
|
||||
ZI_WORK->unk_0x16 = elementCount & 2;
|
||||
ZI_WORK->unk_0x16 = Zi8GetFormatVersion(1,ZI_WORK) & 2;
|
||||
options->maxCount = ZI_WORK->unk_0x10;
|
||||
options->maxWordLength = ZI_WORK->unk_0x0A;
|
||||
ZI_WORK->unk_0x0A = -1;
|
||||
if ((ziU8)Zi8LangSupported(parameters->language,ZI_WORK) == 0) {
|
||||
Zi8LogError(0x163,ZI_WORK);
|
||||
candidateCount = 0;
|
||||
return 0;
|
||||
}
|
||||
else {
|
||||
if (parameters->language == 0x10) {
|
||||
@@ -498,7 +505,7 @@ latinSequence:
|
||||
candidateCount = 0;
|
||||
}
|
||||
else if (parameters->language == 0x12) {
|
||||
if ((parameters->elementCount == 0) || (0xeff0 < parameters->elements[0])) {
|
||||
if ((parameters->elementCount == 0) || (parameters->elements[0] >= 0xeff1)) {
|
||||
candidateCount = Zi8GetKOcandidates(parameters,options,ZI_WORK);
|
||||
}
|
||||
else {
|
||||
@@ -512,29 +519,27 @@ latinSequence:
|
||||
else if ((parameters->language == 1) &&
|
||||
((((parameters->getOptions & 0xbf) == 4 && (parameters->elementCount != 0)) &&
|
||||
((ziU8)Zi8IsCharacter(parameters->elements[0],ZI_WORK) != 0)))) {
|
||||
elementCount = Zi8GetCharInfo(parameters->elements[0],characterInfo,0x10,1,ZI_WORK);
|
||||
if (elementCount == 0) {
|
||||
parameters->unk_0x20 = 0;
|
||||
parameters->count = 0;
|
||||
parameters->letters = 0;
|
||||
saved.convertedElementCount = Zi8GetCharInfo(parameters->elements[0],characterInfo,0x10,1,ZI_WORK);
|
||||
if (saved.convertedElementCount == 0) {
|
||||
parameters->letters = parameters->count = parameters->unk_0x20 = 0;
|
||||
candidateCount = 0;
|
||||
error = 900;
|
||||
}
|
||||
else {
|
||||
lastInfoCharacter = characterInfo[elementCount - 1];
|
||||
if ((0xf330 < lastInfoCharacter) && (lastInfoCharacter < 0xf336)) {
|
||||
characterInfo[elementCount - 1] = 0xf360;
|
||||
saved.lastInfoCharacter = characterInfo[saved.convertedElementCount - 1];
|
||||
if ((saved.lastInfoCharacter >= 0xf331) && (saved.lastInfoCharacter <= 0xf335)) {
|
||||
characterInfo[saved.convertedElementCount - 1] = 0xf360;
|
||||
}
|
||||
savedElements = parameters->elements;
|
||||
saved.savedElements = parameters->elements;
|
||||
parameters->elements = characterInfo;
|
||||
savedElementCount = parameters->elementCount;
|
||||
parameters->elementCount = elementCount;
|
||||
elementCount = parameters->getMode;
|
||||
saved.savedElementCount = parameters->elementCount;
|
||||
parameters->elementCount = saved.convertedElementCount;
|
||||
saved.savedGetMode = parameters->getMode;
|
||||
parameters->getMode = 1;
|
||||
candidateCount = Zi8GetChineseCandidates(parameters,options,ZI_WORK);
|
||||
parameters->elements = savedElements;
|
||||
parameters->elementCount = savedElementCount;
|
||||
parameters->getMode = elementCount;
|
||||
parameters->elements = saved.savedElements;
|
||||
parameters->elementCount = saved.savedElementCount;
|
||||
parameters->getMode = saved.savedGetMode;
|
||||
parameters->count = 1;
|
||||
}
|
||||
}
|
||||
@@ -543,27 +548,22 @@ latinSequence:
|
||||
candidateCount = 0;
|
||||
}
|
||||
else if ((parameters->language == 1) && ((parameters->getMode == 3 || (parameters->getMode == 4)))) {
|
||||
if ((parameters->getOptions & 0x80) == 0) {
|
||||
if (parameters->elementCount == 0) {
|
||||
candidateCount = Zi8GetChineseCandidates(parameters,options,ZI_WORK);
|
||||
}
|
||||
else {
|
||||
candidateCount = Zi8Get1KeyPressCandidates(parameters,options,ZI_WORK);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ((parameters->getOptions & 0x80) != 0) {
|
||||
candidateCount = Zi8Get1KeyPressSpelling(parameters,options,ZI_WORK);
|
||||
} else if (parameters->elementCount == 0) {
|
||||
candidateCount = Zi8GetChineseCandidates(parameters,options,ZI_WORK);
|
||||
} else {
|
||||
candidateCount = Zi8Get1KeyPressCandidates(parameters,options,ZI_WORK);
|
||||
}
|
||||
}
|
||||
else if ((parameters->language == 1) &&
|
||||
((((parameters->getMode == 7 || (parameters->getMode == 8)) || (parameters->getMode == 10)) || (parameters->getMode == 9)))) {
|
||||
if (ZI_WORK->unk_0x16 == '\0') {
|
||||
if (ZI_WORK->unk_0x16 != '\0') {
|
||||
candidateCount = Zi8GetChineseCandidates(parameters,options,ZI_WORK);
|
||||
} else {
|
||||
error = 0x708;
|
||||
candidateCount = 0;
|
||||
}
|
||||
else {
|
||||
candidateCount = Zi8GetChineseCandidates(parameters,options,ZI_WORK);
|
||||
}
|
||||
}
|
||||
else if ((parameters->language == 1) && ((parameters->getMode == 0xb || (parameters->getMode == 0xe)))) {
|
||||
error = 0x2ee;
|
||||
@@ -575,52 +575,45 @@ latinSequence:
|
||||
&& (((parameters->elements[parameters->elementCount - 1] == 0xF37A ||
|
||||
(parameters->elements[parameters->elementCount - 1] == 0xF363)) ||
|
||||
(parameters->elements[parameters->elementCount - 1] == 0xF373)))) {
|
||||
savedCharacter = parameters->elements[parameters->elementCount];
|
||||
elementCount = parameters->elementCount;
|
||||
parameters->elements[elementCount] = 0xf368;
|
||||
parameters->elementCount = elementCount + 1;
|
||||
saved.savedCharacter = parameters->elements[parameters->elementCount];
|
||||
parameters->elements[parameters->elementCount++] = 0xf368;
|
||||
candidateCount = Zi8GetChineseCandidates(parameters,options,ZI_WORK);
|
||||
elementCount = parameters->elementCount;
|
||||
parameters->elementCount = elementCount - 1;
|
||||
parameters->elements[(ziU8)(elementCount - 1)] = savedCharacter;
|
||||
parameters->elements[--parameters->elementCount] = saved.savedCharacter;
|
||||
}
|
||||
}
|
||||
else {
|
||||
ZI_WORK->unk_0x538 = parameters->language;
|
||||
restoreCandidates = (parameters->getOptions & 0x80) == 0;
|
||||
if (restoreCandidates) {
|
||||
savedOptions = parameters->getOptions;
|
||||
savedCandidates = parameters->candidates;
|
||||
parameters->getOptions = parameters->getOptions | 0x81;
|
||||
if ((parameters->getOptions & 0x80) == 0) {
|
||||
saved.restoreCandidates = 1;
|
||||
saved.savedOptions = parameters->getOptions;
|
||||
saved.savedCandidates = parameters->candidates;
|
||||
parameters->getOptions |= 0x81;
|
||||
parameters->candidates = (ziWChar*)&ZI_WORK->unk_0x338;
|
||||
options->capacity = 0x100;
|
||||
}
|
||||
if (parameters->getMode == 2) {
|
||||
candidateCount = Zi8GetTableCount(parameters->language,0x1f,ZI_WORK);
|
||||
if ((candidateCount & 0x200) == 0) {
|
||||
if ((Zi8GetTableCount(parameters->language,0x1f,ZI_WORK) & 0x200) != 0) {
|
||||
candidateCount = Zi8GetSyllablesCandidates(parameters,options,ZI_WORK);
|
||||
} else {
|
||||
error = 0x44c;
|
||||
candidateCount = 0;
|
||||
}
|
||||
else {
|
||||
candidateCount = Zi8GetSyllablesCandidates(parameters,options,ZI_WORK);
|
||||
}
|
||||
}
|
||||
else {
|
||||
candidateCount = Zi8AlphaGetCandidates(parameters,options,ZI_WORK);
|
||||
}
|
||||
}
|
||||
if (restoreCandidates) {
|
||||
parameters->getOptions = savedOptions;
|
||||
parameters->candidates = savedCandidates;
|
||||
for (elementCount = 0; elementCount < parameters->letters; elementCount = elementCount + 1) {
|
||||
parameters->candidates[elementCount] = elementCount - 0x10;
|
||||
if (saved.restoreCandidates) {
|
||||
parameters->getOptions = saved.savedOptions;
|
||||
parameters->candidates = saved.savedCandidates;
|
||||
for (outputIndex = 0; outputIndex < parameters->letters; outputIndex++) {
|
||||
parameters->candidates[outputIndex] = 0xFFF0 + outputIndex;
|
||||
}
|
||||
}
|
||||
if (error != 0) {
|
||||
Zi8LogError(error,ZI_WORK);
|
||||
}
|
||||
}
|
||||
finishCandidates:
|
||||
return candidateCount;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ ziU8 Zi8_814813FC(ziWChar character, ziU8* result, ziU16* index, ziPtr workData)
|
||||
|
||||
ziU8 Zi8_81481E6C(ziU16* resultIndex, ziU16* input, ziU8 type, ziU16 count, ziPtr workData);
|
||||
|
||||
ziU8 Zi8GetKoreanCandidates(ziGetParam* params, ziU8* argument,
|
||||
ziU32 Zi8GetKoreanCandidates(ziGetParam* params, ziU8* argument,
|
||||
ziPtr workData) {
|
||||
struct {
|
||||
ziU8 characterIndex;
|
||||
@@ -44,7 +44,7 @@ ziU8 Zi8GetKoreanCandidates(ziGetParam* params, ziU8* argument,
|
||||
ziU8* table1;
|
||||
} state;
|
||||
ziU16 buffer[100];
|
||||
unsigned int result;
|
||||
ziU32 result;
|
||||
ziU16 currentCharacter;
|
||||
ziU8* selectedTable;
|
||||
|
||||
@@ -52,7 +52,7 @@ ziU8 Zi8GetKoreanCandidates(ziGetParam* params, ziU8* argument,
|
||||
result = 0;
|
||||
state.characterIndex = 0xFF;
|
||||
state.currentCandidate = params->firstCandidate;
|
||||
params->unk_0x20 = params->count = params->letters = 0;
|
||||
params->letters = params->count = params->unk_0x20 = 0;
|
||||
if ((argument != 0) && (*argument != 0)) {
|
||||
Zi8LogError(0x7D0, workData);
|
||||
return 0;
|
||||
|
||||
@@ -99,7 +99,7 @@ ziU32 Zi8_81483308(ziGetParam* param, ziU16 key, ziU8* count ZI_NEED_WORK) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
ziBool Zi8_814833F0(const ziGetParam* param, ziU16 key ZI_NEED_WORK) {
|
||||
ziU32 Zi8_814833F0(const ziGetParam* param, ziU16 key ZI_NEED_WORK) {
|
||||
ziU8 i;
|
||||
|
||||
Zi8LogError(0x64, ZI_WORK);
|
||||
@@ -119,26 +119,28 @@ ziBool Zi8_814833F0(const ziGetParam* param, ziU16 key ZI_NEED_WORK) {
|
||||
|
||||
ziU32 Zi8_814834AC(ziGetParam* param, ziU16* remaining, ziU8* count,
|
||||
ziU8* inserted ZI_NEED_WORK) {
|
||||
ziBool matches;
|
||||
ZiKoreanKeyEntry* entry;
|
||||
ziU8* tableA;
|
||||
ziU8* tableB;
|
||||
ziU16 tableCount;
|
||||
ziU8 matched;
|
||||
struct {
|
||||
ziBool matches;
|
||||
ziU8 candidateIndex;
|
||||
ziU16 tableCount;
|
||||
ziS32 compactIndex;
|
||||
ZiKoreanKeyEntry* entry;
|
||||
ziU8* tableB;
|
||||
ziU8* tableA;
|
||||
union {
|
||||
ziU32 firstWord;
|
||||
ziU8 bytes[5];
|
||||
} keys;
|
||||
} filter;
|
||||
ziU32 j;
|
||||
ziS32 i;
|
||||
ziS32 candidate;
|
||||
ziU8 candidateIndex;
|
||||
union {
|
||||
ziU32 firstWord;
|
||||
ziU8 bytes[5];
|
||||
} local;
|
||||
ziU8 matched;
|
||||
|
||||
j = 0;
|
||||
candidateIndex = 0;
|
||||
filter.candidateIndex = 0;
|
||||
matched = 0;
|
||||
local.firstWord = 0;
|
||||
local.bytes[4] = 0;
|
||||
filter.keys.bytes[4] = filter.keys.firstWord = 0;
|
||||
Zi8LogError(0x64, ZI_WORK);
|
||||
if (param->elementCount == 0) {
|
||||
if (*remaining >= *count) {
|
||||
@@ -154,46 +156,50 @@ ziU32 Zi8_814834AC(ziGetParam* param, ziU16* remaining, ziU8* count,
|
||||
for (i = 0; i < ((ziS32)*count - (ziS32)*remaining); i++) {
|
||||
param->candidates[i] = param->candidates[*remaining + i];
|
||||
}
|
||||
*count = *count - (ziU8)*remaining;
|
||||
*count -= *remaining;
|
||||
*remaining = 0;
|
||||
}
|
||||
return 1;
|
||||
} else if (param->elementCount <= 9) {
|
||||
tableA = (ziU8*)Zi8GetTableAddress(param->language, 9, ZI_WORK);
|
||||
tableB = (ziU8*)Zi8GetTableAddress(param->language, 10, ZI_WORK);
|
||||
if (tableA == 0) {
|
||||
}
|
||||
if (param->elementCount > 9) {
|
||||
*count = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
filter.tableA = (ziU8*)Zi8GetTableAddress(param->language, 9, ZI_WORK);
|
||||
filter.tableB = (ziU8*)Zi8GetTableAddress(param->language, 10, ZI_WORK);
|
||||
if (filter.tableA == 0) {
|
||||
Zi8ReplaceLastError(0x76C, ZI_WORK);
|
||||
return 0;
|
||||
} else if (tableB == 0) {
|
||||
} else if (filter.tableB == 0) {
|
||||
Zi8ReplaceLastError(0x776, ZI_WORK);
|
||||
return 0;
|
||||
} else {
|
||||
tableCount = Zi8GetTableCount(ZI8_LANG_KO, 9, ZI_WORK);
|
||||
Zi8_81483118(param, local.bytes);
|
||||
filter.tableCount = Zi8GetTableCount(ZI8_LANG_KO, 9, ZI_WORK);
|
||||
Zi8_81483118(param, filter.keys.bytes);
|
||||
i = 0;
|
||||
while (i < tableCount && matched < *count) {
|
||||
matches = ZI8_TRUE;
|
||||
entry = (ZiKoreanKeyEntry*)&tableA[(i << 3) + i];
|
||||
while (i < filter.tableCount && matched < *count) {
|
||||
filter.matches = ZI8_TRUE;
|
||||
filter.entry = (ZiKoreanKeyEntry*)&filter.tableA[(i << 3) + i];
|
||||
j = 0;
|
||||
if (param->elementCount > 1) {
|
||||
for (j = 0; (j & 0xFF) < (int)param->elementCount / 2; j++) {
|
||||
if (local.bytes[j & 0xFF] != entry->keyBytes[j & 0xFF]) {
|
||||
matches = ZI8_FALSE;
|
||||
for (j = 0; (int)(j & 0xFF) < (int)param->elementCount / 2; j++) {
|
||||
if (filter.keys.bytes[j & 0xFF] != filter.entry->keyBytes[j & 0xFF]) {
|
||||
filter.matches = ZI8_FALSE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (matches && (param->elementCount % 2) != 0 &&
|
||||
((local.bytes[j & 0xFF] & 0xF0) != (entry->keyBytes[j & 0xFF] & 0xF0))) {
|
||||
matches = ZI8_FALSE;
|
||||
if (filter.matches && (param->elementCount % 2) != 0 &&
|
||||
((filter.keys.bytes[j & 0xFF] & 0xF0) != (filter.entry->keyBytes[j & 0xFF] & 0xF0))) {
|
||||
filter.matches = ZI8_FALSE;
|
||||
}
|
||||
if (matches) {
|
||||
for (candidateIndex = 0; candidateIndex < *count; candidateIndex++) {
|
||||
if (param->candidates[candidateIndex] ==
|
||||
(((ziU16)((ZiKoreanKeyEntry*)tableA)[i].characterHigh << 8) | (ziU16)((ZiKoreanKeyEntry*)tableA)[i].characterLow)) {
|
||||
if (filter.matches) {
|
||||
for (filter.candidateIndex = 0; filter.candidateIndex < *count; filter.candidateIndex++) {
|
||||
if (param->candidates[filter.candidateIndex] ==
|
||||
(((ziU16)((ZiKoreanKeyEntry*)filter.tableA)[i].characterHigh << 8) | (ziU16)((ZiKoreanKeyEntry*)filter.tableA)[i].characterLow)) {
|
||||
matched++;
|
||||
param->candidates[candidateIndex] =
|
||||
param->candidates[candidateIndex] & 0x7FFF;
|
||||
param->candidates[filter.candidateIndex] &= 0x7FFF;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -205,34 +211,30 @@ ziU32 Zi8_814834AC(ziGetParam* param, ziU16* remaining, ziU8* count,
|
||||
*count = 0;
|
||||
for (candidate = 0; candidate < matched; candidate++) {
|
||||
if ((param->candidates[candidate] & 0x8000) == 0) {
|
||||
param->candidates[candidate] = param->candidates[candidate] | 0x8000;
|
||||
param->candidates[candidate] |= 0x8000;
|
||||
if (*remaining != 0) {
|
||||
*remaining = *remaining - 1;
|
||||
--*remaining;
|
||||
Zi8_81483308(param, param->candidates[candidate], inserted, ZI_WORK);
|
||||
} else {
|
||||
if (*count != candidate) {
|
||||
param->candidates[*count] = param->candidates[candidate];
|
||||
}
|
||||
*count = *count + 1;
|
||||
++*count;
|
||||
}
|
||||
}
|
||||
}
|
||||
*remaining = 0;
|
||||
} else {
|
||||
for (candidate = 0; candidate < *count; candidate++) {
|
||||
if ((param->candidates[candidate] & 0x8000) == 0) {
|
||||
param->candidates[candidate] = param->candidates[candidate] | 0x8000;
|
||||
Zi8_81483308(param, param->candidates[candidate], inserted, ZI_WORK);
|
||||
for (filter.compactIndex = 0; filter.compactIndex < *count; filter.compactIndex++) {
|
||||
if ((param->candidates[filter.compactIndex] & 0x8000) == 0) {
|
||||
param->candidates[filter.compactIndex] |= 0x8000;
|
||||
Zi8_81483308(param, param->candidates[filter.compactIndex], inserted, ZI_WORK);
|
||||
}
|
||||
}
|
||||
*remaining = *remaining - (ziU8)matched;
|
||||
*remaining -= (ziU8)matched;
|
||||
*count = 0;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
*count = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -253,177 +255,173 @@ typedef struct {
|
||||
} ZiKoreanCandidateOptions;
|
||||
|
||||
ziU32 Zi8GetKOcandidates(ziGetParam* param, ZiKoreanCandidateOptions* options ZI_NEED_WORK) {
|
||||
ziBool matches;
|
||||
ziU8 letterCount;
|
||||
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;
|
||||
ziU32 result;
|
||||
ziU8* wordNode;
|
||||
union {
|
||||
ziU32 firstWord;
|
||||
ziU8 bytes[5];
|
||||
} packedKeys;
|
||||
ziU8 inserted;
|
||||
ziU8 matchPass;
|
||||
ziU8 keyByte;
|
||||
ziU8 candidateCount;
|
||||
ziU8 wordIndex;
|
||||
ziS8 remainingLetters;
|
||||
ziU16 remainingCandidates;
|
||||
ziU16 previousIndex;
|
||||
ziU16 character;
|
||||
ziU16 tableCount;
|
||||
ziU16 keyIndex;
|
||||
ZiKoreanKeyEntry* entry;
|
||||
ziU8* wordTable;
|
||||
ziS32 tableIndex;
|
||||
ziU32 resultCount;
|
||||
ziU32 wordOffset;
|
||||
ziU32 prefixCount;
|
||||
ziU32 candidateIndex;
|
||||
|
||||
previousIndex = 0xFFFF;
|
||||
resultCount = 0;
|
||||
packedKeys.firstWord = 0;
|
||||
packedKeys.bytes[4] = 0;
|
||||
remainingLetters = 0;
|
||||
wordIndex = 0;
|
||||
candidateCount = 0;
|
||||
keyByte = 0;
|
||||
remainingCandidates = param->firstCandidate;
|
||||
prefixCount = 0;
|
||||
candidateIndex = 0;
|
||||
inserted = 0;
|
||||
search.previousIndex = 0xFFFF;
|
||||
search.resultCount = 0;
|
||||
search.packedKeys.bytes[4] = 0;
|
||||
search.packedKeys.firstWord = 0;
|
||||
search.remainingLetters = 0;
|
||||
search.wordIndex = 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);
|
||||
wordTable = (ziU8*)Zi8GetTableAddress(ZI8_LANG_KO, 10, ZI_WORK);
|
||||
search.wordTable = (ziU8*)Zi8GetTableAddress(ZI8_LANG_KO, 10, ZI_WORK);
|
||||
if (keyTable == 0) {
|
||||
Zi8ReplaceLastError(0x76C, ZI_WORK);
|
||||
return 0;
|
||||
} else {
|
||||
if (wordTable == 0) {
|
||||
if (search.wordTable == 0) {
|
||||
Zi8ReplaceLastError(0x776, ZI_WORK);
|
||||
return 0;
|
||||
}
|
||||
if (options->countOnly == 0) {
|
||||
param->letters = 0;
|
||||
param->count = 0;
|
||||
param->unk_0x20 = 0;
|
||||
param->candidates[0] = 0;
|
||||
}
|
||||
Zi8LogError(100, ZI_WORK);
|
||||
if (param->wordCharCount != 0) {
|
||||
keyIndex = Zi8_8148302C(param->currentWord[0], (ziU8*)keyTable, ZI_WORK);
|
||||
if ((keyIndex != 0xFFFF) &&
|
||||
((((ZiKoreanKeyEntry*)&keyTable[(keyIndex << 3) + keyIndex])->keyBytes[4] & 8) != 0)) {
|
||||
wordOffset = (ziU32)((ZiKoreanKeyEntry*)&keyTable[(keyIndex << 3) + keyIndex])->childLow |
|
||||
((ziU32)((ZiKoreanKeyEntry*)&keyTable[(keyIndex << 3) + keyIndex])->keyBytes[4] & 3) << 16 |
|
||||
(ziU32)((ZiKoreanKeyEntry*)&keyTable[(keyIndex << 3) + keyIndex])->childHigh << 8;
|
||||
remainingLetters = param->wordCharCount - 1;
|
||||
wordIndex = 1;
|
||||
wordNode = wordTable + wordOffset;
|
||||
if (((search.keyIndex = Zi8_8148302C(param->currentWord[0], keyTable, ZI_WORK)) != 0xFFFF) &&
|
||||
((((ZiKoreanKeyEntry*)(((search.keyIndex << 3) + search.keyIndex) + keyTable))->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:
|
||||
if (remainingLetters != 0) {
|
||||
keyIndex = Zi8_8148302C(param->currentWord[wordIndex], (ziU8*)keyTable, ZI_WORK);
|
||||
if (keyIndex == (ziU16)((*wordNode & 0x1F) << 8 | wordNode[1])) {
|
||||
remainingLetters = remainingLetters - 1;
|
||||
wordIndex = wordIndex + 1;
|
||||
if ((*wordNode & 0x40) == 0) {
|
||||
wordNode = wordNode + 2;
|
||||
goto match_word;
|
||||
while (search.remainingLetters != 0) {
|
||||
search.keyIndex = Zi8_8148302C(param->currentWord[search.wordIndex], (ziU8*)keyTable, ZI_WORK);
|
||||
if (search.keyIndex == (ziU16)((*wordNode & 0x1F) << 8 | wordNode[1])) {
|
||||
--search.remainingLetters;
|
||||
++search.wordIndex;
|
||||
if ((*wordNode & 0x40) != 0) {
|
||||
search.remainingLetters = param->wordCharCount - 1;
|
||||
search.wordIndex = 1;
|
||||
break;
|
||||
}
|
||||
remainingLetters = param->wordCharCount - 1;
|
||||
wordIndex = 1;
|
||||
wordNode += 2;
|
||||
} else {
|
||||
wordIndex = 1;
|
||||
remainingLetters = param->wordCharCount - 1;
|
||||
search.wordIndex = 1;
|
||||
search.remainingLetters = param->wordCharCount - 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (remainingLetters == 0) {
|
||||
keyIndex = (*wordNode & 0x1F) << 8 | wordNode[1];
|
||||
character = (ziU16)(((ZiKoreanKeyEntry*)&keyTable[(keyIndex << 3) + keyIndex])->characterHigh << 8 |
|
||||
((ZiKoreanKeyEntry*)&keyTable[(keyIndex << 3) + keyIndex])->characterLow);
|
||||
if (search.remainingLetters == 0) {
|
||||
search.keyIndex = (*wordNode & 0x1F) << 8 | wordNode[1];
|
||||
search.character = (ziU16)(((ZiKoreanKeyEntry*)(((search.keyIndex << 3) + search.keyIndex) + keyTable))->characterHigh << 8 |
|
||||
((ZiKoreanKeyEntry*)(((search.keyIndex << 3) + search.keyIndex) + keyTable))->characterLow);
|
||||
if (param->wordCharCount == 1) {
|
||||
if (keyIndex == previousIndex) {
|
||||
if (search.keyIndex == search.previousIndex) {
|
||||
for (; (*wordNode & 0x40) == 0; wordNode = wordNode + 2) {
|
||||
}
|
||||
remainingLetters = param->wordCharCount;
|
||||
wordNode += 2;
|
||||
search.remainingLetters = param->wordCharCount - 1;
|
||||
search.wordIndex = 1;
|
||||
goto next_word;
|
||||
}
|
||||
previousIndex = keyIndex;
|
||||
search.previousIndex = search.keyIndex;
|
||||
if (param->elementCount == 0) {
|
||||
if (remainingCandidates == 0) {
|
||||
if (search.remainingCandidates == 0) {
|
||||
if (options->countOnly != 0) {
|
||||
prefixCount = prefixCount + 1;
|
||||
if ((ziS32)prefixCount < (ziS32)options->maxCount) {
|
||||
++search.prefixCount;
|
||||
if ((ziS32)search.prefixCount < (ziS32)options->maxCount) {
|
||||
goto skip_word;
|
||||
}
|
||||
return options->maxCount;
|
||||
}
|
||||
param->candidates[candidateCount] = character;
|
||||
candidateCount = candidateCount + 1;
|
||||
param->count = param->count + 1;
|
||||
letterCount = param->letters + 1;
|
||||
param->letters = letterCount;
|
||||
if (param->maxCandidates <= letterCount) {
|
||||
param->candidates[search.candidateCount] = search.character;
|
||||
++search.candidateCount;
|
||||
++param->unk_0x20;
|
||||
if (++param->letters >= param->maxCandidates) {
|
||||
return param->letters;
|
||||
}
|
||||
} else {
|
||||
remainingCandidates = remainingCandidates + -1;
|
||||
--search.remainingCandidates;
|
||||
}
|
||||
} else {
|
||||
param->candidates[candidateCount] = character;
|
||||
candidateCount = candidateCount + 1;
|
||||
param->count = param->count + 1;
|
||||
letterCount = param->letters + 1;
|
||||
param->letters = letterCount;
|
||||
if (param->maxCandidates <= letterCount) {
|
||||
Zi8_814834AC(param, &remainingCandidates, &candidateCount, &inserted, ZI_WORK);
|
||||
param->count = candidateCount;
|
||||
param->letters = candidateCount;
|
||||
if (param->maxCandidates <= candidateCount) {
|
||||
param->candidates[search.candidateCount] = search.character;
|
||||
++search.candidateCount;
|
||||
++param->unk_0x20;
|
||||
if (++param->letters >= param->maxCandidates) {
|
||||
Zi8_814834AC(param, &search.remainingCandidates, &search.candidateCount, &search.inserted, ZI_WORK);
|
||||
param->unk_0x20 = search.candidateCount;
|
||||
param->letters = search.candidateCount;
|
||||
if (param->maxCandidates <= search.candidateCount) {
|
||||
if (options->countOnly == 0) {
|
||||
return candidateCount;
|
||||
return search.candidateCount;
|
||||
}
|
||||
prefixCount = prefixCount + candidateCount;
|
||||
if ((ziS32)options->maxCount <= (ziS32)prefixCount) {
|
||||
search.prefixCount += search.candidateCount;
|
||||
if ((ziS32)options->maxCount <= (ziS32)search.prefixCount) {
|
||||
return options->maxCount;
|
||||
}
|
||||
param->count = 0;
|
||||
param->unk_0x20 = 0;
|
||||
param->letters = 0;
|
||||
candidateCount = 0;
|
||||
search.candidateCount = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (candidateIndex = 0;
|
||||
(candidateIndex < candidateCount &&
|
||||
(character != param->candidates[candidateIndex]));
|
||||
candidateIndex = candidateIndex + 1) {
|
||||
for (search.candidateIndex = 0;
|
||||
(search.candidateIndex < search.candidateCount &&
|
||||
(search.character != param->candidates[search.candidateIndex]));
|
||||
search.candidateIndex = search.candidateIndex + 1) {
|
||||
}
|
||||
if ((candidateIndex == candidateCount) &&
|
||||
(Zi8_814833F0(param, character, ZI_WORK) == 0)) {
|
||||
param->candidates[candidateCount] = character;
|
||||
candidateCount = candidateCount + 1;
|
||||
param->count = param->count + 1;
|
||||
letterCount = param->letters + 1;
|
||||
param->letters = letterCount;
|
||||
if (letterCount < param->maxCandidates) {
|
||||
if ((search.candidateIndex == search.candidateCount) &&
|
||||
(Zi8_814833F0(param, search.character, ZI_WORK) == 0)) {
|
||||
param->candidates[search.candidateCount] = search.character;
|
||||
++search.candidateCount;
|
||||
++param->unk_0x20;
|
||||
if (++param->letters < param->maxCandidates) {
|
||||
goto skip_word;
|
||||
}
|
||||
Zi8_814834AC(param, &remainingCandidates, &candidateCount, &inserted, ZI_WORK);
|
||||
param->count = candidateCount;
|
||||
param->letters = candidateCount;
|
||||
if (param->maxCandidates <= candidateCount) {
|
||||
Zi8_814834AC(param, &search.remainingCandidates, &search.candidateCount, &search.inserted, ZI_WORK);
|
||||
param->unk_0x20 = search.candidateCount;
|
||||
param->letters = search.candidateCount;
|
||||
if (param->maxCandidates <= search.candidateCount) {
|
||||
if (options->countOnly == 0) {
|
||||
return candidateCount;
|
||||
return search.candidateCount;
|
||||
}
|
||||
prefixCount = prefixCount + candidateCount;
|
||||
if ((ziS32)options->maxCount <= (ziS32)prefixCount) {
|
||||
search.prefixCount += search.candidateCount;
|
||||
if ((ziS32)options->maxCount <= (ziS32)search.prefixCount) {
|
||||
return options->maxCount;
|
||||
}
|
||||
param->count = 0;
|
||||
param->unk_0x20 = 0;
|
||||
param->letters = 0;
|
||||
candidateCount = 0;
|
||||
search.candidateCount = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -431,11 +429,10 @@ match_word:
|
||||
skip_word:
|
||||
for (; (*wordNode & 0x40) == 0; wordNode = wordNode + 2) {
|
||||
}
|
||||
remainingLetters = param->wordCharCount;
|
||||
wordNode += 2;
|
||||
search.remainingLetters = param->wordCharCount - 1;
|
||||
search.wordIndex = 1;
|
||||
next_word:
|
||||
remainingLetters = remainingLetters + -1;
|
||||
wordIndex = 1;
|
||||
wordNode = wordNode + 2;
|
||||
if ((*wordNode & 0x80) != 0) {
|
||||
goto search_table;
|
||||
}
|
||||
@@ -443,108 +440,79 @@ next_word:
|
||||
}
|
||||
}
|
||||
search_table:
|
||||
resultCount = prefixCount;
|
||||
if (candidateCount != 0) {
|
||||
Zi8_814834AC(param, &remainingCandidates, &candidateCount, &inserted, ZI_WORK);
|
||||
result = resultCount;
|
||||
if ((options->countOnly != 0) &&
|
||||
(prefixCount = prefixCount + candidateCount, result = prefixCount,
|
||||
(ziS32)options->maxCount <= (ziS32)prefixCount)) {
|
||||
return options->maxCount;
|
||||
search.resultCount = search.prefixCount;
|
||||
if (search.candidateCount != 0) {
|
||||
Zi8_814834AC(param, &search.remainingCandidates, &search.candidateCount, &search.inserted, ZI_WORK);
|
||||
if (options->countOnly != 0) {
|
||||
search.prefixCount += search.candidateCount;
|
||||
if (search.prefixCount >= (ziS32)options->maxCount) return options->maxCount;
|
||||
search.resultCount = search.prefixCount;
|
||||
}
|
||||
resultCount = result;
|
||||
param->count = candidateCount;
|
||||
param->letters = candidateCount;
|
||||
param->unk_0x20 = search.candidateCount;
|
||||
param->letters = search.candidateCount;
|
||||
}
|
||||
if (param->elementCount < 10) {
|
||||
if ((param->elementCount == 0) || (options->countOnly != 0)) {
|
||||
matchPass = 1;
|
||||
search.matchPass = 1;
|
||||
} else {
|
||||
matchPass = 0;
|
||||
search.matchPass = 0;
|
||||
}
|
||||
tableCount = Zi8GetTableCount(ZI8_LANG_KO, 9, ZI_WORK);
|
||||
Zi8_81483118(param, packedKeys.bytes);
|
||||
search.tableCount = Zi8GetTableCount(ZI8_LANG_KO, 9, ZI_WORK);
|
||||
Zi8_81483118(param, search.packedKeys.bytes);
|
||||
do {
|
||||
for (tableIndex = 0; tableIndex < (ziS32)(ziU32)tableCount; tableIndex = tableIndex + 1) {
|
||||
matches = ZI8_TRUE;
|
||||
entry = (ZiKoreanKeyEntry*)&keyTable[(tableIndex << 3) + tableIndex];
|
||||
keyByte = 0;
|
||||
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 (keyByte = 0;
|
||||
(ziU32)keyByte < (int)param->elementCount / 2;
|
||||
keyByte = keyByte + 1) {
|
||||
if (packedKeys.bytes[keyByte] != entry->keyBytes[keyByte]) {
|
||||
matches = ZI8_FALSE;
|
||||
for (search.keyByte = 0;
|
||||
(ziU32)search.keyByte < (int)param->elementCount / 2;
|
||||
search.keyByte = search.keyByte + 1) {
|
||||
if (search.packedKeys.bytes[search.keyByte] != search.entry->keyBytes[search.keyByte]) {
|
||||
search.matches = ZI8_FALSE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((matches && ((param->elementCount % 2) != 0)) &&
|
||||
((packedKeys.bytes[keyByte] & 0xF0) !=
|
||||
(entry->keyBytes[keyByte] & 0xF0))) {
|
||||
matches = ZI8_FALSE;
|
||||
if ((search.matches && ((param->elementCount % 2) != 0)) &&
|
||||
((search.packedKeys.bytes[search.keyByte] & 0xF0) !=
|
||||
(search.entry->keyBytes[search.keyByte] & 0xF0))) {
|
||||
search.matches = ZI8_FALSE;
|
||||
}
|
||||
if (matches) {
|
||||
letterCount = matchPass;
|
||||
if ((param->elementCount % 2) == 0) {
|
||||
if ((entry->keyBytes[keyByte] & 0xF0) == 0) {
|
||||
if (matchPass == 0) {
|
||||
goto add_candidate;
|
||||
}
|
||||
letterCount = options->countOnly;
|
||||
}
|
||||
if (letterCount == 0) {
|
||||
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 ((entry->keyBytes[keyByte] & 0xF) != 0) {
|
||||
goto check_pass;
|
||||
}
|
||||
if (matchPass != 0) {
|
||||
letterCount = options->countOnly;
|
||||
goto check_pass;
|
||||
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;
|
||||
}
|
||||
}
|
||||
check_pass:
|
||||
if (letterCount == 0) {
|
||||
goto next_entry;
|
||||
}
|
||||
add_candidate:
|
||||
if (remainingCandidates == 0) {
|
||||
if (options->countOnly == 0) {
|
||||
param->candidates[candidateCount] =
|
||||
(ziU16)((((ZiKoreanKeyEntry*)&keyTable[(tableIndex << 3) + tableIndex])->characterHigh << 8) |
|
||||
((ZiKoreanKeyEntry*)&keyTable[(tableIndex << 3) + tableIndex])->characterLow);
|
||||
candidateCount = candidateCount + 1;
|
||||
letterCount = param->letters + 1;
|
||||
param->letters = letterCount;
|
||||
if (param->maxCandidates <= letterCount) {
|
||||
return param->letters;
|
||||
}
|
||||
} else {
|
||||
resultCount = resultCount + 1;
|
||||
if ((ziS32)options->maxCount <= (ziS32)resultCount) {
|
||||
return options->maxCount;
|
||||
}
|
||||
}
|
||||
if (search.remainingCandidates != 0) {
|
||||
--search.remainingCandidates;
|
||||
} else if (options->countOnly != 0) {
|
||||
if (++search.resultCount >= (ziS32)options->maxCount) return options->maxCount;
|
||||
} else {
|
||||
remainingCandidates = remainingCandidates + -1;
|
||||
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:
|
||||
;
|
||||
}
|
||||
matchPass = matchPass + 1;
|
||||
} while (matchPass < 2);
|
||||
result = resultCount;
|
||||
if (options->countOnly == 0) {
|
||||
result = param->letters;
|
||||
}
|
||||
} while (++search.matchPass < 2);
|
||||
} else {
|
||||
param->letters = 0;
|
||||
return 0;
|
||||
}
|
||||
if (options->countOnly != 0) return search.resultCount;
|
||||
return param->letters;
|
||||
}
|
||||
finish_candidates:
|
||||
return result;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -8,17 +8,7 @@ ziU16 Zi8GetTableCount(ziU8, ziU8 ZI_NEED_WORK);
|
||||
ziU8 Zi8GetPyPhonetic(ziWChar*, ziU8, ziWChar*, ziWChar*, ziU8*, ziWChar*, ziWChar* ZI_NEED_WORK);
|
||||
ziU8 Zi8GetBpmfPhonetic(ziWChar*, ziU8, ziWChar*, ziWChar*, ziWChar*, ziWChar* ZI_NEED_WORK);
|
||||
|
||||
ziBool Zi8PrepareMatch(ziGetParam* request, ziMatchParam* match, ziU8 skipMode ZI_NEED_WORK)
|
||||
|
||||
{
|
||||
ziU8 masks[12];
|
||||
ziU8 strokes[12];
|
||||
ziU8* component;
|
||||
ziU8* componentIndex;
|
||||
ziU8 strokePrefix[4];
|
||||
ziU8 maskPrefix[4];
|
||||
ziU8* phoneticTable;
|
||||
ziWChar* phoneticInput;
|
||||
ziBool Zi8PrepareMatch(ziGetParam* request, ziMatchParam* match, ziU8 skipMode ZI_NEED_WORK) {
|
||||
ziU16 element;
|
||||
ziU16 phoneticCount;
|
||||
ziU16 phoneticInitial;
|
||||
@@ -29,13 +19,24 @@ ziBool Zi8PrepareMatch(ziGetParam* request, ziMatchParam* match, ziU8 skipMode Z
|
||||
ziWChar final;
|
||||
ziWChar bestInitial;
|
||||
ziWChar bestFinal;
|
||||
ziWChar previousFinal;
|
||||
ziWChar previousInitial;
|
||||
ziWChar previousFinal;
|
||||
ziU8 elementCount;
|
||||
ziU8 elementIndex;
|
||||
ziU8 stroke;
|
||||
ziU8 contextMask;
|
||||
ziU8 mode;
|
||||
ziU8 savedNibbles;
|
||||
struct {
|
||||
ziWChar* phoneticInput;
|
||||
ziU8* phoneticTable;
|
||||
ziU8 strokePrefix[4];
|
||||
ziU8 maskPrefix[4];
|
||||
ziU8* componentIndex;
|
||||
ziU8* component;
|
||||
ziU8 strokes[12];
|
||||
ziU8 masks[12];
|
||||
} buffers;
|
||||
ziU8 nibbles;
|
||||
ziU8 index;
|
||||
|
||||
@@ -60,12 +61,12 @@ ziBool Zi8PrepareMatch(ziGetParam* request, ziMatchParam* match, ziU8 skipMode Z
|
||||
match->comp = element = request->elements[0];
|
||||
if (Zi8IsComponent(element,__zi8_work_data) != 0) {
|
||||
elementIndex++;
|
||||
component = (ziU8*)Zi8GetTableAddress(1,2,__zi8_work_data);
|
||||
componentIndex = (ziU8*)Zi8GetTableAddress(1,6,__zi8_work_data);
|
||||
componentIndex += (element - 0xef10) * 2;
|
||||
match->field22 = (((ziU16)componentIndex[1] & 0x3f) << 8) + *componentIndex;
|
||||
component += (ziU32)match->field22 * 8;
|
||||
switch(*component & 0xf) {
|
||||
buffers.component = (ziU8*)Zi8GetTableAddress(1,2,__zi8_work_data);
|
||||
buffers.componentIndex = (ziU8*)Zi8GetTableAddress(1,6,__zi8_work_data);
|
||||
buffers.componentIndex += (element - 0xef10) * 2;
|
||||
match->field22 = (((ziU16)buffers.componentIndex[1] & 0x3f) << 8) + *buffers.componentIndex;
|
||||
buffers.component += (ziU32)match->field22 * 8;
|
||||
switch(*buffers.component & 0xf) {
|
||||
case 0:
|
||||
case 9:
|
||||
case 10:
|
||||
@@ -96,18 +97,18 @@ ziBool Zi8PrepareMatch(ziGetParam* request, ziMatchParam* match, ziU8 skipMode Z
|
||||
case 8:
|
||||
match->comp = 0xEF00 + 2;
|
||||
}
|
||||
for (index = 0; index < (component[5] >> 1) + 1; index++) {
|
||||
for (index = 0; index < (buffers.component[5] >> 1) + 1; index++) {
|
||||
if (index < 4) {
|
||||
match->arrD[index] = component[index];
|
||||
match->arrD[index] = buffers.component[index];
|
||||
match->arr1[index] = 0xff;
|
||||
}
|
||||
}
|
||||
if ((index != 0) && ((component[5] & 1) == 0)) {
|
||||
if ((index != 0) && ((buffers.component[5] & 1) == 0)) {
|
||||
index--;
|
||||
match->arrD[index] &= 0xf0;
|
||||
match->arr1[index] = match->arr1[index] & 0xf0;
|
||||
}
|
||||
nibbles = (ziU8)(component[5] + 1);
|
||||
nibbles = (ziU8)(buffers.component[5] + 1);
|
||||
if (8 < nibbles) {
|
||||
nibbles++;
|
||||
}
|
||||
@@ -117,18 +118,12 @@ ziBool Zi8PrepareMatch(ziGetParam* request, ziMatchParam* match, ziU8 skipMode Z
|
||||
match->arrD[0] &= 0xf;
|
||||
if (skipMode == '\0') {
|
||||
mode = 0;
|
||||
if (((request->subLanguage & 0x80) == 0) && ((request->subLanguage & 0x40) == 0)) {
|
||||
if ((request->subLanguage & 8) == 0) {
|
||||
if (((request->subLanguage & 0x20) != 0) || ((request->subLanguage & 0x10) != 0)) {
|
||||
mode = 2;
|
||||
}
|
||||
}
|
||||
else {
|
||||
mode = 4;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ((request->subLanguage & 0x80) != 0 || (request->subLanguage & 0x40) != 0) {
|
||||
mode = 1;
|
||||
} else if ((request->subLanguage & 8) != 0) {
|
||||
mode = 4;
|
||||
} else if ((request->subLanguage & 0x20) != 0 || (request->subLanguage & 0x10) != 0) {
|
||||
mode = 2;
|
||||
}
|
||||
if (mode == 0) {
|
||||
mode = request->subLanguage;
|
||||
@@ -147,8 +142,8 @@ ziBool Zi8PrepareMatch(ziGetParam* request, ziMatchParam* match, ziU8 skipMode Z
|
||||
}
|
||||
if (((request->getMode == '\0') || (request->getMode == '\x10')) ||
|
||||
(request->getMode == '\x05')) {
|
||||
Zi8Memcpy(masks,match->arr1,0xc);
|
||||
Zi8Memcpy(strokes,match->arrD,0xc);
|
||||
Zi8Memcpy(buffers.masks,match->arr1,0xc);
|
||||
Zi8Memcpy(buffers.strokes,match->arrD,0xc);
|
||||
do {
|
||||
while (elementIndex < elementCount) {
|
||||
element = request->elements[elementIndex++];
|
||||
@@ -175,70 +170,71 @@ ziBool Zi8PrepareMatch(ziGetParam* request, ziMatchParam* match, ziU8 skipMode Z
|
||||
nibbles++;
|
||||
}
|
||||
if ((nibbles & 1) != 0) {
|
||||
strokes[nibbles >> 1] = strokes[nibbles >> 1] | stroke;
|
||||
buffers.strokes[nibbles >> 1] = buffers.strokes[nibbles >> 1] | stroke;
|
||||
if (element == 0xef0b) {
|
||||
masks[nibbles >> 1] = masks[nibbles >> 1] | 8;
|
||||
buffers.masks[nibbles >> 1] = buffers.masks[nibbles >> 1] | 8;
|
||||
}
|
||||
else if (element == 0xef0a) {
|
||||
masks[nibbles >> 1] = masks[nibbles >> 1] | 4;
|
||||
buffers.masks[nibbles >> 1] = buffers.masks[nibbles >> 1] | 4;
|
||||
}
|
||||
else if (element != 0xef00) {
|
||||
masks[nibbles >> 1] = masks[nibbles >> 1] | 7;
|
||||
buffers.masks[nibbles >> 1] = buffers.masks[nibbles >> 1] | 7;
|
||||
}
|
||||
} else {
|
||||
strokes[nibbles >> 1] = strokes[nibbles >> 1] | (ziU8)(stroke << 4);
|
||||
buffers.strokes[nibbles >> 1] = buffers.strokes[nibbles >> 1] | (ziU8)(stroke << 4);
|
||||
if (element == 0xef0b) {
|
||||
masks[nibbles >> 1] = masks[nibbles >> 1] | 0x80;
|
||||
buffers.masks[nibbles >> 1] = buffers.masks[nibbles >> 1] | 0x80;
|
||||
}
|
||||
else if (element == 0xef0a) {
|
||||
masks[nibbles >> 1] = masks[nibbles >> 1] | 0x40;
|
||||
buffers.masks[nibbles >> 1] = buffers.masks[nibbles >> 1] | 0x40;
|
||||
}
|
||||
else if (element != 0xef00) {
|
||||
masks[nibbles >> 1] = masks[nibbles >> 1] | 0x70;
|
||||
buffers.masks[nibbles >> 1] = buffers.masks[nibbles >> 1] | 0x70;
|
||||
}
|
||||
}
|
||||
}
|
||||
nibbles++;
|
||||
}
|
||||
savedNibbles = nibbles;
|
||||
for (index = 0; index < 4; index++) {
|
||||
maskPrefix[index] = masks[index];
|
||||
strokePrefix[index] = strokes[index];
|
||||
buffers.maskPrefix[index] = buffers.masks[index];
|
||||
buffers.strokePrefix[index] = buffers.strokes[index];
|
||||
}
|
||||
if ((1 < nibbles) && (nibbles < 8)) {
|
||||
if ((nibbles & 1) == 0) {
|
||||
maskPrefix[nibbles >> 1] = maskPrefix[nibbles >> 1] | 0xf0;
|
||||
strokePrefix[nibbles >> 1] = strokePrefix[nibbles >> 1] | 0xf0;
|
||||
}
|
||||
else {
|
||||
maskPrefix[nibbles >> 1] = maskPrefix[nibbles >> 1] | 0xf;
|
||||
strokePrefix[nibbles >> 1] = strokePrefix[nibbles >> 1] | 0xf;
|
||||
index = nibbles >> 1;
|
||||
if ((nibbles & 1) != 0) {
|
||||
buffers.maskPrefix[index] = buffers.maskPrefix[index] | 0xf;
|
||||
buffers.strokePrefix[index] = buffers.strokePrefix[index] | 0xf;
|
||||
} else {
|
||||
buffers.maskPrefix[index] = buffers.maskPrefix[index] | 0xf0;
|
||||
buffers.strokePrefix[index] = buffers.strokePrefix[index] | 0xf0;
|
||||
}
|
||||
}
|
||||
if (match->nSeg == 0) {
|
||||
Zi8Memcpy(match->arr1,masks,0xc);
|
||||
Zi8Memcpy(match->arrD,strokes,0xc);
|
||||
Zi8Memcpy(match->arr19,maskPrefix,4);
|
||||
Zi8Memcpy(match->arr1D,strokePrefix,4);
|
||||
match->length = nibbles;
|
||||
Zi8Memcpy(match->arr1,buffers.masks,0xc);
|
||||
Zi8Memcpy(match->arrD,buffers.strokes,0xc);
|
||||
Zi8Memcpy(match->arr19,buffers.maskPrefix,4);
|
||||
Zi8Memcpy(match->arr1D,buffers.strokePrefix,4);
|
||||
match->length = savedNibbles;
|
||||
}
|
||||
Zi8Memcpy(match->segs1 + match->nSeg * 12,masks,0xc);
|
||||
Zi8Memcpy(match->segsD + match->nSeg * 12,strokes,0xc);
|
||||
Zi8Memcpy((ziU8 (*)[12])match->segs1 + match->nSeg,buffers.masks,0xc);
|
||||
Zi8Memcpy((ziU8 (*)[12])match->segsD + match->nSeg,buffers.strokes,0xc);
|
||||
match->nSeg++;
|
||||
if (((stroke != 0xff) || (elementCount <= elementIndex)) || (0xf < match->nSeg)) goto complete;
|
||||
Zi8Memset(masks,0,0xc);
|
||||
Zi8Memset(strokes,0,0xc);
|
||||
masks[0] = match->arr1[0] & 0xf0;
|
||||
strokes[0] = match->arrD[0] & 0xf0;
|
||||
Zi8Memset(buffers.masks,0,0xc);
|
||||
Zi8Memset(buffers.strokes,0,0xc);
|
||||
buffers.masks[0] = match->arr1[0] & 0xf0;
|
||||
buffers.strokes[0] = match->arrD[0] & 0xf0;
|
||||
nibbles = 1;
|
||||
} while (1);
|
||||
}
|
||||
match->length = nibbles;
|
||||
if (elementCount != 0) {
|
||||
if ((request->getMode == '\x01') || (request->getMode == '\f')) {
|
||||
phoneticTable = (ziU8*)Zi8GetTableAddress(1,3,__zi8_work_data);
|
||||
buffers.phoneticTable = (ziU8*)Zi8GetTableAddress(1,3,__zi8_work_data);
|
||||
phoneticCount = Zi8GetTableCount(1,3,__zi8_work_data);
|
||||
}
|
||||
else {
|
||||
phoneticTable = (ziU8*)Zi8GetTableAddress(1,4,__zi8_work_data);
|
||||
buffers.phoneticTable = (ziU8*)Zi8GetTableAddress(1,4,__zi8_work_data);
|
||||
phoneticCount = Zi8GetTableCount(1,4,__zi8_work_data);
|
||||
}
|
||||
if ((request->getMode == '\x01') || (request->getMode == '\f')) {
|
||||
@@ -252,16 +248,16 @@ ziBool Zi8PrepareMatch(ziGetParam* request, ziMatchParam* match, ziU8 skipMode Z
|
||||
bestFinal = 0;
|
||||
previousInitial = 0;
|
||||
previousFinal = 0;
|
||||
phoneticInput = request->elements;
|
||||
buffers.phoneticInput = request->elements;
|
||||
match->nCand = 0;
|
||||
request->count = request->elementCount;
|
||||
phoneticLength = 1;
|
||||
for (index = 0; index < elementCount; index++) {
|
||||
if (Zi8GetBpmfPhonetic(phoneticInput,phoneticLength & 0xff,&initial,&final,&bestInitial,&bestFinal,
|
||||
if (Zi8GetBpmfPhonetic(buffers.phoneticInput,phoneticLength,&initial,&final,&bestInitial,&bestFinal,
|
||||
__zi8_work_data) == 0) {
|
||||
if ((index == 0) ||
|
||||
((((1 < phoneticLength && (phoneticInput[phoneticLength - 2] == 0xF360)) &&
|
||||
(phoneticInput[phoneticLength - 1] == 0xF360)) ||
|
||||
((((1 < phoneticLength && (buffers.phoneticInput[phoneticLength - 2] == 0xF360)) &&
|
||||
(buffers.phoneticInput[phoneticLength - 1] == 0xF360)) ||
|
||||
(++match->nCand == 0x10)))) {
|
||||
initial = 0xffff;
|
||||
final = 0xffff;
|
||||
@@ -270,7 +266,7 @@ ziBool Zi8PrepareMatch(ziGetParam* request, ziMatchParam* match, ziU8 skipMode Z
|
||||
match->nCand = 0;
|
||||
break;
|
||||
}
|
||||
if (phoneticInput[phoneticLength - 1] == 0xF360) {
|
||||
if (buffers.phoneticInput[phoneticLength - 1] == 0xF360) {
|
||||
match->nCand--;
|
||||
bestInitial = previousInitial;
|
||||
bestFinal = previousFinal;
|
||||
@@ -279,9 +275,9 @@ ziBool Zi8PrepareMatch(ziGetParam* request, ziMatchParam* match, ziU8 skipMode Z
|
||||
goto savePhonetic;
|
||||
}
|
||||
if (match->nCand == 1) {
|
||||
request->count = (ziS8)phoneticLength + -1;
|
||||
request->count = phoneticLength - 1;
|
||||
}
|
||||
phoneticInput = phoneticInput + phoneticLength - 1;
|
||||
buffers.phoneticInput += phoneticLength - 1;
|
||||
phoneticLength = 0;
|
||||
index--;
|
||||
}
|
||||
@@ -326,11 +322,9 @@ savePhonetic:
|
||||
}
|
||||
phoneticInitial = phoneticInitial & 0xfff8;
|
||||
phoneticMask = phoneticMask & 0xfff8;
|
||||
phoneticLength = 0;
|
||||
while ((phoneticLength < phoneticCount &&
|
||||
(phoneticCode = (phoneticTable[phoneticLength * 2 + 1] << 8) | phoneticTable[phoneticLength * 2],
|
||||
phoneticMask != (phoneticCode & phoneticInitial)))) {
|
||||
phoneticLength++;
|
||||
for (phoneticLength = 0; phoneticLength < phoneticCount; phoneticLength++) {
|
||||
phoneticCode = (buffers.phoneticTable[phoneticLength * 2 + 1] << 8) | buffers.phoneticTable[phoneticLength * 2];
|
||||
if (phoneticMask == (phoneticCode & phoneticInitial)) break;
|
||||
}
|
||||
if (phoneticLength == phoneticCount) {
|
||||
match->phon[0] = 0xFFFF;
|
||||
|
||||
193
tools/decomp-assist/ezi3.round2.attempts.md
Normal file
193
tools/decomp-assist/ezi3.round2.attempts.md
Normal file
@@ -0,0 +1,193 @@
|
||||
# eZiText continuation attempts, 2026-09-30
|
||||
|
||||
Base: `884952a1`. One additional instruction-exact function: `Zi8GetCandidatesOrCount` (694/694 instructions, zero ctxdiff differences). All six pools remain identical. No Matching flags or shared headers changed.
|
||||
|
||||
| Unit | Instruction exact | Fuzzy | Matched code bytes | Matched data bytes |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| zkokeyp | 1/7 -> 1/7 | 81.034615% -> 94.311540% | 332 -> 332/5200 | 0 -> 56/140 |
|
||||
| zprepare | 0/1 -> 0/1 | 82.473404% -> 86.263830% | 0 -> 0/3760 | 8 -> 8/68 |
|
||||
| zikorean | 2/3 -> 2/3 | 86.860450% -> 86.940636% | 2712 -> 2712/5188 | 24 -> 24/348 |
|
||||
| zi8match | 7/10 -> 7/10 | 89.016470% -> 89.016470% | 3720 -> 3720/8256 | 608 -> 608/728 |
|
||||
| zi8getc2 | 14/17 -> 15/17 | 94.793270% -> 99.950640% | 3584 -> 6360/6888 | 112 -> 324/332 |
|
||||
| zi8dawg | 5/6 -> 5/6 | 99.975350% -> 99.975350% | 4356 -> 4356/4868 | 120 -> 120/120 |
|
||||
|
||||
## Remaining functions
|
||||
|
||||
- Zi8_8148302C: 99.491520%; Only register allocation: work pointer and table count exchange r27/r29. src 0xec base 0xec insns 59/59; 5 successful additional logged attempts.
|
||||
- Zi8_81483264: 98.902435%; Only register allocation: parameter pointer and byte cursor exchange r30/r31. src 0xa4 base 0xa4 insns 41/41; 3 successful additional logged attempts.
|
||||
- Zi8_81483308: 99.137930%; Only register allocation: insertion-count pointer and byte cursor exchange r29/r30. src 0xe8 base 0xe8 insns 58/58; 3 successful additional logged attempts.
|
||||
- Zi8_814833F0: 99.042560%; Only register allocation: parameter pointer and byte cursor exchange r30/r31. src 0xbc base 0xbc insns 47/47; 3 successful additional logged attempts.
|
||||
- Zi8_814834AC: 99.067055%; Packed-key initialization and one later narrowing instruction differ; work pointer and insertion cursor exchange registers. src 0x55c base 0x55c insns 343/343; 5 successful additional logged attempts.
|
||||
- Zi8GetKOcandidates: 89.678630%; Word-prefix traversal, key-index assignment narrowing and address-expression scheduling still differ; final count/materialize arms now follow the original. src 0xa88 base 0xa74 insns 674/669; 14 successful additional logged attempts.
|
||||
- Zi8PrepareMatch: 86.263830%; Original 0x70 frame restored. Stroke and phonetic instruction scheduling and conversions differ; original stores to its unused component-present byte are absent. src 0xf08 base 0xeb0 insns 962/940; 9 successful additional logged attempts.
|
||||
- Zi8GetKoreanCandidates: 72.636510%; Mapping/candidate scanning blocks, temporary widths and address arithmetic differ; three-byte record arithmetic trials worsened the result. src 0x9b4 base 0x9ac insns 621/619; 6 successful additional logged attempts.
|
||||
- Zi8MatchPhonetic: 85.950420%; Dictionary traversal, alternate sound and terminal checks retain different blocks and parameter allocation. src 0x598 base 0x5ac insns 358/363; 3 successful additional logged attempts.
|
||||
- Zi8GetPyPhonetic: 75.584960%; Pinyin conversion/final parsing blocks and stack/register allocation differ; compound updates reached the original instruction count but lowered similarity. src 0xb5c base 0xb38 insns 727/718; 3 successful additional logged attempts.
|
||||
- Zi8GetPyFinal: 99.245285%; Only register allocation: table address and shifted row index exchange r6/r7. src 0xd4 base 0xd4 insns 53/53; 3 successful additional logged attempts.
|
||||
- Zi8GetDataSignature: 99.347824%; Only register allocation: destination, language and signature pointer use different saved registers. src 0x114 base 0x114 insns 69/69; 3 successful additional logged attempts.
|
||||
- Zi8IsDupWChar: 99.365080%; Only register allocation: input character and duplicate flag exchange r27/r28. src 0xfc base 0xfc insns 63/63; 3 successful additional logged attempts.
|
||||
- Zi8MatchROMdata1: 99.765625%; Only register allocation: group index and table address exchange r26/r27. src 0x200 base 0x200 insns 128/128; 3 successful additional logged attempts.
|
||||
|
||||
## Data evidence
|
||||
|
||||
- `zi8getc2`: both ten-entry language sequence jump tables now have the original source order and exact instruction targets. Matched data rose from 112 to 324 bytes. Its 16-byte search-order table is exact. The four-byte PY constant is exact. The extracted object contains four additional unnamed zero bytes after that constant and assigns eight zero bytes to the ZY symbol, while the real bitfield structure emits four bytes. Both setter functions already match. The remaining eight bytes appear to be extraction/alignment space; no objects were added to manufacture it.
|
||||
- `zkokeyp` / `zikorean`: the original `zkokeyp` object contains no `.data`, although its exact `Zi8_81483118` has a ten-entry switch. The final 40 bytes of the original `zikorean` `.data` contain ten relocations to that `zkokeyp` function. The compiled `zkokeyp` emits those same ten references into its own object. This indicates a split/extraction boundary issue. No switch table was manually placed, and no function was moved between units. `zkokeyp` exception-table data now matches 56 bytes.
|
||||
- `zikorean`: the two genuine 31-entry switches are present in source order (248 bytes); targets depending on unfinished candidate code still differ. The additional 40-byte cross-unit switch is the boundary issue above.
|
||||
- `zprepare`: the 48-byte, 12-entry component switch is present; targets still depend on unfinished code. Exception metadata matches eight bytes.
|
||||
- `zi8match`: all four constant tables, including the 432-byte Pinyin final table, match all 528 `.rodata` bytes in source order. The remaining data differences are function metadata.
|
||||
- `zi8dawg`: all 120 metadata bytes remain exact. There are no string literals in any of these six objects.
|
||||
|
||||
The boundary/alignment explanations are inferences from the object sections, symbol extents and relocations. They have not been confirmed against the original source. The raw inventory follows.
|
||||
|
||||
```text
|
||||
zkokeyp
|
||||
obj extab 56 relocs 0 symbols [('', 0, 0), ('@etb_81330770', 0, 8), ('@etb_81330778', 8, 8), ('@etb_81330780', 16, 8), ('@etb_81330788', 24, 8), ('@etb_81330790', 32, 8), ('@etb_81330798', 40, 8), ('@etb_813307A0', 48, 8)]
|
||||
obj extabindex 84 relocs 14 symbols [('', 0, 0), ('@eti_813314B8', 0, 12), ('@eti_813314C4', 12, 12), ('@eti_813314D0', 24, 12), ('@eti_813314DC', 36, 12), ('@eti_813314E8', 48, 12), ('@eti_813314F4', 60, 12), ('@eti_81331500', 72, 12)]
|
||||
src extab 56 relocs 0 symbols [('', 0, 0), ('@34', 0, 8), ('@60', 8, 8), ('@78', 16, 8), ('@103', 24, 8), ('@124', 32, 8), ('@223', 40, 8), ('@389', 48, 8)]
|
||||
src extabindex 84 relocs 14 symbols [('', 0, 0), ('@35', 0, 12), ('@61', 12, 12), ('@79', 24, 12), ('@104', 36, 12), ('@125', 48, 12), ('@224', 60, 12), ('@390', 72, 12)]
|
||||
src .data 40 relocs 10 symbols [('', 0, 0), ('@59', 0, 40)]
|
||||
zprepare
|
||||
obj extab 8 relocs 0 symbols [('', 0, 0), ('@etb_813307D8', 0, 8)]
|
||||
obj extabindex 12 relocs 2 symbols [('', 0, 0), ('@eti_81331554', 0, 12)]
|
||||
obj .data 48 relocs 12 symbols [('', 0, 0), ('jumptable_8166B3D0', 0, 48)]
|
||||
src extab 8 relocs 0 symbols [('', 0, 0), ('@231', 0, 8)]
|
||||
src extabindex 12 relocs 2 symbols [('', 0, 0), ('@232', 0, 12)]
|
||||
src .data 48 relocs 12 symbols [('', 0, 0), ('@230', 0, 48)]
|
||||
zikorean
|
||||
obj extab 24 relocs 0 symbols [('', 0, 0), ('@etb_81330748', 0, 8), ('@etb_81330750', 8, 8), ('@etb_81330758', 16, 8)]
|
||||
obj extabindex 36 relocs 6 symbols [('', 0, 0), ('@eti_8133147C', 0, 12), ('@eti_81331488', 12, 12), ('@eti_81331494', 24, 12)]
|
||||
obj .data 288 relocs 72 symbols [('', 0, 0), ('jumptable_8166B2B0', 0, 124), ('jumptable_8166B32C', 124, 124), ('jumptable_8166B3A8', 248, 40)]
|
||||
src extab 24 relocs 0 symbols [('', 0, 0), ('@35', 0, 8), ('@164', 8, 8), ('@282', 16, 8)]
|
||||
src extabindex 36 relocs 6 symbols [('', 0, 0), ('@36', 0, 12), ('@165', 12, 12), ('@283', 24, 12)]
|
||||
src .data 248 relocs 62 symbols [('', 0, 0), ('@163', 0, 124), ('@281', 124, 124)]
|
||||
zi8match
|
||||
obj extab 80 relocs 0 symbols [('', 0, 0), ('@etb_81330650', 0, 8), ('@etb_81330658', 8, 8), ('@etb_81330660', 16, 8), ('@etb_81330668', 24, 8), ('@etb_81330670', 32, 8), ('@etb_81330678', 40, 8), ('@etb_81330680', 48, 8)]
|
||||
obj extabindex 120 relocs 20 symbols [('', 0, 0), ('@eti_81331308', 0, 12), ('@eti_81331314', 12, 12), ('@eti_81331320', 24, 12), ('@eti_8133132C', 36, 12), ('@eti_81331338', 48, 12), ('@eti_81331344', 60, 12), ('@eti_81331350', 72, 12)]
|
||||
obj .rodata 528 relocs 0 symbols [('', 0, 0), ('Zi8PinyinInitials', 0, 28), ('Zi8BpmfInitials', 28, 36), ('Zi8PinyinFinals', 64, 432), ('nodeHeaderTable', 496, 32)]
|
||||
src extab 80 relocs 0 symbols [('', 0, 0), ('@41', 0, 8), ('@72', 8, 8), ('@176', 16, 8), ('@206', 24, 8), ('@238', 32, 8), ('@383', 40, 8), ('@583', 48, 8)]
|
||||
src extabindex 120 relocs 20 symbols [('', 0, 0), ('@42', 0, 12), ('@73', 12, 12), ('@177', 24, 12), ('@207', 36, 12), ('@239', 48, 12), ('@384', 60, 12), ('@584', 72, 12)]
|
||||
src .rodata 528 relocs 0 symbols [('', 0, 0), ('Zi8PinyinInitials', 0, 28), ('Zi8BpmfInitials', 28, 36), ('Zi8PinyinFinals', 64, 432), ('nodeHeaderTable', 496, 32)]
|
||||
zi8getc2
|
||||
obj extab 88 relocs 0 symbols [('', 0, 0), ('@etb_813305D8', 0, 8), ('@etb_813305E0', 8, 8), ('@etb_813305E8', 16, 8), ('@etb_813305F0', 24, 8), ('@etb_813305F8', 32, 8), ('@etb_81330600', 40, 8), ('@etb_81330608', 48, 8)]
|
||||
obj extabindex 132 relocs 22 symbols [('', 0, 0), ('@eti_81331254', 0, 12), ('@eti_81331260', 12, 12), ('@eti_8133126C', 24, 12), ('@eti_81331278', 36, 12), ('@eti_81331284', 48, 12), ('@eti_81331290', 60, 12), ('@eti_8133129C', 72, 12)]
|
||||
obj .rodata 16 relocs 0 symbols [('', 0, 0), ('Zi8SOdefaultArray', 0, 16)]
|
||||
obj .data 80 relocs 20 symbols [('', 0, 0), ('jumptable_8166B260', 0, 40), ('jumptable_8166B288', 40, 40)]
|
||||
obj .sdata2 8 relocs 0 symbols [('', 0, 0), ('Zi8PYdefaultFuzzyPairs', 0, 4)]
|
||||
obj .sbss2 8 relocs 0 symbols [('', 0, 0), ('Zi8ZYdefaultFuzzyPairs', 0, 8)]
|
||||
src extab 88 relocs 0 symbols [('', 0, 0), ('@88', 0, 8), ('@101', 8, 8), ('@167', 16, 8), ('@243', 24, 8), ('@254', 32, 8), ('@265', 40, 8), ('@511', 48, 8)]
|
||||
src extabindex 132 relocs 22 symbols [('', 0, 0), ('@89', 0, 12), ('@102', 12, 12), ('@168', 24, 12), ('@244', 36, 12), ('@255', 48, 12), ('@266', 60, 12), ('@512', 72, 12)]
|
||||
src .rodata 16 relocs 0 symbols [('', 0, 0), ('Zi8SOdefaultArray', 0, 16)]
|
||||
src .data 80 relocs 20 symbols [('', 0, 0), ('@509', 40, 40), ('@510', 0, 40)]
|
||||
src .sdata2 4 relocs 0 symbols [('', 0, 0), ('Zi8PYdefaultFuzzyPairs', 0, 4)]
|
||||
src .sbss2 4 relocs 0 symbols [('', 0, 0), ('Zi8ZYdefaultFuzzyPairs', 0, 4)]
|
||||
zi8dawg
|
||||
obj extab 48 relocs 0 symbols [('', 0, 0), ('@etb_813305A0', 0, 8), ('@etb_813305A8', 8, 8), ('@etb_813305B0', 16, 8), ('@etb_813305B8', 24, 8), ('@etb_813305C0', 32, 8), ('@etb_813305C8', 40, 8)]
|
||||
obj extabindex 72 relocs 12 symbols [('', 0, 0), ('@eti_81331200', 0, 12), ('@eti_8133120C', 12, 12), ('@eti_81331218', 24, 12), ('@eti_81331224', 36, 12), ('@eti_81331230', 48, 12), ('@eti_8133123C', 60, 12)]
|
||||
src extab 48 relocs 0 symbols [('', 0, 0), ('@193', 0, 8), ('@220', 8, 8), ('@270', 16, 8), ('@350', 24, 8), ('@413', 32, 8), ('@440', 40, 8)]
|
||||
src extabindex 72 relocs 12 symbols [('', 0, 0), ('@194', 0, 12), ('@221', 12, 12), ('@271', 24, 12), ('@351', 36, 12), ('@414', 48, 12), ('@441', 60, 12)]
|
||||
```
|
||||
|
||||
## Attempt log
|
||||
|
||||
Every entry below is a compiled source experiment followed by pool checking, ctxdiff and fresh objdiff. Build failures are recorded separately and do not count toward the three successful attempts. Lower scores were discarded.
|
||||
|
||||
```text
|
||||
zkokeyp Zi8_8148302C attempt 1: use typed Korean key record for high and low character bytes; fuzzy 98.38983; src 0xec base 0xec insns 59/59; diffs 17: [6, 7, 12, 14, 18, 19, 20, 21, 26, 27, 28, 29, 32, 34, 38, 44, 49]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_8148302C attempt 2: keep decoded character as u16 rather than promoted u32; fuzzy 98.38983; src 0xec base 0xec insns 59/59; diffs 17: [6, 7, 12, 14, 18, 19, 20, 21, 26, 27, 28, 29, 32, 34, 38, 44, 49]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_8148302C attempt 3: use signed table traversal index with explicit u16 comparison; fuzzy 98.38983; src 0xec base 0xec insns 59/59; diffs 17: [6, 7, 12, 14, 18, 19, 20, 21, 26, 27, 28, 29, 32, 34, 38, 44, 49]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_81483264 attempt 1: wide traversal counter with explicit byte indexing and comparison; fuzzy 98.902435; src 0xa4 base 0xa4 insns 41/41; diffs 8: [6, 8, 17, 20, 21, 24, 25, 26]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_81483264 attempt 2: signed traversal index, preserving byte limits and buffer addressing; fuzzy 98.902435; src 0xa4 base 0xa4 insns 41/41; diffs 8: [6, 8, 17, 20, 21, 24, 25, 26]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_81483264 attempt 3: explicit tail-tested candidate scan in original block address order; fuzzy 98.902435; src 0xa4 base 0xa4 insns 41/41; diffs 8: [6, 8, 17, 20, 21, 24, 25, 26]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_81483308 attempt 1: wide traversal counter with explicit byte indexing and comparison; fuzzy 99.13793; src 0xe8 base 0xe8 insns 58/58; diffs 9: [7, 22, 26, 33, 34, 39, 42, 44, 50]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_81483308 attempt 2: signed traversal index, preserving byte limits and buffer addressing; fuzzy 99.13793; src 0xe8 base 0xe8 insns 58/58; diffs 9: [7, 22, 26, 33, 34, 39, 42, 44, 50]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_81483308 attempt 3: explicit tail-tested candidate scan in original block address order; fuzzy 99.13793; src 0xe8 base 0xe8 insns 58/58; diffs 9: [7, 22, 26, 33, 34, 39, 42, 44, 50]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_814833F0 attempt 1: wide traversal counter with explicit byte indexing and comparison; fuzzy 99.04256; src 0xbc base 0xbc insns 47/47; diffs 8: [6, 13, 22, 26, 27, 34, 35, 36]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_814833F0 attempt 2: signed traversal index, preserving byte limits and buffer addressing; fuzzy 99.04256; src 0xbc base 0xbc insns 47/47; diffs 8: [6, 13, 22, 26, 27, 34, 35, 36]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_814833F0 attempt 3: explicit tail-tested candidate scan in original block address order; fuzzy 99.04256; src 0xbc base 0xbc insns 47/47; diffs 8: [6, 13, 22, 26, 27, 34, 35, 36]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_814834AC attempt 1: restore typed filter stack descriptor in target field order; fuzzy 90.868805; src 0x570 base 0x55c insns 348/343; --- replace mine 9:11 base 9:11; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_814834AC attempt 2: separate oversized-input return before key table traversal, matching target block order; fuzzy 93.58309; src 0x56c base 0x55c insns 347/343; --- replace mine 9:11 base 9:11; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_814834AC attempt 3: separate remaining-candidate compaction counter from insertion cursor and use compound remaining updates; fuzzy 95.61224; src 0x584 base 0x55c insns 353/343; --- replace mine 9:10 base 9:10; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 1: restore Korean word search descriptor with byte length and signed count/index fields in target stack order; fuzzy 73.50523; src 0xad8 base 0xa74 insns 694/669; --- replace mine 0:1 base 0:1; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 2: restore compound byte/candidate updates and direct letters increment comparisons; fuzzy 76.75785; src 0xa84 base 0xa74 insns 673/669; --- replace mine 0:1 base 0:1; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 3: translate parity pass selection and trailing prefix count blocks literally; direct result returns; fuzzy 80.847534; src 0xa78 base 0xa74 insns 670/669; --- delete mine 15:16 base 15:15; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_814834AC attempt 4: compound candidate flag updates and count subtraction; shared scratch reset; signed key-byte comparison; fuzzy 99.067055; src 0x55c base 0x55c insns 343/343; diffs 318: [9, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_814834AC attempt 5: scope insertion cursor to matched-candidate path to shorten its lifetime; fuzzy 95.44898; src 0x568 base 0x55c insns 346/343; --- replace mine 5:12 base 5:11; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 4: restore full-width membership helper return and shared packed-key initialization; fuzzy 80.76532; src 0xa78 base 0xa74 insns 670/669; --- delete mine 15:16 base 15:15; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 5: group word offset upper bytes before combining low byte in target operand order; fuzzy 81.64126; src 0xa78 base 0xa74 insns 670/669; --- delete mine 15:16 base 15:15; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 6: correct candidate count field to byte 0x20; offset-first record arithmetic and assignment-result comparison; fuzzy 81.434975; src 0xa78 base 0xa74 insns 670/669; --- insert mine 14:14 base 14:15; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 7: translate remaining-prefix scan into tail-tested loop with match-ending arm first; fuzzy 82.76083; src 0xa80 base 0xa74 insns 672/669; --- insert mine 14:14 base 14:15; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 8: restore suffix advance and prefix restart order; direct output length comparison; fuzzy 85.03288; src 0xa8c base 0xa74 insns 675/669; --- insert mine 14:14 base 14:15; POOL IDENTICAL, no strings
|
||||
zprepare Zi8PrepareMatch attempt 1: group actual prepare fields, arrays and saved segment length in target stack order; BUILD FAILED, see Zi8PrepareMatch-1.build
|
||||
zprepare Zi8PrepareMatch attempt 2: restore high-bit language mode arms first and reuse byte index for prefix nibble fill; BUILD FAILED, see Zi8PrepareMatch-2.build
|
||||
zprepare Zi8PrepareMatch attempt 3: use typed segment rows, unsigned phonetic count assignment and grouped input advance; BUILD FAILED, see Zi8PrepareMatch-3.build
|
||||
zprepare Zi8PrepareMatch attempt 4: ordered typed prepare state and saved prefix length; fuzzy 81.90745; src 0xf38 base 0xeb0 insns 974/940; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zprepare Zi8PrepareMatch attempt 5: high-bit language mode before low-bit selection and common prefix index; fuzzy 84.75; src 0xf24 base 0xeb0 insns 969/940; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zprepare Zi8PrepareMatch attempt 6: typed segment rows and unsigned phonetic count; fuzzy 84.75; src 0xf20 base 0xeb0 insns 968/940; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zkokeyp Zi8GetKOcandidates attempt 9: readable offset-first key record expressions; fuzzy 85.03288; src 0xa8c base 0xa74 insns 675/669; --- insert mine 14:14 base 14:15; POOL IDENTICAL, no strings
|
||||
zprepare Zi8PrepareMatch attempt 7: split byte controls, halfword phonetics and aligned buffers to avoid aggregate alignment gap; BUILD FAILED, see Zi8PrepareMatch-7.build
|
||||
zprepare Zi8PrepareMatch attempt 8: declare aligned phonetics and buffers before byte controls; BUILD FAILED, see Zi8PrepareMatch-8.build
|
||||
zprepare Zi8PrepareMatch attempt 9: split byte controls, halfword phonetics and aligned buffers to avoid aggregate alignment gap; fuzzy 84.75106; src 0xf24 base 0xeb0 insns 969/940; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zprepare Zi8PrepareMatch attempt 10: declare aligned phonetics and buffers before byte controls; fuzzy 84.75106; src 0xf24 base 0xeb0 insns 969/940; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zikorean Zi8GetKoreanCandidates attempt 1: restore output reset source order to count byte 0x20, count 0x22, letters 0x21; fuzzy 72.471725; src 0x9b4 base 0x9ac insns 621/619; --- replace mine 8:10 base 8:10; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zikorean Zi8GetKoreanCandidates attempt 2: decode three-byte Korean mapping records with original shift-minus-index arithmetic; fuzzy 71.93538; src 0x9d4 base 0x9ac insns 629/619; --- replace mine 15:19 base 15:19; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zikorean Zi8GetKoreanCandidates attempt 3: use signed output cursor and character bounds matching original compare instructions; fuzzy 71.20355; src 0x9d4 base 0x9ac insns 629/619; --- replace mine 15:19 base 15:19; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8match Zi8GetPyFinal attempt 1: cache current pinyin final table row in typed byte pointer; fuzzy 99.245285; src 0xd4 base 0xd4 insns 53/53; diffs 8: [26, 27, 28, 29, 34, 35, 36, 37]; POOL IDENTICAL, no strings
|
||||
zi8match Zi8GetPyFinal attempt 2: use halfword row cursor for the 54-entry final table; fuzzy 99.245285; src 0xd4 base 0xd4 insns 53/53; diffs 8: [26, 27, 28, 29, 34, 35, 36, 37]; POOL IDENTICAL, no strings
|
||||
zi8match Zi8GetPyFinal attempt 3: evaluate table byte before input byte in final scan; fuzzy 99.245285; src 0xd4 base 0xd4 insns 53/53; diffs 8: [26, 27, 28, 29, 34, 35, 36, 37]; POOL IDENTICAL, no strings
|
||||
zi8match Zi8MatchPhonetic attempt 1: separate strict and partial terminal checks into original independent branches; fuzzy 85.95042; src 0x598 base 0x5ac insns 358/363; --- replace mine 5:10 base 5:10; POOL IDENTICAL, no strings
|
||||
zi8match Zi8MatchPhonetic attempt 2: cache decoded dictionary record for code and alternate-sound flag checks; fuzzy 85.36915; src 0x588 base 0x5ac insns 354/363; --- replace mine 6:10 base 6:10; POOL IDENTICAL, no strings
|
||||
zi8match Zi8MatchPhonetic attempt 3: use explicit remaining-node decrement before node decoding; fuzzy 84.24518; src 0x598 base 0x5ac insns 358/363; --- replace mine 5:10 base 5:10; POOL IDENTICAL, no strings
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 1: restore actual saved mode, converted count and character buffer stack layout; fuzzy 88.15994; src 0xae4 base 0xad8 insns 697/694; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 2: return signature results directly from their original blocks; fuzzy 88.629684; src 0xaf0 base 0xad8 insns 700/694; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 3: separate signature byte count from main candidate count lifetime; fuzzy 88.29683; src 0xaf0 base 0xad8 insns 700/694; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8match Zi8GetPyPhonetic attempt 1: restore pinyin byte descriptor order before final-string and conversion buffers; fuzzy 75.58218; src 0xb5c base 0xb38 insns 727/718; --- replace mine 7:10 base 7:10; POOL IDENTICAL, no strings
|
||||
zi8match Zi8GetPyPhonetic attempt 2: compound result count updates and independent conversion count initialization; fuzzy 74.462395; src 0xb38 base 0xb38 insns 718/718; diffs 675: [13, 16, 17, 20, 21, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44]; POOL IDENTICAL, no strings
|
||||
zi8match Zi8GetPyPhonetic attempt 3: evaluate ASCII conversion bounds before extended uppercase range; fuzzy 74.456825; src 0xb38 base 0xb38 insns 718/718; diffs 675: [13, 16, 17, 20, 21, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44]; POOL IDENTICAL, no strings
|
||||
zi8getc2 Zi8GetDataSignature attempt 1: use independent signature table identifier instead of reusing length; fuzzy 99.05797; src 0x114 base 0x114 insns 69/69; diffs 13: [5, 7, 9, 25, 27, 28, 29, 32, 33, 34, 51, 52, 57]; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetDataSignature attempt 2: scope signature table pointer after language mode selection; fuzzy 88.89855; src 0x124 base 0x114 insns 73/69; --- replace mine 5:11 base 5:10; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetDataSignature attempt 3: store copied terminator through pointer addition expression; fuzzy 99.347824; src 0x114 base 0x114 insns 69/69; diffs 9: [5, 7, 9, 28, 32, 33, 51, 52, 57]; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8IsDupWChar attempt 1: reverse duplicate comparison operands; fuzzy 99.36508; src 0xfc base 0xfc insns 63/63; diffs 8: [5, 7, 14, 25, 30, 41, 49, 56]; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8IsDupWChar attempt 2: use explicit decrement and tail-tested duplicate scan; fuzzy 99.36508; src 0xfc base 0xfc insns 63/63; diffs 8: [5, 7, 14, 25, 30, 41, 49, 56]; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8IsDupWChar attempt 3: use signed duplicate buffer cursor with original zero bound; fuzzy 99.36508; src 0xfc base 0xfc insns 63/63; diffs 8: [5, 7, 14, 25, 30, 41, 49, 56]; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8dawg Zi8MatchROMdata1 attempt 1: retain table address as typed group pointer rather than integer address; fuzzy 99.765625; src 0x200 base 0x200 insns 128/128; diffs 5: [12, 36, 37, 52, 57]; POOL IDENTICAL, no strings
|
||||
zi8dawg Zi8MatchROMdata1 attempt 2: scope table lookup address to fallback group lookup; fuzzy 93.10156; src 0x20c base 0x200 insns 131/128; --- replace mine 0:1 base 0:1; POOL IDENTICAL, no strings
|
||||
zi8dawg Zi8MatchROMdata1 attempt 3: translate group selection into while loop with explicit index decrement; fuzzy 99.765625; src 0x200 base 0x200 insns 128/128; diffs 5: [12, 36, 37, 52, 57]; POOL IDENTICAL, no strings
|
||||
zprepare Zi8PrepareMatch attempt 11: pack scalar controls and phonetics before one buffer aggregate to recover original frame; fuzzy 85.20638; src 0xf24 base 0xeb0 insns 969/940; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zprepare Zi8PrepareMatch attempt 12: reverse independent scalar declaration order while keeping packed buffer aggregate; fuzzy 85.315956; src 0xf24 base 0xeb0 insns 969/940; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zprepare Zi8PrepareMatch attempt 13: restore phonetic lookup basic blocks, removing compiler boolean spill and excess frame; fuzzy 86.237236; src 0xf0c base 0xeb0 insns 963/940; --- replace mine 9:13 base 9:13; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zprepare Zi8PrepareMatch attempt 14: group input advance and use typed segment rows without redundant count narrowing; fuzzy 86.26383; src 0xf08 base 0xeb0 insns 962/940; --- replace mine 9:13 base 9:13; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 4: correct full-width candidate return declarations and separate aligned character buffer; fuzzy 89.603745; src 0xae8 base 0xad8 insns 698/694; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 5: literal Korean and tone range bounds; direct format flag and compound option update; fuzzy 89.946686; src 0xae4 base 0xad8 insns 697/694; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 6: restore language switch and Chinese/Latin state machines in target block order; fuzzy 93.33573; src 0xae0 base 0xad8 insns 696/694; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 7: place saved state before aligned character array, use halfword error and byte restoration index; fuzzy 95.21326; src 0xaec base 0xad8 insns 699/694; --- replace mine 10:11 base 10:11; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 8: restore successful syllable candidate call before unsupported-format error arm; fuzzy 96.09222; src 0xaec base 0xad8 insns 699/694; --- replace mine 10:11 base 10:11; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 9: remove syllable temporary spill and restore candidate character postincrement/predecrement blocks; fuzzy 98.2392; src 0xad8 base 0xad8 insns 694/694; diffs 21: [116, 127, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 522, 523, 524, 525, 526, 527, 528, 529]; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 10: restore Chinese sequence switch source order and successful stroke-format arm before error; fuzzy 99.12104; src 0xad8 base 0xad8 insns 694/694; diffs 10: [483, 484, 485, 486, 487, 488, 489, 490, 491, 492]; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 11: restore one-key spelling arm before regular candidate arms; fuzzy 100.0; src 0xad8 base 0xad8 insns 694/694; diffs 0: []; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zikorean Zi8GetKoreanCandidates attempt 4: full-width candidate result consistent with dispatcher ABI; fuzzy 72.63651; src 0x9b4 base 0x9ac insns 621/619; --- replace mine 8:10 base 8:10; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zikorean Zi8GetKoreanCandidates attempt 5: explicit byte output conversion after full-width candidate accumulation; fuzzy 72.63651; src 0x9b4 base 0x9ac insns 621/619; --- replace mine 8:10 base 8:10; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zikorean Zi8GetKoreanCandidates attempt 6: use byte-sized result counter matching candidate indexing masks; fuzzy 72.570274; src 0x9cc base 0x9ac insns 627/619; --- replace mine 8:10 base 8:10; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zkokeyp Zi8GetKOcandidates attempt 10: restore final decrement/count/materialize block order and common result returns; fuzzy 89.67863; src 0xa88 base 0xa74 insns 674/669; --- insert mine 14:14 base 14:15; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 11: restore packed-key reset and unmatched-prefix restart order; fuzzy 89.45441; src 0xa88 base 0xa74 insns 674/669; --- delete mine 15:16 base 15:15; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 12: use typed nine-byte key records for repeated word and table accesses; fuzzy 87.86248; src 0xa68 base 0xa74 insns 666/669; --- insert mine 14:14 base 14:15; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_8148302C attempt 4: return halfword Korean key table index to match caller assignment ABI; fuzzy 98.47458; src 0xec base 0xec insns 59/59; diffs 7: [7, 12, 32, 34, 38, 40, 49]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 13: evaluate halfword key lookup return at word traversal callers; fuzzy 89.64873; src 0xa84 base 0xa74 insns 673/669; --- insert mine 14:14 base 14:15; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_8148302C attempt 5: use native halfword key index with halfword return; fuzzy 91.52542; src 0xfc base 0xec insns 63/59; --- replace mine 7:8 base 7:8; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 14: evaluate native halfword key lookup result at word traversal callers; fuzzy 89.64873; src 0xa84 base 0xa74 insns 673/669; --- insert mine 14:14 base 14:15; POOL IDENTICAL, no strings
|
||||
```
|
||||
|
||||
## Gate record
|
||||
|
||||
[Every gate block, including the failed intermediate gate](ezi3.round2.gates.txt). The intermediate candidate frame experiment lowered metadata matches from 112 to 24 bytes. A commit was made before its failed gate output was inspected; that commit was amended after recovering the exact frame and passing the gate. The final history contains the passing exact candidate dispatch change.
|
||||
|
||||
The final full gate rebuilt all six owned units from clean objects, passed with zero regressions and zero new forbidden/readability findings. The original DOL hash was preserved. Its full output is the last block in the gate record.
|
||||
|
||||
## Source commits
|
||||
|
||||
f71e3c51 restore korean count mode traversal arms
|
||||
859c9c6d match candidate dispatch and restore language switch tables
|
||||
77c0f589 recover prepare match frame and phonetic scan blocks
|
||||
dff371df restore candidate dispatcher saved argument layout
|
||||
ce517199 restore korean count fields and prepare language selection
|
||||
877043a9 restore korean word search state and flag updates
|
||||
ba8c537c restore korean candidate filter stack state
|
||||
436
tools/decomp-assist/ezi3.round2.gates.txt
Normal file
436
tools/decomp-assist/ezi3.round2.gates.txt
Normal file
@@ -0,0 +1,436 @@
|
||||
===== gate-initial.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] objdiff: code 332/5200 data None/140 functions 1/7 fuzzy 81.0346 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] instruction-exact functions: 1/7
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .text size 5200 match 81.034615
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extab size 56 match 96.42857
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extabindex size 84 match 97.61904
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_8148302C 99.49152
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483264 98.902435
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483308 99.13793
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814833F0 99.04256
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814834AC 87.938774
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8GetKOcandidates 69.58446
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] baseline: code 332/5200 data None functions 1 fuzzy 81.0346
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] objdiff: code None/3760 data 8/68 functions 0/1 fuzzy 82.4734 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] instruction-exact functions: 0/1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .data size 48 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .text size 3760 match 82.473404
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extabindex size 12 match 83.33333
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] below 100: Zi8PrepareMatch 82.473404
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] baseline: code None/3760 data 8 functions 0 fuzzy 82.4734
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] objdiff: code 2712/5188 data 24/348 functions 2/3 fuzzy 86.8605 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] instruction-exact functions: 2/3
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section .data size 288 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section .text size 5188 match 86.86045
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section extab size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section extabindex size 36 match 97.22222
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] below 100: Zi8GetKoreanCandidates 72.4685
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] baseline: code 2712/5188 data 24 functions 2 fuzzy 86.8605
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] objdiff: code 3720/8256 data 608/728 functions 7/10 fuzzy 89.0165 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] instruction-exact functions: 7/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 89.01647
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section extab size 80 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section extabindex size 120 match 98.333336
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] below 100: Zi8MatchPhonetic 85.95042
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] below 100: Zi8GetPyPhonetic 75.58496
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] below 100: Zi8GetPyFinal 99.245285
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] baseline: code 3720/8256 data 608 functions 7 fuzzy 89.0165
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] objdiff: code 3584/6888 data 112/332 functions 14/17 fuzzy 94.7933 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] instruction-exact functions: 14/17
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .data size 80 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .rodata size 16 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sbss2 size 8 match 50.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 94.79327
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extab size 88 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extabindex size 132 match 99.242424
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetDataSignature 99.347824
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetCandidatesOrCount 87.20317
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8IsDupWChar 99.36508
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] baseline: code 3584/6888 data 112 functions 14 fuzzy 94.7933
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] objdiff: code 4356/4868 data 120/120 functions 5/6 fuzzy 99.9754 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] instruction-exact functions: 5/6
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] section .text size 4868 match 99.97535
|
||||
[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] below 100: Zi8MatchROMdata1 99.765625
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] baseline: code 4356/4868 data 120 functions 5 fuzzy 99.9754
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.30567 -> 84.30567
|
||||
global fuzzy_match_percent: 97.84081 -> 97.84081
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.32545
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
===== gate-ko-filter.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] objdiff: code 332/5200 data None/140 functions 1/7 fuzzy 83.0592 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] instruction-exact functions: 1/7
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .text size 5200 match 83.05923
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extab size 56 match 98.21429
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extabindex size 84 match 85.71429
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_8148302C 99.49152
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483264 98.902435
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483308 99.13793
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814833F0 99.04256
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814834AC 95.61224
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8GetKOcandidates 69.58446
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] baseline: code 332/5200 data None functions 1 fuzzy 81.0346
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.30567 -> 84.30567
|
||||
global fuzzy_match_percent: 97.84081 -> 97.84431
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.32545
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
===== gate-ko-structure.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] objdiff: code 332/5200 data 56/140 functions 1/7 fuzzy 90.1754 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] instruction-exact functions: 1/7
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .text size 5200 match 90.175385
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extab size 56 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extabindex size 84 match 98.809525
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_8148302C 99.49152
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483264 98.902435
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483308 99.13793
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814833F0 99.04256
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814834AC 99.067055
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8GetKOcandidates 81.64126
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] baseline: code 332/5200 data None functions 1 fuzzy 81.0346
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.30567 -> 84.30567
|
||||
global fuzzy_match_percent: 97.84081 -> 97.85668
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.32851
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
===== gate-ko-prepare.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] objdiff: code 332/5200 data 56/140 functions 1/7 fuzzy 91.9208 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] instruction-exact functions: 1/7
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .text size 5200 match 91.92077
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extab size 56 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extabindex size 84 match 98.809525
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_8148302C 99.49152
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483264 98.902435
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483308 99.13793
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814833F0 99.04256
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814834AC 99.067055
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8GetKOcandidates 85.03288
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] baseline: code 332/5200 data None functions 1 fuzzy 81.0346
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] objdiff: code None/3760 data 8/68 functions 0/1 fuzzy 84.7500 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] instruction-exact functions: 0/1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .data size 48 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .text size 3760 match 84.75
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extabindex size 12 match 83.33333
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] below 100: Zi8PrepareMatch 84.75
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] baseline: code None/3760 data 8 functions 0 fuzzy 82.4734
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.30567 -> 84.30567
|
||||
global fuzzy_match_percent: 97.84081 -> 97.86256
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.32851
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
===== gate-controls.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] objdiff: code 332/5200 data 56/140 functions 1/7 fuzzy 91.9208 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] instruction-exact functions: 1/7
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .text size 5200 match 91.92077
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extab size 56 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extabindex size 84 match 98.809525
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_8148302C 99.49152
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483264 98.902435
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483308 99.13793
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814833F0 99.04256
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814834AC 99.067055
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8GetKOcandidates 85.03288
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] baseline: code 332/5200 data None functions 1 fuzzy 81.0346
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] objdiff: code None/3760 data 8/68 functions 0/1 fuzzy 84.7511 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] instruction-exact functions: 0/1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .data size 48 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .text size 3760 match 84.75106
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extabindex size 12 match 83.33333
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] below 100: Zi8PrepareMatch 84.75106
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] baseline: code None/3760 data 8 functions 0 fuzzy 82.4734
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] objdiff: code 2712/5188 data 24/348 functions 2/3 fuzzy 86.8620 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] instruction-exact functions: 2/3
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section .data size 288 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section .text size 5188 match 86.86199
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section extab size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section extabindex size 36 match 97.22222
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] below 100: Zi8GetKoreanCandidates 72.471725
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] baseline: code 2712/5188 data 24 functions 2 fuzzy 86.8605
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.30567 -> 84.30567
|
||||
global fuzzy_match_percent: 97.84081 -> 97.86256
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.32851
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
===== gate-candidate-layout.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] objdiff: code 3584/6888 data 112/332 functions 14/17 fuzzy 95.3682 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] instruction-exact functions: 14/17
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .data size 80 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .rodata size 16 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sbss2 size 8 match 50.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 95.36818
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extab size 88 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extabindex size 132 match 99.242424
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetDataSignature 99.347824
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetCandidatesOrCount 88.629684
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8IsDupWChar 99.36508
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] baseline: code 3584/6888 data 112 functions 14 fuzzy 94.7933
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.30567 -> 84.30567
|
||||
global fuzzy_match_percent: 97.84081 -> 97.86388
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.32851
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
===== gate-prepare-frame.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] objdiff: code None/3760 data 8/68 functions 0/1 fuzzy 86.2638 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] instruction-exact functions: 0/1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .data size 48 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .text size 3760 match 86.26383
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extabindex size 12 match 83.33333
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] below 100: Zi8PrepareMatch 86.26383
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] baseline: code None/3760 data 8 functions 0 fuzzy 82.4734
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.30567 -> 84.30567
|
||||
global fuzzy_match_percent: 97.84081 -> 97.86578
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.32851
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
===== gate-candidate-dispatch.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] objdiff: code 3584/6888 data 24/332 functions 14/17 fuzzy 98.3757 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] instruction-exact functions: 14/17
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .data size 80 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .rodata size 16 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sbss2 size 8 match 50.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 98.375725
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extab size 88 match 98.86364
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extabindex size 132 match 99.242424
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetDataSignature 99.347824
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetCandidatesOrCount 96.09222
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8IsDupWChar 99.36508
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] baseline: code 3584/6888 data 112 functions 14 fuzzy 94.7933
|
||||
regressions vs baseline: 1
|
||||
main/libs/RVLMiddleware/eZiText/src/clib/zi8getc2: matched_data 112 -> 24
|
||||
global matched_code_percent: 84.30567 -> 84.30567
|
||||
global fuzzy_match_percent: 97.84081 -> 97.87271
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.32370
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE FAIL: 1 regressions vs main
|
||||
|
||||
===== gate-candidate-near.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] objdiff: code 3584/6888 data 324/332 functions 14/17 fuzzy 99.5964 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] instruction-exact functions: 14/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 50.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sdata2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .text size 6888 match 99.5964
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extab size 88 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extabindex size 132 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetDataSignature 99.347824
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetCandidatesOrCount 99.12104
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8IsDupWChar 99.36508
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] baseline: code 3584/6888 data 112 functions 14 fuzzy 94.7933
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.30567 -> 84.30567
|
||||
global fuzzy_match_percent: 97.84081 -> 97.87551
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.34007
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
===== gate-candidate-exact.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] objdiff: code 6360/6888 data 324/332 functions 15/17 fuzzy 99.9506 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] instruction-exact functions: 15/17
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .data size 80 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .rodata size 16 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sbss2 size 8 match 50.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sdata2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .text size 6888 match 99.95064
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extab size 88 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extabindex size 132 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetDataSignature 99.347824
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8IsDupWChar 99.36508
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] baseline: code 3584/6888 data 112 functions 14 fuzzy 94.7933
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.30567 -> 84.39836
|
||||
global fuzzy_match_percent: 97.84081 -> 97.87632
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.34007
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
===== gate-korean-counts.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] objdiff: code 332/5200 data 56/140 functions 1/7 fuzzy 94.3115 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] instruction-exact functions: 1/7
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .text size 5200 match 94.31154
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extab size 56 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extabindex size 84 match 98.809525
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_8148302C 99.49152
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483264 98.902435
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483308 99.13793
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814833F0 99.04256
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814834AC 99.067055
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8GetKOcandidates 89.67863
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] baseline: code 332/5200 data None functions 1 fuzzy 81.0346
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] objdiff: code 2712/5188 data 24/348 functions 2/3 fuzzy 86.9406 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] instruction-exact functions: 2/3
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section .data size 288 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section .text size 5188 match 86.940636
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section extab size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section extabindex size 36 match 97.22222
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] below 100: Zi8GetKoreanCandidates 72.63651
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] baseline: code 2712/5188 data 24 functions 2 fuzzy 86.8605
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.30567 -> 84.39836
|
||||
global fuzzy_match_percent: 97.84081 -> 97.88062
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.34007
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
===== gate-final.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] objdiff: code 332/5200 data 56/140 functions 1/7 fuzzy 94.3115 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] instruction-exact functions: 1/7
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .text size 5200 match 94.31154
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extab size 56 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extabindex size 84 match 98.809525
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_8148302C 99.49152
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483264 98.902435
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483308 99.13793
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814833F0 99.04256
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814834AC 99.067055
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8GetKOcandidates 89.67863
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] baseline: code 332/5200 data None functions 1 fuzzy 81.0346
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] objdiff: code None/3760 data 8/68 functions 0/1 fuzzy 86.2638 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] instruction-exact functions: 0/1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .data size 48 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .text size 3760 match 86.26383
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extabindex size 12 match 83.33333
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] below 100: Zi8PrepareMatch 86.26383
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] baseline: code None/3760 data 8 functions 0 fuzzy 82.4734
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] objdiff: code 2712/5188 data 24/348 functions 2/3 fuzzy 86.9406 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] instruction-exact functions: 2/3
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section .data size 288 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section .text size 5188 match 86.940636
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section extab size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section extabindex size 36 match 97.22222
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] below 100: Zi8GetKoreanCandidates 72.63651
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] baseline: code 2712/5188 data 24 functions 2 fuzzy 86.8605
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] objdiff: code 3720/8256 data 608/728 functions 7/10 fuzzy 89.0165 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] instruction-exact functions: 7/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 89.01647
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section extab size 80 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section extabindex size 120 match 98.333336
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] below 100: Zi8MatchPhonetic 85.95042
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] below 100: Zi8GetPyPhonetic 75.58496
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] below 100: Zi8GetPyFinal 99.245285
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] baseline: code 3720/8256 data 608 functions 7 fuzzy 89.0165
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] objdiff: code 6360/6888 data 324/332 functions 15/17 fuzzy 99.9506 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] instruction-exact functions: 15/17
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .data size 80 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .rodata size 16 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sbss2 size 8 match 50.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sdata2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .text size 6888 match 99.95064
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extab size 88 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extabindex size 132 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetDataSignature 99.347824
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8IsDupWChar 99.36508
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] baseline: code 3584/6888 data 112 functions 14 fuzzy 94.7933
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] objdiff: code 4356/4868 data 120/120 functions 5/6 fuzzy 99.9754 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] instruction-exact functions: 5/6
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] section .text size 4868 match 99.97535
|
||||
[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] below 100: Zi8MatchROMdata1 99.765625
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] baseline: code 4356/4868 data 120 functions 5 fuzzy 99.9754
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.30567 -> 84.39836
|
||||
global fuzzy_match_percent: 97.84081 -> 97.88062
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.34007
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
Reference in New Issue
Block a user