From 7e75b3ce2e9471c328478eadb353e495e1c845a0 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Wed, 30 Sep 2026 15:14:08 +0000 Subject: [PATCH] NWC24Mime 11/16 (fuzzy 90 -> 99) (worker 5c10efc5) --- README.md | 4 +- libs/RVL_SDK/src/fa/pf_dir.c | 11 +- libs/RevoEX/src/nwc24/NWC24Download.c | 12 +- libs/RevoEX/src/nwc24/NWC24Mime.c | 352 +++++------ libs/RevoEX/src/nwc24/NWC24MsgCommit.c | 7 +- libs/RevoEX/src/nwc24/NWC24MsgRead.c | 8 +- libs/RevoEX/src/nwc24/NWC24MsgSubject.c | 37 +- .../decomp-assist/sol-high-round3-attempts.md | 196 ++++++ tools/decomp-assist/sol-high-round3-report.md | 575 ++++++++++++++++++ 9 files changed, 980 insertions(+), 222 deletions(-) create mode 100644 tools/decomp-assist/sol-high-round3-attempts.md create mode 100644 tools/decomp-assist/sol-high-round3-report.md diff --git a/README.md b/README.md index 73be4b24..a569053a 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,9 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 97.67% | 83.95% | 58.20% | 90.15% | +| 97.69% | 83.99% | 58.20% | 90.15% | -units 778/1027 complete, functions 12044/12563 matched. +units 778/1027 complete, functions 12046/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 diff --git a/libs/RVL_SDK/src/fa/pf_dir.c b/libs/RVL_SDK/src/fa/pf_dir.c index ac5cd71c..8f5aa3ba 100644 --- a/libs/RVL_SDK/src/fa/pf_dir.c +++ b/libs/RVL_SDK/src/fa/pf_dir.c @@ -963,8 +963,7 @@ pf_s32 PFDIR_p_rename(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) { destination_entry.num_entry_LFNs = 0; PFENT_getcurrentDateTimeForEnt(&destination_entry.access_date, &time); error = PFENT_updateEntry(&destination_entry, 1); - if (error == 0) { return allocation_error; } - return error; + goto finish_rename; } if (source_entry.num_entry_LFNs != 0 && (source_entry.small_letter_flag & 0x18) == 0) { saved_initial_char = source_entry.long_name[0]; @@ -1036,7 +1035,8 @@ pf_s32 PFDIR_p_rename(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) { update_entry->entry_sector = sector; } error = PFENT_updateEntry(update_entry, 1); - if (error != 0) { return error; } +finish_rename: + if (error != 0) { allocation_error = error; } return allocation_error; } pf_s32 PFDIR_p_move(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) { @@ -1116,8 +1116,9 @@ pf_s32 PFDIR_p_move(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) { } } destination_entry.start_cluster = destination_parent.start_cluster; - while (destination_entry.start_cluster != 1 && destination_entry.start_cluster != 0) { + for (;;) { pf_u32 parent_cluster; + if (destination_entry.start_cluster == 1 || destination_entry.start_cluster == 0) { break; } PFFAT_InitFFD(&destination_iter.ffd, &destination_hint, volume, &destination_entry.start_cluster); PFSTR_InitStr(&parent_name, (const pf_s8*)"..", 1); PFSTR_SetLocalStr(&parent_name, 0); @@ -1181,7 +1182,7 @@ pf_s32 PFDIR_p_move(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) { if (allocation_error != 0) { if (source_entry.num_entry_LFNs != 0 && (source_entry.small_letter_flag & 0x18) == 0) { source_entry.long_name[0] = saved_initial_char; - source_entry.entry_offset -= source_entry.num_entry_LFNs * 32; + source_entry.entry_offset -= (source_entry.num_entry_LFNs & 0xff) * 32; } update_entry = &source_entry; } else { diff --git a/libs/RevoEX/src/nwc24/NWC24Download.c b/libs/RevoEX/src/nwc24/NWC24Download.c index 3f04fbea..628608c9 100644 --- a/libs/RevoEX/src/nwc24/NWC24Download.c +++ b/libs/RevoEX/src/nwc24/NWC24Download.c @@ -632,7 +632,7 @@ NWC24Err NWC24IterateDlTaskEx(NWC24DlIterateWork* dlIterateWork, NWC24DlId* dlIt result = NWC24IterateDlTask(&taskId, TRUE); while (result >= NWC24_OK) { value = getValue(taskId); - if (value == state->comparisonValue && (s32)taskId > (s32)state->comparisonId) { + if (value == state->comparisonValue && (s32)state->comparisonId < (s32)taskId) { *dlIterateId = taskId; state->comparisonValue = value; state->selectedValue = value; @@ -653,16 +653,16 @@ NWC24Err NWC24IterateDlTaskEx(NWC24DlIterateWork* dlIterateWork, NWC24DlId* dlIt { s32 selectedValue = state->selectedValue; if (descending) { - passesSelected = value < selectedValue; + passesSelected = selectedValue > value; } else { - passesSelected = value > selectedValue; + passesSelected = selectedValue < value; } if (passesSelected) { s32 comparisonValue = state->comparisonValue; if (descending) { - bestCandidate = value > comparisonValue; + bestCandidate = comparisonValue < value; } else { - bestCandidate = value < comparisonValue; + bestCandidate = comparisonValue > value; } if (bestCandidate) { *dlIterateId = taskId; @@ -912,7 +912,7 @@ NWC24Err NWC24ManageDlTaskListForMenu() { result = ReadDlTaskInline(taskPointer, 2); if (result == NWC24_ERR_NOT_FOUND) { return NWC24_OK; } if (result < NWC24_OK) { return result; } - return RemoveDlTask(taskPointer); + return RemoveDlTask(&task); } NWC24Err NWC24GetDlOptOutFlags(NWC24DlTask* dlTask, u8* dlOptOutFlags) { diff --git a/libs/RevoEX/src/nwc24/NWC24Mime.c b/libs/RevoEX/src/nwc24/NWC24Mime.c index bbf9154e..d062a0ff 100644 --- a/libs/RevoEX/src/nwc24/NWC24Mime.c +++ b/libs/RevoEX/src/nwc24/NWC24Mime.c @@ -235,7 +235,7 @@ static NWC24Err QDecode(char* decoded, u32 decodedCapacity, u32* decodedSize, ch u32 encodedOffset; char* input; char* output; - u32 value = 0; + u8 value = 0; NWC24Err result = NWC24_OK; if (decoded == NULL) @@ -264,14 +264,14 @@ static NWC24Err QDecode(char* decoded, u32 decodedCapacity, u32* decodedSize, ch input++; decodedOffset++; } else if (*input == '=' && encodedOffset + 2 < encodedSize) { + BOOL validHex = TRUE; u32 inputAfterEqual = encodedOffset + 1; char* current = ++input; if (*current == ' ' || *current == '\t') { - char* previous = current; + char* next = current + 1; u32 scan = 1; while (inputAfterEqual + scan + 1 < encodedSize) { - char* next = previous + 1; - if (*next == '\r' && previous[2] == '\n') { + if (*next == '\r' && next[1] == '\n') { inputAfterEqual += scan; current = next; break; @@ -279,7 +279,7 @@ static NWC24Err QDecode(char* decoded, u32 decodedCapacity, u32* decodedSize, ch if (*next != ' ' && *next != '\t') { break; } - previous = next; + next++; scan++; } } @@ -293,12 +293,14 @@ static NWC24Err QDecode(char* decoded, u32 decodedCapacity, u32* decodedSize, ch if (high >= 0) { value = (high & 0x0F) << 4; } + if (high < 0) { validHex = FALSE; } low = Util_xtoi(current[1]); if (low >= 0) { value |= low & 0x0F; } + if (low < 0) { validHex = FALSE; } current += 2; - if (high >= 0 && low >= 0) { + if (validHex) { *output++ = (char)value; decodedOffset++; } @@ -329,97 +331,90 @@ NWC24Err NWC24DecodeQuotedPrintable(char* decoded, u32 decodedCapacity, u32* dec static NWC24Err ConcatEncodedText(char* encoded, u32 encodedCapacity, u32* encodedSize, char encoding, u8* decoded, u32 decodedSize, u32* decodedSizeOut); +static inline NWC24Err AppendWordPrefix(char* encoded, u32 capacity) { + if (Mail_strlen(encoded) + 2 < capacity) { + Mail_strncat(encoded, "=?", 2); + } else { return NWC24_ERR_OVERFLOW; } + return NWC24_OK; +} +static inline NWC24Err AppendWordSeparator(char* encoded, u32 capacity) { + if (Mail_strlen(encoded) + 2 < capacity) { + Mail_strncat(encoded, "?", 1); + } else { return NWC24_ERR_OVERFLOW; } + return NWC24_OK; +} + +static inline NWC24Err AppendWordSuffix(char* encoded, u32 capacity) { + if (Mail_strlen(encoded) + 2 < capacity) { + Mail_strncat(encoded, "?=", 2); + } else { return NWC24_ERR_OVERFLOW; } + return NWC24_OK; +} + +static inline NWC24Err AppendWordCharset(char* encoded, u32 capacity, char* charset, u32 charsetSize) { + if (charset == NULL) { return NWC24_ERR_INVALID_VALUE; } + if (charsetSize + Mail_strlen(encoded) < capacity) { + u32 length = Mail_strlen(charset); + Mail_strncat(encoded, charset, length); + } else { return NWC24_ERR_OVERFLOW; } + return NWC24_OK; +} + +static inline NWC24Err AppendWordEncoding(char* encoded, u32 capacity, char encoding) { + char encodingText[1]; + encodingText[0] = encoding; + if (encoding != 'B' && encoding != 'b' && encoding != 'Q' && encoding != 'q') { + return NWC24_ERR_INVALID_VALUE; + } + if (Mail_strlen(encoded) + 1 < capacity) { + Mail_strncat(encoded, encodingText, 1); + } else { return NWC24_ERR_OVERFLOW; } + return NWC24_OK; +} static NWC24Err EncodeWord(char* encoded, u32 encodedCapacity, u32* encodedSize, char* charset, u32 charsetSize, char encoding, u8* decoded, u32 decodedSize, u32* decodedSizeOut) { - NWC24Err result = NWC24_OK; + NWC24Err result; BOOL encodeOverflow = FALSE; - if (decodedSizeOut != NULL) { - *decodedSizeOut = 0; - } + if (decodedSizeOut != NULL) { *decodedSizeOut = 0; } if (encodedCapacity == 0) { - if (decodedSizeOut != NULL) { - *decodedSizeOut = 0; - } + if (decodedSizeOut != NULL) { *decodedSizeOut = 0; } return NWC24_ERR_INVALID_VALUE; } *encoded = '\0'; - if (encodedSize != NULL) { - *encodedSize = 1; - } - if (Mail_strlen(encoded) + 2 < encodedCapacity) { - Mail_strncat(encoded, "=?", 2); - } else { - result = NWC24_ERR_OVERFLOW; - } - if (result == NWC24_OK) { - if (charset == NULL) { - result = NWC24_ERR_INVALID_VALUE; - } else if (charsetSize + Mail_strlen(encoded) < encodedCapacity) { - u32 length = Mail_strlen(charset); - Mail_strncat(encoded, charset, length); - } else { - result = NWC24_ERR_OVERFLOW; - } - } - if (result == NWC24_OK) { - if (Mail_strlen(encoded) + 2 < encodedCapacity) { - Mail_strncat(encoded, "?", 1); - } else { - result = NWC24_ERR_OVERFLOW; - } - } - if (result == NWC24_OK) { - char value[1]; - value[0] = encoding; - if (encoding == 'B' || encoding == 'b' || encoding == 'Q' || encoding == 'q') { - u32 length = Mail_strlen(encoded); - if (length + 1 < encodedCapacity) { - Mail_strncat(encoded, value, 1); - } else { - result = NWC24_ERR_OVERFLOW; - } - } else { - result = NWC24_ERR_INVALID_VALUE; - } - } - if (result == NWC24_OK) { - if (Mail_strlen(encoded) + 2 < encodedCapacity) { - Mail_strncat(encoded, "?", 1); - } else { - result = NWC24_ERR_OVERFLOW; - } - } - if (result == NWC24_OK) { - result = ConcatEncodedText(encoded, encodedCapacity, encodedSize, encoding, decoded, decodedSize, decodedSizeOut); - if (result == NWC24_OK || result == NWC24_ERR_OVERFLOW) { - encodeOverflow = result == NWC24_ERR_OVERFLOW; - if (Mail_strlen(encoded) + 2 < encodedCapacity) { - Mail_strncat(encoded, "?=", 2); - result = NWC24_OK; - if (encodedSize != NULL) { - *encodedSize = Mail_strlen(encoded) + 1; - } - if (encodeOverflow) { - result = NWC24_ERR_OVERFLOW; - } - } else { - *encoded = '\0'; - if (decodedSizeOut != NULL) { - *decodedSizeOut = 1; - } - result = NWC24_ERR_OVERFLOW; - } - } else { - *encoded = '\0'; - if (decodedSizeOut != NULL) { - *decodedSizeOut = 1; - } - } - } else { + if (encodedSize != NULL) { *encodedSize = 1; } + + result = AppendWordPrefix(encoded, encodedCapacity); + if (result != NWC24_OK) { *encoded = '\0'; return result; } + + result = AppendWordCharset(encoded, encodedCapacity, charset, charsetSize); + if (result != NWC24_OK) { *encoded = '\0'; return result; } + + result = AppendWordSeparator(encoded, encodedCapacity); + if (result != NWC24_OK) { *encoded = '\0'; return result; } + + result = AppendWordEncoding(encoded, encodedCapacity, encoding); + if (result != NWC24_OK) { *encoded = '\0'; return result; } + + result = AppendWordSeparator(encoded, encodedCapacity); + if (result != NWC24_OK) { *encoded = '\0'; return result; } + + result = ConcatEncodedText(encoded, encodedCapacity, encodedSize, encoding, decoded, decodedSize, decodedSizeOut); + if (result != NWC24_OK && result != NWC24_ERR_OVERFLOW) { *encoded = '\0'; + *decodedSizeOut = 1; + return result; } + if (result == NWC24_ERR_OVERFLOW) { encodeOverflow = TRUE; } + result = AppendWordSuffix(encoded, encodedCapacity); + if (result != NWC24_OK) { + *encoded = '\0'; + *decodedSizeOut = 1; + return result; + } + *encodedSize = Mail_strlen(encoded) + 1; + if (result == NWC24_OK && encodeOverflow) { result = NWC24_ERR_OVERFLOW; } return result; } @@ -460,6 +455,7 @@ static BOOL CopyWithoutLinearWhiteSpaces(char* output, int* outputSize, char* in BOOL afterNewline = FALSE; u32 outputOffset = 0; s32 capacity; + u32 limit; if (output == NULL || outputSize == NULL || *outputSize == 0) { return FALSE; @@ -470,7 +466,8 @@ static BOOL CopyWithoutLinearWhiteSpaces(char* output, int* outputSize, char* in *outputSize = 1; return TRUE; } - while (outputOffset < capacity - 1U && inputSize != 0 && *input != '\0') { + limit = capacity - 1U; + while (outputOffset < limit && inputSize != 0 && *input != '\0') { char value = *input; switch (value) { case '\r': @@ -513,92 +510,70 @@ static inline char* FindMarker(char* input, u32 size, const char* marker) { } return NULL; } +static inline char* FindMarkerAfterPrefix(char* input, u32 size, u32 prefix, const char* marker) { + u32 markerLength = Mail_strlen(marker); + char* current = input + prefix; + u32 offset; + for (offset = 0; offset <= size; offset++) { + if (Mail_strncmp(current, marker, markerLength) == 0) { + return input + offset + prefix; + } + current++; + } + return NULL; +} +static inline NWC24Err ExtractWordEncoding(char* encoding, u32* encodingSize, char* encoded, u32 encodedSize) { + char* delimiter = FindMarkerAfterPrefix(encoded, encodedSize, 0, "?"); + if (delimiter == NULL) { return NWC24_ERR_INVALID_VALUE; } + *encoding = delimiter[1]; + *encodingSize = 2; + return NWC24_OK; +} static NWC24Err DecodeWord(char* charsetData, u32 charsetCapacity, char* decoded, u32 decodedCapacity, u32* decodedSize, char* encoded, u32 encodedSize, u32* encodedSizeOut) { - int encodedWordPosition = 0; - int encodedLength; + char* encodedWord; u32 consumedSize; u32 decodedLength; - NWC24Err result = NWC24_OK; + int encodedLength; + NWC24Err result; - if (encodedSizeOut != NULL) { - *encodedSizeOut = 0; - } + if (encodedSizeOut != NULL) { *encodedSizeOut = 0; } if (decodedCapacity == 0) { - if (encodedSizeOut != NULL) - *encodedSizeOut = 0; + if (encodedSizeOut != NULL) { *encodedSizeOut = 0; } return NWC24_ERR_INVALID_VALUE; } *decoded = '\0'; - if (decodedSize != NULL) { - *decodedSize = 1; - } - if (encodedSizeOut != NULL) { - *encodedSizeOut = 0; - } - { - u32 markerLength = Mail_strlen("=?"); - u32 offset; - for (offset = 0; offset <= encodedSize; offset++) { - encodedWordPosition = (int)(encoded + offset); - if (Mail_strncmp((char*)encodedWordPosition, "=?", markerLength) == 0) { - break; - } - } - if (offset > encodedSize) { - encodedWordPosition = 0; - } - } - if (encodedWordPosition == (int)encoded) { - result = ExtractCharset(charsetData, charsetCapacity, &consumedSize, (char*)encoded, encodedSize); - if (result != NWC24_OK) { - return result; - } + if (decodedSize != NULL) { *decodedSize = 1; } + if (encodedSizeOut != NULL) { *encodedSizeOut = 0; } + encodedWord = FindMarker(encoded, encodedSize, "=?"); + if (encodedWord == encoded) { + char encoding; + result = ExtractCharset(charsetData, charsetCapacity, &consumedSize, encodedWord, encodedSize); + if (result != NWC24_OK) { return result; } encodedLength = consumedSize; - { - u32 markerLength = Mail_strlen("?"); - u32 offset; - char* delimiter = NULL; - char* current = (char*)encodedWordPosition + encodedLength; - for (offset = 0; offset <= encodedSize - encodedLength; offset++) { - if (Mail_strncmp((char*)current, "?", markerLength) == 0) { - delimiter = current; - break; - } - current++; - } - if (delimiter == 0) { - return NWC24_ERR_INVALID_VALUE; - } - { - char encoding = delimiter[1]; - consumedSize = 2; - encodedLength += consumedSize; - result = ExtractEncodedText(decoded, decodedCapacity, &decodedLength, encoding, encoded + encodedLength, encodedSize - encodedLength, - &consumedSize); - if (result != NWC24_OK) { - return result; - } - encodedLength += consumedSize; - } - } + result = ExtractWordEncoding(&encoding, &consumedSize, encodedWord + encodedLength, encodedSize - encodedLength); + if (result != NWC24_OK) { return result; } + encodedLength += consumedSize; + result = ExtractEncodedText(decoded, decodedCapacity, &decodedLength, encoding, encodedWord + encodedLength, + encodedSize - encodedLength, &consumedSize); + if (result != NWC24_OK) { return result; } + encodedLength += consumedSize; } else { - u32 localSize = decodedCapacity; - if (encodedWordPosition == 0) { - encodedLength = STD_strnlen(encoded, encodedSize); + u32 localSize; + if (encodedWord != NULL) { + encodedLength = encodedWord - encoded; } else { - encodedLength = encodedWordPosition - (int)encoded; + encodedLength = STD_strnlen(encoded, encodedSize); } + localSize = decodedCapacity; if (!CopyWithoutLinearWhiteSpaces(decoded, (int*)&localSize, encoded, encodedLength)) { *decodedSize = localSize; - if (encodedSizeOut != NULL) { - *encodedSizeOut = encodedLength; - } + if (encodedSizeOut != NULL) { *encodedSizeOut = encodedLength; } return NWC24_ERR_OVERFLOW; } decodedLength = localSize; - if (encodedWordPosition != 0) { + if (encodedWord != NULL) { BOOL whitespaceOnly = TRUE; u32 offset; for (offset = 0; offset < localSize && decoded[offset] != '\0'; offset++) { @@ -613,20 +588,18 @@ static NWC24Err DecodeWord(char* charsetData, u32 charsetCapacity, char* decoded } } } - if (decodedSize != NULL) { - *decodedSize = decodedLength; - } - if (encodedSizeOut != NULL) { - *encodedSizeOut = encodedLength; - } - return result; + *decodedSize = decodedLength; + if (encodedSizeOut != NULL) { *encodedSizeOut = encodedLength; } + return NWC24_OK; } NWC24Err NWC24DecodeMIMEHeaderFieldBody(u8* charsetData, u32 charsetDataSize, u8* decoded, u32 decodedCapacity, u32* decodedSize, u8* encoded, u32 encodedSize) { int result = 0; u8* output; - u32 inputSize; + s32 inputSize; + char* input; + s32 remainingCapacity; if (decodedSize == NULL) { return NWC24_ERR_INVALID_VALUE; @@ -637,34 +610,34 @@ NWC24Err NWC24DecodeMIMEHeaderFieldBody(u8* charsetData, u32 charsetDataSize, u8 if (decoded == NULL || decodedCapacity == 0) { return NWC24_ERR_INVALID_VALUE; } - if (encoded == NULL) - return NWC24_ERR_INVALID_VALUE; if (encoded == NULL) return NWC24_ERR_INVALID_VALUE; *decoded = 0; *charsetData = 0; *decodedSize = 1; + input = (char*)encoded; inputSize = encodedSize; output = decoded; - while ((s32)inputSize > 0 && (s32)decodedCapacity > 0 && *encoded != '\0') { + remainingCapacity = decodedCapacity; + while ((s32)inputSize > 0 && remainingCapacity > 0 && *input != '\0') { u32 copiedSize = 0; u32 consumedSize; result = - DecodeWord((char*)charsetData, charsetDataSize, (char*)output, decodedCapacity, &copiedSize, (char*)encoded, inputSize, &consumedSize); + DecodeWord((char*)charsetData, charsetDataSize, (char*)output, remainingCapacity, &copiedSize, (char*)input, inputSize, &consumedSize); if (copiedSize == 0) { break; } copiedSize--; output += copiedSize; - decodedCapacity -= copiedSize; + remainingCapacity -= copiedSize; *decodedSize += copiedSize; - encoded += consumedSize; + input += consumedSize; inputSize -= consumedSize; if (result != NWC24_OK) { break; } } - if (result == NWC24_OK && inputSize > 0 && *encoded != '\0') { + if (result == NWC24_OK && inputSize > 0 && *input != '\0') { result = NWC24_ERR_OVERFLOW; } decoded[*decodedSize - 1] = '\0'; @@ -695,6 +668,8 @@ static NWC24Err ConcatEncodedText(char* encoded, u32 encodedCapacity, u32* encod return result; } + + static NWC24Err ExtractCharset(char* charset, u32 charsetCapacity, u32* charsetSize, char* encoded, u32 encodedSize) { char* start; char* end; @@ -707,20 +682,29 @@ static NWC24Err ExtractCharset(char* charset, u32 charsetCapacity, u32* charsetS if (start == NULL) { return NWC24_ERR_NOT_SUPPORTED; } - start += 2; - end = FindMarker(start, encodedSize - (u32)(start - encoded), "?"); + end = FindMarkerAfterPrefix(start, encodedSize - (u32)(start + 2 - encoded), 2, "?"); if (end == NULL) { return NWC24_ERR_NOT_SUPPORTED; } - charsetLength = (u32)(end - start); - if (charsetLength >= charsetCapacity) { - return NWC24_ERR_OVERFLOW; - } - Mail_strncpy(charset, start, charsetLength); - charset[charsetLength] = '\0'; + charsetLength = (u32)(end - (start + 2)); + if (charsetLength < charsetCapacity) { + Mail_strncpy(charset, start + 2, charsetLength); + charset[charsetLength] = '\0'; + } else { return NWC24_ERR_OVERFLOW; } *charsetSize = charsetLength + 2; return NWC24_OK; } +static inline char* FindMarkerOffsetPrefix(char* input, u32 size, u32 prefix, const char* marker) { + u32 markerLength = Mail_strlen(marker); + u32 offset; + for (offset = 0; offset <= size; offset++) { + if (Mail_strncmp(input + offset + prefix, marker, markerLength) == 0) { + return input + prefix + offset; + } + } + return NULL; +} + static NWC24Err ExtractEncodedText(char* decoded, u32 decodedCapacity, u32* decodedSize, char encoding, char* encoded, u32 encodedSize, u32* encodedSizeOut) { @@ -729,7 +713,8 @@ static NWC24Err ExtractEncodedText(char* decoded, u32 decodedCapacity, u32* deco int length; NWC24Err result; - if (encoded == NULL || decodedSize == NULL) { + if (encoded == NULL) { return NWC24_ERR_INVALID_VALUE; } + if (decodedSize == NULL) { return NWC24_ERR_INVALID_VALUE; } *decodedSize = 0; @@ -741,20 +726,19 @@ static NWC24Err ExtractEncodedText(char* decoded, u32 decodedCapacity, u32* deco if (start == NULL) { return NWC24_ERR_NOT_SUPPORTED; } - start++; - end = FindMarker(start, encodedSize - (u32)(start - encoded), "?="); + end = FindMarkerOffsetPrefix(start, encodedSize - (u32)(start + 1 - encoded), 1, "?="); if (end == NULL) { return NWC24_ERR_NOT_SUPPORTED; } - length = end - start; + length = end - (start + 1); if (encoding == 'B' || encoding == 'b') { - result = NWC24Base64Decode((u8*)start, length, (u8*)decoded, decodedCapacity - 1, decodedSize); + result = NWC24Base64Decode((u8*)(start + 1), length, (u8*)decoded, decodedCapacity - 1, decodedSize); if (result == NWC24_OK || result == NWC24_ERR_OVERFLOW) { decoded[*decodedSize] = '\0'; *decodedSize += 1; } } else if (encoding == 'Q' || encoding == 'q') { - result = QDecode(decoded, decodedCapacity - 1, decodedSize, start, length, NULL, 1); + result = QDecode(decoded, decodedCapacity - 1, decodedSize, start + 1, length, NULL, 1); if (result == NWC24_OK || result == NWC24_ERR_OVERFLOW) { decoded[*decodedSize] = '\0'; *decodedSize += 1; @@ -762,6 +746,6 @@ static NWC24Err ExtractEncodedText(char* decoded, u32 decodedCapacity, u32* deco } else { return NWC24_ERR_NOT_SUPPORTED; } - *encodedSizeOut = (u32)(end - encoded) + 2; + if (end != NULL) { *encodedSizeOut = (u32)(end - encoded) + 2; } return result; } diff --git a/libs/RevoEX/src/nwc24/NWC24MsgCommit.c b/libs/RevoEX/src/nwc24/NWC24MsgCommit.c index b33d1b2b..2e0ff8ab 100644 --- a/libs/RevoEX/src/nwc24/NWC24MsgCommit.c +++ b/libs/RevoEX/src/nwc24/NWC24MsgCommit.c @@ -306,7 +306,7 @@ static NWC24Err NWC24CommitMsgInternal(NWC24MsgObjPrivate* msg, NWC24MBoxType ty CHECK_WRITE(WriteIconNewField(msg)); if (msg->msgBoardFlags.raw != 0) { CHECK_WRITE(WriteMBNoReplyField(msg)); - CHECK_WRITE(WriteMBRegDateField(msg, msg->msgBoardFlags.raw & 0xFFFF)); + { u16 dateFlags = msg->msgBoardFlags.raw; CHECK_WRITE(WriteMBRegDateField(msg, dateFlags)); } CHECK_WRITE(WriteMBDelayField(msg, msg->msgBoardFlags.raw & 0xFF0000)); } } @@ -334,9 +334,8 @@ static NWC24Err NWC24CommitMsgInternal(NWC24MsgObjPrivate* msg, NWC24MBoxType ty if (!(msg->type & 0x10000)) msg->unk_0x10 = msg->length; text.ptr = (const void*)msg->length; - err = WritePlainText(msg); - if (err == NWC24_ERR_NULL) - err = NWC24_OK; + { NWC24Err textResult = WritePlainText(msg); + err = textResult == NWC24_ERR_NULL ? NWC24_OK : textResult; } if (err != NWC24_OK) { NWC24FClose(&file); result = err; diff --git a/libs/RevoEX/src/nwc24/NWC24MsgRead.c b/libs/RevoEX/src/nwc24/NWC24MsgRead.c index 1c986b54..abb87f46 100644 --- a/libs/RevoEX/src/nwc24/NWC24MsgRead.c +++ b/libs/RevoEX/src/nwc24/NWC24MsgRead.c @@ -505,8 +505,12 @@ NWC24Err NWC24ReadMsgAttached(const NWC24MsgObj* msg, u32 index, u8* output, u32 } decodedSize = 0; result = ReadBase64Data(&file, &privateMsg->attached[index], output, capacity, &decodedSize); - if (result == NWC24_OK && decodedSize != privateMsg->attachedSize[index]) - result = NWC24_ERR_FORMAT; + switch (result) { + case NWC24_OK: + if (decodedSize != privateMsg->attachedSize[index]) { result = NWC24_ERR_FORMAT; } + break; + default: break; + } closeResult = NWC24iMBoxCloseMsg(&file); if (result == NWC24_OK) result = closeResult; diff --git a/libs/RevoEX/src/nwc24/NWC24MsgSubject.c b/libs/RevoEX/src/nwc24/NWC24MsgSubject.c index 8145f7b5..540652eb 100644 --- a/libs/RevoEX/src/nwc24/NWC24MsgSubject.c +++ b/libs/RevoEX/src/nwc24/NWC24MsgSubject.c @@ -821,8 +821,8 @@ NWC24Err NWC24iSetMsgSubjectBase64(NWC24MsgObj* msg, const u16* subject, u32 sub u8* second; u32 subjectLength; u32 lineLength; - u32 outputLength; u32 sourceOffset; + u32 outputLength; u32 total; u32 charsetLength; NWC24Err result; @@ -832,42 +832,41 @@ NWC24Err NWC24iSetMsgSubjectBase64(NWC24MsgObj* msg, const u16* subject, u32 sub second = work + workHalf; charsetLength = strlen(charsetName); lineLength = ((0x36 - charsetLength) * 3) >> 2; - if (workHalf < lineLength) { + if (lineLength > workHalf) { result = NWC24_ERR_OVERFLOW; } else { - outputLength = lineLength + 1; + workHalf = lineLength + 1; subjectLength = subjectSize; - result = NWC24iConvertFromInternalEncoding(work, &outputLength, subject, &subjectLength, charsetName, 0x40, region, alternative); - if (((result == NWC24_OK) || (result == NWC24_ERR_OVERFLOW)) && - ((result = NWC24EncodeWord(second, secondSize, &outputLength, charsetName, 0x40, 'B', work, outputLength - 1)) == NWC24_OK)) { + result = NWC24iConvertFromInternalEncoding(work, &workHalf, subject, &subjectLength, charsetName, 0x40, region, alternative); + switch (result) { case NWC24_OK: case NWC24_ERR_OVERFLOW: break; default: goto done; } + result = NWC24EncodeWord(second, secondSize, &outputLength, charsetName, 0x40, 'B', work, workHalf - 1); + switch (result) { case NWC24_OK: break; default: goto done; } + { sourceOffset = subjectLength; if (sourceOffset == subjectSize) { result = NWC24SetMsgSubject(msg, (char*)second, outputLength - 1); } else { charsetLength = strlen(charsetName); lineLength = (((0x3E - charsetLength) * 3) >> 2) + 1; - total = outputLength; + total = outputLength - 1; for (; sourceOffset < subjectSize; sourceOffset += subjectLength) { subjectLength = subjectSize - sourceOffset; workHalf = lineLength; - if (secondSize - (total - 1) < 3) { + if (secondSize - total < 3) { result = NWC24_ERR_OVERFLOW; goto done; } - second[total - 1] = '\r'; - second[total] = '\n'; - second[total + 1] = ' '; - total += 2; + second[total++] = '\r'; + second[total++] = '\n'; + second[total++] = ' '; result = NWC24iConvertFromInternalEncoding(work, &workHalf, subject + sourceOffset, &subjectLength, charsetName, 0x40, region, alternative); - if (((result != NWC24_OK) && (result != NWC24_ERR_OVERFLOW)) || - ((result = NWC24EncodeWord(second + total, secondSize - total, &outputLength, charsetName, 0x40, 'B', work, workHalf - 1)) != - NWC24_OK)) { - goto done; - } - total += outputLength; + switch (result) { case NWC24_OK: case NWC24_ERR_OVERFLOW: break; default: goto done; } + result = NWC24EncodeWord(second + total, secondSize - total, &outputLength, charsetName, 0x40, 'B', work, workHalf - 1); + switch (result) { case NWC24_OK: break; default: goto done; } + total = total + outputLength - 1; } - result = NWC24SetMsgSubject(msg, (char*)second, total - 1); + result = NWC24SetMsgSubject(msg, (char*)second, total); } } } diff --git a/tools/decomp-assist/sol-high-round3-attempts.md b/tools/decomp-assist/sol-high-round3-attempts.md new file mode 100644 index 00000000..8e2ecb28 --- /dev/null +++ b/tools/decomp-assist/sol-high-round3-attempts.md @@ -0,0 +1,196 @@ +# Matching round 3 + +Baseline 91e65d76. Data already 100% in the three priority units; preserve all pools. Closest functions first within NWC24Download, then tiCellPhone, then pf_dir. + +libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlInterval | 1-wide-entry-index | objdiff 99.523810% | insns 147/147 | positional diffs 3 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlInterval | 2-late-task-view | objdiff 99.727890% | insns 147/147 | positional diffs 8 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlInterval | 3-distinct-entry-id | objdiff 99.897960% | insns 147/147 | positional diffs 3 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24ExtendDlTaskList | 1-independent-reload-result | objdiff 99.051094% | insns 138/137 | positional diffs 18 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24ExtendDlTaskList | 2-split-write-result | objdiff 96.934300% | insns 141/137 | positional diffs 20 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24ExtendDlTaskList | 3-loop-countdown-condition | objdiff 98.905110% | insns 138/137 | positional diffs 20 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24GetDlTask | 1-read-operation-scope | objdiff 99.728264% | insns 92/92 | positional diffs 5 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24GetDlTask | 2-independent-close-status | objdiff 99.728264% | insns 92/92 | positional diffs 5 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24GetDlTask | 3-task-id-wide-seek-view | objdiff 99.130430% | insns 92/92 | positional diffs 5 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24iCreateDlTaskList | 1-typed-size-and-clear-cursor | objdiff 99.624060% | insns 133/133 | positional diffs 10 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24iCreateDlTaskList | 2-countdown-loop | objdiff 95.781950% | insns 136/133 | positional diffs 130 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24iCreateDlTaskList | 3-inner-header-initialization | objdiff 99.624060% | insns 133/133 | positional diffs 10 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24InitDlTask | 1-id-pair-array | objdiff 98.923615% | insns 144/144 | positional diffs 31 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24InitDlTask | 2-type-flag-before-fields | objdiff 89.090280% | insns 144/144 | positional diffs 61 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24InitDlTask | 3-direct-typed-task-lifetime | objdiff 98.923615% | insns 144/144 | positional diffs 31 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24iCheckDlHeaderConsistency | 1-task-view-before-parameter-aliases | objdiff 98.773580% | insns 212/212 | positional diffs 3 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24iCheckDlHeaderConsistency | 2-task-storage-lifetime-nested | objdiff 98.679245% | insns 212/212 | positional diffs 7 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24iCheckDlHeaderConsistency | 3-unsigned-repair-cursor | objdiff 94.830185% | insns 206/212 | positional diffs 204 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTaskEx | 1-reversed-comparison-operands | objdiff 98.034485% | insns 145/145 | positional diffs 17 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTaskEx | 2-found-before-entry-output | objdiff 98.034485% | insns 145/145 | positional diffs 17 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTaskEx | 3-signed-sort-direction | objdiff 98.034485% | insns 145/145 | positional diffs 17 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24AddDlTask | 1-cached-entry-limits | objdiff 97.552444% | insns 146/143 | positional diffs 140 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24AddDlTask | 2-universal-time-success-scope | objdiff 96.783220% | insns 145/143 | positional diffs 139 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24AddDlTask | 3-header-check-expanded-with-status | objdiff 96.538460% | insns 146/143 | positional diffs 140 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTask | 1-top-tested-entry-loop | objdiff 93.544304% | insns 79/79 | positional diffs 20 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTask | 2-loop-check-helper-header-reload | objdiff 93.544304% | insns 79/79 | positional diffs 20 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTask | 3-increment-loop-condition | objdiff 92.531650% | insns 78/79 | positional diffs 50 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24ManageDlTaskListForMenu | 1-read-task-unaliased-removal | objdiff 96.743420% | insns 150/152 | positional diffs 36 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24ManageDlTaskListForMenu | 2-positive-read-status-scope | objdiff 89.486840% | insns 150/152 | positional diffs 147 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24ManageDlTaskListForMenu | 3-max-count-load-expanded | objdiff 94.736840% | insns 151/152 | positional diffs 137 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24UpdateDlTask | 1-retry-status-before-loop | objdiff 74.865616% | insns 295/253 | positional diffs 291 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24UpdateDlTask | 2-separate-access-status-after-time | objdiff 93.877470% | insns 249/253 | positional diffs 249 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24UpdateDlTask | 3-retry-result-do-loop | objdiff 91.090910% | insns 248/253 | positional diffs 250 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | AddTaskInternal | 1-retry-allocation-until-task-assigned | objdiff 71.753120% | insns 398/401 | positional diffs 319 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | AddTaskInternal | 2-find-status-success-or-full | objdiff 93.578550% | insns 397/401 | positional diffs 328 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | AddTaskInternal | 3-explicit-task-null-validation | objdiff 70.316710% | insns 401/401 | positional diffs 383 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24PurgeOldestDlTask | 1-candidate-check-with-in-loop-call | objdiff 84.312500% | insns 167/176 | positional diffs 86 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24PurgeOldestDlTask | 2-read-positive-result-branch | objdiff 85.204544% | insns 170/176 | positional diffs 166 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24PurgeOldestDlTask | 3-initialize-bounds-before-flags | objdiff 84.363640% | insns 171/176 | positional diffs 166 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlInterval | 4-entry-pointer-spans-division | objdiff 96.122450% | insns 142/147 | positional diffs 33 | regressions 0 +src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 1-pane-record-pointer | objdiff 99.819820% | insns 333/333 | positional diffs 11 | regressions 0 +src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 2-pane-record-before-construction | objdiff 91.141140% | insns 329/333 | positional diffs 281 | regressions 0 +src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 3-inner-animation-record | BUILD FAILED; see saved build output +src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 1-retain-event-record-through-trigger | objdiff 99.670090% | insns 682/682 | positional diffs 37 | regressions 0 +src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 2-trigger-state-before-name | objdiff 99.384160% | insns 682/682 | positional diffs 38 | regressions 0 +src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 3-scoped-keyset-pointer | objdiff 99.670090% | insns 682/682 | positional diffs 37 | regressions 0 +src/keyboard/tiCellPhone | init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 1-label-before-name-lifetime | objdiff 98.526120% | insns 536/536 | positional diffs 155 | regressions 0 +src/keyboard/tiCellPhone | init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 2-retain-current-keyset-for-label | objdiff 97.460820% | insns 533/536 | positional diffs 411 | regressions 0 +src/keyboard/tiCellPhone | init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 3-toggle-name-loop-cursor | objdiff 98.522385% | insns 536/536 | positional diffs 155 | regressions 0 +src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 3-inner-animation-record | objdiff 97.897896% | insns 333/333 | positional diffs 18 | regressions 0 +libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 1-index-advance-before-countdown | objdiff 99.710144% | insns 69/69 | positional diffs 2 | regressions 0 +libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 2-next-entry-lifetime | objdiff 99.681160% | insns 69/69 | positional diffs 2 | regressions 0 +libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 3-two-typed-cursors | objdiff 88.608696% | insns 64/69 | positional diffs 67 | regressions 0 +libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 1-scope-cluster-write-index | objdiff 99.649470% | insns 562/562 | positional diffs 36 | regressions 0 +libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 2-dot-record-fields-explicit | objdiff 99.455510% | insns 562/562 | positional diffs 58 | regressions 0 +libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 3-separate-long-name-count-value | objdiff 98.108540% | insns 564/562 | positional diffs 220 | regressions 0 +libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rename | 1-shared-update-return | objdiff 98.336000% | insns 625/625 | positional diffs 264 | regressions 0 +libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rename | 2-narrow-entry-offset-arithmetic | objdiff 97.808000% | insns 628/625 | positional diffs 540 | regressions 0 +libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rename | 3-directory-open-loop-field-cursor | objdiff 97.476800% | insns 628/625 | positional diffs 539 | regressions 0 +libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 1-ancestry-top-check-and-shared-stop | objdiff 97.218704% | insns 629/631 | positional diffs 558 | regressions 0 +libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 2-byte-long-name-offset | objdiff 97.226620% | insns 639/631 | positional diffs 563 | regressions 0 +libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 3-directory-record-pointer-for-ancestry | objdiff 96.890650% | insns 629/631 | positional diffs 558 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24iCheckDlHeaderConsistency | 4-parameter-order-and-post-repair-success | objdiff 98.773580% | insns 212/212 | positional diffs 3 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24AddDlTask | 4-count-conversion-scoped-around-legacy-header | objdiff 95.454544% | insns 145/143 | positional diffs 84 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | AddTaskInternal | 4-positive-allocation-status-first | objdiff 93.024940% | insns 397/401 | positional diffs 328 | regressions 0 +libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 4-ancestry-shared-bottom-test | objdiff 96.973060% | insns 636/631 | positional diffs 563 | regressions 0 +libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 5-ancestry-loop-with-explicit-top-exit | BUILD FAILED; see saved build output +libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 6-restore-ancestry-to-top-loop-with-byte-offset | objdiff 96.973060% | insns 636/631 | positional diffs 563 | regressions 0 + +Audit: PFDIR_p_move trials 1 and 3 removed the initial root check and are excluded from the attempt count. Only equivalent ancestry variants retained; trial 2 restores the root check. Revisited functions now measure the current source before selecting a better result. +libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 7-explicit-root-exit-before-search | objdiff 98.510300% | insns 635/631 | positional diffs 562 | regressions 0 +libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 8-cached-ancestry-next-cluster | objdiff 97.028530% | insns 635/631 | positional diffs 563 | regressions 0 + +Priority-unit review: pools and every data section remain 100%; all twenty open functions have at least three successful body variants (failed builds and non-equivalent ancestry trials excluded). Changes retained: iterator tie comparison, unaliased menu removal, shared rename return, equivalent move root-exit loop. Next: MsgCommit pool first. +libs/RevoEX/src/nwc24/NWC24MsgCommit | NWC24CommitMsgInternal | 1-board-flags-local-lifetimes | objdiff 99.891174% | insns 827/827 | positional diffs 18 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgCommit | NWC24CommitMsgInternal | 2-plain-text-error-positive-scope | objdiff 99.891174% | insns 827/827 | positional diffs 18 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgCommit | NWC24CommitMsgInternal | 3-separate-body-result-and-board-values | objdiff 99.915360% | insns 827/827 | positional diffs 14 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgCommit | WriteMIMEAttachHeader | 1-order-capacity-sum-left-to-right | objdiff 94.673910% | insns 92/92 | positional diffs 14 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgCommit | WriteMIMEAttachHeader | 2-separate-header-capacity-local | objdiff 97.500000% | insns 92/92 | positional diffs 5 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgCommit | WriteMIMEAttachHeader | 3-balanced-length-sum | objdiff 97.282610% | insns 92/92 | positional diffs 8 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgCommit | CheckMsgBoxSpace | 1-combine-base64-size-increment-last | objdiff 85.573990% | insns 223/223 | positional diffs 73 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgCommit | CheckMsgBoxSpace | 2-retain-attachment-base64-and-lines | objdiff 79.372200% | insns 223/223 | positional diffs 103 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgCommit | CheckMsgBoxSpace | 3-unsigned-attachment-cursor | objdiff 78.573990% | insns 214/223 | positional diffs 213 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgCommit | NWC24CommitMsgInternal | data1-global-loopback-definition-after-functions | objdiff 99.915360% | insns 827/827 | positional diffs 14 | regressions 0 +data1-global-loopback-definition-after-functions sections: [{'name': '.bss', 'size': '64', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.data', 'size': '680', 'metadata': {}}, {'name': '.sbss', 'size': '8', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.sdata', 'size': '152', 'fuzzy_match_percent': 18.765432, 'metadata': {}}, {'name': '.text', 'size': '8532', 'fuzzy_match_percent': 98.442566, 'metadata': {}}] +libs/RevoEX/src/nwc24/NWC24MsgCommit | NWC24CommitMsgInternal | data2-content-format-definitions-after-writers | objdiff 99.915360% | insns 827/827 | positional diffs 14 | regressions 0 +data2-content-format-definitions-after-writers sections: [{'name': '.bss', 'size': '64', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.data', 'size': '680', 'metadata': {}}, {'name': '.sbss', 'size': '8', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.sdata', 'size': '152', 'fuzzy_match_percent': 11.358025, 'metadata': {}}, {'name': '.text', 'size': '8532', 'fuzzy_match_percent': 98.442566, 'metadata': {}}] +libs/RevoEX/src/nwc24/NWC24MsgCommit | NWC24CommitMsgInternal | data3-subject-field-owned-line-ending | objdiff 99.915360% | insns 827/827 | positional diffs 14 | regressions 0 +data3-subject-field-owned-line-ending sections: [{'name': '.bss', 'size': '64', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.data', 'size': '680', 'metadata': {}}, {'name': '.sbss', 'size': '8', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.sdata', 'size': '152', 'fuzzy_match_percent': 18.765432, 'metadata': {}}, {'name': '.text', 'size': '8532', 'fuzzy_match_percent': 98.442566, 'metadata': {}}] +libs/RevoEX/src/nwc24/NWC24Mime | CopyWithoutLinearWhiteSpaces | 1-hoist-capacity-limit | objdiff 100.000000% | insns 73/73 | positional diffs 0 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | CopyWithoutLinearWhiteSpaces | 2-loop-character-with-output-length-scope | objdiff 99.109590% | insns 73/73 | positional diffs 13 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | CopyWithoutLinearWhiteSpaces | 3-signed-output-offset | objdiff 98.561646% | insns 73/73 | positional diffs 17 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | ExtractEncodedText | 1-split-null-guards-and-consumed-pointer-check | objdiff 94.296295% | insns 134/135 | positional diffs 102 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | ExtractEncodedText | 2-preserve-leading-marker-pointer | objdiff 94.148150% | insns 133/135 | positional diffs 102 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | ExtractEncodedText | 3-second-marker-index-result | objdiff 86.703705% | insns 137/135 | positional diffs 104 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | NWC24DecodeMIMEHeaderFieldBody | 1-signed-remaining-size-and-byte-terminator | objdiff 88.423910% | insns 95/92 | positional diffs 89 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | NWC24DecodeMIMEHeaderFieldBody | 2-retain-input-and-output-size-values | objdiff 92.500000% | insns 95/92 | positional diffs 74 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | NWC24DecodeMIMEHeaderFieldBody | 3-removed-redundant-null-check-with-signed-remaining | objdiff 91.576090% | insns 92/92 | positional diffs 59 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | QDecode | 1-byte-result-and-independent-hex-validity | objdiff 92.609590% | insns 147/146 | positional diffs 113 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | QDecode | 2-whitespace-next-byte-cursor | objdiff 94.130135% | insns 146/146 | positional diffs 59 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | QDecode | 3-advance-main-input-during-decode | objdiff 92.609590% | insns 147/146 | positional diffs 113 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | ExtractCharset | 1-leading-marker-kept-through-second-scan | objdiff 81.190475% | insns 81/84 | positional diffs 61 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | ExtractCharset | 2-second-marker-pointer-advancing-loop | objdiff 79.095240% | insns 85/84 | positional diffs 59 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | ExtractCharset | 3-copy-positive-size-branch | objdiff 92.380950% | insns 83/84 | positional diffs 56 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | DecodeWord | 1-use-real-marker-pointer | objdiff 79.188890% | insns 178/180 | positional diffs 168 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | DecodeWord | 2-delimiter-derived-from-offset | objdiff 79.661110% | insns 179/180 | positional diffs 168 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | DecodeWord | 3-signed-whitespace-prefix-capacity | BUILD FAILED; see saved build output +libs/RevoEX/src/nwc24/NWC24Mime | EncodeWord | 1-charset-length-before-capacity-test | objdiff 71.681816% | insns 176/198 | positional diffs 168 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | EncodeWord | 2-delimiter-character-lived-through-word | objdiff 71.681816% | insns 176/198 | positional diffs 168 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | EncodeWord | 3-overflow-result-restore-at-end | objdiff 69.363640% | insns 176/198 | positional diffs 156 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | DecodeWord | 4-native-int-whitespace-capacity | objdiff 79.661110% | insns 179/180 | positional diffs 168 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24iSetMsgSubjectQP | 1-signed-second-buffer-capacity | objdiff 99.548615% | insns 144/144 | positional diffs 12 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24iSetMsgSubjectQP | 2-scope-source-offset-after-encoding | BUILD FAILED; see saved build output +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24iSetMsgSubjectQP | 3-loop-offset-increment-after-length | objdiff 98.020836% | insns 144/144 | positional diffs 16 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24SetMsgSubjectAndTextPublic | 1-scoped-private-message-for-protection | objdiff 97.210526% | insns 190/190 | positional diffs 65 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24SetMsgSubjectAndTextPublic | 2-char-work-address-view | objdiff 98.236840% | insns 190/190 | positional diffs 65 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24SetMsgSubjectAndTextPublic | 3-output-subject-allocation-size-lived-after-conversion | objdiff 97.210526% | insns 190/190 | positional diffs 65 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgTextPublic | 1-read-result-switch | objdiff 94.142860% | insns 70/70 | positional diffs 5 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgTextPublic | 2-scoped-read-result-switch | objdiff 94.142860% | insns 70/70 | positional diffs 5 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgTextPublic | 3-switch-and-original-capacity-after-charset-load | objdiff 93.857140% | insns 70/70 | positional diffs 9 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgSubjectPublic | 1-two-read-result-switches | objdiff 92.115390% | insns 104/104 | positional diffs 10 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgSubjectPublic | 2-switched-read-results-and-signed-text-loop | objdiff 92.115390% | insns 104/104 | positional diffs 10 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgSubjectPublic | 3-switched-read-results-and-positive-conversion-status | BUILD FAILED; see saved build output +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24iSetMsgSubjectBase64 | 1-explicit-conversion-and-encode-switches | objdiff 84.257355% | insns 137/136 | positional diffs 121 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24iSetMsgSubjectBase64 | 2-signed-total-excluding-terminator | objdiff 93.433820% | insns 139/136 | positional diffs 130 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24iSetMsgSubjectBase64 | 3-output-capacity-scoped-per-conversion | objdiff 93.455880% | insns 139/136 | positional diffs 130 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24iSetMsgSubjectQP | 4-offset-only-in-encoded-word-case | objdiff 98.715280% | insns 144/144 | positional diffs 29 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgTextPublic | 4-single-case-switch-with-overflow-in-default | objdiff 97.142860% | insns 68/70 | positional diffs 28 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgSubjectPublic | 4-read-overflow-tests-in-default-switch-arms | objdiff 96.153850% | insns 100/104 | positional diffs 64 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgSubjectPublic | 5-switch-results-and-signed-source-loop | objdiff 96.153850% | insns 100/104 | positional diffs 64 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgField | 1-scope-mailbox-selection-after-protection | objdiff 98.921570% | insns 101/102 | positional diffs 84 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgField | 2-result-qualified-protection-check | objdiff 97.843140% | insns 102/102 | positional diffs 6 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgField | 3-selector-expanded-with-status-return | objdiff 96.892160% | insns 101/102 | positional diffs 81 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgFromAddr | 1-scoped-selector-view | objdiff 98.804344% | insns 91/92 | positional diffs 66 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgFromAddr | 2-sender-address-typed-flags-local | objdiff 97.500000% | insns 92/92 | positional diffs 56 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgFromAddr | 3-supported-type-switch | objdiff 97.608696% | insns 92/92 | positional diffs 6 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgSubject | 1-private-message-view-before-read-only-loads | objdiff 98.658540% | insns 81/82 | positional diffs 65 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgSubject | 2-protection-status-switch | objdiff 97.317070% | insns 82/82 | positional diffs 6 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgSubject | 3-close-result-separate-scope | objdiff 97.195120% | insns 80/82 | positional diffs 65 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgAttached | 1-decoded-size-success-switch | objdiff 96.373630% | insns 90/91 | positional diffs 75 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgAttached | 2-attachment-record-after-mailbox-open | objdiff 96.043950% | insns 89/91 | positional diffs 75 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgAttached | 3-independent-read-and-close-lifetimes | objdiff 94.890110% | insns 88/91 | positional diffs 75 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgRead | ReadMsgTextInternal | 1-success-switch-in-header-reads | objdiff 91.516850% | insns 180/178 | positional diffs 158 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgRead | ReadMsgTextInternal | 2-capacity-limit-and-overflow-scope | objdiff 91.516850% | insns 175/178 | positional diffs 163 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgRead | ReadMsgTextInternal | 3-output-encoding-initialize-before-buffer | objdiff 93.089890% | insns 178/178 | positional diffs 152 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgTextPublic | 5-nested-single-status-switches | objdiff 95.571430% | insns 69/70 | positional diffs 29 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgSubjectPublic | 6-nested-single-status-switches | objdiff 94.038460% | insns 102/104 | positional diffs 64 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgTextPublic | 6-overflow-if-else-inside-default | objdiff 97.142860% | insns 68/70 | positional diffs 28 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgSubjectPublic | 7-overflow-if-else-inside-default | objdiff 96.153850% | insns 100/104 | positional diffs 64 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24iSetMsgSubjectBase64 | 4-only-zero-case-with-overflow-default | objdiff 93.308820% | insns 135/136 | positional diffs 77 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24iSetMsgSubjectBase64 | 5-overflow-before-default-switch | objdiff 93.308820% | insns 135/136 | positional diffs 77 | regressions 0 +libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24iSetMsgSubjectBase64 | 6-distinct-available-and-encoded-lengths | objdiff 93.286766% | insns 135/136 | positional diffs 79 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24GetDlTask | 4-read-helper-inlined-at-public-entry | objdiff 99.728264% | insns 92/92 | positional diffs 5 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24iCreateDlTaskList | 4-header-at-initialization-block-only | objdiff 99.624060% | insns 133/133 | positional diffs 10 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Download | NWC24ExtendDlTaskList | 4-wide-index-for-entry-clearing | objdiff 99.087590% | insns 136/137 | positional diffs 48 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | EncodeWord | 4-rederive-all-concatenation-and-failure-blocks | objdiff 95.626260% | insns 192/198 | positional diffs 155 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | EncodeWord | 5-failure-return-with-scoped-character | objdiff 95.626260% | insns 192/198 | positional diffs 155 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | EncodeWord | 6-final-success-test-through-switch | objdiff 95.626260% | insns 192/198 | positional diffs 155 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | EncodeWord | 7-real-concatenation-helpers-with-status-returns | objdiff 95.126260% | insns 202/198 | positional diffs 184 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | EncodeWord | 8-encoding-helper-inline-character-validity | objdiff 95.126260% | insns 202/198 | positional diffs 184 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | EncodeWord | 9-spell-out-final-overflow-precedence | objdiff 95.126260% | insns 202/198 | positional diffs 184 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | EncodeWord | 10-format-specific-prefix-separator-suffix-helpers | objdiff 100.000000% | insns 198/198 | positional diffs 0 | regressions 0 + +EncodeWord control-flow evidence: rederived the prefix, charset, separator, encoding, text, suffix, and final overflow blocks from build/43U/asm/libs/RevoEX/src/nwc24/NWC24Mime.s. Each append helper has independent success/overflow returns. Generic literal arguments survived strlen in a saved register, adding four pointer moves; format-specific helpers emit the same ordinary literals at their uses and remove those moves. Attempt 10 is 198/198 instructions, zero ctxdiff differences, objdiff 100%; data remains 88/88. The target unconditionally writes decodedSizeOut on the final text/suffix errors and encodedSize on final success; preserved those target operations. Quick gate: /tmp/sol-high-round3-encode-gate.txt, GATE PASS, regressions/forbidden/readability all zero. +libs/RevoEX/src/nwc24/NWC24Mime | NWC24DecodeMIMEHeaderFieldBody | 4-remove-duplicate-validation-and-use-signed-input-bytes | objdiff 99.130430% | insns 92/92 | positional diffs 10 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | NWC24DecodeMIMEHeaderFieldBody | 5-signed-input-with-input-size-before-capacity-in-loop | objdiff 99.456520% | insns 92/92 | positional diffs 8 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | NWC24DecodeMIMEHeaderFieldBody | 6-signed-char-input-output-and-result-type | objdiff 99.130430% | insns 92/92 | positional diffs 10 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | ExtractCharset | 4-second-marker-cursor-with-prefix-preserved | objdiff 90.833336% | insns 83/84 | positional diffs 62 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | ExtractCharset | 5-second-marker-cursor-with-prefix-preserved | objdiff 91.071430% | insns 83/84 | positional diffs 61 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | ExtractCharset | 6-second-marker-cursor-with-prefix-preserved | objdiff 90.833336% | insns 83/84 | positional diffs 62 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | ExtractEncodedText | 4-second-marker-search-with-recomputed-found-position | objdiff 93.925930% | insns 134/135 | positional diffs 99 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | ExtractEncodedText | 5-second-marker-search-with-recomputed-found-position | objdiff 94.000000% | insns 134/135 | positional diffs 98 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | ExtractEncodedText | 6-second-marker-search-with-recomputed-found-position | objdiff 94.370370% | insns 134/135 | positional diffs 100 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | NWC24DecodeMIMEHeaderFieldBody | 7-output-initialized-before-input-and-length | objdiff 99.293480% | insns 92/92 | positional diffs 9 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | NWC24DecodeMIMEHeaderFieldBody | 8-output-char-view-before-input-length | objdiff 99.293480% | insns 92/92 | positional diffs 9 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | NWC24DecodeMIMEHeaderFieldBody | 9-capacity-before-input-length | objdiff 99.239130% | insns 92/92 | positional diffs 10 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | ExtractCharset | 7-marker-helper-with-prefix-and-separate-success-return | objdiff 97.261900% | insns 84/84 | positional diffs 35 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | ExtractCharset | 8-caller-increments-prefix-after-marker-helper | objdiff 97.261900% | insns 84/84 | positional diffs 35 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | ExtractCharset | 9-copy-output-length-reuse-after-scan | objdiff 94.404760% | insns 85/84 | positional diffs 47 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | ExtractEncodedText | 7-marker-offset-helper-with-independent-success-return | objdiff 98.148150% | insns 135/135 | positional diffs 44 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | DecodeWord | 4-rederive-marker-encoding-and-success-output-blocks | objdiff 97.694440% | insns 180/180 | positional diffs 67 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | DecodeWord | 5-decode-lengths-before-marker-local | objdiff 97.694440% | insns 180/180 | positional diffs 67 | regressions 0 +libs/RevoEX/src/nwc24/NWC24Mime | DecodeWord | 6-unsigned-consumed-and-prefix-length | objdiff 97.694440% | insns 180/180 | positional diffs 67 | regressions 0 + +DecodeWord control-flow evidence: target marker search retains the marker literal across strlen/strncmp, returns NULL only after exhausting the inclusive bound, and uses an encoding extraction helper with explicit invalid/success status. Replaced the integer pointer representation with char*, separated that helper, preserved output initialization and unconditional final decodedSize store from the target. The plain prefix branch calculates length before initializing its copy capacity. Current DecodeWord: 180/180, register-normalized instruction sequence identical, 67 register differences. ExtractCharset and ExtractEncodedText now reproduce the second search's recomputed found position and separate exhaustion return through real marker helpers; instruction counts 84/84 and 135/135, normalized sequences identical. Header body now has the single target NULL guard and signed char input; 92/92, only eight saved-register differences. Quick MIME gate /tmp/sol-high-round3-decode-gate.txt: GATE PASS; exact code 3576/6124, fuzzy 98.82299, data 88/88, regressions/forbidden/readability zero. +src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 4-load-animation-key-from-table-at-attachment | objdiff 99.789790% | insns 333/333 | positional diffs 12 | regressions 0 +src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 5-retain-animation-presence-as-bool | objdiff 95.240240% | insns 339/333 | positional diffs 277 | regressions 0 +src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 6-inner-animation-type-enum-before-resource-creation | objdiff 96.396390% | insns 335/333 | positional diffs 209 | regressions 0 + +Final audit excludes failed builds, PFDIR_p_move ancestry trials 1/3, data-only trials, and three source bodies already tried in round 2 (keyboard create trial 3, AddDlTask trial 2, AddTaskInternal trial 1). New keyboard create trials 4/5/6 cover that duplicate. Every one of the forty initially open functions has at least three distinct successful NEW body variants, measured from saved sources with whitespace normalized; none remains untried. Keyboard source and all shared-header guard sides are unchanged this round. Matching sibling libs/RevoEX/src/vf/fatfs/pf_dir.c was diffed again against the owned file; its later traversal/layout differences do not resolve the four remaining bodies. Six units retain 100% data; MsgCommit data remains open with raw CRLF and alignment differences recorded above, without added padding or storage-size tricks. + +Final full (non-quick) gate over all seven units: /tmp/sol-high-round3-final-gate.txt, GATE PASS. Fresh clean build and expected DOL SHA1; no regressions, forbidden additions or readability warnings. MIME gained two instruction-exact functions, 9/16 -> 11/16, exact code 2492 -> 3576/6124, fuzzy 90.243630 -> 98.822990. Priority exact counts remain 17/30, 83/86, 34/38; Download and pf_dir fuzzy improved. Every gate block, before/after metrics, all 38 remaining functions with measured counts/causes, data uncertainty, files and code commits are preserved in sol-high-round3-report.md. Post-build ctxdiff verified both new exact functions at zero differences. ReadMsgTextInternal's final clean-build count is 176/178, superseding the earlier positional-count note. diff --git a/tools/decomp-assist/sol-high-round3-report.md b/tools/decomp-assist/sol-high-round3-report.md new file mode 100644 index 00000000..eb56a9c2 --- /dev/null +++ b/tools/decomp-assist/sol-high-round3-report.md @@ -0,0 +1,575 @@ +# Matching round 3 + +Baseline: 91e65d76. Final source: e26ea8f1. Seven owned units; no Matching flags or shared headers changed. + +| Unit | Instruction-exact functions | Fuzzy % | Exact code bytes | Exact data bytes | +|---|---:|---:|---:|---:| +| libs/RevoEX/src/nwc24/NWC24Download | 17 -> 17/30 | 97.146930 -> 97.249360 | 3640 -> 3640/12496 | 80 -> 80/80 | +| src/keyboard/tiCellPhone | 83 -> 83/86 | 99.774020 -> 99.774020 | 12824 -> 12824/19028 | 3860 -> 3860/3860 | +| libs/RVL_SDK/src/fa/pf_dir | 34 -> 34/38 | 99.262856 -> 99.536890 | 11428 -> 11428/18976 | 40 -> 40/40 | +| libs/RevoEX/src/nwc24/NWC24MsgCommit | 15 -> 15/18 | 98.433190 -> 98.442566 | 3964 -> 3964/8532 | 72 -> 72/904 | +| libs/RevoEX/src/nwc24/NWC24Mime | 9 -> 11/16 | 90.243630 -> 98.822990 | 2492 -> 3576/6124 | 88 -> 88/88 | +| libs/RevoEX/src/nwc24/NWC24MsgSubject | 7 -> 7/12 | 97.417786 -> 98.587440 | 2776 -> 2776/5352 | 232 -> 232/232 | +| libs/RevoEX/src/nwc24/NWC24MsgRead | 11 -> 11/16 | 98.450645 -> 98.476395 | 2480 -> 2480/4660 | 128 -> 128/128 | + +Two new exact functions: CopyWithoutLinearWhiteSpaces (73/73 instructions, ctxdiff 0) and EncodeWord (198/198, ctxdiff 0). MIME gained 1084 exact code bytes. The three priority units have no new exact functions this round; their remaining bodies received the required new attempts. Six units retain 100% data. This is partial matching progress; 38 functions and MsgCommit data remain open. + +## Remaining functions + +NWC24InitDlTask | 98.923615% | 144/144 instructions | saved-register allocation only (31 differences) +NWC24SetDlInterval | 99.897960% | 147/147 instructions | final task-ID saved register only (3 differences) +NWC24IterateDlTask | 95.000000% | 78/79 instructions | one missing loop-entry branch; induction increment scheduling +NWC24IterateDlTaskEx | 98.034485% | 145/145 instructions | task-ID load scheduled across the flag store and saved registers +NWC24UpdateDlTask | 94.173910% | 247/253 instructions | retry/validation blocks and saved-register frame; six instructions missing +NWC24AddDlTask | 97.552444% | 146/143 instructions | extra saved-register pair and time-validation status branch; three extra instructions +NWC24GetDlTask | 99.728264% | 92/92 instructions | destination/task-ID saved registers only (5 differences) +NWC24PurgeOldestDlTask | 85.829544% | 171/176 instructions | iterator initialization, candidate deletion/error blocks; five instructions missing +NWC24ManageDlTaskListForMenu | 96.743420% | 150/152 instructions | inlined removal-result copies and task-pointer lifetime; two instructions missing +NWC24ExtendDlTaskList | 99.854010% | 137/137 instructions | final reload-result saved register only (4 differences) +NWC24iCheckDlHeaderConsistency | 98.773580% | 212/212 instructions | task-pointer prologue initialization scheduled before parameter moves +NWC24iCreateDlTaskList | 99.624060% | 133/133 instructions | header-pointer saved register only (10 differences) +AddTaskInternal | 93.578550% | 397/401 instructions | URL checks and slot/purge/update status blocks; four instructions missing +onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 99.670090% | 682/682 instructions | saved-register allocation only (37 differences) +create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 99.819820% | 333/333 instructions | pane-record/animation-key and animation-table saved registers only (11 differences) +init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 98.526120% | 536/536 instructions | saved-register allocation only (155 differences) +PFDIR_GetSDD | 99.710144% | 69/69 instructions | two induction-register assignments differ (2 differences) +PFDIR_p_mkdir | 99.649470% | 562/562 instructions | dot-entry constant ordering and saved-register allocation (36 differences) +PFDIR_p_rename | 98.336000% | 625/625 instructions | current-directory traversal loads, zero-cluster branch, long-name masking, and final return; instruction counts agree +PFDIR_p_move | 98.510300% | 635/631 instructions | current-directory traversal loads, ancestry tests and long-name masking; four extra instructions +NWC24CommitMsgInternal | 99.915360% | 827/827 instructions | saved-register allocation only (14 differences) +CheckMsgBoxSpace | 85.573990% | 223/223 instructions | attachment-size arithmetic operand/load scheduling and saved-register allocation (73 differences) +WriteMIMEAttachHeader | 99.619570% | 92/92 instructions | capacity-sum operand registers only (5 differences) +QDecode | 94.130135% | 146/146 instructions | input cursor lifetime/update addressing, decode-bound branch direction and saved registers (59 differences) +DecodeWord | 97.694440% | 180/180 instructions | saved-register allocation only (67 differences) +NWC24DecodeMIMEHeaderFieldBody | 99.456520% | 92/92 instructions | working input/output saved registers swapped (8 differences) +ExtractCharset | 97.261900% | 84/84 instructions | saved-register allocation only (35 differences) +ExtractEncodedText | 98.148150% | 135/135 instructions | saved-register allocation only (44 differences) +NWC24ReadMsgSubjectPublic | 96.153850% | 100/104 instructions | four missing status-dispatch branches +NWC24ReadMsgTextPublic | 97.142860% | 68/70 instructions | two missing status-dispatch branches +NWC24SetMsgSubjectAndTextPublic | 98.236840% | 190/190 instructions | saved-register allocation only (65 differences) +NWC24iSetMsgSubjectQP | 99.548615% | 144/144 instructions | source-offset/output-buffer saved registers only (12 differences) +NWC24iSetMsgSubjectBase64 | 93.455880% | 139/136 instructions | two extra switch-dispatch branches, initial stack-store lifetime and loop arithmetic scheduling; three extra instructions +NWC24ReadMsgField | 98.921570% | 101/102 instructions | one missing mailbox-type reload after protection validation +NWC24ReadMsgFromAddr | 98.804344% | 91/92 instructions | one missing mailbox-type reload after supported-type validation +NWC24ReadMsgSubject | 98.658540% | 81/82 instructions | one missing mailbox-type reload after protection validation +ReadMsgTextInternal | 93.735954% | 176/178 instructions | type/encoding initialization, status branches and close-result precedence; two instructions missing +NWC24ReadMsgAttached | 96.373630% | 90/91 instructions | one missing type reload plus decoded-size error branch/address ordering + +## Data and uncertainty + +All owned .data/.rodata/.sdata/.sdata2/.ctors sections are exact in the six units other than MsgCommit. Keyboard source and shared headers are unchanged. Every existing keyboard guard side is intact. + +MsgCommit remains 72/904 exact data bytes. Raw ELF sections: .data 678/680 bytes, .sdata 140/152, .sbss 4/8 (objdiff treats .sbss as 100%). The 24 ordinary .data literals have the same offsets; the target section includes two additional trailing bytes and different symbol grouping. The .sdata differences include spacing after LoopBackEnable, a separately emitted CRLF, and trailing alignment. The gate pool extractor ignores short/control-only strings, so its IDENTICAL result does not prove these CRLF sections identical. Declaration-order and literal-ownership trials were reverted after no data improvement. No padding, storage-size changes, packed string blobs or address shims were added. The original source forms behind the spacing and duplicate literal remain unresolved. + +Compiler allocation remains unresolved where register-normalized streams agree. Purge iterator-initialization status branches and public subject/text status-dispatch branches remain uncertain; no known-false or unreachable dummy branches were inserted. + +## Attempts and assembly evidence + +Successful new body variants only. Failed builds, non-equivalent move ancestry trials 1/3, data-only trials, and source bodies already tested in round 2 are excluded. Saved sources were compared with whitespace normalized. Every one of the 40 initially open functions has at least three new distinct attempts; no initially open function was skipped. + +onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 3 distinct successful new source bodies +create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 5 distinct successful new source bodies +init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 3 distinct successful new source bodies +QDecode | 3 distinct successful new source bodies +EncodeWord | 10 distinct successful new source bodies +CopyWithoutLinearWhiteSpaces | 3 distinct successful new source bodies +DecodeWord | 6 distinct successful new source bodies +NWC24DecodeMIMEHeaderFieldBody | 9 distinct successful new source bodies +ExtractCharset | 9 distinct successful new source bodies +ExtractEncodedText | 7 distinct successful new source bodies +NWC24CommitMsgInternal | 3 distinct successful new source bodies +CheckMsgBoxSpace | 3 distinct successful new source bodies +WriteMIMEAttachHeader | 3 distinct successful new source bodies +NWC24ReadMsgField | 3 distinct successful new source bodies +NWC24ReadMsgFromAddr | 3 distinct successful new source bodies +NWC24ReadMsgSubject | 3 distinct successful new source bodies +ReadMsgTextInternal | 3 distinct successful new source bodies +NWC24ReadMsgAttached | 3 distinct successful new source bodies +NWC24ReadMsgSubjectPublic | 6 distinct successful new source bodies +NWC24ReadMsgTextPublic | 6 distinct successful new source bodies +NWC24SetMsgSubjectAndTextPublic | 3 distinct successful new source bodies +NWC24iSetMsgSubjectQP | 3 distinct successful new source bodies +NWC24iSetMsgSubjectBase64 | 6 distinct successful new source bodies +NWC24InitDlTask | 3 distinct successful new source bodies +NWC24SetDlInterval | 4 distinct successful new source bodies +NWC24IterateDlTask | 3 distinct successful new source bodies +NWC24IterateDlTaskEx | 3 distinct successful new source bodies +NWC24UpdateDlTask | 3 distinct successful new source bodies +NWC24AddDlTask | 3 distinct successful new source bodies +NWC24GetDlTask | 4 distinct successful new source bodies +NWC24PurgeOldestDlTask | 3 distinct successful new source bodies +NWC24ManageDlTaskListForMenu | 3 distinct successful new source bodies +NWC24ExtendDlTaskList | 4 distinct successful new source bodies +NWC24iCheckDlHeaderConsistency | 4 distinct successful new source bodies +NWC24iCreateDlTaskList | 4 distinct successful new source bodies +AddTaskInternal | 3 distinct successful new source bodies +PFDIR_GetSDD | 3 distinct successful new source bodies +PFDIR_p_mkdir | 3 distinct successful new source bodies +PFDIR_p_rename | 3 distinct successful new source bodies +PFDIR_p_move | 5 distinct successful new source bodies + +The attempt log records each source change, resulting objdiff percentage, instruction counts and positional differences. Data trials are logged separately. + +For instruction-count differences, target control-flow comparisons cover: Download iterator entry/increment; update retry checks; add time validation; purge initialization and candidate removal; menu removal status; AddTaskInternal URL and slot/purge/update stages; pf_dir ancestry and rollback; public subject/text status dispatch; Base64 conversion/encoding and CRLF folding; mailbox selection/type reloads, text decoding and close-result precedence. The final per-function ctxdiff and register-normalized differences were reread after the full clean build. Equal instruction counts do not imply an exact function. MIME construction and decoding were rederived through marker/append helper blocks; remaining MIME search/DecodeWord/header streams agree after register normalization. + +The Matching pf_dir sibling at libs/RevoEX/src/vf/fatfs/pf_dir.c was diffed against the owned unit again. Its source remains unchanged. + +## Files and commits + +Changed source: libs/RVL_SDK/src/fa/pf_dir.c; libs/RevoEX/src/nwc24/NWC24Download.c; libs/RevoEX/src/nwc24/NWC24Mime.c; libs/RevoEX/src/nwc24/NWC24MsgCommit.c; libs/RevoEX/src/nwc24/NWC24MsgRead.c; libs/RevoEX/src/nwc24/NWC24MsgSubject.c. + +Changed evidence: tools/decomp-assist/sol-high-round3-attempts.md; tools/decomp-assist/sol-high-round3-report.md. + +3746c42d refine download and directory control flow +c1f5e02f match mime whitespace copying and refine message handling +632d1ebf match mime encoded word construction +e26ea8f1 rederive mime decoding and marker searches + +Every source commit followed a passing gate with zero regressions, forbidden additions and readability warnings. Final non-quick gate rebuilt all seven units together and the complete 43U build; expected DOL SHA1 remained 26116613f624061ba99c8d1a299aaa6efa85670d. No link investigation, upstream interaction or unit status changes were performed. + +## Every gate block + +### sol-high-round3-before-gate.txt + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RevoEX/src/nwc24/NWC24Download] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24Download] objdiff: code 3640/12496 data 80/80 functions 17/30 fuzzy 97.1469 linked code 0 +[libs/RevoEX/src/nwc24/NWC24Download] instruction-exact functions: 17/30 +[libs/RevoEX/src/nwc24/NWC24Download] section .data size 56 match 100.0 +[libs/RevoEX/src/nwc24/NWC24Download] section .sbss size 8 match 100.0 +[libs/RevoEX/src/nwc24/NWC24Download] section .sdata size 16 match 100.0 +[libs/RevoEX/src/nwc24/NWC24Download] section .text size 12496 match 97.14693 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24InitDlTask 98.923615 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24SetDlInterval 99.89796 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTask 95.0 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTaskEx 97.93104 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24UpdateDlTask 94.17391 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24AddDlTask 97.552444 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24GetDlTask 99.728264 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24PurgeOldestDlTask 85.829544 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ManageDlTaskListForMenu 94.73684 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ExtendDlTaskList 99.85401 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCheckDlHeaderConsistency 98.77358 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCreateDlTaskList 99.62406 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: AddTaskInternal 93.57855 +[libs/RevoEX/src/nwc24/NWC24Download] baseline: code 3640/12496 data 80 functions 17 fuzzy 97.1469 +[src/keyboard/tiCellPhone] pool: IDENTICAL +[src/keyboard/tiCellPhone] objdiff: code 12824/19028 data 3860/3860 functions 83/86 fuzzy 99.7740 linked code 0 +[src/keyboard/tiCellPhone] instruction-exact functions: 83/86 +[src/keyboard/tiCellPhone] section .ctors size 4 match 100.0 +[src/keyboard/tiCellPhone] section .data size 2416 match 100.0 +[src/keyboard/tiCellPhone] section .rodata size 1320 match 100.0 +[src/keyboard/tiCellPhone] section .sdata size 112 match 100.0 +[src/keyboard/tiCellPhone] section .sdata2 size 8 match 100.0 +[src/keyboard/tiCellPhone] section .text size 19028 match 99.77402 +[src/keyboard/tiCellPhone] below 100: onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 99.67009 +[src/keyboard/tiCellPhone] below 100: create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 99.81982 +[src/keyboard/tiCellPhone] below 100: init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv 98.52612 +[src/keyboard/tiCellPhone] baseline: code 12824/19028 data 3860 functions 83 fuzzy 99.7740 +[libs/RVL_SDK/src/fa/pf_dir] pool: IDENTICAL +[libs/RVL_SDK/src/fa/pf_dir] objdiff: code 11428/18976 data 40/40 functions 34/38 fuzzy 99.2629 linked code 0 +[libs/RVL_SDK/src/fa/pf_dir] instruction-exact functions: 34/38 +[libs/RVL_SDK/src/fa/pf_dir] section .sdata size 32 match 100.0 +[libs/RVL_SDK/src/fa/pf_dir] section .sdata2 size 8 match 100.0 +[libs/RVL_SDK/src/fa/pf_dir] section .text size 18976 match 99.262856 +[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_GetSDD 99.710144 +[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_mkdir 99.64947 +[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_rename 97.808 +[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_move 96.97306 +[libs/RVL_SDK/src/fa/pf_dir] baseline: code 11428/18976 data 40 functions 34 fuzzy 99.2629 +regressions vs baseline: 0 +global matched_code_percent: 83.71820 -> 83.71820 +global fuzzy_match_percent: 97.60807 -> 97.60807 +global complete_code_percent: 58.20100 -> 58.20100 +global matched_data_percent: 90.15434 -> 90.15434 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + +### sol-high-round3-priority-gate.txt + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RevoEX/src/nwc24/NWC24Download] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24Download] objdiff: code 3640/12496 data 80/80 functions 17/30 fuzzy 97.2494 linked code 0 +[libs/RevoEX/src/nwc24/NWC24Download] instruction-exact functions: 17/30 +[libs/RevoEX/src/nwc24/NWC24Download] section .data size 56 match 100.0 +[libs/RevoEX/src/nwc24/NWC24Download] section .sbss size 8 match 100.0 +[libs/RevoEX/src/nwc24/NWC24Download] section .sdata size 16 match 100.0 +[libs/RevoEX/src/nwc24/NWC24Download] section .text size 12496 match 97.24936 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24InitDlTask 98.923615 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24SetDlInterval 99.89796 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTask 95.0 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTaskEx 98.034485 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24UpdateDlTask 94.17391 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24AddDlTask 97.552444 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24GetDlTask 99.728264 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24PurgeOldestDlTask 85.829544 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ManageDlTaskListForMenu 96.74342 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ExtendDlTaskList 99.85401 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCheckDlHeaderConsistency 98.77358 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCreateDlTaskList 99.62406 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: AddTaskInternal 93.57855 +[libs/RevoEX/src/nwc24/NWC24Download] baseline: code 3640/12496 data 80 functions 17 fuzzy 97.1469 +[src/keyboard/tiCellPhone] pool: IDENTICAL +[src/keyboard/tiCellPhone] objdiff: code 12824/19028 data 3860/3860 functions 83/86 fuzzy 99.7740 linked code 0 +[src/keyboard/tiCellPhone] instruction-exact functions: 83/86 +[src/keyboard/tiCellPhone] section .ctors size 4 match 100.0 +[src/keyboard/tiCellPhone] section .data size 2416 match 100.0 +[src/keyboard/tiCellPhone] section .rodata size 1320 match 100.0 +[src/keyboard/tiCellPhone] section .sdata size 112 match 100.0 +[src/keyboard/tiCellPhone] section .sdata2 size 8 match 100.0 +[src/keyboard/tiCellPhone] section .text size 19028 match 99.77402 +[src/keyboard/tiCellPhone] below 100: onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 99.67009 +[src/keyboard/tiCellPhone] below 100: create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 99.81982 +[src/keyboard/tiCellPhone] below 100: init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv 98.52612 +[src/keyboard/tiCellPhone] baseline: code 12824/19028 data 3860 functions 83 fuzzy 99.7740 +[libs/RVL_SDK/src/fa/pf_dir] pool: IDENTICAL +[libs/RVL_SDK/src/fa/pf_dir] objdiff: code 11428/18976 data 40/40 functions 34/38 fuzzy 99.3324 linked code 0 +[libs/RVL_SDK/src/fa/pf_dir] instruction-exact functions: 34/38 +[libs/RVL_SDK/src/fa/pf_dir] section .sdata size 32 match 100.0 +[libs/RVL_SDK/src/fa/pf_dir] section .sdata2 size 8 match 100.0 +[libs/RVL_SDK/src/fa/pf_dir] section .text size 18976 match 99.33242 +[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_GetSDD 99.710144 +[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_mkdir 99.64947 +[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_rename 98.336 +[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_move 96.97306 +[libs/RVL_SDK/src/fa/pf_dir] baseline: code 11428/18976 data 40 functions 34 fuzzy 99.2629 +regressions vs baseline: 0 +global matched_code_percent: 83.71820 -> 83.71820 +global fuzzy_match_percent: 97.60807 -> 97.60895 +global complete_code_percent: 58.20100 -> 58.20100 +global matched_data_percent: 90.15434 -> 90.15434 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + +### sol-high-round3-priority-improved-gate.txt + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RevoEX/src/nwc24/NWC24Download] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24Download] objdiff: code 3640/12496 data 80/80 functions 17/30 fuzzy 97.2494 linked code 0 +[libs/RevoEX/src/nwc24/NWC24Download] instruction-exact functions: 17/30 +[libs/RevoEX/src/nwc24/NWC24Download] section .data size 56 match 100.0 +[libs/RevoEX/src/nwc24/NWC24Download] section .sbss size 8 match 100.0 +[libs/RevoEX/src/nwc24/NWC24Download] section .sdata size 16 match 100.0 +[libs/RevoEX/src/nwc24/NWC24Download] section .text size 12496 match 97.24936 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24InitDlTask 98.923615 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24SetDlInterval 99.89796 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTask 95.0 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTaskEx 98.034485 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24UpdateDlTask 94.17391 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24AddDlTask 97.552444 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24GetDlTask 99.728264 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24PurgeOldestDlTask 85.829544 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ManageDlTaskListForMenu 96.74342 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ExtendDlTaskList 99.85401 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCheckDlHeaderConsistency 98.77358 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCreateDlTaskList 99.62406 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: AddTaskInternal 93.57855 +[libs/RevoEX/src/nwc24/NWC24Download] baseline: code 3640/12496 data 80 functions 17 fuzzy 97.1469 +[src/keyboard/tiCellPhone] pool: IDENTICAL +[src/keyboard/tiCellPhone] objdiff: code 12824/19028 data 3860/3860 functions 83/86 fuzzy 99.7740 linked code 0 +[src/keyboard/tiCellPhone] instruction-exact functions: 83/86 +[src/keyboard/tiCellPhone] section .ctors size 4 match 100.0 +[src/keyboard/tiCellPhone] section .data size 2416 match 100.0 +[src/keyboard/tiCellPhone] section .rodata size 1320 match 100.0 +[src/keyboard/tiCellPhone] section .sdata size 112 match 100.0 +[src/keyboard/tiCellPhone] section .sdata2 size 8 match 100.0 +[src/keyboard/tiCellPhone] section .text size 19028 match 99.77402 +[src/keyboard/tiCellPhone] below 100: onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 99.67009 +[src/keyboard/tiCellPhone] below 100: create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 99.81982 +[src/keyboard/tiCellPhone] below 100: init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv 98.52612 +[src/keyboard/tiCellPhone] baseline: code 12824/19028 data 3860 functions 83 fuzzy 99.7740 +[libs/RVL_SDK/src/fa/pf_dir] pool: IDENTICAL +[libs/RVL_SDK/src/fa/pf_dir] objdiff: code 11428/18976 data 40/40 functions 34/38 fuzzy 99.5369 linked code 0 +[libs/RVL_SDK/src/fa/pf_dir] instruction-exact functions: 34/38 +[libs/RVL_SDK/src/fa/pf_dir] section .sdata size 32 match 100.0 +[libs/RVL_SDK/src/fa/pf_dir] section .sdata2 size 8 match 100.0 +[libs/RVL_SDK/src/fa/pf_dir] section .text size 18976 match 99.53689 +[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_GetSDD 99.710144 +[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_mkdir 99.64947 +[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_rename 98.336 +[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_move 98.5103 +[libs/RVL_SDK/src/fa/pf_dir] baseline: code 11428/18976 data 40 functions 34 fuzzy 99.2629 +regressions vs baseline: 0 +global matched_code_percent: 83.71820 -> 83.71820 +global fuzzy_match_percent: 97.60807 -> 97.61025 +global complete_code_percent: 58.20100 -> 58.20100 +global matched_data_percent: 90.15434 -> 90.15434 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + +### sol-high-round3-mime-gate.txt + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RevoEX/src/nwc24/NWC24MsgCommit] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24MsgCommit] objdiff: code 3964/8532 data 72/904 functions 15/18 fuzzy 98.4426 linked code 0 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] instruction-exact functions: 15/18 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .bss size 64 match 100.0 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .data size 680 match None +[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .sbss size 8 match 100.0 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .sdata size 152 match 18.765432 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .text size 8532 match 98.442566 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: NWC24CommitMsgInternal 99.91536 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: CheckMsgBoxSpace 85.57399 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: WriteMIMEAttachHeader 99.61957 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] baseline: code 3964/8532 data 72 functions 15 fuzzy 98.4332 +[libs/RevoEX/src/nwc24/NWC24Mime] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24Mime] objdiff: code 2784/6124 data 88/88 functions 10/16 fuzzy 92.0150 linked code 0 +[libs/RevoEX/src/nwc24/NWC24Mime] instruction-exact functions: 10/16 +[libs/RevoEX/src/nwc24/NWC24Mime] section .data size 72 match 100.0 +[libs/RevoEX/src/nwc24/NWC24Mime] section .sdata size 16 match 100.0 +[libs/RevoEX/src/nwc24/NWC24Mime] section .text size 6124 match 92.01502 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: QDecode 94.130135 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: EncodeWord 71.681816 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: DecodeWord 79.66111 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: NWC24DecodeMIMEHeaderFieldBody 92.5 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: ExtractCharset 92.38095 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: ExtractEncodedText 94.296295 +[libs/RevoEX/src/nwc24/NWC24Mime] baseline: code 2492/6124 data 88 functions 9 fuzzy 90.2436 +regressions vs baseline: 0 +global matched_code_percent: 83.71820 -> 83.72794 +global fuzzy_match_percent: 97.60807 -> 97.61391 +global complete_code_percent: 58.20100 -> 58.20100 +global matched_data_percent: 90.15434 -> 90.15434 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + +### sol-high-round3-extras-gate.txt + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RevoEX/src/nwc24/NWC24MsgCommit] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24MsgCommit] objdiff: code 3964/8532 data 72/904 functions 15/18 fuzzy 98.4426 linked code 0 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] instruction-exact functions: 15/18 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .bss size 64 match 100.0 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .data size 680 match None +[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .sbss size 8 match 100.0 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .sdata size 152 match 18.765432 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .text size 8532 match 98.442566 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: NWC24CommitMsgInternal 99.91536 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: CheckMsgBoxSpace 85.57399 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: WriteMIMEAttachHeader 99.61957 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] baseline: code 3964/8532 data 72 functions 15 fuzzy 98.4332 +[libs/RevoEX/src/nwc24/NWC24Mime] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24Mime] objdiff: code 2784/6124 data 88/88 functions 10/16 fuzzy 92.0150 linked code 0 +[libs/RevoEX/src/nwc24/NWC24Mime] instruction-exact functions: 10/16 +[libs/RevoEX/src/nwc24/NWC24Mime] section .data size 72 match 100.0 +[libs/RevoEX/src/nwc24/NWC24Mime] section .sdata size 16 match 100.0 +[libs/RevoEX/src/nwc24/NWC24Mime] section .text size 6124 match 92.01502 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: QDecode 94.130135 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: EncodeWord 71.681816 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: DecodeWord 79.66111 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: NWC24DecodeMIMEHeaderFieldBody 92.5 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: ExtractCharset 92.38095 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: ExtractEncodedText 94.296295 +[libs/RevoEX/src/nwc24/NWC24Mime] baseline: code 2492/6124 data 88 functions 9 fuzzy 90.2436 +[libs/RevoEX/src/nwc24/NWC24MsgSubject] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24MsgSubject] objdiff: code 2776/5352 data 232/232 functions 7/12 fuzzy 98.5874 linked code 0 +[libs/RevoEX/src/nwc24/NWC24MsgSubject] instruction-exact functions: 7/12 +[libs/RevoEX/src/nwc24/NWC24MsgSubject] section .data size 184 match 100.0 +[libs/RevoEX/src/nwc24/NWC24MsgSubject] section .sdata size 48 match 100.0 +[libs/RevoEX/src/nwc24/NWC24MsgSubject] section .text size 5352 match 98.58744 +[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24ReadMsgSubjectPublic 96.15385 +[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24ReadMsgTextPublic 97.14286 +[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24SetMsgSubjectAndTextPublic 98.23684 +[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24iSetMsgSubjectQP 99.548615 +[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24iSetMsgSubjectBase64 93.45588 +[libs/RevoEX/src/nwc24/NWC24MsgSubject] baseline: code 2776/5352 data 232 functions 7 fuzzy 97.4178 +[libs/RevoEX/src/nwc24/NWC24MsgRead] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24MsgRead] objdiff: code 2480/4660 data 128/128 functions 11/16 fuzzy 98.4764 linked code 0 +[libs/RevoEX/src/nwc24/NWC24MsgRead] instruction-exact functions: 11/16 +[libs/RevoEX/src/nwc24/NWC24MsgRead] section .data size 128 match 100.0 +[libs/RevoEX/src/nwc24/NWC24MsgRead] section .text size 4660 match 98.476395 +[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: NWC24ReadMsgField 98.92157 +[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: NWC24ReadMsgFromAddr 98.804344 +[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: NWC24ReadMsgSubject 98.65854 +[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: ReadMsgTextInternal 93.735954 +[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: NWC24ReadMsgAttached 96.37363 +[libs/RevoEX/src/nwc24/NWC24MsgRead] baseline: code 2480/4660 data 128 functions 11 fuzzy 98.4506 +regressions vs baseline: 0 +global matched_code_percent: 83.71820 -> 83.72794 +global fuzzy_match_percent: 97.60807 -> 97.61602 +global complete_code_percent: 58.20100 -> 58.20100 +global matched_data_percent: 90.15434 -> 90.15434 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + +### sol-high-round3-encode-gate.txt + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RevoEX/src/nwc24/NWC24Mime] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24Mime] objdiff: code 3576/6124 data 88/88 functions 11/16 fuzzy 95.6773 linked code 0 +[libs/RevoEX/src/nwc24/NWC24Mime] instruction-exact functions: 11/16 +[libs/RevoEX/src/nwc24/NWC24Mime] section .data size 72 match 100.0 +[libs/RevoEX/src/nwc24/NWC24Mime] section .sdata size 16 match 100.0 +[libs/RevoEX/src/nwc24/NWC24Mime] section .text size 6124 match 95.67734 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: QDecode 94.130135 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: DecodeWord 79.66111 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: NWC24DecodeMIMEHeaderFieldBody 92.5 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: ExtractCharset 92.38095 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: ExtractEncodedText 94.296295 +[libs/RevoEX/src/nwc24/NWC24Mime] baseline: code 2492/6124 data 88 functions 9 fuzzy 90.2436 +regressions vs baseline: 0 +global matched_code_percent: 83.71820 -> 83.75439 +global fuzzy_match_percent: 97.60807 -> 97.62350 +global complete_code_percent: 58.20100 -> 58.20100 +global matched_data_percent: 90.15434 -> 90.15434 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + +### sol-high-round3-decode-gate.txt + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RevoEX/src/nwc24/NWC24Mime] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24Mime] objdiff: code 3576/6124 data 88/88 functions 11/16 fuzzy 98.8230 linked code 0 +[libs/RevoEX/src/nwc24/NWC24Mime] instruction-exact functions: 11/16 +[libs/RevoEX/src/nwc24/NWC24Mime] section .data size 72 match 100.0 +[libs/RevoEX/src/nwc24/NWC24Mime] section .sdata size 16 match 100.0 +[libs/RevoEX/src/nwc24/NWC24Mime] section .text size 6124 match 98.82299 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: QDecode 94.130135 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: DecodeWord 97.69444 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: NWC24DecodeMIMEHeaderFieldBody 99.45652 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: ExtractCharset 97.2619 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: ExtractEncodedText 98.14815 +[libs/RevoEX/src/nwc24/NWC24Mime] baseline: code 2492/6124 data 88 functions 9 fuzzy 90.2436 +regressions vs baseline: 0 +global matched_code_percent: 83.71820 -> 83.75439 +global fuzzy_match_percent: 97.60807 -> 97.62993 +global complete_code_percent: 58.20100 -> 58.20100 +global matched_data_percent: 90.15434 -> 90.15434 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + +### sol-high-round3-final-gate.txt + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RevoEX/src/nwc24/NWC24Download] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24Download] objdiff: code 3640/12496 data 80/80 functions 17/30 fuzzy 97.2494 linked code 0 +[libs/RevoEX/src/nwc24/NWC24Download] instruction-exact functions: 17/30 +[libs/RevoEX/src/nwc24/NWC24Download] section .data size 56 match 100.0 +[libs/RevoEX/src/nwc24/NWC24Download] section .sbss size 8 match 100.0 +[libs/RevoEX/src/nwc24/NWC24Download] section .sdata size 16 match 100.0 +[libs/RevoEX/src/nwc24/NWC24Download] section .text size 12496 match 97.24936 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24InitDlTask 98.923615 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24SetDlInterval 99.89796 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTask 95.0 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTaskEx 98.034485 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24UpdateDlTask 94.17391 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24AddDlTask 97.552444 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24GetDlTask 99.728264 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24PurgeOldestDlTask 85.829544 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ManageDlTaskListForMenu 96.74342 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ExtendDlTaskList 99.85401 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCheckDlHeaderConsistency 98.77358 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCreateDlTaskList 99.62406 +[libs/RevoEX/src/nwc24/NWC24Download] below 100: AddTaskInternal 93.57855 +[libs/RevoEX/src/nwc24/NWC24Download] baseline: code 3640/12496 data 80 functions 17 fuzzy 97.1469 +[src/keyboard/tiCellPhone] pool: IDENTICAL +[src/keyboard/tiCellPhone] objdiff: code 12824/19028 data 3860/3860 functions 83/86 fuzzy 99.7740 linked code 0 +[src/keyboard/tiCellPhone] instruction-exact functions: 83/86 +[src/keyboard/tiCellPhone] section .ctors size 4 match 100.0 +[src/keyboard/tiCellPhone] section .data size 2416 match 100.0 +[src/keyboard/tiCellPhone] section .rodata size 1320 match 100.0 +[src/keyboard/tiCellPhone] section .sdata size 112 match 100.0 +[src/keyboard/tiCellPhone] section .sdata2 size 8 match 100.0 +[src/keyboard/tiCellPhone] section .text size 19028 match 99.77402 +[src/keyboard/tiCellPhone] below 100: onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 99.67009 +[src/keyboard/tiCellPhone] below 100: create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 99.81982 +[src/keyboard/tiCellPhone] below 100: init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv 98.52612 +[src/keyboard/tiCellPhone] baseline: code 12824/19028 data 3860 functions 83 fuzzy 99.7740 +[libs/RVL_SDK/src/fa/pf_dir] pool: IDENTICAL +[libs/RVL_SDK/src/fa/pf_dir] objdiff: code 11428/18976 data 40/40 functions 34/38 fuzzy 99.5369 linked code 0 +[libs/RVL_SDK/src/fa/pf_dir] instruction-exact functions: 34/38 +[libs/RVL_SDK/src/fa/pf_dir] section .sdata size 32 match 100.0 +[libs/RVL_SDK/src/fa/pf_dir] section .sdata2 size 8 match 100.0 +[libs/RVL_SDK/src/fa/pf_dir] section .text size 18976 match 99.53689 +[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_GetSDD 99.710144 +[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_mkdir 99.64947 +[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_rename 98.336 +[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_move 98.5103 +[libs/RVL_SDK/src/fa/pf_dir] baseline: code 11428/18976 data 40 functions 34 fuzzy 99.2629 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24MsgCommit] objdiff: code 3964/8532 data 72/904 functions 15/18 fuzzy 98.4426 linked code 0 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] instruction-exact functions: 15/18 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .bss size 64 match 100.0 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .data size 680 match None +[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .sbss size 8 match 100.0 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .sdata size 152 match 18.765432 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .text size 8532 match 98.442566 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: NWC24CommitMsgInternal 99.91536 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: CheckMsgBoxSpace 85.57399 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: WriteMIMEAttachHeader 99.61957 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] baseline: code 3964/8532 data 72 functions 15 fuzzy 98.4332 +[libs/RevoEX/src/nwc24/NWC24Mime] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24Mime] objdiff: code 3576/6124 data 88/88 functions 11/16 fuzzy 98.8230 linked code 0 +[libs/RevoEX/src/nwc24/NWC24Mime] instruction-exact functions: 11/16 +[libs/RevoEX/src/nwc24/NWC24Mime] section .data size 72 match 100.0 +[libs/RevoEX/src/nwc24/NWC24Mime] section .sdata size 16 match 100.0 +[libs/RevoEX/src/nwc24/NWC24Mime] section .text size 6124 match 98.82299 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: QDecode 94.130135 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: DecodeWord 97.69444 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: NWC24DecodeMIMEHeaderFieldBody 99.45652 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: ExtractCharset 97.2619 +[libs/RevoEX/src/nwc24/NWC24Mime] below 100: ExtractEncodedText 98.14815 +[libs/RevoEX/src/nwc24/NWC24Mime] baseline: code 2492/6124 data 88 functions 9 fuzzy 90.2436 +[libs/RevoEX/src/nwc24/NWC24MsgSubject] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24MsgSubject] objdiff: code 2776/5352 data 232/232 functions 7/12 fuzzy 98.5874 linked code 0 +[libs/RevoEX/src/nwc24/NWC24MsgSubject] instruction-exact functions: 7/12 +[libs/RevoEX/src/nwc24/NWC24MsgSubject] section .data size 184 match 100.0 +[libs/RevoEX/src/nwc24/NWC24MsgSubject] section .sdata size 48 match 100.0 +[libs/RevoEX/src/nwc24/NWC24MsgSubject] section .text size 5352 match 98.58744 +[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24ReadMsgSubjectPublic 96.15385 +[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24ReadMsgTextPublic 97.14286 +[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24SetMsgSubjectAndTextPublic 98.23684 +[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24iSetMsgSubjectQP 99.548615 +[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24iSetMsgSubjectBase64 93.45588 +[libs/RevoEX/src/nwc24/NWC24MsgSubject] baseline: code 2776/5352 data 232 functions 7 fuzzy 97.4178 +[libs/RevoEX/src/nwc24/NWC24MsgRead] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24MsgRead] objdiff: code 2480/4660 data 128/128 functions 11/16 fuzzy 98.4764 linked code 0 +[libs/RevoEX/src/nwc24/NWC24MsgRead] instruction-exact functions: 11/16 +[libs/RevoEX/src/nwc24/NWC24MsgRead] section .data size 128 match 100.0 +[libs/RevoEX/src/nwc24/NWC24MsgRead] section .text size 4660 match 98.476395 +[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: NWC24ReadMsgField 98.92157 +[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: NWC24ReadMsgFromAddr 98.804344 +[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: NWC24ReadMsgSubject 98.65854 +[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: ReadMsgTextInternal 93.735954 +[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: NWC24ReadMsgAttached 96.37363 +[libs/RevoEX/src/nwc24/NWC24MsgRead] baseline: code 2480/4660 data 128 functions 11 fuzzy 98.4506 +regressions vs baseline: 0 +global matched_code_percent: 83.71820 -> 83.75439 +global fuzzy_match_percent: 97.60807 -> 97.62993 +global complete_code_percent: 58.20100 -> 58.20100 +global matched_data_percent: 90.15434 -> 90.15434 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + -- 2.49.1