Compare commits
6 Commits
agent/grok
...
agent/w100
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
14b921b3d8 | ||
|
|
ac32139715 | ||
|
|
805e84045c | ||
|
|
26d7e1e052 | ||
|
|
d78210528f | ||
|
|
e3457d11a2 |
@@ -53,9 +53,9 @@ Progress
|
||||
<!-- progress:start -->
|
||||
| Decompiled | Matched | Linked | Data |
|
||||
|:---:|:---:|:---:|:---:|
|
||||
| 99.59% | 90.94% | 73.73% | 99.42% |
|
||||
| 99.59% | 91.06% | 74.02% | 99.42% |
|
||||
|
||||
units 961/1027 complete, functions 12369/12563 matched.
|
||||
units 962/1027 complete, functions 12374/12563 matched.
|
||||
|
||||
decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data
|
||||
<!-- progress:end -->
|
||||
|
||||
@@ -1970,7 +1970,7 @@ config.libs = [
|
||||
Object(Matching, "MSL_Common/time.c", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(Matching, "MSL_Common/wctype.c"),
|
||||
Object(Matching, "MSL_Common/wmem.c"),
|
||||
Object(NonMatching, "MSL_Common/wprintf.c", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(Matching, "MSL_Common/wprintf.c", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(Matching, "MSL_Common/wstring.c"),
|
||||
Object(Matching, "MSL_Common/wchar_io.c"),
|
||||
Object(Matching, "PPC_EABI/time.dolphin.c"),
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace ipl {
|
||||
static BOOL IsLastTicketExpired(ESTitleId* titleId);
|
||||
static void DeleteExpiredFlagFile();
|
||||
|
||||
static void DeleteUnauthorizedData(EGG::Heap* heap);
|
||||
static s32 DeleteUnauthorizedData(EGG::Heap* heap);
|
||||
|
||||
static u32 CheckTmdCountryCode(ESTmdView* tmdView);
|
||||
static u32 CheckTmdParentalControl(ESTmdView* tmdView);
|
||||
|
||||
@@ -1120,32 +1120,28 @@ static int __wpformatter(void* (*write_proc)(void*, const wchar_t*, size_t),
|
||||
case 's':
|
||||
if (format.argument_options == wchar_argument) {
|
||||
wchar_t* wcs_ptr = va_arg(args, wchar_t*);
|
||||
int wideLength;
|
||||
|
||||
if (wcs_ptr == NULL) {
|
||||
wcs_ptr = L"";
|
||||
}
|
||||
|
||||
if (format.alternate_form) {
|
||||
wchar_t first = *wcs_ptr++;
|
||||
wideLength = (unsigned char)first;
|
||||
num_chars = (unsigned char)*wcs_ptr++;
|
||||
|
||||
if (format.precision_specified && wideLength > format.precision) {
|
||||
wideLength = format.precision;
|
||||
if (format.precision_specified && num_chars > format.precision) {
|
||||
num_chars = format.precision;
|
||||
}
|
||||
} else if (format.precision_specified) {
|
||||
wideLength = format.precision;
|
||||
num_chars = format.precision;
|
||||
|
||||
if ((string_end = wmemchr((wchar_t*)wcs_ptr, 0, wideLength)) != 0) {
|
||||
wideLength = string_end - wcs_ptr;
|
||||
if ((string_end = wmemchr(wcs_ptr, 0, num_chars)) != 0) {
|
||||
num_chars = string_end - wcs_ptr;
|
||||
}
|
||||
|
||||
} else {
|
||||
wideLength = wcslen(wcs_ptr);
|
||||
num_chars = wcslen(wcs_ptr);
|
||||
}
|
||||
|
||||
num_chars = wideLength;
|
||||
|
||||
buff_ptr = wcs_ptr;
|
||||
break;
|
||||
} else {
|
||||
@@ -1156,7 +1152,7 @@ static int __wpformatter(void* (*write_proc)(void*, const wchar_t*, size_t),
|
||||
}
|
||||
|
||||
if (format.alternate_form) {
|
||||
num_chars = (unsigned char)*(const wchar_t*)wcs_ptr;
|
||||
num_chars = (unsigned char)*buff_ptr;
|
||||
|
||||
if (format.precision_specified && num_chars > format.precision) {
|
||||
num_chars = format.precision;
|
||||
|
||||
@@ -353,16 +353,19 @@ static void reset_kpad(KPADInside* kpad) {
|
||||
}
|
||||
|
||||
void KPADGetProjectionPos(Vec2* dest, Vec2* src, const Rect* rect, f32 scale) {
|
||||
f64 scaled;
|
||||
f32 height = rect->bottom - rect->top;
|
||||
f32 halfHeight = height * 0.5f;
|
||||
f32 x = src->x * halfHeight;
|
||||
f32 y = src->y * halfHeight;
|
||||
x *= 1.2f;
|
||||
y *= 1.2f;
|
||||
scaled = 0.908 * scale;
|
||||
dest->y = y;
|
||||
dest->x = (f32)(x * scaled);
|
||||
f32 aspect;
|
||||
f32 halfHeight;
|
||||
f32 half;
|
||||
f32 x;
|
||||
f32 height;
|
||||
height = rect->bottom - rect->top;
|
||||
half = 0.5f;
|
||||
halfHeight = height * half;
|
||||
x = src->x * halfHeight;
|
||||
aspect = 1.2f;
|
||||
x = aspect * x;
|
||||
dest->y = aspect * (src->y * halfHeight);
|
||||
dest->x = (f32)(x * (0.908 * scale));
|
||||
}
|
||||
|
||||
void KPADSetSensorHeight(s32 chan, f32 sensorHeight) {
|
||||
@@ -465,29 +468,24 @@ static void calc_button_repeat(KPADInside* kpad, u8 extension, s32 elapsed) {
|
||||
}
|
||||
|
||||
static void calc_acc_horizon(KPADInside* kpad) {
|
||||
f32 magnitude = (f32)sqrt(kpad->acceleration.x * kpad->acceleration.x + kpad->acceleration.y * kpad->acceleration.y);
|
||||
f32 magnitude;
|
||||
f32 normalizedX;
|
||||
f32 normalizedY;
|
||||
f32 targetY;
|
||||
f32 targetX;
|
||||
f32 productX;
|
||||
f32 oldX;
|
||||
f32 oldY;
|
||||
f32 blend;
|
||||
f32 projectedX;
|
||||
f32 smoothing;
|
||||
f32 deltaX;
|
||||
f32 nextX;
|
||||
f32 nextY;
|
||||
f32 normalized;
|
||||
f32 unitX;
|
||||
f32 oldCircleX;
|
||||
f32 oldCircleY;
|
||||
f32 unitY;
|
||||
f32 circleX;
|
||||
f32 oldCircleX;
|
||||
f32 unitY;
|
||||
f32 unitX;
|
||||
f32 deltaCircleX;
|
||||
f32 circleY;
|
||||
f32 deltaCircleY;
|
||||
magnitude = (f32)sqrt(kpad->acceleration.x * kpad->acceleration.x + kpad->acceleration.y * kpad->acceleration.y);
|
||||
if (magnitude == 0.0f || magnitude >= 2.0f) {
|
||||
return;
|
||||
}
|
||||
@@ -497,17 +495,12 @@ static void calc_acc_horizon(KPADInside* kpad) {
|
||||
if (magnitude > 1.0f) {
|
||||
magnitude = 2.0f - magnitude;
|
||||
}
|
||||
targetY = kpad->accelNormal.y;
|
||||
targetX = kpad->accelNormal.x;
|
||||
productX = targetX * normalizedX;
|
||||
oldX = kpad->horizonAxis.x;
|
||||
oldY = kpad->horizonAxis.y;
|
||||
blend = magnitude * kp_acc_horizon_pw;
|
||||
projectedX = productX + targetY * normalizedY;
|
||||
smoothing = magnitude * blend;
|
||||
deltaX = smoothing * (projectedX - oldX);
|
||||
nextX = oldX + deltaX;
|
||||
nextY = oldY + smoothing * (((targetY * normalizedX) - (targetX * normalizedY)) - oldY);
|
||||
projectedX = kpad->accelNormal.x * normalizedX + kpad->accelNormal.y * normalizedY;
|
||||
magnitude *= blend;
|
||||
deltaX = magnitude * (projectedX - kpad->horizonAxis.x);
|
||||
nextX = kpad->horizonAxis.x + deltaX;
|
||||
nextY = kpad->horizonAxis.y + magnitude * (((kpad->accelNormal.y * normalizedX) - (kpad->accelNormal.x * normalizedY)) - kpad->horizonAxis.y);
|
||||
normalized = (f32)sqrt(nextX * nextX + nextY * nextY);
|
||||
if (normalized != 0.0f) {
|
||||
unitX = nextX / normalized;
|
||||
@@ -788,24 +781,18 @@ nextObject:
|
||||
|
||||
static s8 select_1obj_first(KPADInside* kpad) {
|
||||
KPADDPDObject* object = kpad->dpdState.objects;
|
||||
KPADDPDObject* end = kpad->dpdState.candidates;
|
||||
f32 scale = kpad->dpdObjectScale;
|
||||
f32 productX = kpad->horizonTangent.x * kpad->horizonAxis.x;
|
||||
f32 productY = kpad->horizonTangent.y * kpad->horizonAxis.x;
|
||||
f32 offsetX = productX + kpad->horizonTangent.y * kpad->horizonAxis.y;
|
||||
f32 offsetY = productY - kpad->horizonTangent.x * kpad->horizonAxis.y;
|
||||
offsetX *= scale;
|
||||
offsetY *= scale;
|
||||
f32 offsetX = kpad->horizonTangent.x * kpad->horizonAxis.x + kpad->horizonTangent.y * kpad->horizonAxis.y;
|
||||
f32 offsetY = kpad->horizonTangent.y * kpad->horizonAxis.x - kpad->horizonTangent.x * kpad->horizonAxis.y;
|
||||
offsetX *= kpad->dpdObjectScale;
|
||||
offsetY *= kpad->dpdObjectScale;
|
||||
do {
|
||||
if ((s8)object->metadata.bytes.flags == 0) {
|
||||
f32 x = object->x;
|
||||
f32 y = object->y;
|
||||
Vec2 leftPosition;
|
||||
Vec2 rightPosition;
|
||||
leftPosition.x = x - offsetX;
|
||||
leftPosition.y = y - offsetY;
|
||||
rightPosition.x = x + offsetX;
|
||||
rightPosition.y = y + offsetY;
|
||||
leftPosition.x = object->x - offsetX;
|
||||
leftPosition.y = object->y - offsetY;
|
||||
rightPosition.x = object->x + offsetX;
|
||||
rightPosition.y = object->y + offsetY;
|
||||
if (leftPosition.x <= kpad->value4F4 || leftPosition.x >= kpad->value4FC || leftPosition.y <= kpad->value4F8 || leftPosition.y >= kpad->value500) {
|
||||
if (rightPosition.x > kpad->value4F4 && rightPosition.x < kpad->value4FC && rightPosition.y > kpad->value4F8 && rightPosition.y < kpad->value500) {
|
||||
kpad->dpdState.candidates[1] = *object;
|
||||
@@ -822,7 +809,7 @@ static s8 select_1obj_first(KPADInside* kpad) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
} while (++object < end);
|
||||
} while (++object < kpad->dpdState.candidates);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -548,7 +548,7 @@ NWC24Err NWC24DumpDlTask(NWC24DlTask* dlTask) {
|
||||
|
||||
NWC24Err NWC24IterateDlTask(NWC24DlId* dlIterateId, BOOL begin) {
|
||||
DlTaskListHeader* entriesHeader;
|
||||
NWC24Work* work;
|
||||
const NWC24Work* work;
|
||||
u16 taskId;
|
||||
u16 maxTaskCount;
|
||||
DlTaskListHeader* header;
|
||||
|
||||
@@ -850,14 +850,13 @@ iconSpeedDone:
|
||||
} else if (totalImageSize > 0) {
|
||||
result = CARDRead(&local.fileInfo, sThread->imageReadBuffer,
|
||||
transferSize, iconAddressBase);
|
||||
if (result < 0) {
|
||||
goto closeFile;
|
||||
if (result >= 0) {
|
||||
memcpy(sThread->images[slot][fileNo],
|
||||
(u8*)sThread->imageReadBuffer + iconAddressOffset,
|
||||
totalImageSize);
|
||||
DCStoreRange(sThread->images[slot][fileNo], transferSize);
|
||||
result = 0;
|
||||
}
|
||||
memcpy(sThread->images[slot][fileNo],
|
||||
(u8*)sThread->imageReadBuffer + iconAddressOffset,
|
||||
totalImageSize);
|
||||
DCStoreRange(sThread->images[slot][fileNo], transferSize);
|
||||
result = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -884,7 +884,7 @@ namespace ipl {
|
||||
return ret;
|
||||
}
|
||||
|
||||
void ESMisc::DeleteUnauthorizedData(EGG::Heap* heap) {
|
||||
s32 ESMisc::DeleteUnauthorizedData(EGG::Heap* heap) {
|
||||
u32 titleCount = 0;
|
||||
ESTitleId* titleIds = NULL;
|
||||
char path[88];
|
||||
@@ -892,36 +892,40 @@ namespace ipl {
|
||||
u8 ticketViews[0xe0] ALIGN32;
|
||||
u32 ticketViewCount;
|
||||
ESTicketView* ticketViewList;
|
||||
s32 ret = ES_ListTitlesOnCard(NULL, &titleCount);
|
||||
s32 result = ES_ListTitlesOnCard(NULL, &titleCount);
|
||||
|
||||
if (ret == ES_ERR_OK) {
|
||||
if (result != ES_ERR_OK) {
|
||||
OSReport("%s::%s: Failed to ES_ListTitlesOnCard1: %d\n", __FILE__, "InitSavedata", result);
|
||||
} else {
|
||||
titleIds = (ESTitleId*)heap->alloc(OSRoundUp32B(titleCount * sizeof(ESTitleId)), -DEFAULT_ALIGN);
|
||||
if (titleIds == NULL) {
|
||||
OSReport("%s::%s: Unable to allocate\n", __FILE__, "InitSavedata");
|
||||
} else {
|
||||
ret = ES_ListTitlesOnCard(titleIds, &titleCount);
|
||||
if (ret == ES_ERR_OK) {
|
||||
result = ES_ListTitlesOnCard(titleIds, &titleCount);
|
||||
if (result != ES_ERR_OK) {
|
||||
OSReport("%s::%s: Failed to ES_ListTitlesOnCard2: %d\n", __FILE__, "InitSavedata", result);
|
||||
} else {
|
||||
|
||||
u32 titleIdOffset = 0;
|
||||
for (u32 i = 0; i < titleCount; i++) {
|
||||
u32 titleIdHi = *(u32*)((u8*)titleIds + titleIdOffset);
|
||||
u32 titleIdLo = *(u32*)((u8*)titleIds + titleIdOffset + 4);
|
||||
ESTitleId titleId = titleIds[i];
|
||||
u32 titleIdHi = (u32)(titleId >> 32);
|
||||
u32 titleIdLo = (u32)titleId;
|
||||
|
||||
if ((titleIdLo & 0xffffff00) == 0x525a4400 && titleIdHi == 0x10000) {
|
||||
if (((((ESTitleId)titleIdHi << 32) | titleIdLo) & ~0xFFULL) == 0x00010000525a4400ULL) {
|
||||
u8* saveData = NULL;
|
||||
BOOL fileOpen = FALSE;
|
||||
BOOL deleteSaveData = FALSE;
|
||||
|
||||
sprintf(path - 8, "/title/%08x/%08x/data/%s", titleIdHi & 0xffffff, titleIdLo, "zeldaTp.dat");
|
||||
sprintf(path, "/title/%08x/%08x/data/%s", (u32)((titleId >> 32) & 0xffffffULL), (u32)(titleId & 0xffffffffULL), "zeldaTp.dat");
|
||||
if (!ChangeUid(((ESTitleId)titleIdHi << 32) | titleIdLo)) {
|
||||
OSReport("%s::%s: ChangeUid failed\n", __FILE__, "verifySavedataZD");
|
||||
DeleteTitle(heap, ((ESTitleId)titleIdHi << 32) | titleIdLo);
|
||||
} else {
|
||||
ret = NANDPrivateOpen(path - 8, (NANDFileInfo*)((u8*)&fileInfo - 0x20), NAND_ACCESS_READ);
|
||||
if (ret == NAND_RESULT_NOEXISTS) {
|
||||
OSReport("%s::%s: Does not exist %s: %d\n", __FILE__, "verifySavedataZD", path - 8, ret);
|
||||
} else if (ret != NAND_RESULT_OK) {
|
||||
OSReport("%s::%s: Open save data file failed: %d\n", __FILE__, "verifySavedataZD", ret);
|
||||
result = NANDPrivateOpen(path, &fileInfo, NAND_ACCESS_READ);
|
||||
if (result == NAND_RESULT_NOEXISTS) {
|
||||
OSReport("%s::%s: Does not exist %s: %d\n", __FILE__, "verifySavedataZD", path, result);
|
||||
} else if (result != NAND_RESULT_OK) {
|
||||
OSReport("%s::%s: Open save data file failed: %d\n", __FILE__, "verifySavedataZD", result);
|
||||
} else {
|
||||
fileOpen = TRUE;
|
||||
saveData = (u8*)heap->alloc(0x4000, -DEFAULT_ALIGN);
|
||||
@@ -929,11 +933,11 @@ namespace ipl {
|
||||
OSReport("%s::%s: Alloc failed: %d\n", __FILE__, "verifySavedataZD", -2);
|
||||
} else {
|
||||
memset(saveData, 0, 0x4000);
|
||||
ret = NANDRead((NANDFileInfo*)((u8*)&fileInfo - 0x20), saveData, 0x4000);
|
||||
if (ret < 0) {
|
||||
OSReport("%s::%s: Read file failed: %d\n", __FILE__, "verifySavedataZD", ret);
|
||||
} else if (ret != 0x4000) {
|
||||
OSReport("%s::%s: File size is not correct: %d\n", __FILE__, "verifySavedataZD", ret);
|
||||
result = NANDRead(&fileInfo, saveData, 0x4000);
|
||||
if (result < 0) {
|
||||
OSReport("%s::%s: Read file failed: %d\n", __FILE__, "verifySavedataZD", result);
|
||||
} else if (result != 0x4000) {
|
||||
OSReport("%s::%s: File size is not correct: %d\n", __FILE__, "verifySavedataZD", result);
|
||||
deleteSaveData = TRUE;
|
||||
} else {
|
||||
u32 offset = 8;
|
||||
@@ -979,7 +983,7 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
NANDClose((NANDFileInfo*)((u8*)&fileInfo - 0x20));
|
||||
NANDClose(&fileInfo);
|
||||
fileOpen = FALSE;
|
||||
if (deleteSaveData) {
|
||||
DeleteSavedata(((ESTitleId)titleIdHi << 32) | titleIdLo, heap);
|
||||
@@ -992,40 +996,54 @@ namespace ipl {
|
||||
heap->free(saveData);
|
||||
}
|
||||
if (fileOpen) {
|
||||
NANDClose((NANDFileInfo*)((u8*)&fileInfo - 0x20));
|
||||
NANDClose(&fileInfo);
|
||||
}
|
||||
ChangeUid(SYSMENU_TITLE_ID);
|
||||
continue;
|
||||
}
|
||||
if ((((ESTitleId)titleIdHi << 32) | titleIdLo) == 0x0001000844495343ULL ||
|
||||
((((ESTitleId)titleIdHi << 32) | titleIdLo) < 0x0001000844495343ULL &&
|
||||
((((ESTitleId)titleIdHi << 32) | titleIdLo) == 0x000100014a4f4449ULL ||
|
||||
((((ESTitleId)titleIdHi << 32) | titleIdLo) > 0x000100014a4f4449ULL &&
|
||||
(((ESTitleId)titleIdHi << 32) | titleIdLo) == 0x0001000148415858ULL))) ||
|
||||
((((ESTitleId)titleIdHi << 32) | titleIdLo) > 0x0001000844495343ULL &&
|
||||
((((ESTitleId)titleIdHi << 32) | titleIdLo) == 0x0001000844564458ULL ||
|
||||
((((ESTitleId)titleIdHi << 32) | titleIdLo) > 0x0001000844564458ULL &&
|
||||
(((ESTitleId)titleIdHi << 32) | titleIdLo) == 0x000100084449534bULL)))) {
|
||||
ESTitleId titleId = *(ESTitleId*)((u8*)titleIds + titleIdOffset);
|
||||
ES_DeleteTitle(titleId);
|
||||
if (titleId == 0x0001000844495343ULL) {
|
||||
goto delete_title;
|
||||
}
|
||||
if (titleId < 0x0001000844495343ULL) {
|
||||
if (titleId == 0x000100014a4f4449ULL) {
|
||||
goto delete_title;
|
||||
}
|
||||
if (titleId > 0x000100014a4f4449ULL && titleId == 0x0001000148415858ULL) {
|
||||
goto delete_title;
|
||||
}
|
||||
goto next_title;
|
||||
}
|
||||
if (titleId == 0x0001000844564458ULL) {
|
||||
goto delete_title;
|
||||
}
|
||||
if (titleId > 0x0001000844564458ULL && titleId == 0x000100084449534bULL) {
|
||||
goto delete_title;
|
||||
}
|
||||
goto next_title;
|
||||
|
||||
delete_title:
|
||||
{
|
||||
ES_DeleteTitle(titleIds[i]);
|
||||
ESTitleId titleId = titleIds[i];
|
||||
|
||||
ticketViewList = NULL;
|
||||
memset(ticketViews, 0, sizeof(ticketViews));
|
||||
ret = ES_GetTicketViews(titleId, NULL, &ticketViewCount);
|
||||
if (ret != ES_ERR_OK) {
|
||||
OSReport("%s::%s: ES_GetTicketViews failed: %d for %016llx\n", __FILE__, "DeleteTicketsForce", ret, titleId);
|
||||
ESTicketView* pTicketView = (ESTicketView*)ticketViews;
|
||||
memset(pTicketView, 0, sizeof(ticketViews));
|
||||
result = ES_GetTicketViews(titleId, NULL, &ticketViewCount);
|
||||
if (result != ES_ERR_OK) {
|
||||
OSReport("%s::%s: ES_GetTicketViews failed: %d for %016llx\n", __FILE__, "DeleteTicketsForce", result, titleId);
|
||||
} else if (ticketViewCount != 0) {
|
||||
ticketViewList = (ESTicketView*)heap->alloc(ticketViewCount * 0xe0, -DEFAULT_ALIGN);
|
||||
ret = ES_GetTicketViews(titleId, ticketViewList, &ticketViewCount);
|
||||
if (ret != ES_ERR_OK) {
|
||||
OSReport("%s::%s: ES_GetTicketViews failed: %d for %016llx\n", __FILE__, "DeleteTicketsForce", ret, titleId);
|
||||
result = ES_GetTicketViews(titleId, ticketViewList, &ticketViewCount);
|
||||
if (result != ES_ERR_OK) {
|
||||
OSReport("%s::%s: ES_GetTicketViews failed: %d for %016llx\n", __FILE__, "DeleteTicketsForce", result, titleId);
|
||||
} else {
|
||||
for (u32 j = 0; j < ticketViewCount; j++) {
|
||||
memcpy(ticketViews, (u8*)ticketViewList + j * sizeof(ESTicketView), 0xd8);
|
||||
ret = ES_DeleteTicket((ESTicketView*)ticketViews);
|
||||
if (ret != ES_ERR_OK) {
|
||||
OSReport("%s::%s: ES_DeleteTicket failed: %d for %016llx\n", __FILE__, "DeleteTicketsForce", ret,
|
||||
((ESTicketView*)ticketViews)->ticketId);
|
||||
memcpy(pTicketView, (u8*)ticketViewList + j * sizeof(ESTicketView), 0xd8);
|
||||
result = ES_DeleteTicket(pTicketView);
|
||||
if (result != ES_ERR_OK) {
|
||||
OSReport("%s::%s: ES_DeleteTicket failed: %d for %016llx\n", __FILE__, "DeleteTicketsForce", result,
|
||||
pTicketView->ticketId);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1035,21 +1053,17 @@ namespace ipl {
|
||||
heap->free(ticketViewList);
|
||||
}
|
||||
}
|
||||
titleIdOffset += 8;
|
||||
next_title:;
|
||||
}
|
||||
|
||||
} else {
|
||||
OSReport("%s::%s: Failed to ES_ListTitlesOnCard2: %d\n", __FILE__, "InitSavedata", ret);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
OSReport("%s::%s: Failed to ES_ListTitlesOnCard1: %d\n", __FILE__, "InitSavedata", ret);
|
||||
}
|
||||
|
||||
if (titleIds != NULL) {
|
||||
heap->free(titleIds);
|
||||
}
|
||||
return;
|
||||
return result;
|
||||
}
|
||||
|
||||
BOOL checkForNullTermination(char* str, u32 len) {
|
||||
|
||||
@@ -1746,3 +1746,317 @@ Final authority lines:
|
||||
[libs/RVL_SDK/src/kpad/KPAD] instruction-exact functions: 21/29
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
# Round 9: MAX fresh branchf7b1b9b0
|
||||
Initial owned objects rebuilt and fresh objdiff baseline generated directly; pools identical101/57/0. Fresh counts SD122/129,Address90/94,KPAD21/29, data100% in all3. New near-miss hypotheses use accessor references to stored pointer cells and postincrement-return inline boundaries; prior rounds did not change the original objects.
|
||||
|
||||
## src/scene/sdChannelSelect/iplSDChannelSelect flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv
|
||||
Fetch origin/main 6cb5ac9dedfbf99dc591e2cabc9d62d2c849a69d. Initial assembly diagnosis: (2, 2) structural/positional differences; instructions 35/35
|
||||
Remote source equals freshly built baseline; still open 99.65714%. Structural diagnosis: 35/35,frame0x10; only heap/manager load order reversed. Target loads heap after flag store, then reloads manager. New accessor reference-return types describe read-only views of stored pointer cells; actual calls/field layout remain identical. Prior trials bound pointer values after loading them.
|
||||
- save-manager getter returns a const reference to the stored pointer: (2, 2) structural/positional; instructions 35/35; restored.
|
||||
- heap getter returns a const reference to the stored pointer: (2, 2) structural/positional; instructions 35/35; restored.
|
||||
- both argument getters return read-only references to their pointer cells: (2, 2) structural/positional; instructions 35/35; restored.
|
||||
|
||||
## src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl
|
||||
Fetch origin/main c7ceb3efe077dca7dd49508cf4e2bd1faab56b54. Initial assembly diagnosis: (2, 4) structural/positional differences; instructions 101/101
|
||||
Remote source equals freshly built baseline; still open 97.81188%. Structural diagnosis: 101/101 or102/102,frame0x40; target preserves old count inr3 and computes increment inr0, blocking early threshold loading. New inline postincrement-return boundary and copy-plus-increment helper test this real result lifetime; no artificial uses or dummy objects.
|
||||
- pointer postincrement-result inline boundary after collecting a title: (2, 4) structural/positional; instructions 101/101; restored.
|
||||
- reference postincrement-result inline boundary after collecting a title: (2, 4) structural/positional; instructions 101/101; restored.
|
||||
- append postincrement-result inline boundary after collecting a title: (2, 4) structural/positional; instructions 101/101; restored.
|
||||
|
||||
## src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl
|
||||
Fetch origin/main c7ceb3efe077dca7dd49508cf4e2bd1faab56b54. Initial assembly diagnosis: (2, 4) structural/positional differences; instructions 102/102
|
||||
Remote source equals freshly built baseline; still open 97.833336%. Structural diagnosis: 101/101 or102/102,frame0x40; target preserves old count inr3 and computes increment inr0, blocking early threshold loading. New inline postincrement-return boundary and copy-plus-increment helper test this real result lifetime; no artificial uses or dummy objects.
|
||||
- pointer postincrement-result inline boundary after collecting a title: (2, 4) structural/positional; instructions 102/102; restored.
|
||||
- reference postincrement-result inline boundary after collecting a title: (2, 4) structural/positional; instructions 102/102; restored.
|
||||
- append postincrement-result inline boundary after collecting a title: (2, 4) structural/positional; instructions 102/102; restored.
|
||||
|
||||
## src/scene/sdChannelSelect/iplSDChannelSelect flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv
|
||||
Fetch origin/main 7216fd527fee4db057af192c416f9d2fbe0e547a. Initial assembly diagnosis: (2, 2) structural/positional differences; instructions 35/35
|
||||
Remote source equals freshly built baseline; still open 99.65714%. Structural diagnosis: Further structural lever: scalarized aggregate of the real heap/manager arguments, with read-only request/helper boundaries; target frame0x10 and35 instructions, only two argument loads inverted.
|
||||
- read-only real flush argument aggregate: (2, 2) structural/positional; instructions 35/35; restored.
|
||||
- mutable request fields assigned heap then manager: (2, 2) structural/positional; instructions 35/35; restored.
|
||||
- mutable request with manager initialized last via constructor: (2, 2) structural/positional; instructions 35/35; restored.
|
||||
|
||||
## src/scene/address/iplAddressEdit update_friendinfo__Q33ipl5scene11AddressEditFv
|
||||
Fetch origin/main 7216fd527fee4db057af192c416f9d2fbe0e547a. Initial assembly diagnosis: (2, 2) structural/positional differences; instructions 38/38
|
||||
Remote source equals freshly built baseline; still open 99.42105%. Structural diagnosis: Structural diagnosis:38 instructions/frame0x10 equal; resolved wcsncpy source and destination LEAs inverted. No immediate store/reload pair or extent overlap; test scalarized copy request with source-first real fields before register-only work.
|
||||
- read-only name-copy argument aggregate: (11, 32) structural/positional; instructions 40/38; restored.
|
||||
- mutable name-copy source and destination field assignments: (2, 2) structural/positional; instructions 38/38; restored.
|
||||
- read-only name-copy request constructor: (2, 2) structural/positional; instructions 38/38; restored.
|
||||
|
||||
## src/scene/sdChannelSelect/iplSDChannelSelect create__Q33ipl5scene15SDChannelSelectFv
|
||||
Fetch origin/main 2da1c58f2c1b14de0754929ddbc23394a011d7a5. Initial assembly diagnosis: (4, 39) structural/positional differences; instructions 145/146
|
||||
Remote source equals freshly built baseline; still open 97.73972%. Structural diagnosis: 145/146 frame0x20; missing BS2-manager body reload, global/string base colors reversed. New lexical scopes for manager acquisition and an actual abort-state for-loop; no added data or volatile without proof.
|
||||
- poll using a switch and separate completed-state exit label: build failed i-ipl-workers\data- # d5\include\scene\iplSceneManager.h:14 # Z:\mnt\drive2\projects\wii-ipl-workers\data-d5\include\iplSceneUI.h:11 # Z:\mnt\drive2\projects\wii-ipl-workers\data- # d5\src\scene\sdChannelSelect\iplSDChannelSelect.cpp:6) ### mwcceppc.exe Compiler: # File: src\scene\sdChannelSelect\iplSDChannelSelect.cpp # --------------------------------------------------------- # 258: } # Error: ^ # (10159) undefined label 'abortFinished' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. ; restored.
|
||||
- bind the update receiver as a read-only reference in the loop body: (4, 39) structural/positional; instructions 145/146; restored.
|
||||
- hold the observed abort state as a leading initialized for-loop variable: (7, 42) structural/positional; instructions 149/146; restored.
|
||||
|
||||
## src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl
|
||||
Fetch origin/main 02dbcc53bdf195d3b2aa22f56460ad2c2f913dd2. Initial assembly diagnosis: (2, 22) structural/positional differences; instructions 126/126
|
||||
Remote source equals freshly built baseline; still open 97.29365%. Structural diagnosis: 126/126 frame0x60; title-ID inner scope changes index/add operand allocation; new pointer-to-row and explicit signed page offset views after hoisting the real ID, retaining safe typed entry access.
|
||||
- hoist the title and index through a pointer to the selected channel page: (2, 7) structural/positional; instructions 126/126; restored.
|
||||
- hoist the title and apply the row index before dereferencing its array: (2, 7) structural/positional; instructions 126/126; restored.
|
||||
- hoist the title and use an explicitly unsigned native channel index: (2, 7) structural/positional; instructions 126/126; restored.
|
||||
|
||||
## src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl
|
||||
Fetch origin/main ed2d5b30b46940f63b16670dd1f7b44b2ac06984. Initial assembly diagnosis: (8, 16) structural/positional differences; instructions 361/361
|
||||
Remote source equals freshly built baseline; still open 97.55125%. Structural diagnosis: 361/361 frame0x80; four repeated counter/threshold schedules differ16. New count read-modify-write expression semantics and inline returning the original count; source paths and threshold signedness preserved.
|
||||
- use a named previous count in each completed title increment: (8, 16) structural/positional; instructions 361/361; restored.
|
||||
- sequence the postincrement result as a discarded comma-expression: (8, 16) structural/positional; instructions 361/361; restored.
|
||||
- put postincrement behind a helper returning the original count: (8, 16) structural/positional; instructions 361/361; restored.
|
||||
|
||||
## src/scene/sdChannelSelect/iplSDChannelSelect setChannelScissor__Q33ipl5scene15SDChannelSelectCFPCQ33ipl5scene12SDChannelObj
|
||||
Fetch origin/main 5a332eceba97b348917577a016edf49c8b2bd519. Initial assembly diagnosis: (23, 68) structural/positional differences; instructions 233/233
|
||||
Remote source equals freshly built baseline; still open 93.4721%. Structural diagnosis: 233/233 frame0xe0; framebuffer-width/height conversions and projection/scissor lifetimes dominate68 differences; new real framebuffer-dimension and scissor-rectangle aggregate views before register-only tuning.
|
||||
- declare framebuffer width before height then initialize both from named dimension references: (23, 68) structural/positional; instructions 233/233; restored.
|
||||
- retain one named projection-width local shared by both scissor branches: (51, 195) structural/positional; instructions 230/233; restored.
|
||||
- represent the four actual computed scissor bounds as fields of a local rectangle: (192, 247) structural/positional; instructions 251/233; restored.
|
||||
|
||||
## src/scene/sdChannelSelect/iplSDChannelSelect create__Q33ipl5scene15SDChannelSelectFv
|
||||
Fetch origin/main a8ab2099cdf66a22205c6faec73834eb7f771168. Initial assembly diagnosis: (4, 39) structural/positional differences; instructions 145/146
|
||||
Remote source equals freshly built baseline; still open 97.73972%. Structural diagnosis: Correct failed exit-label trial; elapsedTicks is the real statement after the poll. Failed compiler trial did not count toward the three successful variants.
|
||||
- switch-based poll with a defined abort-finished label before the elapsed tick computation: (9, 40) structural/positional; instructions 145/146; restored.
|
||||
|
||||
## src/scene/address/iplAddressEdit get_friendinfo__Q33ipl5scene11AddressEditFv
|
||||
Fetch origin/main a8ab2099cdf66a22205c6faec73834eb7f771168. Initial assembly diagnosis: (10, 68) structural/positional differences; instructions 82/84
|
||||
Remote source equals freshly built baseline; still open 88.03571%. Structural diagnosis: 82/84 frame0x420; target keeps name/display addresses in one saved register across virtual pane lookups. New mutable input pointer/array/String views test MWCC rematerialization and alias assumptions without changing shared signatures.
|
||||
- keep both text inputs in mutable character pointers before the virtual lookups: (10, 68) structural/positional; instructions 82/84; restored.
|
||||
- bind actual mutable name and display arrays by their real extents: (10, 68) structural/positional; instructions 82/84; restored.
|
||||
- read both text arrays through a mutable String reference shared across pane calls: (10, 68) structural/positional; instructions 82/84; restored.
|
||||
|
||||
## src/scene/address/iplAddressEdit create__Q33ipl5scene11AddressEditFv
|
||||
Fetch origin/main a8ab2099cdf66a22205c6faec73834eb7f771168. Initial assembly diagnosis: (19, 323) structural/positional differences; instructions 820/820
|
||||
Remote source equals freshly built baseline; still open 97.44634%. Structural diagnosis: 820/820 frame0x60; ordinary construction removes the doubled allocation guard but leaves two missing name/display LEAs. New mutable text input views paired with ordinary allocation preserve literal source order and avoid manual constructor calls.
|
||||
- ordinary balloon allocation with a mutable name pointer before animator restart: (23, 331) structural/positional; instructions 818/820; restored.
|
||||
- ordinary balloon allocation with mutable real name/display array references: (23, 331) structural/positional; instructions 818/820; restored.
|
||||
- ordinary balloon allocation and a mutable String receiver for both mode-zero text inputs: (23, 331) structural/positional; instructions 818/820; restored.
|
||||
|
||||
## src/scene/address/iplAddressEdit set_err_msg__Q33ipl5scene11AddressEditFPwUl8NWC24Err
|
||||
Fetch origin/main a8ab2099cdf66a22205c6faec73834eb7f771168. Initial assembly diagnosis: (1, 30) structural/positional differences; instructions 76/75
|
||||
Remote source equals freshly built baseline; still open 98.666664%. Structural diagnosis: 76/75 frame0x60; target has undefined message ID for other errors, safe default cannot be removed. Try safe grouped valid errors with an explicit default and a truly initialized index object; unsupported input behavior remains defined.
|
||||
- assign the safe fallback explicitly inside every switch case including default: (6, 28) structural/positional; instructions 73/75; restored.
|
||||
- use an initialized message-selection aggregate holding the actual index: (1, 30) structural/positional; instructions 76/75; restored.
|
||||
- use a safe if/else selection testing the original supported error groups: (18, 47) structural/positional; instructions 65/75; restored.
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos
|
||||
Fetch origin/main fd775c34dcac2c7110d7729ebd0bd6e3ee7bba62. Initial assembly diagnosis: (0, 9) structural/positional differences; instructions 19/19
|
||||
Remote source equals freshly built baseline; still open 96.57895%. Structural diagnosis: Decoded19/19 leaf structure exact; target double scale usesf0 and half/aspectf4/f3. New actual scalar helper boundaries for correction, half-height, and complete coordinate projection; registers last.
|
||||
- put the double calibration product behind a scalar-return inline helper: (0, 10) structural/positional; instructions 19/19; restored.
|
||||
- put the half-height product behind a scalar-return inline helper: (0, 10) structural/positional; instructions 19/19; restored.
|
||||
- use a complete projection helper with a const coordinate input and precomputed height: (0, 10) structural/positional; instructions 19/19; restored.
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight
|
||||
Fetch origin/main fd775c34dcac2c7110d7729ebd0bd6e3ee7bba62. Initial assembly diagnosis: (0, 7) structural/positional differences; instructions 52/52
|
||||
Remote source equals freshly built baseline; still open 99.23077%. Structural diagnosis: Decoded52/52 frame0x30,7 colors; named-zero and squared-height order yield3 base-register colors. New sensor-center subobject view and channel-base lifetime forms keep actual indexed controller fields, without volatile or dummy state.
|
||||
- name the actual sensor-center subobject pointer after controller indexing: (0, 3) structural/positional; instructions 52/52; restored.
|
||||
- form the indexed controller pointer only after computing both real squared dimensions: (0, 3) structural/positional; instructions 52/52; restored.
|
||||
- assign the squared-height contribution into the diagonal temporary before adding width: (0, 8) structural/positional; instructions 52/52; restored.
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD calc_acc_horizon
|
||||
Fetch origin/main fd775c34dcac2c7110d7729ebd0bd6e3ee7bba62. Initial assembly diagnosis: (2, 35) structural/positional differences; instructions 101/101
|
||||
Remote source equals freshly built baseline; still open 97.27723%. Structural diagnosis: Decoded101/101 frame0x30,35 pure floating-register colors. New in-place magnitude/normalization lifetimes and product subscopes before using declsearch on any surviving register-only candidate.
|
||||
- reuse magnitude as the blend weight instead of retaining a second smoothing scalar: (2, 35) structural/positional; instructions 101/101; restored.
|
||||
- normalize the interpolated horizon coordinates in place before updating the circle: (2, 37) structural/positional; instructions 101/101; restored.
|
||||
- scope the smoothing weight inside its actual interpolation block: (2, 35) structural/positional; instructions 101/101; restored.
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD read_kpad_acc
|
||||
Fetch origin/main fd775c34dcac2c7110d7729ebd0bd6e3ee7bba62. Initial assembly diagnosis: (16, 66) structural/positional differences; instructions 400/400
|
||||
Remote source equals freshly built baseline; still open 98.15%. Structural diagnosis: Decoded400/400 frame0x50,5 CFG differences; real smoothing/guard reconstruction narrows to cmpwi5 instead ofcmplwi5. New boolean switch and nested primary/fallback switch boundaries preserve the complete unsupported-format path.
|
||||
- switch on the unsigned equality predicate of the valid fallback format: (12, 197) structural/positional; instructions 403/400; restored.
|
||||
- nest the fallback single-case switch inside the primary format switch default: (2, 2) structural/positional; instructions 400/400; restored.
|
||||
- subtract the real fallback format before testing the zero switch case: (1, 1) structural/positional; instructions 400/400; restored.
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD select_1obj_first
|
||||
Fetch origin/main 842c850c10099d9937f1e02f8625a2f0a985abf9. Initial assembly diagnosis: (2, 26) structural/positional differences; instructions 109/109
|
||||
Remote source equals freshly built baseline; still open 98.348625%. Structural diagnosis: Decoded109/109 frame0x20; 26 float/base colors, direct candidate-end comparison reaches22. New real geometry operand/lifetime forms and shared output-candidate pointer before declaration search.
|
||||
- use scale-first products for the two actual horizon offsets after direct-end comparison: (2, 22) structural/positional; instructions 109/109; restored.
|
||||
- evaluate horizon dot-product axis operands first with direct candidate-end comparison: (4, 22) structural/positional; instructions 109/109; restored.
|
||||
- bind the two actual output candidate records through one local pointer: (2, 22) structural/positional; instructions 109/109; restored.
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD calc_dpd_variable
|
||||
Fetch origin/main 842c850c10099d9937f1e02f8625a2f0a985abf9. Initial assembly diagnosis: (14, 45) structural/positional differences; instructions 250/250
|
||||
Remote source equals freshly built baseline; still open 94.82%. Structural diagnosis: Decoded250/250 frame0x20; filter magnitude register reuse and late geometry schedules differ. New explicit absolute-value branch, direction scalar components, and in-place distance filter weight; preserve FP precision and all writes.
|
||||
- assign filter magnitude using explicit sign branches rather than a conditional expression: (14, 45) structural/positional; instructions 250/250; restored.
|
||||
- reuse the filtered distance magnitude through its gain multiplication: (14, 43) structural/positional; instructions 250/250; restored.
|
||||
- name both actual direction components within the final geometric projection scope: (12, 40) structural/positional; instructions 250/250; restored.
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD KPADRead
|
||||
Fetch origin/main 842c850c10099d9937f1e02f8625a2f0a985abf9. Initial assembly diagnosis: (11, 89) structural/positional differences; instructions 459/459
|
||||
Remote source equals freshly built baseline; still open 97.52723%. Structural diagnosis: Decoded459/459 frame0xc0; raw-copy endpoint grouping and gravity x/y signed halfword loads differ. New complete raw-copy inline boundary, typed three-factor gravity locals, and decrement loop form; no field type/width changes.
|
||||
- move the complete raw-ring copy into an inline operation returning its final sample index: (46, 250) structural/positional; instructions 459/459; restored.
|
||||
- use signed-int product temporaries for both complete gravity validation products: (7, 83) structural/positional; instructions 459/459; restored.
|
||||
- express the raw-ring copy as a for-loop with the decrement in its update clause: (19, 377) structural/positional; instructions 458/459; restored.
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD KPADInit
|
||||
Fetch origin/main 842c850c10099d9937f1e02f8625a2f0a985abf9. Initial assembly diagnosis: (9, 81) structural/positional differences; instructions 185/185
|
||||
Remote source equals freshly built baseline; still open 96.51351%. Structural diagnosis: Decoded185/185 frame0x90; repeat-delay constant and saved float/matrix colors. New repeat initializer inline boundary, zero/one calibration scope, and real matrix reference pointer scope; arrays/stores unchanged.
|
||||
- initialize all six real repeat state fields through a complete inline operation: (9, 81) structural/positional; instructions 185/185; restored.
|
||||
- initialize zero before one while retaining the actual saved scalar locals: (9, 81) structural/positional; instructions 185/185; restored.
|
||||
- bind the initialized rotation matrix pointer inside the controller loop instead of retaining it outside: (9, 65) structural/positional; instructions 185/185; restored.
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD calc_acc_horizon
|
||||
Fetch origin/main 6f6f63cb81bdb8298e0270364f6b94dae2b36a6c. Initial assembly diagnosis: (2, 35) structural/positional differences; instructions 101/101
|
||||
Remote source equals freshly built baseline; still open 97.27723%. Structural diagnosis: Register-only final search after this round three distinct successfully built lifetime/scope attempts. Reconstruct the best19-color seed from previous complete assignment order, then search the remaining swaps/moves with a substantially larger budget; decode paired loads and FP compares.
|
||||
- Reproduced best declaration seed, decoded (0, 19); every assignment and computation order unchanged.
|
||||
- Extended declsearch: declaration block: | f32 targetY; | f32 circleY; | f32 deltaX; | f32 oldX; | f32 projectedX; | f32 productX; | f32 targetX; | f32 oldY; | f32 smoothing; | f32 magnitude; | f32 normalizedX; | f32 normalizedY; | f32 nextX; | f32 nextY; | f32 normalized; | f32 circleX; | f32 deltaCircleX; | f32 deltaCircleY; | f32 oldCircleY; | f32 oldCircleX; | f32 unitY; | f32 unitX; | f32 blend; | start (0, 19) | improved (0, 17) | best (0, 17) after 852 builds; kept in source: | f32 targetY; | f32 circleY; | f32 deltaX; | f32 oldX; | f32 projectedX; | f32 productX; | f32 targetX; | f32 normalizedY; | f32 smoothing; | f32 magnitude; | f32 normalizedX; | f32 oldY; | f32 nextX; | f32 nextY; | f32 normalized; | f32 circleX; | f32 deltaCircleX; | f32 deltaCircleY; | f32 oldCircleY; | f32 oldCircleX; | f32 unitY; | f32 unitX; | f32 blend; |
|
||||
Nonexact extended-search candidate restored; raw authority (0, 17).
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos
|
||||
Fetch origin/main a9a3f36cf03be45e012ddbb0b86cc689755c89c0. Initial assembly diagnosis: (0, 9) structural/positional differences; instructions 19/19
|
||||
Remote source equals freshly built baseline; still open 96.57895%. Structural diagnosis: Register-only last after three new scalar/full projection helper attempts; no frame/CFG differences. Remove the independent named double result so its anonymous calibration temporary can coalesce, while naming only actual half/aspect factors. Search six real local declarations, preserving every assignment.
|
||||
- Anonymous double-calibration seed: decoded (0, 9).
|
||||
- Anonymous-calibration declsearch: declaration block: | f32 halfHeight; | f32 aspect; | f32 half; | f32 x; | f32 y; | f32 height; | start (0, 9) | improved (0, 5) | best (0, 5) after 36 builds; kept in source: | f32 aspect; | f32 halfHeight; | f32 half; | f32 x; | f32 y; | f32 height; |
|
||||
Nonexact projection search candidate restored; raw authority (0, 5).
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD calc_dpd_variable
|
||||
Fetch origin/main a9a3f36cf03be45e012ddbb0b86cc689755c89c0. Initial assembly diagnosis: (14, 45) structural/positional differences; instructions 250/250
|
||||
Remote source equals freshly built baseline; still open 94.82%. Structural diagnosis: Further structural reconstruction of late geometry: target loads directionY/tangentY, negates directionY, then loads directionX/tangentX and multiplies in that order. Earlier direct const/scalar views retained12 differences; name the real dot/cross terms and test declaration/expression order.
|
||||
- declare the cross-product rotation before the dot-product rotation: (22, 47) structural/positional; instructions 250/250; restored.
|
||||
- name all four geometric input components in target operand-load order: (12, 41) structural/positional; instructions 250/250; restored.
|
||||
- name the real dot/cross product component values in target multiplication order: (14, 41) structural/positional; instructions 250/250; restored.
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight
|
||||
Fetch origin/main a9a3f36cf03be45e012ddbb0b86cc689755c89c0. Initial assembly diagnosis: (0, 7) structural/positional differences; instructions 52/52
|
||||
Remote source equals freshly built baseline; still open 99.23077%. Structural diagnosis: Remaining3 base-register colors after named-zero geometry reconstruction. New actual scalar-return scale helper takes only a read-only sensor-center input instead of the prior entire controller/height helper; this exposes a real inline/alias boundary.
|
||||
- scalar sensor-scale helper with const center input: (1, 13) structural/positional; instructions 52/52; restored.
|
||||
- scalar sensor-scale helper with mutable center input: (1, 13) structural/positional; instructions 52/52; restored.
|
||||
- scalar sensor-scale helper with separated offset inputs: (32, 58) structural/positional; instructions 59/52; restored.
|
||||
|
||||
## src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl
|
||||
Fetch origin/main a9a3f36cf03be45e012ddbb0b86cc689755c89c0. Initial assembly diagnosis: (2, 4) structural/positional differences; instructions 101/101
|
||||
Remote source equals freshly built baseline; still open 97.81188%. Structural diagnosis: Four schedule-only differences remain after the new old-count helper attempts. Test immutable formal pointer variables without altering pointee types or mangled public signature, then copy the real incremented count through memcpy as a memory-write boundary.
|
||||
- const only the count pointer formal: (2, 4) structural/positional; instructions 101/101; restored.
|
||||
- const every real pointer formal: (2, 4) structural/positional; instructions 101/101; restored.
|
||||
- write the actual incremented output count through the ordinary memory-copy primitive: (29, 53) structural/positional; instructions 105/101; restored.
|
||||
|
||||
## src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl
|
||||
Fetch origin/main a9a3f36cf03be45e012ddbb0b86cc689755c89c0. Initial assembly diagnosis: (2, 4) structural/positional differences; instructions 102/102
|
||||
Remote source equals freshly built baseline; still open 97.833336%. Structural diagnosis: Four schedule-only differences remain after the new old-count helper attempts. Test immutable formal pointer variables without altering pointee types or mangled public signature, then copy the real incremented count through memcpy as a memory-write boundary.
|
||||
- const only the count pointer formal: (2, 4) structural/positional; instructions 102/102; restored.
|
||||
- const every real pointer formal: (2, 4) structural/positional; instructions 102/102; restored.
|
||||
- write the actual incremented output count through the ordinary memory-copy primitive: (29, 52) structural/positional; instructions 106/102; restored.
|
||||
|
||||
## src/scene/address/iplAddressEdit update_friendinfo__Q33ipl5scene11AddressEditFv
|
||||
Fetch origin/main a9a3f36cf03be45e012ddbb0b86cc689755c89c0. Initial assembly diagnosis: (2, 2) structural/positional differences; instructions 38/38
|
||||
Remote source equals freshly built baseline; still open 99.42105%. Structural diagnosis: Two source/destination LEA schedule differences; test genuine array-element/array-object addresses and a read-only getter returning the actual name array reference, no raw offsets or pinned objects.
|
||||
- pass explicit addresses of the real source and destination first elements: (2, 2) structural/positional; instructions 38/38; restored.
|
||||
- cast the address of the actual destination name-array object: (2, 2) structural/positional; instructions 38/38; restored.
|
||||
- read the actual source array through a const member getter returning its full array reference: (2, 2) structural/positional; instructions 38/38; restored.
|
||||
- Anonymous double projection best5 diagnosis: [(11, ('fmuls', 'f4, f1, f4'), ('fmuls', 'f1, f1, f4')), (12, ('fmuls', 'f1, f3, f2'), ('fmuls', 'f2, f3, f2')), (13, ('fmuls', 'f2, f3, f4'), ('fmuls', 'f1, f3, f1')), (14, ('fmul', 'f0, f1, f0'), ('fmul', 'f0, f2, f0')), (15, ('stfs', 'f2, 4(r3)'), ('stfs', 'f1, 4(r3)'))]. Temporary diagnosis source restored.
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos
|
||||
Fetch origin/main a9a3f36cf03be45e012ddbb0b86cc689755c89c0. Initial assembly diagnosis: (0, 9) structural/positional differences; instructions 19/19
|
||||
Remote source equals freshly built baseline; still open 96.57895%. Structural diagnosis: Anonymous-double calibration and named coefficient search reaches5 differences, all in y-half-height/X/Y-aspect colors. New actual coordinate-result lifetime boundaries; target19 instructions with self-coalesced Xf2/Yf1 and no stack.
|
||||
- inline only the vertical coordinate product into its output assignment: (0, 0) structural/positional; instructions 19/19; candidate kept.
|
||||
|
||||
## Round9 exact KPAD projection candidate and gate
|
||||
KPADGetProjectionPos: removing the named double scale result lets the correction product coalesce in f0; named real half/aspect locals put those coefficients in f4/f3; inlining only the vertical coordinate expression into dest->y removes its competing local lifetime and fixes the last5 colors. Final19/19 instructions, ctxdiff0, exact-name objdiff100.0%; pool identical0 strings. The existing horizontal local preserves source.x before either output write, including dest/src aliasing. No new volatile, asm, symbol/extent change or data object.
|
||||
All-unit quick authority gate: full43U build passed; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d; all3 pools identical;0 regressions/forbidden/readability warnings. SD122/129 unchanged, Address90/94 unchanged, KPAD21->22/29; code6756->6832/13056, data8032/8032 unchanged.
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight
|
||||
Fetch origin/main 8864436cde34e234c6853e021fe428b802033f4a. Initial assembly diagnosis: (0, 7) structural/positional differences; instructions 52/52
|
||||
Remote source equals freshly built baseline; still open 99.23077%. Structural diagnosis: Register-only last after >=3 distinct successfully built new structural/alias/scope variants. Use declsearch on real subobject/scan locals with all assignments preserved; decode PPC paired operations and FP comparisons before scoring.
|
||||
- New register-only seed decoded (0, 3).
|
||||
- Register-only last declsearch: declaration block: | Vec2* center; | KPADInside* kpad; | f32 halfHeightSquared; | f32 halfHeight; | f32 barOffsetX; | f32 barDiagonal; | f32 halfWidthSquared; | f32 halfWidth; | f32 negativeSensorHeight; | f32 barDiagonalSquared; | f32 zero; | start (0, 3) | best (0, 3) after 146 builds; source restored; best order was: | Vec2* center; | KPADInside* kpad; | f32 halfHeightSquared; | f32 halfHeight; | f32 barOffsetX; | f32 barDiagonal; | f32 halfWidthSquared; | f32 halfWidth; | f32 negativeSensorHeight; | f32 barDiagonalSquared; | f32 zero; |
|
||||
Nonexact declaration candidate restored; raw authority (0, 3).
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD select_1obj_first
|
||||
Fetch origin/main 8864436cde34e234c6853e021fe428b802033f4a. Initial assembly diagnosis: (2, 26) structural/positional differences; instructions 109/109
|
||||
Remote source equals freshly built baseline; still open 98.348625%. Structural diagnosis: Register-only last after >=3 distinct successfully built new structural/alias/scope variants. Use declsearch on real subobject/scan locals with all assignments preserved; decode PPC paired operations and FP comparisons before scoring.
|
||||
- New register-only seed decoded (0, 22).
|
||||
- Register-only last declsearch: declaration block: | KPADDPDObject* object; | f32 scale; | f32 productX; | f32 productY; | f32 offsetX; | f32 offsetY; | start (0, 22) | best (0, 22) after 36 builds; source restored; best order was: | KPADDPDObject* object; | f32 scale; | f32 productX; | f32 productY; | f32 offsetX; | f32 offsetY; |
|
||||
Nonexact declaration candidate restored; raw authority (2, 22).
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD select_1obj_first
|
||||
Fetch origin/main 6f49df32b3d1be83a41250c810670894ebe27efe. Initial assembly diagnosis: (2, 26) structural/positional differences; instructions 109/109
|
||||
Remote source equals freshly built baseline; still open 98.348625%. Structural diagnosis: Apply the newly proven projection lifetime lever to the scan: target scale is an anonymousf0 load and each input coordinate coalesces through its use. Test removal of named real scale/product/component temporaries with exact typed field accesses, no arithmetic reassociation.
|
||||
- inline the scale field into both real offset products: (2, 17) structural/positional; instructions 109/109; restored.
|
||||
- inline the dot/cross component products into the two real offset initializers: (4, 22) structural/positional; instructions 109/109; restored.
|
||||
- inline candidate input fields directly into both projected positions: (0, 13) structural/positional; instructions 109/109; restored.
|
||||
- combine anonymous scale and candidate coordinate inputs: (0, 8) structural/positional; instructions 109/109; restored.
|
||||
- combine anonymous product and candidate coordinate inputs: (2, 13) structural/positional; instructions 109/109; restored.
|
||||
- inline all scale/product/coordinate inputs: (0, 0) structural/positional; instructions 109/109; candidate kept.
|
||||
|
||||
## Round9 exact single-object scan candidate and gate
|
||||
select_1obj_first: after structural const/operand trials and declsearch, the projection lifetime finding led to removing named scale, dot/cross component and candidate x/y temporaries. Direct typed field expressions and direct candidate-array loop endpoint recover every target color. Final109/109 instructions/ctxdiff0, exact-name objdiff100.0%; projection remains19/19/ctxdiff0. No extra memory objects/volatile/asm or raw offset casts.
|
||||
All-unit quick authority gate GATE PASS: correct DOL hash; pools identical;0 regressions/forbidden/readability warnings. SD122/129 and Address90/94 unchanged. KPAD22->23/29; round baseline21->23, code6756->7268/13056 (+512), all data8032/8032 unchanged.
|
||||
Read-only origin dependency audit: KPAD dependencies and all owned function symbol definitions are unchanged from f7b1b9b0. Scene dependency changes only rename unrelated fields/getters at unchanged offsets or add IPL_CHANNEL_SELECT_CPP blocks (inactive in both owned scene TUs); owned source is unchanged remotely. No duplicated remote function match found. No symbols.txt changes made locally.
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD calc_acc_horizon
|
||||
Fetch origin/main 6f49df32b3d1be83a41250c810670894ebe27efe. Initial assembly diagnosis: (2, 35) structural/positional differences; instructions 101/101
|
||||
Remote source equals freshly built baseline; still open 97.27723%. Structural diagnosis: Apply two newly exact SDK lifetime reconstructions after the extended declaration search plateau17: remove real named field/product/interpolation temporaries so anonymous expressions can coalesce. Preserve the original floating multiplication/addition grouping, calls, guards and each object-field write.
|
||||
- read normal components directly in their real products: (2, 35) structural/positional; instructions 101/101; restored.
|
||||
- read the old horizon axis directly in its interpolation expressions: (2, 28) structural/positional; instructions 101/101; restored.
|
||||
- inline the actual first dot-product component: (2, 35) structural/positional; instructions 101/101; restored.
|
||||
- inline the blend and X-delta subexpressions: (2, 35) structural/positional; instructions 101/101; restored.
|
||||
- read the old circle components directly in their interpolated results: (2, 33) structural/positional; instructions 101/101; restored.
|
||||
- combine normal, axis and dot-product anonymous inputs: (0, 13) structural/positional; instructions 101/101; restored.
|
||||
- combine normal, axis, dot, blend and delta anonymous inputs: (0, 21) structural/positional; instructions 101/101; restored.
|
||||
- combine every actual field/product/interpolation input: (0, 19) structural/positional; instructions 101/101; restored.
|
||||
- write circle interpolation results directly before deriving their true residuals: (2, 35) structural/positional; instructions 101/101; restored.
|
||||
- combine all anonymous inputs with direct circle result stores: (0, 19) structural/positional; instructions 101/101; restored.
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD calc_acc_horizon
|
||||
Fetch origin/main b33a493cec82cb6dbb068d07e1ad17c6d0204e32. Initial assembly diagnosis: (2, 35) structural/positional differences; instructions 101/101
|
||||
Remote source equals freshly built baseline; still open 97.27723%. Structural diagnosis: New anonymous normal/axis/product inputs lower35 to13 exact positional differences with zero decoded structural difference; revisit register-only last declsearch only on this improved readable source, preserving all initialized assignments and rounding.
|
||||
- Anonymous field/product declsearch: declaration block: | f32 magnitude; | f32 normalizedX; | f32 normalizedY; | f32 blend; | f32 projectedX; | f32 smoothing; | f32 deltaX; | f32 nextX; | f32 nextY; | f32 normalized; | f32 unitX; | f32 oldCircleX; | f32 oldCircleY; | f32 unitY; | f32 circleX; | f32 deltaCircleX; | f32 circleY; | f32 deltaCircleY; | start (0, 13) | improved (0, 11) | improved (0, 9) | improved (0, 3) | best (0, 3) after 650 builds; kept in source: | f32 magnitude; | f32 normalizedX; | f32 normalizedY; | f32 blend; | f32 projectedX; | f32 smoothing; | f32 deltaX; | f32 nextX; | f32 nextY; | f32 normalized; | f32 oldCircleY; | f32 circleX; | f32 oldCircleX; | f32 unitY; | f32 unitX; | f32 deltaCircleX; | f32 circleY; | f32 deltaCircleY; |
|
||||
Nonexact anonymous-field/product declaration candidate restored; raw authority (0, 3).
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD KPADRead
|
||||
Fetch origin/main b33a493cec82cb6dbb068d07e1ad17c6d0204e32. Initial assembly diagnosis: (11, 89) structural/positional differences; instructions 459/459
|
||||
Remote source equals freshly built baseline; still open 97.52723%. Structural diagnosis: Raw-copy target computes the output cursor before loading the ring index, whereas prior pointer-first grouping retained index computation outside the cursor scope and enlarged the frame. New actual cursor/index scope ordering and fewer named count/index lifetimes preserve the complete copy and calibration logic.
|
||||
- compute the copy cursor first and the actual ring index inside its scope: (40, 282) structural/positional; instructions 459/459; restored.
|
||||
- combine cursor/index scope ordering with anonymous ring count loading: build failed libs/RVL_SDK/src/kpad/KPAD.c -o build/43U/src/libs/RVL_SDK/src/kpad && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d ### mwcceppc.exe Compiler: # File: libs\RVL_SDK\src\kpad\KPAD.c # ------------------------------------- # 1454: calc_button_repeat(kpad, device, ringCount); # Error: ^^^^^^^^^ # (10140) undefined identifier 'ringCount' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. ; restored.
|
||||
- reuse the actual later sample-count variable in the raw-copy loop: (40, 282) structural/positional; instructions 459/459; restored.
|
||||
- combine cursor/index scope with both anonymous and reused count values: build failed libs/RVL_SDK/src/kpad/KPAD.c -o build/43U/src/libs/RVL_SDK/src/kpad && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d ### mwcceppc.exe Compiler: # File: libs\RVL_SDK\src\kpad\KPAD.c # ------------------------------------- # 1453: calc_button_repeat(kpad, device, ringCount); # Error: ^^^^^^^^^ # (10140) undefined identifier 'ringCount' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. ; restored.
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD calc_dpd_variable
|
||||
Fetch origin/main b33a493cec82cb6dbb068d07e1ad17c6d0204e32. Initial assembly diagnosis: (14, 45) structural/positional differences; instructions 250/250
|
||||
Remote source equals freshly built baseline; still open 94.82%. Structural diagnosis: Distance filter target multiplies its weight in place in f2 then produces distance delta in f1. Remove the named next-value local and use the stored true dist_vec field before its speed/position updates; test direct geometric expressions without changing operation grouping.
|
||||
- derive distance speed from the actual stored delta after an in-place gain product: (14, 43) structural/positional; instructions 250/250; restored.
|
||||
- combine anonymous stored distance delta with the explicit magnitude sign branch: (14, 43) structural/positional; instructions 250/250; restored.
|
||||
- combine anonymous distance delta with direction-first rotation products: (12, 38) structural/positional; instructions 250/250; restored.
|
||||
- Anonymous-field/product horizon best3 diagnosis: [(44, ('fmuls', 'f5, f8, f6'), ('fmuls', 'f8, f8, f6')), (47, ('fmuls', 'f2, f5, f2'), ('fmuls', 'f2, f8, f2')), (48, ('fmuls', 'f0, f5, f0'), ('fmuls', 'f0, f8, f0'))]. Temporary diagnosis source restored.
|
||||
|
||||
## libs/RVL_SDK/src/kpad/KPAD calc_acc_horizon
|
||||
Fetch origin/main e3457d11a22a9f0d8300daed615914fb230bea7d. Initial assembly diagnosis: (2, 35) structural/positional differences; instructions 101/101
|
||||
Remote source equals freshly built baseline; still open 97.27723%. Structural diagnosis: Remaining3 instructions in the anonymous-field/product best declaration candidate all identify the same structural temporary boundary: target overwrites magnitudef8 with magnitude*blend, source creates independent smoothingf5. Reuse the real magnitude as the interpolation weight after its normalization work is finished.
|
||||
- reuse magnitude in place for the true interpolation weight in the best3 real-local context: (0, 0) structural/positional; instructions 101/101; candidate kept.
|
||||
|
||||
## Round9 exact acceleration horizon candidate and gate
|
||||
calc_acc_horizon: anonymous normal/old-axis/first-product inputs reduce35 colors to13; declaration search reduces13->3. All three remaining instructions prove the same temporary difference: target overwrites magnitude f8 with magnitude*blend, while source creates smoothing f5. Reusing magnitude as its interpolation weight recovers101/101 instructions and ctxdiff0/exact-name objdiff100.0%. No arithmetic reassociation or changed object writes/calls/guards. Projection and single-object scan remain exact.
|
||||
All-unit quick gate GATE PASS, correct DOL hash, identical pools,0 regressions/forbidden/readability warnings. SDK23->24/29; round21->24, code6756->7672/13056 (+916), data8032/8032. SD122/129, Address90/94 and their code/data totals unchanged.
|
||||
KPADRead failed anonymous-ring-count trials diagnosed: ringCount also supplies the full batch elapsed count to calc_button_repeat after available is capped by caller count. It must retain the original batch count; replacing it with available would change behavior and was not done. Failed compilations do not count toward the three successful source attempts.
|
||||
|
||||
## Round9 final full clean gate and remaining-function audit
|
||||
Full non-quick gate across all3 units GATE PASS; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d; all pools identical;0 regressions/forbidden/readability warnings; every owned data section100%. No data symbol rename or extent correction needed/made. All open target function extents end before/equal the next symbol; no adjacent same-slot word/single/double stack store/reload pair justified new volatile. No byte16/byte8 mask mismatch justified widening.
|
||||
src/scene/sdChannelSelect/iplSDChannelSelect: exact 122 ->122/129; code 29412 ->29412/33828; data 2960 ->2960/2960.
|
||||
src/scene/address/iplAddressEdit: exact 90 ->90/94; code 23044 ->23044/27112; data 2560 ->2560/2560.
|
||||
libs/RVL_SDK/src/kpad/KPAD: exact 21 ->24/29; code 6756 ->7672/13056; data 8032 ->8032/8032.
|
||||
MAX round produced 3 new exact functions; 98 logged successfully built distinct source variants plus1720 declaration-search builds (failed builds excluded). All16 remaining functions have >=3 distinct successfully built source variants in this round. Every nonexact source/header trial was restored; only the newly exact SDK function bodies and this log differ from f7b1b9b0. Unsupported NWC24-error input contract remains unproved; initialized fallback retained.
|
||||
- src/scene/sdChannelSelect/iplSDChannelSelect create__Q33ipl5scene15SDChannelSelectFv 97.73972%; 3 successful distinct source trials; 145/146 frame0x20; missing BS2-manager body reload; switch/for-loop polling and update-reference scopes leave gap.
|
||||
- src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.81188%; 6 successful distinct source trials; 101/101 frame0x40; counter add/store and first threshold load schedule differ4; postincrement-result helpers and const formal pointer variables unchanged; copied count adds4 instructions.
|
||||
- src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.833336%; 6 successful distinct source trials; 102/102 frame0x40; counter add/store and first threshold load schedule differ4; old-count helpers/const formals unchanged; copied count adds4 instructions.
|
||||
- src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.29365%; 3 successful distinct source trials; 126/126 frame0x60; entry indexing and counter/threshold lifetimes; title-ID hoist plus pointer-row/unsigned channel index views leave7; nonexact restored.
|
||||
- src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.55125%; 3 successful distinct source trials; 361/361 frame0x80; four repeated counter/threshold schedules differ16; named previous counts, comma postincrement and old-count-return helper unchanged.
|
||||
- src/scene/sdChannelSelect/iplSDChannelSelect flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv 99.65714%; 6 successful distinct source trials; 35/35 frame0x10; heap/manager argument loads reversed; pointer-cell getter const references and real flush-request aggregates all retain2.
|
||||
- src/scene/sdChannelSelect/iplSDChannelSelect setChannelScissor__Q33ipl5scene15SDChannelSelectCFPCQ33ipl5scene12SDChannelObj 93.4721%; 3 successful distinct source trials; 233/233 frame0xe0; framebuffer conversion and scissor/projection coordinate lifetimes; dimension references retain68, shared width230 instructions, bounds aggregate251.
|
||||
- src/scene/address/iplAddressEdit create__Q33ipl5scene11AddressEditFv 97.44634%; 3 successful distinct source trials; 820/820 frame0x60; target keeps two text addresses across lookups and has one allocation guard; ordinary new with mutable pointer/array/String views remains818/820; restored.
|
||||
- src/scene/address/iplAddressEdit get_friendinfo__Q33ipl5scene11AddressEditFv 88.03571%; 3 successful distinct source trials; 82/84 frame0x420; target saves both text pointers before virtual pane lookups; mutable pointer/array/String views still82/84; rematerialization gap remains.
|
||||
- src/scene/address/iplAddressEdit update_friendinfo__Q33ipl5scene11AddressEditFv 99.42105%; 6 successful distinct source trials; 38/38 frame0x10; resolved wcsncpy source/destination LEAs reversed; mutable request fields/constructor, actual array addresses and const array-reference getter retain2.
|
||||
- src/scene/address/iplAddressEdit set_err_msg__Q33ipl5scene11AddressEditFPwUl8NWC24Err 98.666664%; 3 successful distinct source trials; 76/75 frame0x60; target leaves message ID undefined on unsupported errors; initialized aggregate76, exhaustive safe switch73, grouped safe if65; safe fallback retained.
|
||||
- libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight 99.23077%; 6 successful distinct source trials; 52/52 frame0x30; named-zero and center-subobject view fixes floating colors but leaves3 array-base colors;146-build declsearch plateau3; const/mutable center scalar helpers13 differences.
|
||||
- libs/RVL_SDK/src/kpad/KPAD read_kpad_acc 98.15%; 3 successful distinct source trials; 400/400 frame0x50; smoothing/guard reconstruction reaches one cmpwi5 instead of targetcmplwi5; unsigned predicate switch403, nested switch2 differences, format-relative switch1; restored.
|
||||
- libs/RVL_SDK/src/kpad/KPAD calc_dpd_variable 94.82%; 9 successful distinct source trials; 250/250 frame0x20; distance-weight and late rotation geometry load/product schedules; anonymous stored distance delta/direction-first products lower to38; no exact candidate.
|
||||
- libs/RVL_SDK/src/kpad/KPAD KPADRead 97.52723%; 5 successful distinct source trials; 459/459 frame0xc0; raw-copy cursor endpoint and ring-index/load schedules plus gravity x/y order; complete copy helper459 with250 differences, gravity product locals83, for-loop458; cursor/index scope459 instructions/282 differences; removing full batch count fails because repeat timing still uses it; nonexact restored.
|
||||
- libs/RVL_SDK/src/kpad/KPAD KPADInit 96.51351%; 3 successful distinct source trials; 185/185 frame0x90; delay constant/saved-float/matrix colors; repeat initializer and zero/one order unchanged81, matrix pointer loop scope improves65; restored.
|
||||
New exact names: KPADGetProjectionPos, calc_acc_horizon, select_1obj_first.
|
||||
Final full-gate authority lines:
|
||||
```
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 122/129
|
||||
[src/scene/address/iplAddressEdit] instruction-exact functions: 90/94
|
||||
[libs/RVL_SDK/src/kpad/KPAD] instruction-exact functions: 24/29
|
||||
GATE PASS
|
||||
```
|
||||
Gate-passing source commits: 459cc944 (projection), 021a0466 (single-object scan), b7d4457c (acceleration horizon). Final clean build retains all3 exact matches and every previous exact function. Only libs/RVL_SDK/src/kpad/KPAD.c and this attempts log changed.
|
||||
|
||||
35
tools/decomp-assist/iplESMisc.attempts.md
Normal file
35
tools/decomp-assist/iplESMisc.attempts.md
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
## w1008/card2 leaf — DeleteUnauthorizedData 79.8 → 89.6
|
||||
Decodes that landed:
|
||||
- Inverted head checks `if (ret != ES_ERR_OK) {report} else {work}` — orig inlines
|
||||
error bodies with success branched over (was tail-merged in nested success-if form).
|
||||
- `return ret` — fn returns s32 (orig mr r3,r27 before epilog); only the OUTER
|
||||
ListTitlesOnCard results go to `ret`; inner call results use a separate local
|
||||
(`result`) — kills the per-call `mr r24` homes.
|
||||
- Zelda predicate is a u64 masked compare: `(titleId & ~0xFFULL) == 0x00010000525A4400ULL`
|
||||
→ `and r4,r20,-1` (hi & 0xFFFFFFFF) + `and r0,r19,-0x100` + xor/xoris/or.
|
||||
- sprintf args are u64-masked exprs `(u32)((titleId >> 32) & 0xffffff)` and
|
||||
`(u32)(titleId & 0xffffffff)` → `and` with materialized masks, not clrlwi/mr.
|
||||
- `ESTitleId titleId = titleIds[i]` u64 indexed load → lwzx+add+lwz4; ticket block
|
||||
re-reads `titleIds[i]` after ES_DeleteTitle (forced reload across the call).
|
||||
- `ESTicketView* pTicketView` named local for memset/memcpy/DeleteTicket → r29 web.
|
||||
- Blacklist chain = goto-dispatch form (beq to shared delete block + goto next_title);
|
||||
`||` chain folded wrong (bne-merged), BOOL flag form emits li/cmpwi — both wrong.
|
||||
Remaining (documented walls): orig re-materializes each u64 constant per compare
|
||||
(lis/addi at every == and ordering check); mine keeps them in volatile regs across
|
||||
adjacent blocks — MWCC remat-vs-keep tie, ~10 insns. Plus beq+b vs bne tail dispatch
|
||||
and mr r6,r3 placement scheduling.
|
||||
|
||||
## card2 wave (w1008) — DeleteUnauthorizedData residual decode
|
||||
- `beq fwd; b` dispatch sites (DISK check `beq→del;b→next`, ticketViewCount `bne→alloc;b→next`):
|
||||
decoded — orig's then-block is adjacent-forward but else is a real `b` — needs else-goto + non-fallthrough then.
|
||||
Probes that all fold to single-branch: `if(c){goto}else{goto}` (bne→next), inverted polarity `if(!c)goto/else goto` (bne),
|
||||
nested `if(>){if(==)goto}else goto`, `else if(c==0){goto}else{X}` — MWCC always prefers bne+fallthrough-del.
|
||||
Confirmed A-vs-B block-placement tie (same wall as cardseq's `bge fwd;b` sites — MWCC places del-block
|
||||
adjacent and folds else-goto). ~2 sites ≈ +2 insns orig.
|
||||
- Per-compare u64 const remat: orig keeps r14=0x44490000 (DI-prefixed los) + r23=0x10000 (all his via `addi r0,r23,K`),
|
||||
rematting `addi r0,r23,{1,8}` per compare (~15 extra insns vs mine keeping 0x10001/0x10008 in r4/r5 across blocks).
|
||||
Keep-vs-remat wall — consts live in volatile regs stay live across non-call blocks; no source lever found.
|
||||
- `mr r6,r27` vs `mr r6,r3` arg-reg timing shifts — sched tie.
|
||||
- ret homing: `mr r27,r3` after EACH ListTitlesOnCard (both webs homed); mine keeps first web in r3.
|
||||
Final residual: 1796B orig vs 1736B mine — all in documented wall families (remat, block-layout, sched, web-homing).
|
||||
300
tools/decomp-assist/pk2.attempts.md
Normal file
300
tools/decomp-assist/pk2.attempts.md
Normal file
@@ -0,0 +1,300 @@
|
||||
# pk2 max parked retry
|
||||
|
||||
Applied unslop and coah-voice writing passes to the required report. Worker scope is four assigned units, config data proofs, and this log. No orchestration.
|
||||
Start HEAD and origin/main: e3457d11. Clean working tree. Origin fetched under /tmp/wii-git.lock.
|
||||
Memory startup check: commands run successfully; historical bubblewrap failure is absent in this environment.
|
||||
|
||||
libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL: initial pool check: POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
libs/RevoEX/src/nwc24/NWC24Download: initial pool check: POOL IDENTICAL up to 3 (mine=3 base=3)
|
||||
libs/RVL_SDK/src/fa/driver/sd_drv: initial pool check: POOL IDENTICAL up to 46 (mine=46 base=46)
|
||||
libs/RVL_SDK/src/fa/pf_cache: initial pool check: POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
DATA AUDIT: all four assigned units already have 100% matched data in the live report; target/source data names, extents, and section scores agree. No config rename or extent change needed. pf_cache has no data sections.
|
||||
BEGIN NHTTPi_strnicmp: fetched origin/main=e3457d11a22a9f0d8300daed615914fb230bea7d; owned source differs from HEAD on remote=False; diagnosis metric=((2, 2), 51, 51)
|
||||
DIAGNOSIS NHTTPi_strnicmp: Same 0x10 frame, 51/51 instructions; only hoisted Z and zero constants exchange instruction order. No stack store/reload evidence supports volatile. Pointees already const. No extent overlap. Prior declaration permutations excluded.
|
||||
ATTEMPT NHTTPi_strnicmp: read-only scalar pointer helper makes character values immutable views; source dc64c9a66cda; objdiff=99.76471%; metric=((2, 2), 51, 51); unit code/data/functions=1388/112/11; pool=POOL IDENTICAL up to 1 (mine=1 base=1); regressions=[]; restored
|
||||
ATTEMPT NHTTPi_strnicmp: conditional-expression helper instead of argument mutation; source 3dbaa1148791; objdiff=99.76471%; metric=((2, 2), 51, 51); unit code/data/functions=1388/112/11; pool=POOL IDENTICAL up to 1 (mine=1 base=1); regressions=[]; restored
|
||||
ATTEMPT NHTTPi_strnicmp: strict uppercase bounds preserve ASCII interval with different comparison lowering; source 6b4412f9238d; objdiff=49.117645%; metric=((36, 50), 50, 51); unit code/data/functions=1388/112/11; pool=POOL IDENTICAL up to 1 (mine=1 base=1); regressions=[]; restored
|
||||
BEGIN NHTTPi_compareToken: fetched origin/main=e3457d11a22a9f0d8300daed615914fb230bea7d; owned source differs from HEAD on remote=False; diagnosis metric=((24, 42), 44, 45)
|
||||
DIAGNOSIS NHTTPi_compareToken: Target has condition-entry loop with equality at bottom, right folding keeps shifted candidate then selects original on false; ours body-entry loop adds one branch and lacks that right selection. Target raw left byte survives in r31 for terminator check, same 0x10 frame.
|
||||
ATTEMPT NHTTPi_compareToken: condition-entry loop compares inlined folds directly; source 0e30c24d2a81; objdiff=94.62222%; metric=((7, 30), 44, 45); unit code/data/functions=1388/112/11; pool=POOL IDENTICAL up to 1 (mine=1 base=1); regressions=[]; restored
|
||||
ATTEMPT NHTTPi_compareToken: fold helper takes read-only byte pointer and preserves raw input alias; source 4cc0b6297c87; objdiff=94.62222%; metric=((7, 30), 44, 45); unit code/data/functions=1388/112/11; pool=POOL IDENTICAL up to 1 (mine=1 base=1); regressions=[]; restored
|
||||
ATTEMPT NHTTPi_compareToken: signed-byte read-only view with conditional fold in loop predicate; source 9466120301dc; objdiff=84.62222%; metric=((9, 44), 42, 45); unit code/data/functions=1388/112/11; pool=POOL IDENTICAL up to 1 (mine=1 base=1); regressions=[]; restored
|
||||
BEGIN NHTTPi_Base64Encode: fetched origin/main=e3457d11a22a9f0d8300daed615914fb230bea7d; owned source differs from HEAD on remote=False; diagnosis metric=((71, 58), 119, 119)
|
||||
DIAGNOSIS NHTTPi_Base64Encode: 119/119 instructions, same 0x20 frame and triplet unrolling. Target signed padding compare; ours unsigned. Most differences are dependent byte loads, alphabet index fragments, and stores under char aliasing; target keeps source[1] in r10, source[2] in r7 and early first fragment live.
|
||||
ATTEMPT NHTTPi_Base64Encode: signed length and signed-byte input view tighten source alias type; source eb7a0c5a67ab; objdiff=62.42857%; metric=((69, 56), 119, 119); unit code/data/functions=1388/112/11; pool=POOL IDENTICAL up to 1 (mine=1 base=1); regressions=[]; restored
|
||||
ATTEMPT NHTTPi_Base64Encode: signed-byte snapshots with explicit triplet and signed padding arithmetic; source e89377650b53; objdiff=62.781513%; metric=((47, 63), 119, 119); unit code/data/functions=1388/112/11; pool=POOL IDENTICAL up to 1 (mine=1 base=1); regressions=[]; restored
|
||||
ATTEMPT NHTTPi_Base64Encode: read-only typed triplet passed to inline encoder; high fragment added before low; source cc15a48005fd; objdiff=64.35294%; metric=((43, 57), 119, 119); unit code/data/functions=1388/112/11; pool=POOL IDENTICAL up to 1 (mine=1 base=1); regressions=[]; restored
|
||||
BEGIN NHTTPi_compareToken: fetched origin/main=e3457d11a22a9f0d8300daed615914fb230bea7d; owned source differs from HEAD on remote=False; diagnosis metric=((24, 42), 44, 45)
|
||||
ATTEMPT NHTTPi_compareToken: right immutable value fold and left mutating fold keep distinct inline lifetimes; source 470960bd5c07; objdiff=94.62222%; metric=((7, 30), 44, 45); unit code/data/functions=1388/112/11; pool=POOL IDENTICAL up to 1 (mine=1 base=1); regressions=[]; restored
|
||||
ATTEMPT NHTTPi_compareToken: raw signed-byte terminator survives left fold; right const-value return helper; source f90da98d79f2; objdiff=69.28889%; metric=((6, 20), 45, 45); unit code/data/functions=1388/112/11; pool=POOL IDENTICAL up to 1 (mine=1 base=1); regressions=[]; restored
|
||||
ATTEMPT NHTTPi_compareToken: raw unsigned left byte widens at the fold boundary and signed stop check; source cffa6f49daf0; objdiff=94.62222%; metric=((7, 30), 44, 45); unit code/data/functions=1388/112/11; pool=POOL IDENTICAL up to 1 (mine=1 base=1); regressions=[]; restored
|
||||
BEGIN NWC24InitDlTask: fetched origin/main=d78210528f882407ff363d4a112114670a216ce3; owned source differs from HEAD on remote=False; diagnosis metric=((0, 31), 144, 144)
|
||||
DIAGNOSIS NWC24InitDlTask: 0x60 frame and 144/144 instructions; structural score zero. Zero/home ID/header/title/group values cycle saved registers. No volatile store-reload proof. Headers and task permission views are read-only candidates; validate alias assumptions before register search.
|
||||
ATTEMPT NWC24InitDlTask: permission boundary receives const task and cached header explicitly; source ff1390188311; objdiff=98.854164%; metric=((0, 33), 144, 144); unit code/data/functions=8140/80/25; pool=POOL IDENTICAL up to 3 (mine=3 base=3); regressions=[]; restored
|
||||
ATTEMPT NWC24InitDlTask: owner components use const parse views and read-only initial header; source dadcc1f11b6b; BUILD FAILED m int -fp hardware -Cpp_exceptions off -O4,p -inline auto -pragma "cats off" -pragma "warn_notinlined off" -maxerrors 1 -nosyspath -RTTI off -fp_contract on -str reuse -DSDK_IPL -D_REVOLUTION -DMEM_MANAGER_DIRECT -i include -i include/global -i libs/MetroTRK/include -i libs/Runtime/include -i libs/MSL/include -i libs/RVL_SDK/include -i libs/RevoEX/include -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RevoEX/src/nwc24/NWC24Download.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24Download.d build/43U/src/libs/RevoEX/src/nwc24/NWC24Download.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: libs\RevoEX\src\nwc24\NWC24Download.c
|
||||
# ----------------------------------------------
|
||||
# 268: const char* ownerHighText = homePath + 7;
|
||||
# Error: ^^^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
BEGIN NWC24UpdateDlTask: fetched origin/main=26d7e1e052a80ea55d0591a82653370965ad5bb2; owned source differs from HEAD on remote=False; diagnosis metric=((19, 250), 249, 253)
|
||||
DIAGNOSIS NWC24UpdateDlTask: Target frame 0x20, explicit r28..r31 saves; source 0x30, five-register save helper. Target group check keeps allowed boolean and groupId in different saved lifetimes; retry branch uses positive cached-work view and shifted bit first. No store/reload volatile evidence. Reducing helper live values is structural priority.
|
||||
ATTEMPT NWC24UpdateDlTask: read-only permission helper and nested group boolean control saved-value lifetime; source 63d243827abe; objdiff=98.695656%; metric=((5, 43), 253, 253); unit code/data/functions=8140/80/25; pool=POOL IDENTICAL up to 3 (mine=3 base=3); regressions=[]; restored
|
||||
ATTEMPT NWC24UpdateDlTask: read-only cached-work retry helper and shifted retry mask operand first; source 3c443ac7ae56; objdiff=98.715416%; metric=((5, 43), 253, 253); unit code/data/functions=8140/80/25; pool=POOL IDENTICAL up to 3 (mine=3 base=3); regressions=[]; restored
|
||||
ATTEMPT NWC24UpdateDlTask: caller-owned universal time object bounds access-time helper lifetime with const permissions; source 5d281c43af14; objdiff=97.885376%; metric=((11, 148), 251, 253); unit code/data/functions=8140/80/25; pool=POOL IDENTICAL up to 3 (mine=3 base=3); regressions=[]; restored
|
||||
BEGIN NWC24InitDlTask: fetched origin/main=26d7e1e052a80ea55d0591a82653370965ad5bb2; owned source differs from HEAD on remote=False; diagnosis metric=((0, 31), 144, 144)
|
||||
DIAGNOSIS NWC24InitDlTask: 0x60 frame and 144/144 instructions; structural score zero. Zero/home ID/header/title/group values cycle saved registers. No volatile store-reload proof. Headers and task permission views are read-only candidates; validate alias assumptions before register search.
|
||||
ATTEMPT NWC24InitDlTask: permission boundary receives const task and cached header explicitly; source ff1390188311; objdiff=98.854164%; metric=((0, 33), 144, 144); unit code/data/functions=8140/80/25; pool=POOL IDENTICAL up to 3 (mine=3 base=3); regressions=[]; restored
|
||||
ATTEMPT NWC24InitDlTask: owner components use const parse views and read-only initial header; source cd6db78c6535; objdiff=98.923615%; metric=((0, 31), 144, 144); unit code/data/functions=8140/80/25; pool=POOL IDENTICAL up to 3 (mine=3 base=3); regressions=[]; restored
|
||||
ATTEMPT NWC24InitDlTask: post-initialization read-only task/header views localize final validation lifetime; source fe5fbec0434b; objdiff=98.854164%; metric=((0, 33), 144, 144); unit code/data/functions=8140/80/25; pool=POOL IDENTICAL up to 3 (mine=3 base=3); regressions=[]; restored
|
||||
BEGIN NWC24IterateDlTask: fetched origin/main=26d7e1e052a80ea55d0591a82653370965ad5bb2; owned source differs from HEAD on remote=False; diagnosis metric=((0, 10), 79, 79)
|
||||
DIAGNOSIS NWC24IterateDlTask: Leaf 79/79 instructions, structural score zero. Only work and derived header registers r6/r7 exchange. Target and source extents equal. Use read-only work/header views and lookup boundary without declaration-order permutations.
|
||||
ATTEMPT NWC24IterateDlTask: const work pointer narrows iteration input alias view; source 487b19d2bdfc; objdiff=100.0%; metric=((0, 0), 79, 79); unit code/data/functions=8456/80/26; pool=POOL IDENTICAL up to 3 (mine=3 base=3); regressions=[]; RETAINED exact, awaiting full gate
|
||||
BEGIN NWC24iCheckDlHeaderConsistency: fetched origin/main=26d7e1e052a80ea55d0591a82653370965ad5bb2; owned source differs from HEAD on remote=False; diagnosis metric=((2, 3), 212, 212)
|
||||
DIAGNOSIS NWC24iCheckDlHeaderConsistency: Same 0x2c0 frame, 212/212 instructions. Only task address creation moves after parameter copies. No forced stack spill or volatile evidence. Task object extent and neighbours equal; inspect read-only list view and helper boundaries instead of prior declaration permutations.
|
||||
ATTEMPT NWC24iCheckDlHeaderConsistency: header parameter and both cached header views are const; source f6279354e003; objdiff=98.77358%; metric=((2, 3), 212, 212); unit code/data/functions=8456/80/26; pool=POOL IDENTICAL up to 3 (mine=3 base=3); regressions=[]; restored
|
||||
ATTEMPT NWC24iCheckDlHeaderConsistency: constant task pointer, repair flag, and read-only list bound preserve immutable input lifetimes; source 4a24bba4583f; objdiff=98.77358%; metric=((2, 3), 212, 212); unit code/data/functions=8456/80/26; pool=POOL IDENTICAL up to 3 (mine=3 base=3); regressions=[]; restored
|
||||
ATTEMPT NWC24iCheckDlHeaderConsistency: repair read boundary takes task pointer and read-only identifier address; source 39cb60543b0b; objdiff=96.69811%; metric=((15, 170), 210, 212); unit code/data/functions=8456/80/26; pool=POOL IDENTICAL up to 3 (mine=3 base=3); regressions=[]; restored
|
||||
CHECKPOINT NWC24IterateDlTask: const NWC24Work input view fixes r6/r7 alias allocation. Objdiff 100.0%, 79/79 instructions, ctxdiff diffs 0, code 8140 -> 8456, data 80/80 unchanged. Fresh quick full gate: GATE PASS, regressions 0, forbidden/readability 0, correct DOL SHA1. Final clean full gate still required.
|
||||
```
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] objdiff: code 8456/12496 data 80/80 functions 26/30 fuzzy 99.1697 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] instruction-exact functions: 26/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 99.169655
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24InitDlTask 98.923615
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24UpdateDlTask 95.00395
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCheckDlHeaderConsistency 98.77358
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: AddTaskInternal 97.7182
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] baseline: code 8140/12496 data 80 functions 25 fuzzy 99.1521
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 91.02223 -> 91.03278
|
||||
global fuzzy_match_percent: 99.58757 -> 99.58764
|
||||
global complete_code_percent: 73.73083 -> 73.73083
|
||||
global matched_data_percent: 99.42271 -> 99.42271
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
BEGIN AddTaskInternal: fetched origin/main=26d7e1e052a80ea55d0591a82653370965ad5bb2; owned source differs from HEAD on remote=True; diagnosis metric=((22, 323), 398, 401)
|
||||
DIAGNOSIS AddTaskInternal: Target/source frames 0x30; 398/401 instructions. URL helper branch lacks target explicit jump; target free-slot counter wider then narrowed when indexed, and retry helper null/non-null branch direction differs. Current template also carries one extra saved register in update inner lifetime. Inspect const validation/URL views and widened search bounds first.
|
||||
ATTEMPT AddTaskInternal: URL validation reads task and header through const views; source a9c8ec831220; objdiff=97.7182%; metric=((22, 323), 398, 401); unit code/data/functions=8456/80/26; pool=POOL IDENTICAL up to 3 (mine=3 base=3); regressions=[]; restored
|
||||
ATTEMPT AddTaskInternal: free-slot loop uses wide counter and explicit 16-bit entry view with read-only URL validation; source 6ae43c6b3f02; objdiff=97.7182%; metric=((22, 323), 398, 401); unit code/data/functions=8456/80/26; pool=POOL IDENTICAL up to 3 (mine=3 base=3); regressions=[]; restored
|
||||
ATTEMPT AddTaskInternal: free-slot status uses positive success branch; const URL task/header alias view; source 6eb9e944c574; objdiff=97.7182%; metric=((22, 323), 398, 401); unit code/data/functions=8456/80/26; pool=POOL IDENTICAL up to 3 (mine=3 base=3); regressions=[]; restored
|
||||
BEGIN pfd_sddrv_init: fetched origin/main=26d7e1e052a80ea55d0591a82653370965ad5bb2; owned source differs from HEAD on remote=False; diagnosis metric=((18, 31), 144, 144)
|
||||
DIAGNOSIS pfd_sddrv_init: 144/144 instructions, same 0x20 frame. Target unsigned register null test and branchful identity return; source cmpwi and branchless return, compensated size. Device store precedes media load in target, and final disk store precedes flag load. No same-field immediate store/reload warrants volatile. Try const views and real init helper boundaries.
|
||||
ATTEMPT pfd_sddrv_init: const disk identity view and explicit mismatch return branch; source 905b3c7fadf5; objdiff=92.326385%; metric=((18, 31), 144, 144); unit code/data/functions=8940/3592/21; pool=POOL IDENTICAL up to 46 (mine=46 base=46); regressions=[]; restored
|
||||
|
||||
EXTENT AUDIT: all assigned open code symbol extents checked against sorted next symbols. No overlap; no function size edits authorized or needed.
|
||||
NHTTPi_strnicmp: start 0x81497ec4, size 0xcc, next NHTTPi_getUrlEncodedSize 0x81497f90, no extent overlap.
|
||||
NHTTPi_compareToken: start 0x81498454, size 0xb4, next NHTTPi_strtonum 0x81498508, no extent overlap.
|
||||
NHTTPi_Base64Encode: start 0x81498598, size 0x1dc, next NHTTPi_InitThreadInfo 0x81498774, no extent overlap.
|
||||
NWC24InitDlTask: start 0x814ae9b8, size 0x240, next NWC24SetDlId 0x814aebf8, no extent overlap.
|
||||
NWC24IterateDlTask: start 0x814af408, size 0x13c, next NWC24IterateDlTaskEx 0x814af544, no extent overlap.
|
||||
NWC24UpdateDlTask: start 0x814af788, size 0x3f4, next NWC24DeleteDlTask 0x814afb7c, no extent overlap.
|
||||
NWC24iCheckDlHeaderConsistency: start 0x814b0874, size 0x350, next NWC24iCreateDlTaskList 0x814b0bc4, no extent overlap.
|
||||
AddTaskInternal: start 0x814b1208, size 0x644, next DeleteDlTask 0x814b184c, no extent overlap.
|
||||
PFCACHE_DoWriteNumSectorAndFreeIfNeeded: start 0x815c9f54, size 0x3a4, next PFCACHE_DoFlushCache 0x815ca2f8, no extent overlap.
|
||||
pfd_sddrv_init: start 0x815ea638, size 0x240, next pfd_sddrv_mount 0x815ea878, no extent overlap.
|
||||
pfd_sddrv_finalize: start 0x815eab80, size 0xe4, next pfd_sddrv_get_disk_info 0x815eac64, no extent overlap.
|
||||
pfd_sddrv_get_total_sectors: start 0x815eb2a4, size 0x140, next pfd_sddrv_calc_mbr_bpb 0x815eb3e4, no extent overlap.
|
||||
pfd_sddrv_store_mbr_buf: start 0x815ebbb4, size 0x328, next pfd_sddrv_build_mbr_bpb 0x815ebedc, no extent overlap.
|
||||
pfd_sddrv_build_fat32_mbr_bpb: start 0x815eccc0, size 0x378, next pfd_sddrv_full_format 0x815ed038, no extent overlap.
|
||||
ATTEMPT pfd_sddrv_init: media presence follows device assignment through read-only info helper; source 3d1f9324ee5f; objdiff=92.326385%; metric=((18, 31), 144, 144); unit code/data/functions=8940/3592/21; pool=POOL IDENTICAL up to 46 (mine=46 base=46); regressions=[]; restored
|
||||
ATTEMPT pfd_sddrv_init: init completion helper owns disk assignment and flags in target store order; source c149ecc642dd; objdiff=92.326385%; metric=((18, 31), 144, 144); unit code/data/functions=8940/3592/21; pool=POOL IDENTICAL up to 46 (mine=46 base=46); regressions=[]; restored
|
||||
BEGIN pfd_sddrv_finalize: fetched origin/main=26d7e1e052a80ea55d0591a82653370965ad5bb2; owned source differs from HEAD on remote=False; diagnosis metric=((6, 4), 57, 57)
|
||||
DIAGNOSIS pfd_sddrv_finalize: Same 0x10 frame, 57/57 instructions. Four mismatches: final flag load target r3 versus r5, target masks/stores flags before media reset; ours hoists media reset ahead of mask. Record-level return helper can shorten final value lifetime. No proven volatile reload in target.
|
||||
ATTEMPT pfd_sddrv_finalize: completion helper returns success after clearing real record fields; source 0cf2049687eb; objdiff=92.63158%; metric=((6, 4), 57, 57); unit code/data/functions=8940/3592/21; pool=POOL IDENTICAL up to 46 (mine=46 base=46); regressions=[]; restored
|
||||
ATTEMPT pfd_sddrv_finalize: const flag field input view in record completion helper; source 5361f291b228; objdiff=92.63158%; metric=((6, 4), 57, 57); unit code/data/functions=8940/3592/21; pool=POOL IDENTICAL up to 46 (mine=46 base=46); regressions=[]; restored
|
||||
ATTEMPT pfd_sddrv_finalize: separate read-only record view and mutable record completion boundary; source fe2bf402a758; objdiff=92.63158%; metric=((6, 4), 57, 57); unit code/data/functions=8940/3592/21; pool=POOL IDENTICAL up to 46 (mine=46 base=46); regressions=[]; restored
|
||||
BEGIN pfd_sddrv_get_total_sectors: fetched origin/main=26d7e1e052a80ea55d0591a82653370965ad5bb2; owned source differs from HEAD on remote=False; diagnosis metric=((0, 6), 80, 80)
|
||||
DIAGNOSIS pfd_sddrv_get_total_sectors: 80/80 instructions and frame unchanged. Six mismatches in final 16-bit multiplier shift/product: target reuses selected exponent r3 and constant r0, source uses r0/r5. Need true narrow shift lifetime before register-only permutations; no reload/spill or extent proof for other levers.
|
||||
ATTEMPT pfd_sddrv_get_total_sectors: const exponent input at 16-bit block multiplier inline boundary; source cbcb2b194abc; objdiff=96.9875%; metric=((3, 10), 80, 80); unit code/data/functions=8940/3592/21; pool=POOL IDENTICAL up to 46 (mine=46 base=46); regressions=[]; restored
|
||||
ATTEMPT pfd_sddrv_get_total_sectors: reduce selected 16-bit exponent in place before multiplier shift; source ba2dc2fb501c; objdiff=99.5%; metric=((0, 6), 80, 80); unit code/data/functions=8940/3592/21; pool=POOL IDENTICAL up to 46 (mine=46 base=46); regressions=[]; restored
|
||||
ATTEMPT pfd_sddrv_get_total_sectors: sector count helper combines narrow factor and product with const exponent; source 21d00041dc62; objdiff=96.9875%; metric=((3, 10), 80, 80); unit code/data/functions=8940/3592/21; pool=POOL IDENTICAL up to 46 (mine=46 base=46); regressions=[]; restored
|
||||
BEGIN pfd_sddrv_store_mbr_buf: fetched origin/main=26d7e1e052a80ea55d0591a82653370965ad5bb2; owned source differs from HEAD on remote=False; diagnosis metric=((0, 9), 202, 202)
|
||||
DIAGNOSIS pfd_sddrv_store_mbr_buf: 202/202 instructions, frame identical. Only track-size product and partition start sector exchange r8/r9 within CHS arithmetic. Read-only formatting input and CHS helper boundaries can change alias assumptions; no volatile reload or symbol overlap.
|
||||
ATTEMPT pfd_sddrv_store_mbr_buf: const formatting input parameter isolates CHS reads from output sector stores; source 1a720184cd4f; objdiff=99.75247%; metric=((0, 9), 202, 202); unit code/data/functions=8940/3592/21; pool=POOL IDENTICAL up to 46 (mine=46 base=46); regressions=[]; restored
|
||||
ATTEMPT pfd_sddrv_store_mbr_buf: local read-only formatting view spans table lookup and CHS calculation; source 017e7858eba2; objdiff=99.75247%; metric=((0, 9), 202, 202); unit code/data/functions=8940/3592/21; pool=POOL IDENTICAL up to 46 (mine=46 base=46); regressions=[]; restored
|
||||
ATTEMPT pfd_sddrv_store_mbr_buf: track-size multiplication in read-only settings helper with const format parameter; source 73df2e161b68; objdiff=99.09406%; metric=((5, 146), 203, 202); unit code/data/functions=8940/3592/21; pool=POOL IDENTICAL up to 46 (mine=46 base=46); regressions=[]; restored
|
||||
BEGIN pfd_sddrv_build_fat32_mbr_bpb: fetched origin/main=26d7e1e052a80ea55d0591a82653370965ad5bb2; owned source differs from HEAD on remote=False; diagnosis metric=((24, 122), 230, 222)
|
||||
DIAGNOSIS pfd_sddrv_build_fat32_mbr_bpb: 230/222 instructions; same frame. Target reserved sector builder has no null-buffer failure because sole caller passes static 512-byte buffer. Ours inlining keeps null/error path. First block write argument load order also differs. Fix helper type/known object input before scheduling; no extent overlap.
|
||||
ATTEMPT pfd_sddrv_build_fat32_mbr_bpb: reserved sector helper takes real typed sector object instead of byte-pointer alias; source c29717b898f6; objdiff=94.74324%; metric=((26, 122), 230, 222); unit code/data/functions=8940/3592/21; pool=POOL IDENTICAL up to 46 (mine=46 base=46); regressions=[]; restored
|
||||
pfd_sddrv_build_fat32_mbr_bpb dead-check proof: private reserved-sector helper has one call site, always g_pfd_sddrv_buf[512], a defined object whose address is nonnull. Removing its unreachable null failure preserves every call and payload store; target inlined block likewise omits it.
|
||||
ATTEMPT pfd_sddrv_build_fat32_mbr_bpb: remove unreachable null guard from single-caller private reserved-sector builder; source 05e9e530517e; objdiff=97.20721%; metric=((18, 100), 216, 222); unit code/data/functions=8472/1016/20; pool=FIRST DIVERGENCE at index 41
|
||||
39 mine=0x850 base=0x850
|
||||
M 'ERR Failed to store BPB values to buf. pfd_sddrv_store_fat32_bpb_buf()'
|
||||
B 'ERR Failed to store BPB values to buf. pfd_sddrv_store_fat32_bpb_buf()'
|
||||
40 mine=0x898 base=0x898
|
||||
M 'ERR Failed to store FSInfo values to buf. pfd_sddrv_store_fat32_fsi_bu'
|
||||
B 'ERR Failed to store FSInfo values to buf. pfd_sddrv_store_fat32_fsi_bu'
|
||||
* 41 mine=0x8e4 base=0x8e4
|
||||
M 'ERROR Failed to SD Card Reset [ret = 0x%x]. pfd_sddrv_full_format()\n'
|
||||
B 'ERR Failed to store reserved for boot sector values to buf. '
|
||||
* 42 mine=0x930 base=0x924
|
||||
M 'ERR Failed to get total sectors. pfd_sddrv_get_total_sectors()\n'
|
||||
B 'pfd_sddrv_store_fat32_reserved_buf()\n'
|
||||
* 43 mine=0x970 base=0x94c
|
||||
M 'ERR Failed to build up and write MBR and BPB fields.\n'
|
||||
B 'ERROR Failed to SD Card Reset [ret = 0x%x]. pfd_sddrv_full_format()\n'
|
||||
|
||||
mine has 44 strings, base has 46; regressions=['main/libs/RVL_SDK/src/fa/driver/sd_drv matched_code', 'main/libs/RVL_SDK/src/fa/driver/sd_drv matched_data', 'main/libs/RVL_SDK/src/fa/driver/sd_drv matched_functions', 'main/libs/RVL_SDK/src/fa/driver/sd_drv pfd_sddrv_full_format']; restored
|
||||
ATTEMPT pfd_sddrv_build_fat32_mbr_bpb: reserved-sector helper owns its sole static destination object directly; source 79b89e963e83; objdiff=97.20721%; metric=((18, 100), 216, 222); unit code/data/functions=8472/1016/20; pool=FIRST DIVERGENCE at index 41
|
||||
39 mine=0x850 base=0x850
|
||||
M 'ERR Failed to store BPB values to buf. pfd_sddrv_store_fat32_bpb_buf()'
|
||||
B 'ERR Failed to store BPB values to buf. pfd_sddrv_store_fat32_bpb_buf()'
|
||||
40 mine=0x898 base=0x898
|
||||
M 'ERR Failed to store FSInfo values to buf. pfd_sddrv_store_fat32_fsi_bu'
|
||||
B 'ERR Failed to store FSInfo values to buf. pfd_sddrv_store_fat32_fsi_bu'
|
||||
* 41 mine=0x8e4 base=0x8e4
|
||||
M 'ERROR Failed to SD Card Reset [ret = 0x%x]. pfd_sddrv_full_format()\n'
|
||||
B 'ERR Failed to store reserved for boot sector values to buf. '
|
||||
* 42 mine=0x930 base=0x924
|
||||
M 'ERR Failed to get total sectors. pfd_sddrv_get_total_sectors()\n'
|
||||
B 'pfd_sddrv_store_fat32_reserved_buf()\n'
|
||||
* 43 mine=0x970 base=0x94c
|
||||
M 'ERR Failed to build up and write MBR and BPB fields.\n'
|
||||
B 'ERROR Failed to SD Card Reset [ret = 0x%x]. pfd_sddrv_full_format()\n'
|
||||
|
||||
mine has 44 strings, base has 46; regressions=['main/libs/RVL_SDK/src/fa/driver/sd_drv matched_code', 'main/libs/RVL_SDK/src/fa/driver/sd_drv matched_data', 'main/libs/RVL_SDK/src/fa/driver/sd_drv matched_functions', 'main/libs/RVL_SDK/src/fa/driver/sd_drv pfd_sddrv_full_format']; restored
|
||||
BEGIN PFCACHE_DoWriteNumSectorAndFreeIfNeeded: fetched origin/main=26d7e1e052a80ea55d0591a82653370965ad5bb2; owned source differs from HEAD on remote=False; diagnosis metric=((0, 4), 233, 233)
|
||||
DIAGNOSIS PFCACHE_DoWriteNumSectorAndFreeIfNeeded: 233/233 instructions and same frame. Four register operand differences only in right overlap block, page sector versus recomputed end occupy r4/r5 oppositely. Last-sector subtraction scheduled identically. Data/strings absent, no volatile store-reload evidence or extent overlap. Change read-only overlap input boundaries, no declaration permutations.
|
||||
ATTEMPT PFCACHE_DoWriteNumSectorAndFreeIfNeeded: overlap helper reads request end through const scalar pointer; source 606706d65afa; objdiff=99.8927%; metric=((0, 4), 233, 233); unit code/data/functions=6464/0/35; pool=POOL IDENTICAL up to 0 (mine=0 base=0); regressions=[]; restored
|
||||
ATTEMPT PFCACHE_DoWriteNumSectorAndFreeIfNeeded: overlap helper uses separate const page view for sector input; source d5f6e06ac285; objdiff=99.8927%; metric=((0, 4), 233, 233); unit code/data/functions=6464/0/35; pool=POOL IDENTICAL up to 0 (mine=0 base=0); regressions=[]; restored
|
||||
ATTEMPT PFCACHE_DoWriteNumSectorAndFreeIfNeeded: typed read-only request-end record across overlap update boundary; source 9a7956d662f5; objdiff=99.8927%; metric=((0, 4), 233, 233); unit code/data/functions=6464/0/35; pool=POOL IDENTICAL up to 0 (mine=0 base=0); regressions=[]; restored
|
||||
BEGIN NWC24iCheckDlHeaderConsistency: fetched origin/main=26d7e1e052a80ea55d0591a82653370965ad5bb2; owned source differs from HEAD on remote=True; diagnosis metric=((2, 3), 212, 212)
|
||||
NWC24iCheckDlHeaderConsistency local type proof: DlTaskData ends with url[0xec], fileName[0x5c], optOut byte and 3 reserved bytes, total 0x200; matches opaque NWC24DlTask 0x200. Stack object replacement represents the same task, with no padding added or extent change.
|
||||
ATTEMPT NWC24iCheckDlHeaderConsistency: real structured task stack object cast at the opaque API boundary; source fcd54af0851f; objdiff=98.77358%; metric=((2, 3), 212, 212); unit code/data/functions=8456/80/26; pool=POOL IDENTICAL up to 3 (mine=3 base=3); regressions=[]; restored
|
||||
ATTEMPT NWC24iCheckDlHeaderConsistency: structured task receives opaque view through typed inline boundary; source 301ca3eb1edc; objdiff=98.77358%; metric=((2, 3), 212, 212); unit code/data/functions=8456/80/26; pool=POOL IDENTICAL up to 3 (mine=3 base=3); regressions=[]; restored
|
||||
ATTEMPT NWC24iCheckDlHeaderConsistency: typed task pointer stays structured until each opaque read/delete boundary; source 1bc6e69d54e9; objdiff=98.77358%; metric=((2, 3), 212, 212); unit code/data/functions=8456/80/26; pool=POOL IDENTICAL up to 3 (mine=3 base=3); regressions=[]; restored
|
||||
BEGIN PFCACHE_DoWriteNumSectorAndFreeIfNeeded: fetched origin/main=26d7e1e052a80ea55d0591a82653370965ad5bb2; owned source differs from HEAD on remote=False; diagnosis metric=((0, 4), 233, 233)
|
||||
ATTEMPT PFCACHE_DoWriteNumSectorAndFreeIfNeeded: request-end formal is reduced in place to overlap count after deriving last sector; source b10773207f13; objdiff=99.8927%; metric=((0, 4), 233, 233); unit code/data/functions=6464/0/35; pool=POOL IDENTICAL up to 0 (mine=0 base=0); regressions=[]; restored
|
||||
ATTEMPT PFCACHE_DoWriteNumSectorAndFreeIfNeeded: overlap count starts from end and subtracts page before computing last sector; source 85f5d01a2a49; objdiff=99.8927%; metric=((0, 4), 233, 233); unit code/data/functions=6464/0/35; pool=POOL IDENTICAL up to 0 (mine=0 base=0); regressions=[]; restored
|
||||
ATTEMPT PFCACHE_DoWriteNumSectorAndFreeIfNeeded: const source-sector lifetime retained for both overlap updates without separate overlap object; source f643ee71364a; objdiff=99.8927%; metric=((0, 4), 233, 233); unit code/data/functions=6464/0/35; pool=POOL IDENTICAL up to 0 (mine=0 base=0); regressions=[]; restored
|
||||
BEGIN pfd_sddrv_finalize: fetched origin/main=26d7e1e052a80ea55d0591a82653370965ad5bb2; owned source differs from HEAD on remote=False; diagnosis metric=((6, 4), 57, 57)
|
||||
PFD_SDDRV_INFO type trial proof: media_inserted/media_ejected are 32-bit truth values. Target init and callbacks write 0/1; lifecycle code tests against zero, and offsets remain 0x10/0x14. BOOL preserves width and layout and adds no volatile.
|
||||
ATTEMPT pfd_sddrv_finalize: media insertion field models target truth value as SDK BOOL; source b5214114691d; objdiff=92.63158%; metric=((6, 4), 57, 57); unit code/data/functions=8940/3592/21; pool=POOL IDENTICAL up to 46 (mine=46 base=46); regressions=[]; restored
|
||||
ATTEMPT pfd_sddrv_finalize: both lifecycle truth fields model SDK BOOL with unchanged offsets; source f4736e296197; objdiff=92.63158%; metric=((6, 4), 57, 57); unit code/data/functions=8940/3592/21; pool=POOL IDENTICAL up to 46 (mine=46 base=46); regressions=[]; restored
|
||||
ATTEMPT pfd_sddrv_finalize: signed word mask expression preserves only the initialized-bit clearing; source e483acc64c10; objdiff=92.63158%; metric=((6, 4), 57, 57); unit code/data/functions=8940/3592/21; pool=POOL IDENTICAL up to 46 (mine=46 base=46); regressions=[]; restored
|
||||
BEGIN pfd_sddrv_get_total_sectors: fetched origin/main=26d7e1e052a80ea55d0591a82653370965ad5bb2; owned source differs from HEAD on remote=False; diagnosis metric=((0, 6), 80, 80)
|
||||
ATTEMPT pfd_sddrv_get_total_sectors: wide unsigned shift factor is narrowed at final sector multiplication; source eef542901c40; objdiff=99.5%; metric=((0, 5), 80, 80); unit code/data/functions=8940/3592/21; pool=POOL IDENTICAL up to 46 (mine=46 base=46); regressions=[]; restored
|
||||
ATTEMPT pfd_sddrv_get_total_sectors: signed arithmetic shift factor narrowed at product, exponent constrained to zero through two; source 7322e282bd0f; objdiff=99.5%; metric=((0, 5), 80, 80); unit code/data/functions=8940/3592/21; pool=POOL IDENTICAL up to 46 (mine=46 base=46); regressions=[]; restored
|
||||
ATTEMPT pfd_sddrv_get_total_sectors: factor uses explicit unsigned shift expression and single 16-bit conversion; source 8666142025c4; objdiff=96.9875%; metric=((3, 10), 80, 80); unit code/data/functions=8940/3592/21; pool=POOL IDENTICAL up to 46 (mine=46 base=46); regressions=[]; restored
|
||||
|
||||
## Final open-function audit before clean gate
|
||||
Every open symbol was checked after fresh origin fetch. Data and strings stayed identical; all failed variants restored. No declaration permutations used. All 13 open functions have at least three distinct source-level attempts with successful object builds.
|
||||
|
||||
OPEN NHTTPi_strnicmp: 99.76471%; 51/51 instructions; Z and zero initialization order exchanged, every later instruction identical; 3 distinct successful source attempts; all reverted.
|
||||
OPEN NHTTPi_compareToken: 54.622223%; 44/45 instructions; loop entry and right-fold conditional value lifetime differ; 6 distinct successful source attempts; all reverted.
|
||||
OPEN NHTTPi_Base64Encode: 60.285713%; 119/119 instructions; source byte/table lookup scheduling and signed padding comparisons differ; 3 distinct successful source attempts; all reverted.
|
||||
OPEN NWC24InitDlTask: 98.923615%; 144/144 instructions; saved registers for zeros, owner ID, header and permission lifetimes differ; 3 distinct successful source attempts; all reverted.
|
||||
OPEN NWC24UpdateDlTask: 95.00395%; 249/253 instructions; additional saved register/frame and permission/access/retry helper boundaries differ; 3 distinct successful source attempts; all reverted.
|
||||
OPEN NWC24iCheckDlHeaderConsistency: 98.77358%; 212/212 instructions; stack task address materialization scheduled after saved argument copies; 6 distinct successful source attempts; all reverted.
|
||||
OPEN AddTaskInternal: 97.7182%; 398/401 instructions; URL/free-slot/retry branch boundaries and saved register lifetimes differ; 3 distinct successful source attempts; all reverted.
|
||||
OPEN pfd_sddrv_init: 92.326385%; 144/144 instructions; null/identity branch lowering and device/media/flag store-load scheduling differ; 3 distinct successful source attempts; all reverted.
|
||||
OPEN pfd_sddrv_finalize: 92.63158%; 57/57 instructions; final flag-mask register and media-reset scheduling differ; 6 distinct successful source attempts; all reverted.
|
||||
OPEN pfd_sddrv_get_total_sectors: 99.5%; 80/80 instructions; six register differences in narrow multiplier shift and product; 6 distinct successful source attempts; all reverted.
|
||||
OPEN pfd_sddrv_store_mbr_buf: 99.75247%; 202/202 instructions; nine register differences for CHS track product and partition start; 3 distinct successful source attempts; all reverted.
|
||||
OPEN pfd_sddrv_build_fat32_mbr_bpb: 94.75225%; 230/222 instructions; reserved-sector inline null/error path and block-write arguments differ; 3 distinct successful source attempts; all reverted.
|
||||
OPEN PFCACHE_DoWriteNumSectorAndFreeIfNeeded: 99.8927%; 233/233 instructions; request end and page sector exchange r4/r5 in right-overlap arithmetic; 6 distinct successful source attempts; all reverted.
|
||||
|
||||
Source-quality audit: only accepted source change is const NWC24Work* in NWC24IterateDlTask. No comments, new asm, volatile, register keyword, label pins, dummy objects, function renames, symbol/config changes, shared headers, other units, link flags, or remote writes. Data totals remain 112/80/3592/0, all 100%. Local accepted source commit f9c79662.
|
||||
|
||||
## Final full clean gate over all four units
|
||||
|
||||
Command: python3 /mnt/drive2/projects/wii-ipl-workers/_restore0928-tools/gate.py libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL libs/RevoEX/src/nwc24/NWC24Download libs/RVL_SDK/src/fa/driver/sd_drv libs/RVL_SDK/src/fa/pf_cache
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] objdiff: code 1388/2248 data 112/112 functions 11/14 fuzzy 87.9359 linked code 0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] instruction-exact functions: 11/14
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .data size 72 match 100.0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .rodata size 40 match 100.0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .text size 2248 match 87.93594
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_strnicmp 99.76471
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_compareToken 54.622223
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_Base64Encode 60.285713
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] baseline: code 1388/2248 data 112 functions 11 fuzzy 87.9359
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] objdiff: code 8456/12496 data 80/80 functions 26/30 fuzzy 99.1697 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] instruction-exact functions: 26/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 99.169655
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24InitDlTask 98.923615
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24UpdateDlTask 95.00395
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCheckDlHeaderConsistency 98.77358
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: AddTaskInternal 97.7182
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] baseline: code 8140/12496 data 80 functions 25 fuzzy 99.1521
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] objdiff: code 8940/11760 data 3592/3592 functions 21/26 fuzzy 99.0544 linked code 0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] instruction-exact functions: 21/26
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .bss size 608 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .data size 2576 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .rodata size 368 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .sbss size 40 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .text size 11760 match 99.05442
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_init 92.326385
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_finalize 92.63158
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_get_total_sectors 99.5
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_mbr_buf 99.75247
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_build_fat32_mbr_bpb 94.75225
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] baseline: code 8940/11760 data 3592 functions 21 fuzzy 99.0544
|
||||
[libs/RVL_SDK/src/fa/pf_cache] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_cache] objdiff: code 6464/7396 data None/None functions 35/36 fuzzy 99.9865 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_cache] instruction-exact functions: 35/36
|
||||
[libs/RVL_SDK/src/fa/pf_cache] section .text size 7396 match 99.98648
|
||||
[libs/RVL_SDK/src/fa/pf_cache] below 100: PFCACHE_DoWriteNumSectorAndFreeIfNeeded 99.8927
|
||||
[libs/RVL_SDK/src/fa/pf_cache] baseline: code 6464/7396 data None functions 35 fuzzy 99.9865
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 91.02223 -> 91.03278
|
||||
global fuzzy_match_percent: 99.58757 -> 99.58764
|
||||
global complete_code_percent: 73.73083 -> 73.73083
|
||||
global matched_data_percent: 99.42271 -> 99.42271
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
Before -> after instruction-exact/code/data:
|
||||
NHTTP_stdlib_RVL: 11/14 -> 11/14; 1388/2248 -> 1388/2248; 112/112 -> 112/112.
|
||||
NWC24Download: 25/30 -> 26/30; 8140/12496 -> 8456/12496; 80/80 -> 80/80.
|
||||
sd_drv: 21/26 -> 21/26; 8940/11760 -> 8940/11760; 3592/3592 -> 3592/3592.
|
||||
pf_cache: 35/36 -> 35/36; 6464/7396 -> 6464/7396; 0/0 -> 0/0.
|
||||
|
||||
Only NWC24IterateDlTask gained exact bytes. Const work view is proven by objdiff 100%, 79/79 identical instructions, and the final clean gate. All other trials are reverted. Remaining functions and reasons are in the OPEN audit above. No uncertainty about measured gains; source-level causes for the parked compiler differences remain unresolved.
|
||||
|
||||
Official declsearch scoring only after structural/source trials. No permutations and no source mutations.
|
||||
NHTTPi_strnicmp: structural 2 exact 2.
|
||||
NHTTPi_compareToken: structural 24 exact 42.
|
||||
NHTTPi_Base64Encode: structural 71 exact 58.
|
||||
NWC24InitDlTask: structural 0 exact 31.
|
||||
NWC24UpdateDlTask: structural 19 exact 250.
|
||||
NWC24iCheckDlHeaderConsistency: structural 2 exact 3.
|
||||
AddTaskInternal: structural 20 exact 323.
|
||||
pfd_sddrv_init: structural 18 exact 31.
|
||||
pfd_sddrv_finalize: structural 6 exact 4.
|
||||
pfd_sddrv_get_total_sectors: structural 0 exact 6.
|
||||
pfd_sddrv_store_mbr_buf: structural 0 exact 9.
|
||||
pfd_sddrv_build_fat32_mbr_bpb: structural 24 exact 122.
|
||||
PFCACHE_DoWriteNumSectorAndFreeIfNeeded: structural 0 exact 4.
|
||||
|
||||
Accepted symbol final fresh ctxdiff:
|
||||
```text
|
||||
src 0x13c base 0x13c insns 79/79
|
||||
diffs 0: []
|
||||
```
|
||||
Final progress/report.json and build/43U/ok targets pass. The full clean gate remains GATE PASS. Source change and all non-text scores are unchanged after scoring.
|
||||
Reference in New Issue
Block a user