Compare commits

...

13 Commits

Author SHA1 Message Date
coah
9a72196668 decomp: replace balloon margin comma-expression hack with TextBalloon::getDefaultMargin getters (worker 383d17df) 2026-10-08 23:27:55 +00:00
coah
dc7725eb2d decomp(address): match AddressEdit::create (worker 68baf5e3) (#1280) 2026-10-08 18:26:09 -05:00
coah
0b67e647ba decomp(cardseq): replace cardThreadMain carrier struct with ordinary locals (worker f9bdf29a) (#1279) 2026-10-08 18:23:29 -05:00
coah
b1e911808f decomp(bs2): replace UpdateThread scratch carrier with ordinary locals (worker 7af05191) (#1278) 2026-10-08 18:18:28 -05:00
coah
c723136fb4 decomp(address): match AddressEdit get_friendinfo and update_friendinfo (IRO level 1) (worker f6d94897) (#1277) 2026-10-08 17:58:52 -05:00
coah
a65cd4cb73 decomp(kbd): match kbd_led_handler (IRO level 0) (worker 429bb2a5) (#1276) 2026-10-08 17:44:05 -05:00
coah
2ca94fe4d3 decomp(www): match wiisetting Getter_ and link www_wiisetting (worker 16251338) (#1275) 2026-10-08 17:38:39 -05:00
coah
d558bb14ca decomp(bs2): match BS2StartGame with a typed reset-register view (worker afeef983) (#1274) 2026-10-08 17:31:16 -05:00
coah
6604f7319c decomp(tmc_jpeg): match texture converter setters (optimization_level 1); link RGB565 and Y8U8V8 (worker dd13a763) (#1273) 2026-10-08 17:24:13 -05:00
coah
426c03386e decomp(sdmemory): match SDMemory::create (IRO level 1, cached-title count helper) (worker dc9faaab) (#1272) 2026-10-08 17:23:15 -05:00
coah
7152b04d83 refactor(aterm): write the AutoConfigThread state select as a plain conditional (worker 8747dfc5) (#1271) 2026-10-08 17:07:23 -05:00
devin-ai-integration[bot]
0155de3e71 match(tiPcKeyboard): Base::setTranslateMode byte-identical (#1270)
keyMode must be uninitialized: for mode outside {0,1,2} the switch
leaves it unset and retail provably reads the uninitialized register
(cmplw r31,r0 at 0xd6c executes with r31 never stored). Initializing
keyMode = mode changes the dispatch to an extra branch. Same accepted
uninitialized-read pattern as set_err_msg.

Also documents two probe results in tools/decomp-assist attempts files
(iplSetting scanAP inlined-bool materialization wall; tiString inputChar
indexed-store/dead-compare fossil).

Co-authored-by: devin <devin@cognition.ai>
Co-authored-by: coah80 <usernamecole7@gmail.com>
2026-10-08 17:06:00 -05:00
coah
9321a926cf fix: account for AOSSData in strict completion unit count (#1269) 2026-10-08 16:18:19 -05:00
29 changed files with 4800 additions and 529 deletions

View File

@@ -700,7 +700,7 @@ config.libs = [
Object(Matching, "iplwww/www_print.cpp"),
Object(Matching, "iplwww/www_window.cpp"),
Object(Matching, "iplwww/www_trasition.cpp"),
Object(Equivalent, "iplwww/www_wiisetting.cpp"),
Object(Matching, "iplwww/www_wiisetting.cpp"),
Object(Matching, "iplwww/www_arcreader.cpp"),
]
),
@@ -1215,8 +1215,8 @@ config.libs = [
Object(Matching, "reschange/iqdec_resolution_change_a3.c"),
Object(Matching, "reschange/idct_resolution_change_var.c"),
Object(NonMatching, "texturecvtr/Texture_MCUtoY8U8V8.c"),
Object(NonMatching, "texturecvtr/Texture_MCUtoRGB565.c"),
Object(Matching, "texturecvtr/Texture_MCUtoY8U8V8.c"),
Object(Matching, "texturecvtr/Texture_MCUtoRGB565.c"),
Object(NonMatching, "texturecvtr/Texture_MCUtoRGBA8.c"),
Object(Matching, "b65/iqdec_b65_frv32.c"),

View File

@@ -50,6 +50,7 @@ namespace ipl {
void add_friendinfo();
void delete_friendinfo();
void set_textbox(nw4r::lyt::Pane*, const wchar_t*);
void set_textbox(nw4r::lyt::Pane* pane, u32 msgId);
void setDefaultTitleText(const wchar_t*, bool);
static void wiiid_utf16(u64, wchar_t*);
static void nigaoe_create_callback_add(ipl::nigaoe::Object*, void*);

View File

@@ -18,6 +18,15 @@ namespace ipl {
f32 margin16x9 = 120.0f, f32 margin4x3 = 30.0f);
~TextBalloon();
static f32 getDefaultMargin16x9() {
f32 margin = 120.0f;
return margin;
}
static f32 getDefaultMargin4x3() {
f32 margin = 30.0f;
return margin;
}
void calc();
void draw();

View File

@@ -14,7 +14,37 @@ static void TMCJPEGDEC_converterYUV444toRGB565edge(TMCCJPEGDecWork*, s32, s32);
static void TMCJPEGDEC_converterYUV400toRGB565(TMCCJPEGDecWork*, s32, s32);
static void TMCJPEGDEC_converterYUV400toRGB565edge(TMCCJPEGDecWork*, s32, s32);
#pragma push
#pragma optimization_level 1
s32 TMCJPEGDEC_set_converterRGB565(TMCCJPEGDecWork* work) {
u8 mode411;
u8* crBlock411;
u8* cbBlock411;
u8* fourthRow411;
u8* thirdRow411;
u8* secondRow411;
u8* firstRow411;
TMCConverterFunc* edgeConverter411;
TMCConverterFunc* converter411;
u8 mode422;
u8* crBlock422;
u8* cbBlock422;
u8* secondRow422;
u8* firstRow422;
TMCConverterFunc* edgeConverter422;
TMCConverterFunc* converter422;
u8 mode420;
u8* crBlock420;
u8* cbBlock420;
u8* fourthRow420;
u8* thirdRow420;
u8* secondRow420;
u8* firstRow420;
TMCConverterFunc* edgeConverter420;
TMCConverterFunc* converter420;
u8* buffer;
s32 componentCount;
TMCCJPEGDecState* state;
@@ -25,97 +55,84 @@ s32 TMCJPEGDEC_set_converterRGB565(TMCCJPEGDecWork* work) {
switch (componentCount) {
case 0: {
u8 mode;
u8* firstRow;
u8* secondRow;
u8* thirdRow;
u8* fourthRow;
u8* cbBlock;
u8* crBlock;
mode = work->idctMode;
firstRow = buffer + 4;
work->pConverterFunc = TMCJPEGDEC_converterYUV411toRGB565;
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV411toRGB565edge;
secondRow = firstRow + mode;
thirdRow = secondRow + mode;
fourthRow = thirdRow + mode;
cbBlock = buffer + 260;
crBlock = buffer + 324;
work->pConvRowPtrs[0] = firstRow;
work->pConvRowPtrs[1] = secondRow;
work->pConvRowPtrs[2] = thirdRow;
work->pConvRowPtrs[3] = fourthRow;
work->pConvRowPtrs[5] = cbBlock;
work->pConvRowPtrs[6] = crBlock;
mode411 = work->idctMode;
firstRow411 = buffer + 4;
converter411 = TMCJPEGDEC_converterYUV411toRGB565;
edgeConverter411 = TMCJPEGDEC_converterYUV411toRGB565edge;
secondRow411 = firstRow411 + mode411;
thirdRow411 = secondRow411 + mode411;
fourthRow411 = thirdRow411 + mode411;
cbBlock411 = buffer + 260;
crBlock411 = buffer + 324;
work->pConverterFunc = converter411;
work->pConverterFuncEdge = edgeConverter411;
work->pConvRowPtrs[0] = firstRow411;
work->pConvRowPtrs[1] = secondRow411;
work->pConvRowPtrs[2] = thirdRow411;
work->pConvRowPtrs[3] = fourthRow411;
work->pConvRowPtrs[5] = cbBlock411;
work->pConvRowPtrs[6] = crBlock411;
work->pitch = 32;
work->converterFlags = 0;
break;
}
case 1: {
u8 mode;
u8* firstRow;
u8* secondRow;
u8* cbBlock;
u8* crBlock;
mode = work->idctMode;
firstRow = buffer + 4;
work->pConverterFunc = TMCJPEGDEC_converterYUV422toRGB565;
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV422toRGB565edge;
secondRow = firstRow + mode;
cbBlock = buffer + 132;
crBlock = buffer + 196;
work->pConvRowPtrs[0] = firstRow;
work->pConvRowPtrs[1] = secondRow;
work->pConvRowPtrs[5] = cbBlock;
work->pConvRowPtrs[6] = crBlock;
mode422 = work->idctMode;
firstRow422 = buffer + 4;
converter422 = TMCJPEGDEC_converterYUV422toRGB565;
edgeConverter422 = TMCJPEGDEC_converterYUV422toRGB565edge;
secondRow422 = firstRow422 + mode422;
cbBlock422 = buffer + 132;
crBlock422 = buffer + 196;
work->pConverterFunc = converter422;
work->pConverterFuncEdge = edgeConverter422;
work->pConvRowPtrs[0] = firstRow422;
work->pConvRowPtrs[1] = secondRow422;
work->pConvRowPtrs[5] = cbBlock422;
work->pConvRowPtrs[6] = crBlock422;
work->pitch = 16;
work->converterFlags = 0;
break;
}
case 2: {
u8 mode;
u8* firstRow;
u8* secondRow;
u8* thirdRow;
u8* fourthRow;
u8* cbBlock;
u8* crBlock;
mode = work->idctMode;
firstRow = buffer + 4;
work->pConverterFunc = TMCJPEGDEC_converterYUV420toRGB565;
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV420toRGB565edge;
secondRow = firstRow + mode;
thirdRow = firstRow + mode * 16;
fourthRow = thirdRow + mode;
cbBlock = buffer + 260;
crBlock = buffer + 324;
work->pConvRowPtrs[0] = firstRow;
work->pConvRowPtrs[1] = secondRow;
work->pConvRowPtrs[2] = thirdRow;
work->pConvRowPtrs[3] = fourthRow;
work->pConvRowPtrs[5] = cbBlock;
work->pConvRowPtrs[6] = crBlock;
mode420 = work->idctMode;
firstRow420 = buffer + 4;
converter420 = TMCJPEGDEC_converterYUV420toRGB565;
edgeConverter420 = TMCJPEGDEC_converterYUV420toRGB565edge;
secondRow420 = firstRow420 + mode420;
thirdRow420 = firstRow420 + mode420 * 16;
fourthRow420 = thirdRow420 + mode420;
cbBlock420 = buffer + 260;
crBlock420 = buffer + 324;
work->pConverterFunc = converter420;
work->pConverterFuncEdge = edgeConverter420;
work->pConvRowPtrs[0] = firstRow420;
work->pConvRowPtrs[1] = secondRow420;
work->pConvRowPtrs[2] = thirdRow420;
work->pConvRowPtrs[3] = fourthRow420;
work->pConvRowPtrs[5] = cbBlock420;
work->pConvRowPtrs[6] = crBlock420;
work->pitch = 16;
work->converterFlags = 0;
break;
}
case 3: {
u8 mode;
u8* firstRow;
u8* secondRow;
u8* cbBlock;
u32 mode;
u8* crBlock;
u8* cbBlock;
u8* secondRow;
u8* firstRow;
TMCConverterFunc* edgeConverter;
TMCConverterFunc* converter;
mode = work->idctMode;
firstRow = buffer + 4;
work->pConverterFunc = TMCJPEGDEC_converterYUV211toRGB565;
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV211toRGB565edge;
converter = TMCJPEGDEC_converterYUV211toRGB565;
edgeConverter = TMCJPEGDEC_converterYUV211toRGB565edge;
secondRow = firstRow + mode * 8;
cbBlock = buffer + 132;
crBlock = buffer + 196;
work->pConverterFunc = converter;
work->pConverterFuncEdge = edgeConverter;
work->pConvRowPtrs[0] = firstRow;
work->pConvRowPtrs[1] = secondRow;
work->pConvRowPtrs[5] = cbBlock;
@@ -125,27 +142,27 @@ s32 TMCJPEGDEC_set_converterRGB565(TMCCJPEGDecWork* work) {
break;
}
case 4: {
TMCConverterFunc* converter;
TMCConverterFunc* edgeConverter;
TMCConverterFunc* converter;
converter = TMCJPEGDEC_converterYUV444toRGB565;
edgeConverter = TMCJPEGDEC_converterYUV444toRGB565edge;
work->pConverterFunc = converter;
work->pConverterFuncEdge = edgeConverter;
work->pConvRowPtrs[0] = buffer + 4;
work->pConvRowPtrs[5] = buffer + 0x44;
work->pConvRowPtrs[6] = buffer + 0x84;
work->pConverterFunc = converter;
work->pConverterFuncEdge = edgeConverter;
work->pitch = 0x08;
work->converterFlags = 0;
break;
}
case 5: {
TMCConverterFunc* converter;
TMCConverterFunc* edgeConverter;
TMCConverterFunc* converter;
converter = TMCJPEGDEC_converterYUV400toRGB565;
edgeConverter = TMCJPEGDEC_converterYUV400toRGB565edge;
work->pConvRowPtrs[0] = buffer + 4;
work->pConverterFunc = converter;
work->pConverterFuncEdge = edgeConverter;
work->pConvRowPtrs[0] = buffer + 4;
work->pitch = 0x08;
work->converterFlags = 0;
break;
@@ -158,13 +175,19 @@ s32 TMCJPEGDEC_set_converterRGB565(TMCCJPEGDecWork* work) {
{
s32 width = state->jpegWidth;
s32 height = state->jpegHeight;
state->convWidth = ((u32)width / 4 + (width % 4 != 0)) * 4;
state->convHeight = ((u32)height / 4 + (height % 4 != 0)) * 4;
s32 roundedWidth;
s32 heightPadding;
roundedWidth = (u32)width / 4 + (width % 4 != 0);
heightPadding = height % 4 != 0;
state->convWidth = roundedWidth * 4;
state->convHeight = ((u32)height / 4 + heightPadding) * 4;
}
return 0;
}
#pragma pop
static void TMCJPEGDEC_converterYUV411toRGB565(TMCCJPEGDecWork* work, s32 x, s32 y) {
s32 tileColumn;
s32 red;

View File

@@ -14,7 +14,37 @@ static void TMCJPEGDEC_converterYUV444toRGBA8edge(TMCCJPEGDecWork*, s32, s32);
static void TMCJPEGDEC_converterYUV400toRGBA8(TMCCJPEGDecWork*, s32, s32);
static void TMCJPEGDEC_converterYUV400toRGBA8edge(TMCCJPEGDecWork*, s32, s32);
#pragma push
#pragma optimization_level 1
s32 TMCJPEGDEC_set_converterRGBA8(TMCCJPEGDecWork* work) {
u8 mode411;
u8* crBlock411;
u8* cbBlock411;
u8* fourthRow411;
u8* thirdRow411;
u8* secondRow411;
u8* firstRow411;
TMCConverterFunc* edgeConverter411;
TMCConverterFunc* converter411;
u8 mode422;
u8* crBlock422;
u8* cbBlock422;
u8* secondRow422;
u8* firstRow422;
TMCConverterFunc* edgeConverter422;
TMCConverterFunc* converter422;
u8 mode420;
u8* crBlock420;
u8* cbBlock420;
u8* fourthRow420;
u8* thirdRow420;
u8* secondRow420;
u8* firstRow420;
TMCConverterFunc* edgeConverter420;
TMCConverterFunc* converter420;
u8* buffer;
s32 componentCount;
TMCCJPEGDecState* state;
@@ -25,97 +55,84 @@ s32 TMCJPEGDEC_set_converterRGBA8(TMCCJPEGDecWork* work) {
switch (componentCount) {
case 0: {
u8 mode;
u8* firstRow;
u8* secondRow;
u8* thirdRow;
u8* fourthRow;
u8* cbBlock;
u8* crBlock;
mode = work->idctMode;
firstRow = buffer + 4;
work->pConverterFunc = TMCJPEGDEC_converterYUV411toRGBA8;
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV411toRGBA8edge;
secondRow = firstRow + mode;
thirdRow = secondRow + mode;
fourthRow = thirdRow + mode;
cbBlock = buffer + 260;
crBlock = buffer + 324;
work->pConvRowPtrs[0] = firstRow;
work->pConvRowPtrs[1] = secondRow;
work->pConvRowPtrs[2] = thirdRow;
work->pConvRowPtrs[3] = fourthRow;
work->pConvRowPtrs[5] = cbBlock;
work->pConvRowPtrs[6] = crBlock;
mode411 = work->idctMode;
firstRow411 = buffer + 4;
converter411 = TMCJPEGDEC_converterYUV411toRGBA8;
edgeConverter411 = TMCJPEGDEC_converterYUV411toRGBA8edge;
secondRow411 = firstRow411 + mode411;
thirdRow411 = secondRow411 + mode411;
fourthRow411 = thirdRow411 + mode411;
cbBlock411 = buffer + 260;
crBlock411 = buffer + 324;
work->pConverterFunc = converter411;
work->pConverterFuncEdge = edgeConverter411;
work->pConvRowPtrs[0] = firstRow411;
work->pConvRowPtrs[1] = secondRow411;
work->pConvRowPtrs[2] = thirdRow411;
work->pConvRowPtrs[3] = fourthRow411;
work->pConvRowPtrs[5] = cbBlock411;
work->pConvRowPtrs[6] = crBlock411;
work->pitch = 32;
work->converterFlags = 0;
break;
}
case 1: {
u8 mode;
u8* firstRow;
u8* secondRow;
u8* cbBlock;
u8* crBlock;
mode = work->idctMode;
firstRow = buffer + 4;
work->pConverterFunc = TMCJPEGDEC_converterYUV422toRGBA8;
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV422toRGBA8edge;
secondRow = firstRow + mode;
cbBlock = buffer + 132;
crBlock = buffer + 196;
work->pConvRowPtrs[0] = firstRow;
work->pConvRowPtrs[1] = secondRow;
work->pConvRowPtrs[5] = cbBlock;
work->pConvRowPtrs[6] = crBlock;
mode422 = work->idctMode;
firstRow422 = buffer + 4;
converter422 = TMCJPEGDEC_converterYUV422toRGBA8;
edgeConverter422 = TMCJPEGDEC_converterYUV422toRGBA8edge;
secondRow422 = firstRow422 + mode422;
cbBlock422 = buffer + 132;
crBlock422 = buffer + 196;
work->pConverterFunc = converter422;
work->pConverterFuncEdge = edgeConverter422;
work->pConvRowPtrs[0] = firstRow422;
work->pConvRowPtrs[1] = secondRow422;
work->pConvRowPtrs[5] = cbBlock422;
work->pConvRowPtrs[6] = crBlock422;
work->pitch = 16;
work->converterFlags = 0;
break;
}
case 2: {
u8 mode;
u8* firstRow;
u8* secondRow;
u8* thirdRow;
u8* fourthRow;
u8* cbBlock;
u8* crBlock;
mode = work->idctMode;
firstRow = buffer + 4;
work->pConverterFunc = TMCJPEGDEC_converterYUV420toRGBA8;
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV420toRGBA8edge;
secondRow = firstRow + mode;
thirdRow = firstRow + mode * 16;
fourthRow = thirdRow + mode;
cbBlock = buffer + 260;
crBlock = buffer + 324;
work->pConvRowPtrs[0] = firstRow;
work->pConvRowPtrs[1] = secondRow;
work->pConvRowPtrs[2] = thirdRow;
work->pConvRowPtrs[3] = fourthRow;
work->pConvRowPtrs[5] = cbBlock;
work->pConvRowPtrs[6] = crBlock;
mode420 = work->idctMode;
firstRow420 = buffer + 4;
converter420 = TMCJPEGDEC_converterYUV420toRGBA8;
edgeConverter420 = TMCJPEGDEC_converterYUV420toRGBA8edge;
secondRow420 = firstRow420 + mode420;
thirdRow420 = firstRow420 + mode420 * 16;
fourthRow420 = thirdRow420 + mode420;
cbBlock420 = buffer + 260;
crBlock420 = buffer + 324;
work->pConverterFunc = converter420;
work->pConverterFuncEdge = edgeConverter420;
work->pConvRowPtrs[0] = firstRow420;
work->pConvRowPtrs[1] = secondRow420;
work->pConvRowPtrs[2] = thirdRow420;
work->pConvRowPtrs[3] = fourthRow420;
work->pConvRowPtrs[5] = cbBlock420;
work->pConvRowPtrs[6] = crBlock420;
work->pitch = 16;
work->converterFlags = 0;
break;
}
case 3: {
u8 mode;
u8* firstRow;
u8* secondRow;
u8* cbBlock;
u32 mode;
u8* crBlock;
u8* cbBlock;
u8* secondRow;
u8* firstRow;
TMCConverterFunc* edgeConverter;
TMCConverterFunc* converter;
mode = work->idctMode;
firstRow = buffer + 4;
work->pConverterFunc = TMCJPEGDEC_converterYUV211toRGBA8;
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV211toRGBA8edge;
converter = TMCJPEGDEC_converterYUV211toRGBA8;
edgeConverter = TMCJPEGDEC_converterYUV211toRGBA8edge;
secondRow = firstRow + mode * 8;
cbBlock = buffer + 132;
crBlock = buffer + 196;
work->pConverterFunc = converter;
work->pConverterFuncEdge = edgeConverter;
work->pConvRowPtrs[0] = firstRow;
work->pConvRowPtrs[1] = secondRow;
work->pConvRowPtrs[5] = cbBlock;
@@ -125,27 +142,27 @@ s32 TMCJPEGDEC_set_converterRGBA8(TMCCJPEGDecWork* work) {
break;
}
case 4: {
TMCConverterFunc* converter;
TMCConverterFunc* edgeConverter;
TMCConverterFunc* converter;
converter = TMCJPEGDEC_converterYUV444toRGBA8;
edgeConverter = TMCJPEGDEC_converterYUV444toRGBA8edge;
work->pConverterFunc = converter;
work->pConverterFuncEdge = edgeConverter;
work->pConvRowPtrs[0] = buffer + 4;
work->pConvRowPtrs[5] = buffer + 0x44;
work->pConvRowPtrs[6] = buffer + 0x84;
work->pConverterFunc = converter;
work->pConverterFuncEdge = edgeConverter;
work->pitch = 0x08;
work->converterFlags = 0;
break;
}
case 5: {
TMCConverterFunc* converter;
TMCConverterFunc* edgeConverter;
TMCConverterFunc* converter;
converter = TMCJPEGDEC_converterYUV400toRGBA8;
edgeConverter = TMCJPEGDEC_converterYUV400toRGBA8edge;
work->pConvRowPtrs[0] = buffer + 4;
work->pConverterFunc = converter;
work->pConverterFuncEdge = edgeConverter;
work->pConvRowPtrs[0] = buffer + 4;
work->pitch = 0x08;
work->converterFlags = 0;
break;
@@ -158,13 +175,19 @@ s32 TMCJPEGDEC_set_converterRGBA8(TMCCJPEGDecWork* work) {
{
s32 width = state->jpegWidth;
s32 height = state->jpegHeight;
state->convWidth = ((u32)width / 4 + (width % 4 != 0)) * 4;
state->convHeight = ((u32)height / 4 + (height % 4 != 0)) * 4;
s32 roundedWidth;
s32 heightPadding;
roundedWidth = (u32)width / 4 + (width % 4 != 0);
heightPadding = height % 4 != 0;
state->convWidth = roundedWidth * 4;
state->convHeight = ((u32)height / 4 + heightPadding) * 4;
}
return 0;
}
#pragma pop
static void TMCJPEGDEC_converterYUV411toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 y) {
s32 red;
u8* luminance;

View File

@@ -14,7 +14,37 @@ static void TMCJPEG_814F32E4(TMCCJPEGDecWork*, s32, s32);
static void TMCJPEG_814F34A4(TMCCJPEGDecWork*, s32, s32);
static void TMCJPEG_814F372C(TMCCJPEGDecWork*, s32, s32);
#pragma push
#pragma optimization_level 1
s32 TMCJPEGDEC_set_converterY8U8V8(TMCCJPEGDecWork* work) {
u8 mode411;
u8* crBlock411;
u8* cbBlock411;
u8* fourthRow411;
u8* thirdRow411;
u8* secondRow411;
u8* firstRow411;
TMCConverterFunc* edgeConverter411;
TMCConverterFunc* converter411;
u8 mode422;
u8* crBlock422;
u8* cbBlock422;
u8* secondRow422;
u8* firstRow422;
TMCConverterFunc* edgeConverter422;
TMCConverterFunc* converter422;
u8 mode420;
u8* crBlock420;
u8* cbBlock420;
u8* fourthRow420;
u8* thirdRow420;
u8* secondRow420;
u8* firstRow420;
TMCConverterFunc* edgeConverter420;
TMCConverterFunc* converter420;
u8* buffer;
s32 componentCount;
TMCCJPEGDecState* state;
@@ -25,97 +55,84 @@ s32 TMCJPEGDEC_set_converterY8U8V8(TMCCJPEGDecWork* work) {
switch (componentCount) {
case 0: {
u8 mode;
u8* firstRow;
u8* secondRow;
u8* thirdRow;
u8* fourthRow;
u8* cbBlock;
u8* crBlock;
mode = work->idctMode;
firstRow = buffer + 4;
work->pConverterFunc = TMCJPEG_814EFEAC;
work->pConverterFuncEdge = TMCJPEG_814F043C;
secondRow = firstRow + mode;
thirdRow = secondRow + mode;
fourthRow = thirdRow + mode;
cbBlock = buffer + 260;
crBlock = buffer + 324;
work->pConvRowPtrs[0] = firstRow;
work->pConvRowPtrs[1] = secondRow;
work->pConvRowPtrs[2] = thirdRow;
work->pConvRowPtrs[3] = fourthRow;
work->pConvRowPtrs[5] = cbBlock;
work->pConvRowPtrs[6] = crBlock;
mode411 = work->idctMode;
firstRow411 = buffer + 4;
converter411 = TMCJPEG_814EFEAC;
edgeConverter411 = TMCJPEG_814F043C;
secondRow411 = firstRow411 + mode411;
thirdRow411 = secondRow411 + mode411;
fourthRow411 = thirdRow411 + mode411;
cbBlock411 = buffer + 260;
crBlock411 = buffer + 324;
work->pConverterFunc = converter411;
work->pConverterFuncEdge = edgeConverter411;
work->pConvRowPtrs[0] = firstRow411;
work->pConvRowPtrs[1] = secondRow411;
work->pConvRowPtrs[2] = thirdRow411;
work->pConvRowPtrs[3] = fourthRow411;
work->pConvRowPtrs[5] = cbBlock411;
work->pConvRowPtrs[6] = crBlock411;
work->pitch = 32;
work->converterFlags = 0;
break;
}
case 1: {
u8 mode;
u8* firstRow;
u8* secondRow;
u8* cbBlock;
u8* crBlock;
mode = work->idctMode;
firstRow = buffer + 4;
work->pConverterFunc = TMCJPEG_814F0A58;
work->pConverterFuncEdge = TMCJPEG_814F11C4;
secondRow = firstRow + mode;
cbBlock = buffer + 132;
crBlock = buffer + 196;
work->pConvRowPtrs[0] = firstRow;
work->pConvRowPtrs[1] = secondRow;
work->pConvRowPtrs[5] = cbBlock;
work->pConvRowPtrs[6] = crBlock;
mode422 = work->idctMode;
firstRow422 = buffer + 4;
converter422 = TMCJPEG_814F0A58;
edgeConverter422 = TMCJPEG_814F11C4;
secondRow422 = firstRow422 + mode422;
cbBlock422 = buffer + 132;
crBlock422 = buffer + 196;
work->pConverterFunc = converter422;
work->pConverterFuncEdge = edgeConverter422;
work->pConvRowPtrs[0] = firstRow422;
work->pConvRowPtrs[1] = secondRow422;
work->pConvRowPtrs[5] = cbBlock422;
work->pConvRowPtrs[6] = crBlock422;
work->pitch = 16;
work->converterFlags = 0;
break;
}
case 2: {
u8 mode;
u8* firstRow;
u8* secondRow;
u8* thirdRow;
u8* fourthRow;
u8* cbBlock;
u8* crBlock;
mode = work->idctMode;
firstRow = buffer + 4;
work->pConverterFunc = TMCJPEG_814F17E0;
work->pConverterFuncEdge = TMCJPEG_814F1F48;
secondRow = firstRow + mode;
thirdRow = firstRow + mode * 16;
fourthRow = thirdRow + mode;
cbBlock = buffer + 260;
crBlock = buffer + 324;
work->pConvRowPtrs[0] = firstRow;
work->pConvRowPtrs[1] = secondRow;
work->pConvRowPtrs[2] = thirdRow;
work->pConvRowPtrs[3] = fourthRow;
work->pConvRowPtrs[5] = cbBlock;
work->pConvRowPtrs[6] = crBlock;
mode420 = work->idctMode;
firstRow420 = buffer + 4;
converter420 = TMCJPEG_814F17E0;
edgeConverter420 = TMCJPEG_814F1F48;
secondRow420 = firstRow420 + mode420;
thirdRow420 = firstRow420 + mode420 * 16;
fourthRow420 = thirdRow420 + mode420;
cbBlock420 = buffer + 260;
crBlock420 = buffer + 324;
work->pConverterFunc = converter420;
work->pConverterFuncEdge = edgeConverter420;
work->pConvRowPtrs[0] = firstRow420;
work->pConvRowPtrs[1] = secondRow420;
work->pConvRowPtrs[2] = thirdRow420;
work->pConvRowPtrs[3] = fourthRow420;
work->pConvRowPtrs[5] = cbBlock420;
work->pConvRowPtrs[6] = crBlock420;
work->pitch = 16;
work->converterFlags = 0;
break;
}
case 3: {
u8 mode;
u8* firstRow;
u8* secondRow;
u8* cbBlock;
u32 mode;
u8* crBlock;
u8* cbBlock;
u8* secondRow;
u8* firstRow;
TMCConverterFunc* edgeConverter;
TMCConverterFunc* converter;
mode = work->idctMode;
firstRow = buffer + 4;
work->pConverterFunc = TMCJPEG_814F2570;
work->pConverterFuncEdge = TMCJPEG_814F2B50;
converter = TMCJPEG_814F2570;
edgeConverter = TMCJPEG_814F2B50;
secondRow = firstRow + mode * 8;
cbBlock = buffer + 132;
crBlock = buffer + 196;
work->pConverterFunc = converter;
work->pConverterFuncEdge = edgeConverter;
work->pConvRowPtrs[0] = firstRow;
work->pConvRowPtrs[1] = secondRow;
work->pConvRowPtrs[5] = cbBlock;
@@ -125,27 +142,27 @@ s32 TMCJPEGDEC_set_converterY8U8V8(TMCCJPEGDecWork* work) {
break;
}
case 4: {
TMCConverterFunc* converter;
TMCConverterFunc* edgeConverter;
TMCConverterFunc* converter;
converter = TMCJPEG_814F3158;
edgeConverter = TMCJPEG_814F32E4;
work->pConverterFunc = converter;
work->pConverterFuncEdge = edgeConverter;
work->pConvRowPtrs[0] = buffer + 4;
work->pConvRowPtrs[5] = buffer + 0x44;
work->pConvRowPtrs[6] = buffer + 0x84;
work->pConverterFunc = converter;
work->pConverterFuncEdge = edgeConverter;
work->pitch = 0x08;
work->converterFlags = 0;
break;
}
case 5: {
TMCConverterFunc* converter;
TMCConverterFunc* edgeConverter;
TMCConverterFunc* converter;
converter = TMCJPEG_814F34A4;
edgeConverter = TMCJPEG_814F372C;
work->pConvRowPtrs[0] = buffer + 4;
work->pConverterFunc = converter;
work->pConverterFuncEdge = edgeConverter;
work->pConvRowPtrs[0] = buffer + 4;
work->pitch = 0x08;
work->converterFlags = 0;
break;
@@ -158,16 +175,25 @@ s32 TMCJPEGDEC_set_converterY8U8V8(TMCCJPEGDecWork* work) {
{
s32 width = state->jpegWidth;
s32 height = state->jpegHeight;
state->convWidth = ((u32)width / 8 + (width % 8 != 0)) * 8;
state->convHeight = ((u32)height / 4 + (height % 4 != 0)) * 4;
s32 roundedWidth;
s32 heightPadding;
roundedWidth = (u32)width / 8 + (width % 8 != 0);
heightPadding = height % 4 != 0;
state->convWidth = roundedWidth * 8;
state->convHeight = ((u32)height / 4 + heightPadding) * 4;
width = state->outputWidth;
height = state->outputHeight;
state->chromaWidth = ((u32)width / 8 + (width % 8 != 0)) * 8;
state->chromaHeight = ((u32)height / 4 + (height % 4 != 0)) * 4;
roundedWidth = (u32)width / 8 + (width % 8 != 0);
heightPadding = height % 4 != 0;
state->chromaWidth = roundedWidth * 8;
state->chromaHeight = ((u32)height / 4 + heightPadding) * 4;
}
return 0;
}
#pragma pop
static void TMCJPEG_814EFEAC(TMCCJPEGDecWork* work, s32 x, s32 y) {
s32 rowSkip;
u8* output;

View File

@@ -554,26 +554,24 @@ static void kbdSendKey(KBDKeyEventData* event) {
}
}
#pragma push
#pragma ppc_iro_level 0
static void kbd_led_handler(BOOL success, void* callbackArg) {
const KBDLEDCallbackData* callback;
s32 index;
u32 err;
index = (s32)callbackArg;
callback = &kbdLCBuf[index];
u32 index;
USBKBDErr err;
index = (u32)callbackArg;
kbdCmdBuf[index].device = 0;
if (callback->callbackAddress == (USBKBDCmdLEDCallback)(u32)kbdCmdBuf[(u32)callbackArg].device) {
if (kbdLCBuf[index].callbackAddress == NULL) {
return;
}
switch (success) {
default:
err = 7;
break;
case TRUE:
if (success == TRUE) {
err = 0;
break;
} else {
err = 7;
}
kbdLCBuf[(u32)callbackArg].callbackAddress(err, kbdLCBuf[(u32)callbackArg].callbackArg);
kbdLCBuf[index].callbackAddress(err, kbdLCBuf[index].callbackArg);
}
#pragma pop
USBKBDErr KBDSetLedsAsync(u32 channel, u32 leds, USBKBDCmdLEDCallback callback, void* callbackArg) {
u8 ledBits;

View File

@@ -806,16 +806,25 @@ partition_fatal:
partition_done:
BS2Report("DVDLowOpenPartition done\n");
if (*(u8 *)0x8000315D != 0x80) {
u32 diBits;
u32 diValue;
typedef union {
u32 value;
struct {
u32 reserved : 29;
u32 bit2 : 1;
u32 bit1 : 1;
u32 bit0 : 1;
} bits;
} DIControl;
DIControl diBits;
DIControl diValue;
u32 *diAddr;
diAddr = (u32 *)0xCC003024;
diBits = 2;
diBits |= 4;
diValue = *diAddr;
diValue |= 1;
*diAddr = diValue | diBits;
diValue.value = *diAddr;
diValue.bits.bit0 = 1;
diBits.value = 2;
diBits.bits.bit2 = 1;
*diAddr = diValue.value | diBits.value;
enableLegacyDI();
}
oldInterrupts = OSDisableInterrupts();

View File

@@ -16,7 +16,7 @@ static u8 ThreadStack[4096] = {0};
static BS2UpdateHeader UpdateHeader0 ALIGN32 = {0};
static BS2UpdateHeader UpdateHeader1 ALIGN32 = {0};
#define UPDATE_DISC_ENTRIES ((BS2UpdateEntry*)0x80480000)
BS2UpdateEntry DiscEntries[BS2_UPDATE_ENTRY_COUNT] ADDRESS(0x80480000);
s32 WADCheckImport(u64 titleId, u16 titleVersion);
s32 WADImportDVDForBS(const char* path, void* buffer, u32 length);
@@ -32,8 +32,8 @@ static u32 RebootRequired = 0;
static BOOL ContainsSeatTitles = 0;
static u32 UpdateImportState = 0;
static u32 UpdateImportResult = 0;
u32 StartUpdate = 0;
u32 CancelUpdate = 0;
volatile u32 StartUpdate = 0;
volatile u32 CancelUpdate = 0;
static u32 UpdateProgress = 0;
static volatile s32 rc = 0;
static u64 VersionIOS = 0;
@@ -66,7 +66,7 @@ void BS2UpdateInit(void* allocator) {
CurrentEntry = NULL;
pEntries = NULL;
EntriesCount = 0;
memset(UPDATE_DISC_ENTRIES, 0, 0x40000);
memset(DiscEntries, 0, 0x40000);
memset(EntriesToImport, 0, 0x40000);
memset(Flags1, 0, sizeof(Flags1));
BS2Report("Create update thread\n");
@@ -76,45 +76,42 @@ void BS2UpdateInit(void* allocator) {
}
static inline u32 BS2SelectUpdateEntries(void) {
BOOL missingFile;
u32 index;
u32 selectedCount;
u32 requiredBytes;
u32 requiredInodes;
u32 channelCount;
u32 index;
BS2UpdateEntry* seatEntries;
BS2UpdateEntry* selectedSeats;
u32 selectedSeatCount;
BOOL regionValid;
u32 titleRegion;
struct {
u32 freeChannels;
u32 freeBlocks;
u32 freeInodes;
u32 ticketCount;
char productArea[8];
u64 titleId;
char updatePath[32];
char seatPath[32];
DVDFileInfo file;
} scratch;
u32 freeChannels;
u32 freeBlocks;
u32 freeInodes;
u32 ticketCount;
char productArea[8];
u64 titleId;
char updatePath[32];
char seatPath[32];
DVDFileInfo file;
missingFile = FALSE;
selectedCount = 0;
requiredBytes = 0;
requiredInodes = 0;
channelCount = 0;
scratch.freeChannels = 0;
scratch.freeBlocks = 0;
scratch.freeInodes = 0;
freeChannels = 0;
freeBlocks = 0;
freeInodes = 0;
selectedSeatCount = 0;
State = 0;
ContainsSeatTitles = FALSE;
if (ES_GetTitleId(&scratch.titleId) != ES_ERR_OK) {
if (ES_GetTitleId(&titleId) != ES_ERR_OK) {
regionValid = FALSE;
} else {
titleRegion = (u8)scratch.titleId;
titleRegion = (u8)titleId;
switch (SCGetProductArea()) {
case SC_PRODUCT_AREA_JPN:
case SC_PRODUCT_AREA_TWN:
@@ -159,23 +156,23 @@ product_region_checked:
selectedCount = 0;
goto selection_complete;
}
if (!SCGetProductAreaString(scratch.productArea, sizeof(scratch.productArea))) {
if (!SCGetProductAreaString(productArea, sizeof(productArea))) {
BS2Report("Error: failed to get product information.");
selectedCount = 0;
goto selection_complete;
}
strcpy(scratch.updatePath, "__update.inf");
strcat(scratch.updatePath, ".");
strcat(scratch.updatePath, scratch.productArea);
if (DVDConvertPathToEntrynum(scratch.updatePath) < 0) {
strcpy(updatePath, "__update.inf");
strcat(updatePath, ".");
strcat(updatePath, productArea);
if (DVDConvertPathToEntrynum(updatePath) < 0) {
switch (SCGetProductArea()) {
case 0:
case 1:
case 2:
case 6:
case 11:
strcpy(scratch.updatePath, "__update.inf");
if (DVDConvertPathToEntrynum(scratch.updatePath) < 0) {
strcpy(updatePath, "__update.inf");
if (DVDConvertPathToEntrynum(updatePath) < 0) {
BS2Report("Error: update information file is not found.");
selectedCount = 0;
goto selection_complete;
@@ -187,13 +184,13 @@ product_region_checked:
goto selection_complete;
}
}
BS2Report("%s is found.\n", scratch.updatePath);
if (!DVDOpen(scratch.updatePath, &scratch.file)) {
BS2Report("%s is found.\n", updatePath);
if (!DVDOpen(updatePath, &file)) {
BS2Report("Error: failed to open update information file.");
selectedCount = 0;
goto selection_complete;
}
if (DVDReadPrio(&scratch.file, &UpdateHeader0, sizeof(UpdateHeader0), 0, 2) < 0) {
if (DVDReadPrio(&file, &UpdateHeader0, sizeof(UpdateHeader0), 0, 2) < 0) {
BS2Report("Error: failed to read update information header.");
selectedCount = 0;
goto selection_complete;
@@ -214,25 +211,24 @@ product_region_checked:
selectedCount = 0;
goto selection_complete;
}
if (DVDReadPrio(&scratch.file, UPDATE_DISC_ENTRIES, UpdateHeader0.wadCount * sizeof(BS2UpdateEntry), 32, 2) < 0) {
if (DVDReadPrio(&file, DiscEntries, UpdateHeader0.wadCount * sizeof(BS2UpdateEntry), 32, 2) < 0) {
BS2Report("Error: failed to read update information.");
selectedCount = 0;
goto selection_complete;
}
{
BS2UpdateEntry *discEntries = UPDATE_DISC_ENTRIES;
for (index = 0; index < UpdateHeader0.wadCount; index++) {
if ((discEntries[index].attr & 1) == 0) {
if ((DiscEntries[index].attr & 1) == 0) {
continue;
}
switch (OSGetPhysicalMem2Size()) {
case 0x4000000:
if ((discEntries[index].depend & 1) == 0) {
if ((DiscEntries[index].depend & 1) == 0) {
continue;
}
break;
case 0x8000000:
if ((discEntries[index].depend & 2) == 0) {
if ((DiscEntries[index].depend & 2) == 0) {
continue;
}
break;
@@ -242,37 +238,37 @@ product_region_checked:
selectedCount = 0;
goto selection_complete;
}
if (DVDOpen(discEntries[index].path, &scratch.file) < 0) {
BS2Report("%s is not found\n", discEntries[index].path);
if (DVDOpen(DiscEntries[index].path, &file) < 0) {
BS2Report("%s is not found\n", DiscEntries[index].path);
missingFile = TRUE;
continue;
}
discEntries[index].size = scratch.file.length;
if (discEntries[index].type == 0) {
DiscEntries[index].size = file.length;
if (DiscEntries[index].type == 0) {
selectedCount++;
} else if (WADCheckImport(discEntries[index].titleId, discEntries[index].titleVersion) == 0) {
BS2Report("%s is already installed\n", discEntries[index].path);
} else if (WADCheckImport(DiscEntries[index].titleId, DiscEntries[index].titleVersion) == 0) {
BS2Report("%s is already installed\n", DiscEntries[index].path);
Flags1[index] = 0;
} else {
BS2Report("%s\n", discEntries[index].path);
memcpy(&EntriesToImport[selectedCount], &discEntries[index], sizeof(BS2UpdateEntry));
BS2Report("%s\n", DiscEntries[index].path);
memcpy(&EntriesToImport[selectedCount], &DiscEntries[index], sizeof(BS2UpdateEntry));
selectedCount++;
Flags1[index] = 1;
}
}
}
strcpy(scratch.seatPath, "__seatholder.inf");
strcat(scratch.seatPath, ".");
strcat(scratch.seatPath, scratch.productArea);
if (DVDConvertPathToEntrynum(scratch.seatPath) < 0) {
strcpy(seatPath, "__seatholder.inf");
strcat(seatPath, ".");
strcat(seatPath, productArea);
if (DVDConvertPathToEntrynum(seatPath) < 0) {
switch (SCGetProductArea()) {
case 0:
case 1:
case 2:
case 6:
case 11:
strcpy(scratch.seatPath, "__seatholder.inf");
if (DVDConvertPathToEntrynum(scratch.seatPath) < 0) {
strcpy(seatPath, "__seatholder.inf");
if (DVDConvertPathToEntrynum(seatPath) < 0) {
BS2Report("Error: update seatholder information file is not found.");
goto seats_done;
}
@@ -282,12 +278,12 @@ product_region_checked:
goto seats_done;
}
}
BS2Report("%s is found.\n", scratch.seatPath);
if (!DVDOpen(scratch.seatPath, &scratch.file)) {
BS2Report("%s is found.\n", seatPath);
if (!DVDOpen(seatPath, &file)) {
BS2Report("Error: failed to open update information file.");
goto seats_done;
}
if (DVDReadPrio(&scratch.file, &UpdateHeader1, sizeof(UpdateHeader1), 0, 2) < 0) {
if (DVDReadPrio(&file, &UpdateHeader1, sizeof(UpdateHeader1), 0, 2) < 0) {
BS2Report("Error: failed to read update information header.");
goto seats_done;
}
@@ -300,11 +296,9 @@ product_region_checked:
BS2Report("Error: found too many extra entries.");
goto seats_done;
}
seatEntries = UPDATE_DISC_ENTRIES;
seatEntries += UpdateHeader0.wadCount;
selectedSeats = EntriesToImport;
selectedSeats += selectedCount;
if (DVDReadPrio(&scratch.file, seatEntries, UpdateHeader1.wadCount * sizeof(BS2UpdateEntry), 32, 2) < 0) {
seatEntries = DiscEntries + UpdateHeader0.wadCount;
selectedSeats = EntriesToImport + selectedCount;
if (DVDReadPrio(&file, seatEntries, UpdateHeader1.wadCount * sizeof(BS2UpdateEntry), 32, 2) < 0) {
BS2Report("Error: failed to read update information.");
goto seats_done;
}
@@ -337,7 +331,7 @@ product_region_checked:
State = 5;
goto seats_done;
}
if (DVDOpen(seatEntries[index].path, &scratch.file) < 0) {
if (DVDOpen(seatEntries[index].path, &file) < 0) {
BS2Report("%s is not found\n", seatEntries[index].path);
missingFile = TRUE;
continue;
@@ -345,11 +339,11 @@ product_region_checked:
if (seatEntries[index].type != 7) {
continue;
}
if (ES_GetTicketViews(seatEntries[index].titleId, NULL, &scratch.ticketCount) != ES_ERR_OK) {
if (ES_GetTicketViews(seatEntries[index].titleId, NULL, &ticketCount) != ES_ERR_OK) {
BS2Report("Faild to get eTicket views.\n");
continue;
}
if (scratch.ticketCount != 0) {
if (ticketCount != 0) {
continue;
}
if (SCGetWwwRestriction() && ((u32)(seatEntries[index].titleId & 0xFFFFFFFFULL) & 0xFFFFFF00) == 0x48414400) {
@@ -372,23 +366,23 @@ product_region_checked:
requiredInodes += seatEntries[index].inodes;
}
if (channelCount != 0) {
if (!SCGetFreeChannelAppCount(&scratch.freeChannels)) {
if (!SCGetFreeChannelAppCount(&freeChannels)) {
BS2Report("Error: cannot get channel count.");
goto seats_done;
}
if (NANDSecretGetUserAvailableArea(&scratch.freeBlocks, &scratch.freeInodes) != NAND_RESULT_OK) {
if (NANDSecretGetUserAvailableArea(&freeBlocks, &freeInodes) != NAND_RESULT_OK) {
BS2Report("Error: cannot get free user blocks.");
goto seats_done;
}
if ((scratch.freeBlocks << 14) < 0x1004000 || requiredBytes > (scratch.freeBlocks << 14) - 0x1004000) {
if ((freeBlocks << 14) < 0x1004000 || requiredBytes > (freeBlocks << 14) - 0x1004000) {
BS2Report("Sufficient user blocks doesn't exist.");
goto seats_done;
}
if (scratch.freeInodes < requiredInodes + 36) {
if (freeInodes < requiredInodes + 36) {
BS2Report("Sufficient user inodes doesn't exist.");
goto seats_done;
}
if (channelCount > scratch.freeChannels) {
if (channelCount > freeChannels) {
BS2Report("No enough blank channel.");
goto seats_done;
}
@@ -410,14 +404,13 @@ seats_done:
pEntries = EntriesToImport;
pFlags = Flags1;
{
BS2UpdateEntry *discEntries = UPDATE_DISC_ENTRIES;
for (index = 0; index < UpdateHeader0.wadCount; index++) {
if (Flags1[index] == 1) {
BS2Report("File: %s\n", discEntries[index].path);
BS2Report("Name: %s\n", discEntries[index].dataName);
BS2Report("Info: %s\n", discEntries[index].dataMeta);
BS2Report("Attr: %s\n", (discEntries[index].attr & 1) ? "Critical" : "Non critical");
BS2Report(" %s\n", (discEntries[index].attr & 2) ? "Reboot" : "Not reboot");
BS2Report("File: %s\n", DiscEntries[index].path);
BS2Report("Name: %s\n", DiscEntries[index].dataName);
BS2Report("Info: %s\n", DiscEntries[index].dataMeta);
BS2Report("Attr: %s\n", (DiscEntries[index].attr & 1) ? "Critical" : "Non critical");
BS2Report(" %s\n", (DiscEntries[index].attr & 2) ? "Reboot" : "Not reboot");
}
}
}
@@ -442,25 +435,24 @@ static void* UpdateThread(void* argument) {
State = 1;
UpdateProgress = 0;
{
BS2UpdateEntry *discEntries = UPDATE_DISC_ENTRIES;
for (;;) {
if (StartUpdate != 0) {
if (UpdateProgress < UpdateHeader0.wadCount) {
BS2Report("Progress : %d\n", UpdateProgress);
if (Flags1[UpdateProgress] == 1) {
const char* path = discEntries[UpdateProgress].path;
const char* path = DiscEntries[UpdateProgress].path;
BS2Report("Import : %s\n", path);
State = 2;
CurrentEntry = &discEntries[UpdateProgress];
if (discEntries[UpdateProgress].type == 0) {
CurrentEntry = &DiscEntries[UpdateProgress];
if (DiscEntries[UpdateProgress].type == 0) {
UpdateProgress++;
continue;
}
if (((const BS2UpdateEntry *)discEntries)[UpdateProgress].type == 1) {
if (((const BS2UpdateEntry *)DiscEntries)[UpdateProgress].type == 1) {
BS2Report("BS2WADImportDVD : ");
index = UpdateProgress;
if (strcmp(getSuffix(discEntries[index].path), "wad") == 0) {
importResult = WADImportDVDForBS(discEntries[index].path, (void*)BS2_UPDATE_ADDRESS, 0x80000);
if (strcmp(getSuffix(DiscEntries[index].path), "wad") == 0) {
importResult = WADImportDVDForBS(DiscEntries[index].path, (void*)BS2_UPDATE_ADDRESS, 0x80000);
} else {
importResult = 0;
}
@@ -468,20 +460,20 @@ static void* UpdateThread(void* argument) {
BS2Report("rc = %d\n", rc);
if (rc != 0) {
NANDLoggingAddMessageAsync(NULL, "BS2 error. [%d] titleID: 0x%016llx %s line: %d",
rc, discEntries[UpdateProgress].titleId, "BS2Update.c", 0x3F5);
rc, DiscEntries[UpdateProgress].titleId, "BS2Update.c", 0x3F5);
State = 5;
UpdateProgress = UpdateHeader0.wadCount + 1;
break;
}
if ((discEntries[UpdateProgress].attr & 2) != 0) {
if ((DiscEntries[UpdateProgress].attr & 2) != 0) {
RebootRequired = 1;
}
UpdateProgress++;
} else {
BS2Report("BS2WADImportDVDEx : ");
index = UpdateProgress;
if (strcmp(getSuffix(discEntries[index].path), "wad") == 0) {
importResult = WADImportDVDExForBS(discEntries[index].path, (void*)BS2_UPDATE_ADDRESS, 0x80000);
if (strcmp(getSuffix(DiscEntries[index].path), "wad") == 0) {
importResult = WADImportDVDExForBS(DiscEntries[index].path, (void*)BS2_UPDATE_ADDRESS, 0x80000);
} else {
importResult = 0;
}
@@ -489,18 +481,18 @@ static void* UpdateThread(void* argument) {
BS2Report("rc = %d\n", rc);
if (rc != 0) {
NANDLoggingAddMessageAsync(NULL, "BS2 error. [%d] titleID: 0x%016llx %s line: %d",
rc, discEntries[UpdateProgress].titleId, "BS2Update.c", 0x40F);
rc, DiscEntries[UpdateProgress].titleId, "BS2Update.c", 0x40F);
State = 5;
UpdateProgress = UpdateHeader0.wadCount + 1;
break;
}
if ((discEntries[UpdateProgress].attr & 2) != 0) {
if ((DiscEntries[UpdateProgress].attr & 2) != 0) {
RebootRequired = 1;
}
UpdateProgress++;
}
} else {
const char* path = discEntries[UpdateProgress].path;
const char* path = DiscEntries[UpdateProgress].path;
BS2Report("Not import : %s\n", path);
UpdateProgress++;
}

View File

@@ -1,3 +1,5 @@
int gDpdWaitFrm = 0;
#include "iplwww/www_wiisetting.h"
#include <string.h>
@@ -9,16 +11,18 @@
#include "iplwww/www_browser.h"
int gDpdWaitFrm = 0;
BOOL gEnableDpd = TRUE;
namespace www {
namespace wiisetting {
static const char emptyString[] = "";
char MSG_TICK_TIMER_TAG[12] = "[TickTimer]";
char MSG_WARNING_TAG[10] = "[Warning]";
char MSG_EVENT_TAG[10] = "[[Event]]";
const char* Message[] = {NULL, NULL, NULL, NULL, emptyString, NULL};
struct ReportInfo {
char tickTimerTag[12];
char warningTag[10];
char eventTag[10];
const char* MessageArr[6];
};
ReportInfo reportInfo = {"[TickTimer]", "[Warning]", "[[Event]]", {NULL, NULL, NULL, NULL, NULL, NULL}};
const u8 kbLangUsaLUT[][0x30] = {
{
@@ -150,8 +154,8 @@ namespace www {
extern const char* strProps[FORM_ID_MAX];
int getStringPropertyIdx(const char* targetStr) {
const char* names[ARRAY_LENGTH(strProps)];
const char** destinationName = names - 1;
const char* const* sourceName = strProps - 1;
const char** destinationName = names - 1;
for (int i = 0; i < (ARRAY_LENGTH(names) >> 1); i++) {
*(++destinationName) = *(++sourceName);
*(++destinationName) = *(++sourceName);
@@ -169,9 +173,19 @@ namespace www {
return -1;
}
static inline int getSettingProperty(const char* str, WWWJSPluginValue* val);
static inline void selectEuropeanKeyboardLanguage(u32& kbLang) {
int i;
for (i = 0; i < 0x3b; i++) {
if (sWiiData.data[WB_ID_COUNTRY] == kbLangEurLUT[ipl::System::getLanguage() - 1][i] + 0x40) {
kbLang = (u8)(i + 0x40);
break;
}
}
}
int Getter_(WWWJSPluginObj* obj, const char* str, WWWJSPluginValue* val) {
int retVal;
int strPropIdx;
if (strcmp(str, "CallOSReport") == 0) {
int data;
if (opera_callbacks->globalGet(obj, 0, 0, wiiOSReport, wiiOSReport, "", 0, (WWWJSPluginValueData*)&data) < 0) {
@@ -191,6 +205,15 @@ namespace www {
return 7;
}
}
return getSettingProperty(str, val);
}
static inline int getSettingProperty(const char* str, WWWJSPluginValue* val) {
int privacyIndex;
int retVal;
SetStringBuf* strBuf;
int maskLength;
int strPropIdx;
if (!(writeBackID == WB_ID_PROGRESSIVE || writeBackID == WB_ID_PAL || writeBackID == WB_ID_COUNTRY || writeBackID == WB_ID_LIGHT ||
writeBackID == WB_ID_LANGUAGE || writeBackID == WB_ID_RATE)) {
writeBackID = WB_ID_RESET;
@@ -281,14 +304,13 @@ namespace www {
memset(pString->asterisks, 0, sizeof(pString->asterisks));
OSReport("mode %d %d\n", saveData, (u16)ipl::ncd::NCDSetting::getPrivacyMode());
if (saveData == (u16)ipl::ncd::NCDSetting::getPrivacyMode()) {
int i;
OSReport("len ::: %d\n", ipl::ncd::NCDSetting::getPrivacyLen());
for (i = 0; i < ipl::ncd::NCDSetting::getPrivacyLen(); i++) {
pString->asterisks[i] = '*';
for (privacyIndex = 0; privacyIndex < ipl::ncd::NCDSetting::getPrivacyLen(); privacyIndex++) {
pString->asterisks[privacyIndex] = '*';
}
if (0x20 < i) {
if (0x20 < privacyIndex) {
pString->asterisks[0x20] = '\n';
pString->asterisks[i] = '*';
pString->asterisks[privacyIndex] = '*';
}
} else {
memset(pString->securityKey, 0, sizeof(pString->securityKey));
@@ -298,13 +320,11 @@ namespace www {
}
case FORM_ID_DUMMY_SECURITY_KEY: {
memset(pString->asterisks, 0, sizeof(pString->asterisks));
SetStringBuf* strBuf;
int i;
for (i = 0; i < strlen((strBuf = pString)->securityKey); strBuf->asterisks[i++] = '*') {
for (maskLength = 0; maskLength < strlen((strBuf = pString)->securityKey); strBuf->asterisks[maskLength++] = '*') {
}
if (i > 0x20) {
if (maskLength > 0x20) {
pString->asterisks[0x20] = '\n';
pString->asterisks[i] = '*';
pString->asterisks[maskLength] = '*';
}
val->data.jsStr = pString->asterisks;
break;
@@ -522,12 +542,7 @@ namespace www {
}
}
} else if ((u32)ipl::System::getRegion() == SC_PRODUCT_AREA_EUR) {
for (int i = 0; i < 0x3b; i++) {
if (sWiiData.data[WB_ID_COUNTRY] == kbLangEurLUT[ipl::System::getLanguage() - 1][i] + 0x40) {
kbLang = (u8)(i + 0x40);
break;
}
}
selectEuropeanKeyboardLanguage(kbLang);
}
val->data.jsDouble = (u8)kbLang;
}

View File

@@ -379,7 +379,15 @@ void ipl::scene::AddressEdit::prepare() {
getSceneHeap(), "balloon.ash", false);
}
inline void ipl::scene::AddressEdit::set_textbox(nw4r::lyt::Pane* pane, u32 msgId) {
set_textbox(pane, ipl::System::getMessage(msgId));
}
#pragma push
#pragma ppc_iro_level 1
void ipl::scene::AddressEdit::create() {
nw4r::lyt::Pane* textPane;
const wchar_t* friendText;
ipl::nand::LayoutFile* boardFile =
static_cast<ipl::scene::Board*>(ipl::System::getScene(ipl::SCENE_BOARD))->getLayoutFile();
@@ -433,17 +441,13 @@ void ipl::scene::AddressEdit::create() {
mpEditEvent = editEvent;
mpEditGui = editManager;
nw4r::lyt::Pane* textPane = bLayout->getNW4RLyt()->GetRootPane()->FindPaneByName("T_crd_btn_00", true);
set_textbox(textPane, ipl::System::getMessage(0x2a));
textPane = (mpCodeLayout)
->getNW4RLyt()->GetRootPane()->FindPaneByName("T_crd_btn_10", true);
set_textbox(textPane, ipl::System::getMessage(0x2b));
textPane = (mpCodeLayout)
->getNW4RLyt()->GetRootPane()->FindPaneByName("T_crd_btn_11", true);
set_textbox(textPane, ipl::System::getMessage(0x2f));
textPane = (mpCodeLayout)
->getNW4RLyt()->GetRootPane()->FindPaneByName("T_crd_btn_gry", true);
set_textbox(textPane, ipl::System::getMessage(0x2a));
set_textbox(bLayout->getNW4RLyt()->GetRootPane()->FindPaneByName("T_crd_btn_00", true), 0x2a);
set_textbox((mpCodeLayout)
->getNW4RLyt()->GetRootPane()->FindPaneByName("T_crd_btn_10", true), 0x2b);
set_textbox((mpCodeLayout)
->getNW4RLyt()->GetRootPane()->FindPaneByName("T_crd_btn_11", true), 0x2f);
set_textbox((mpCodeLayout)
->getNW4RLyt()->GetRootPane()->FindPaneByName("T_crd_btn_gry", true), 0x2a);
textPane = (mpCodeLayout)
->getNW4RLyt()->GetRootPane()->FindPaneByName("T_card_msg_00", true);
set_textbox(textPane, L"");
@@ -497,9 +501,7 @@ void ipl::scene::AddressEdit::create() {
ipl::scene::Address* address = static_cast<ipl::scene::Address*>(addressScene);
mpFriendCache = address->getFriendCache();
s32 mode = mMode;
ipl::layout::Animator* animator;
switch (mode) {
switch (mMode) {
case 0: {
mSelectedFriend = address->getChosenFriendIndex();
get_friendinfo();
@@ -511,59 +513,41 @@ void ipl::scene::AddressEdit::create() {
(mpCodeLayout)->getAnim(0x10)->initAnmFrame();
(mpCodeLayout)->getAnim(0x1b)->initAnmFrame();
}
animator = (mpCodeLayout)->getAnim(0);
animator->initFrame();
const wchar_t* friendText = mString.mName;
animator->restart();
(mpCodeLayout)->getAnim(0)->play();
friendText = mString.mName;
textPane = (mpCodeLayout)
->getNW4RLyt()->GetRootPane()->FindPaneByName("T_name_00", true);
set_textbox(textPane, friendText);
friendText = mString.mDisplayText;
textPane = (mpCodeLayout)
->getNW4RLyt()->GetRootPane()->FindPaneByName("T_frnd_crd_00", true);
friendText = mString.mDisplayText;
set_textbox(textPane, friendText);
mState = 0;
break;
}
case 1: {
animator = (mpNameLayout)->getAnim(0);
animator->initFrame();
animator->restart();
animator = (mpNameLayout)->getAnim(1);
animator->initFrame();
animator->restart();
animator = (mpNameLayout)->getAnim(3);
animator->initFrame();
animator->restart();
(mpNameLayout)->getAnim(0)->play();
(mpNameLayout)->getAnim(1)->play();
(mpNameLayout)->getAnim(3)->play();
(mpCodeLayout)->getAnim(0x1a)->initAnmFrame();
(mpCodeLayout)->getAnim(0x10)->initAnmFrame();
textPane = (mpNameLayout)
->getNW4RLyt()->GetRootPane()->FindPaneByName("T_question_00", true);
set_textbox(textPane, ipl::System::getMessage(0x31));
textPane = (mpNameLayout)
->getNW4RLyt()->GetRootPane()->FindPaneByName("T_msg_00", true);
set_textbox(textPane, ipl::System::getMessage(0x47));
set_textbox((mpNameLayout)
->getNW4RLyt()->GetRootPane()->FindPaneByName("T_question_00", true), 0x31);
set_textbox((mpNameLayout)
->getNW4RLyt()->GetRootPane()->FindPaneByName("T_msg_00", true), 0x47);
mState = 0x10;
break;
}
case 2: {
animator = (mpNameLayout)->getAnim(0);
animator->initFrame();
animator->restart();
animator = (mpNameLayout)->getAnim(1);
animator->initFrame();
animator->restart();
animator = (mpNameLayout)->getAnim(3);
animator->initFrame();
animator->restart();
(mpNameLayout)->getAnim(0)->play();
(mpNameLayout)->getAnim(1)->play();
(mpNameLayout)->getAnim(3)->play();
(mpCodeLayout)->getAnim(0x1a)->initAnmFrame();
(mpCodeLayout)->getAnim(0x10)->initAnmFrame();
textPane = (mpNameLayout)
->getNW4RLyt()->GetRootPane()->FindPaneByName("T_question_00", true);
set_textbox(textPane, ipl::System::getMessage(0x3f));
textPane = (mpNameLayout)
->getNW4RLyt()->GetRootPane()->FindPaneByName("T_msg_00", true);
set_textbox(textPane, ipl::System::getMessage(0x48));
set_textbox((mpNameLayout)
->getNW4RLyt()->GetRootPane()->FindPaneByName("T_question_00", true), 0x3f);
set_textbox((mpNameLayout)
->getNW4RLyt()->GetRootPane()->FindPaneByName("T_msg_00", true), 0x48);
mState = 0x10;
break;
}
@@ -583,11 +567,10 @@ create_mode_done:
ipl::System::getKeyboard()->init();
f32 margin4x3 = 30.0f;
f32 margin16x9 = 120.0f;
mpBalloon = new ipl::scene::TextBalloon(getHeap(), mpBalloonFile, "arc",
"my_IplTopBalloon_a.brlyt", ipl::math::VEC3(0.0f, 0.0f, 0.0f), margin16x9, margin4x3);
"my_IplTopBalloon_a.brlyt", ipl::math::VEC3(0.0f, 0.0f, 0.0f), ipl::scene::TextBalloon::getDefaultMargin16x9(), ipl::scene::TextBalloon::getDefaultMargin4x3());
}
#pragma pop
void ipl::scene::AddressEdit::stt_wait_decide_anm() {
nw4r::lyt::Pane* textPane;
@@ -2856,11 +2839,14 @@ void ipl::scene::AddressEdit::add_friendinfo() {
}
}
#pragma push
#pragma ppc_iro_level 1
void ipl::scene::AddressEdit::get_friendinfo() {
memcpy(&ipl::scene::sFriendInfo, &mpFriendCache->getInfo(mSelectedFriend),
sizeof(ipl::scene::sFriendInfo));
mString.setName(reinterpret_cast<const wchar_t*>(ipl::scene::sFriendInfo.attr.name));
set_textbox(mpCodeLayout->getNW4RLyt()->GetRootPane()->FindPaneByName("T_name_00", true), mString.mName);
const wchar_t* name = mString.mName;
set_textbox(mpCodeLayout->getNW4RLyt()->GetRootPane()->FindPaneByName("T_name_00", true), name);
wchar_t wiiNo[0x100];
wchar_t email[0x102];
@@ -2873,13 +2859,18 @@ void ipl::scene::AddressEdit::get_friendinfo() {
ipl::utility::CharacterCode::ANSIToUTF16(email, reinterpret_cast<const u8*>(&ipl::scene::sFriendInfo.addr), 0x102);
mString.setEMail(email);
}
set_textbox(mpCodeLayout->getNW4RLyt()->GetRootPane()->FindPaneByName("T_frnd_crd_00", true), mString.mDisplayText);
const wchar_t* text = mString.mDisplayText;
set_textbox(mpCodeLayout->getNW4RLyt()->GetRootPane()->FindPaneByName("T_frnd_crd_00", true), text);
memcpy(&mCreateID, &ipl::scene::sFriendInfo.attr.fdId, sizeof(mCreateID));
}
#pragma pop
#pragma push
#pragma ppc_iro_level 1
void ipl::scene::AddressEdit::update_friendinfo() {
memset(ipl::scene::sFriendInfo.attr.name, 0, sizeof(ipl::scene::sFriendInfo.attr.name));
wcsncpy(reinterpret_cast<wchar_t*>(ipl::scene::sFriendInfo.attr.name), mString.mName, 0xa);
const wchar_t* source = mString.mName;
wcsncpy(reinterpret_cast<wchar_t*>(ipl::scene::sFriendInfo.attr.name), source, 0xa);
memcpy(&ipl::scene::sFriendInfo.attr.fdId, &mCreateID, sizeof(mCreateID));
mpFriendCache->update(
mSelectedFriend,
@@ -2887,6 +2878,7 @@ void ipl::scene::AddressEdit::update_friendinfo() {
ipl::scene::sFriendInfo.attr.fdId);
static_cast<ipl::scene::Address*>(ipl::System::getScene(ipl::SCENE_ADDRESS))->reset_friend();
}
#pragma pop
void ipl::scene::AddressEdit::String::setEMail(const wchar_t* value) {
mbHasWiiNo = false;

View File

@@ -403,43 +403,87 @@ static inline void sendValidityResponse(u32 command, u32 valid) {
u32 value;
struct { u32 upper : 16; u32 valid : 8; u32 command : 8; } fields;
} reply;
reply.value = command;
reply.fields.valid = valid;
reply.value = valid << 8;
reply.fields.command = command;
OSSendMessage(&sThread->responses, (OSMessage)reply.value, OS_MESSAGE_BLOCK);
}
extern "C" void* cardThreadMain(void*) {
struct CardThreadLocals {
u8 compareName[6];
u32 message;
CARDDir freeDir;
CARDDir mountDir;
CARDDir listingDir;
char fileName[33];
} local;
BOOL brokenFile;
BOOL exitThread = FALSE;
u32 validState = TRUE;
u32 command;
s16 fileNo;
u8 slot;
static inline u8 getCardCommandSlot(u32 message) {
u8 slot = message >> 16;
slot &= 1;
return slot;
}
static inline s32 countCardTitleBlocks(s32 slot, CARDDir* dir) {
s32 fileNo;
s32 result;
s32 blocks;
blocks = 0;
for (fileNo = 0; fileNo < CARD_MAX_FILE; ++fileNo) {
result = __CARDGetStatusEx(slot, fileNo, dir);
if (result < CARD_RESULT_READY && result != CARD_RESULT_NOFILE) {
blocks = -1;
break;
}
if (result == CARD_RESULT_READY &&
memcmp(dir->gameName, (void*)0x80000000, 4) == 0 &&
memcmp(dir->company, (void*)0x80000004, 2) == 0) {
blocks += dir->length;
}
}
return blocks;
}
static inline void listCardFiles(u8 slot, CARDDir& dir, char* fileName) {
u32 fileNo;
for (fileNo = 0; fileNo < CARD_MAX_FILE; ++fileNo) {
if (__CARDGetStatusEx(slot, (u16)fileNo, &dir) == CARD_RESULT_READY) {
memcpy(fileName, dir.fileName, CARD_FILENAME_MAX);
fileName[CARD_FILENAME_MAX] = 0;
OSReport("%d - %s: %d blocks\n", (u16)fileNo, fileName, dir.length);
}
}
}
static inline void deleteCardFile(u8 slot, s16 fileNo) {
s32 result = CARDFastDelete(slot, fileNo);
if (result < CARD_RESULT_READY) {
reportCardThreadError(slot, 4, result);
} else {
clearCardFileEntry(slot, fileNo);
refreshCardSlotInfo(slot);
sendCardSlotState(slot, 4, (u8)fileNo);
}
}
extern "C" void* cardThreadMain(void*) {
char fileName[33];
CARDDir listingDir;
CARDDir mountDir;
CARDDir freeDir;
u32 message;
u8 compareName[6];
s32 result;
u8 slot;
BOOL brokenFile;
s32 scanResult;
s32 file;
u32 listingFile;
s32 outerSlot;
s32 freeFile;
s32 freeBlocks;
s32 outerSlot;
u32 validState = TRUE;
BOOL exitThread = FALSE;
u32 command;
sThread->mounted[0] = 0;
sThread->mounted[1] = 0;
goto loopCheck;
loopStart:
OSReceiveMessage(&sThread->requests, (OSMessage*)&local.message, OS_MESSAGE_BLOCK);
OSReport("CARD THREAD: Message received %d\n", (s8)(u8)local.message);
OSReceiveMessage(&sThread->requests, (OSMessage*)&message, OS_MESSAGE_BLOCK);
OSReport("CARD THREAD: Message received %d\n", (s8)(u8)message);
if (validState != TRUE) {
goto loopCheck;
}
command = local.message & 0xFF;
command = message & 0xFF;
switch ((s8)command) {
case 10:
@@ -451,8 +495,8 @@ loopStart:
exitThread = TRUE;
break;
case 0: {
slot = (local.message >> 16) & 1;
command = (local.message >> 14) & 4;
slot = getCardCommandSlot(message);
command = (message >> 14) & 4;
result = CARDMount(slot, sThread->mountBuffers[command / 4], 0);
if (result < CARD_RESULT_READY) {
result = handleCardMountResult(slot, result);
@@ -461,15 +505,15 @@ loopStart:
}
break;
}
result = CARDCheck(slot);
if (result < CARD_RESULT_READY) {
scanResult = CARDCheck(slot);
if (scanResult < CARD_RESULT_READY) {
goto mountError;
}
mountContinue:
clearAllCardFileEntries(slot);
for (file = 0; file < CARD_MAX_FILE; ++file) {
result = __CARDGetStatusEx(slot, (s16)file, &local.mountDir);
result = __CARDGetStatusEx(slot, (s16)file, &mountDir);
if (result < CARD_RESULT_READY) {
result = handleCardMountResult(slot, result);
if (result != CARD_RESULT_READY) {
@@ -477,27 +521,27 @@ loopStart:
}
goto loopCheck;
} else {
local.compareName[0] = 0;
local.compareName[1] = 0;
local.compareName[2] = 0;
local.compareName[3] = 0;
local.compareName[4] = 0;
local.compareName[5] = 0;
if (strncmp((const char*)local.mountDir.fileName, "Broken File", 0xB) == 0 &&
memcmp(local.mountDir.gameName, local.compareName + 2, 4) == 0 &&
memcmp(local.mountDir.company, local.compareName, 2) == 0) {
compareName[0] = 0;
compareName[1] = 0;
compareName[2] = 0;
compareName[3] = 0;
compareName[4] = 0;
compareName[5] = 0;
if (strncmp((const char*)mountDir.fileName, "Broken File", 0xB) == 0 &&
memcmp(mountDir.gameName, compareName + 2, 4) == 0 &&
memcmp(mountDir.company, compareName, 2) == 0) {
brokenFile = TRUE;
} else {
brokenFile = FALSE;
}
if (brokenFile) {
result = CARDFastDelete(slot, (s16)file);
if (result < CARD_RESULT_READY) {
scanResult = CARDFastDelete(slot, (s16)file);
if (scanResult < CARD_RESULT_READY) {
goto mountError;
}
} else {
result = loadCardFileIcons(slot, (s16)file, &local.mountDir);
if (result < CARD_RESULT_READY) {
scanResult = loadCardFileIcons(slot, (s16)file, &mountDir);
if (scanResult < CARD_RESULT_READY) {
goto mountError;
}
}
@@ -507,26 +551,19 @@ loopStart:
sThread->mounted[command / 4] = 1;
sendCardSlotState(slot, 0, 0);
OSReport("Slot %c\n", sCardSlotName[slot]);
for (listingFile = 0; listingFile < CARD_MAX_FILE; ++listingFile) {
if (__CARDGetStatusEx(slot, (u16)listingFile, &local.listingDir) == CARD_RESULT_READY) {
memcpy(local.fileName, local.listingDir.fileName, CARD_FILENAME_MAX);
local.fileName[CARD_FILENAME_MAX] = 0;
OSReport("%d - %s: %d blocks\n", (u16)listingFile, local.fileName,
local.listingDir.length);
}
}
listCardFiles(slot, listingDir, fileName);
break;
mountError:
OSReport("MountError\n");
reportCardThreadError(slot, 0, result);
reportCardThreadError(slot, 0, scanResult);
break;
}
case 9:
reportCardThreadError((local.message >> 16) & 1, 9, CARD_RESULT_NOCARD);
reportCardThreadError(getCardCommandSlot(message), 9, CARD_RESULT_NOCARD);
break;
case 1: {
slot = (local.message >> 16) & 1;
slot = getCardCommandSlot(message);
result = CARDFormat(slot);
if (result < CARD_RESULT_READY) {
reportCardThreadError(slot, 1, result);
@@ -538,44 +575,22 @@ loopStart:
break;
}
case 2:
runCardMoveOrCopy((local.message >> 16) & 1,
(s16)(u8)(local.message >> 24), (s8)command);
runCardMoveOrCopy(getCardCommandSlot(message),
(s16)(u8)(message >> 24), (s8)command);
break;
case 3:
runCardMoveOrCopy((local.message >> 16) & 1,
(s16)(u8)(local.message >> 24), (s8)command);
runCardMoveOrCopy(getCardCommandSlot(message),
(s16)(u8)(message >> 24), (s8)command);
break;
case 4: {
slot = (local.message >> 16) & 1;
fileNo = (s16)(local.message >> 24);
result = CARDFastDelete(slot, fileNo);
if (result < CARD_RESULT_READY) {
reportCardThreadError(slot, 4, result);
} else {
clearCardFileEntry(slot, fileNo);
refreshCardSlotInfo(slot);
sendCardSlotState(slot, 4, (u8)fileNo);
}
case 4:
deleteCardFile(getCardCommandSlot(message), (s16)(message >> 24));
break;
}
case 12:
outerSlot = 0;
do {
if (sThread->mounted[outerSlot] != 0) {
freeBlocks = 0;
for (freeFile = 0; freeFile < CARD_MAX_FILE; ++freeFile) {
result = __CARDGetStatusEx(outerSlot, freeFile, &local.freeDir);
if (result < CARD_RESULT_READY && result != CARD_RESULT_NOFILE) {
freeBlocks = -1;
break;
}
if (result == CARD_RESULT_READY &&
memcmp(local.freeDir.gameName, (void*)0x80000000, 4) == 0 &&
memcmp(local.freeDir.company, (void*)0x80000004, 2) == 0) {
freeBlocks += local.freeDir.length;
}
}
freeBlocks = countCardTitleBlocks(outerSlot, &freeDir);
sThread->slots[outerSlot].unk_0x12 = freeBlocks;
}
++outerSlot;

View File

@@ -87,11 +87,9 @@ namespace ipl {
mNwc24ErrCountdown2 = 0;
// Text balloon for Mii face
f32 f0 = 30.0f;
f32 f1 = 120.0f;
mpNigaoeBalloon =
new TextBalloon(getSceneHeap(), mpBalloonFile, "arc", "my_IplTopBalloon_a.brlyt",
math::VEC3(0.0f, (f1 = 120.0f, 0.0f), (f0 = 30.0f, 0.0f)), f1, f0);
new TextBalloon(getSceneHeap(), mpBalloonFile, "arc", "my_IplTopBalloon_a.brlyt", math::VEC3(0.0f, 0.0f, 0.0f),
TextBalloon::getDefaultMargin16x9(), TextBalloon::getDefaultMargin4x3());
// Scroller
mpScroller = new utility::YoungBScroller();

View File

@@ -68,6 +68,19 @@ namespace ipl {
SDMemory::~SDMemory() {}
static inline s32 countCachedTitles(const savedata::Manager* saveData) {
s32 count = 0;
for (s32 i = 0; i < 48; ++i) {
if (saveData->getTitleCacheEntry(i) == 0) {
break;
}
++count;
}
return count;
}
#pragma push
#pragma ppc_iro_level 1
void SDMemory::create(EGG::Heap* heap, nand::LayoutFile* layoutFile, SDChannelSelect* channelSelect) {
s32 cachedTitleCount;
const savedata::Manager* saveData;
@@ -151,13 +164,7 @@ namespace ipl {
textBox->SetString(System::getMessage(0xBA));
saveData = System::getSaveData();
cachedTitleCount = 0;
for (s32 i = 0; i < 48; ++i) {
if (saveData->getTitleCacheEntry(i) == 0) {
break;
}
++cachedTitleCount;
}
cachedTitleCount = countCachedTitles(saveData);
if (cachedTitleCount >= 5) {
mpTitleLayout->FindPaneByName("N_Btn_3")->SetVisible(false);
nw4r::lyt::Pane* expandedButton = mpTitleLayout->FindPaneByName("N_Btn_4");
@@ -253,6 +260,8 @@ namespace ipl {
mTransferFlags[0] = 1;
}
#pragma pop
void SDMemory::setTitleLists(const TitleRange& nandTitles, const TitleRange& sdTitles) {
mNandTitleRange = nandTitles;
mSDTitleRange = sdTitles;

View File

@@ -1780,7 +1780,6 @@ u8 gAtermDigestFill[64] = { 0x80 };
s32 ATERMi_AutoConfigThread(void) {
s32 result = ATERMRunConfigProtocol();
AtermProgress progress;
u32 equalityMask;
s32 completedState;
gAtermResult = result;
@@ -1791,9 +1790,8 @@ s32 ATERMi_AutoConfigThread(void) {
gAtermSocketReady = 0;
SOCleanup();
}
equalityMask = ~(result - 1U | 1U - result);
completedState = (result == 1) ? 6 : 7;
gAtermDeadline = 0xFFFFFFFF;
completedState = ((s32)equalityMask >> 31) + 7;
gAtermState = completedState;
progress.state = completedState;
progress.remainingTime = -1;

View File

@@ -91,10 +91,8 @@ namespace ipl {
mNwc24ErrCountdown = 0;
// Text balloon for Mii face
f32 f0 = 30.0f;
f32 f1 = 120.0f;
mpNigaoeBalloon = new TextBalloon(getSceneHeap(), mpBalloonFile, "arc", "my_IplTopBalloon_a.brlyt",
math::VEC3(0.0f, (f1 = 120.0f, 0.0f), (f0 = 30.0f, 0.0f)), f1, f0);
mpNigaoeBalloon = new TextBalloon(getSceneHeap(), mpBalloonFile, "arc", "my_IplTopBalloon_a.brlyt", math::VEC3(0.0f, 0.0f, 0.0f),
TextBalloon::getDefaultMargin16x9(), TextBalloon::getDefaultMargin4x3());
// Scroller
mpScroller = new utility::YoungBScroller();

View File

@@ -9,7 +9,7 @@ from pathlib import Path
EXPECTED_DOL_SHA1 = "26116613f624061ba99c8d1a299aaa6efa85670d"
EXPECTED_TOTAL_UNITS = 1027
EXPECTED_TOTAL_UNITS = 1028
EXPECTED_TOTAL_CODE = 2995176
EXPECTED_TOTAL_DATA = 1832684
EXPECTED_TOTAL_FUNCTIONS = 12563

View File

@@ -0,0 +1,14 @@
## scanAP (w1010 revisit) — inlined-bool materialization wall
Orig inlines `Animator::isPlaying()` (`mState == 1` at +0x14) 3x but always as a
MATERIALIZED bool: `lwz rX,0x14; addi r0,rX,-1; cntlzw r0,r0; rlwinm. r0,r0,27,5,31; bne`.
Ours fuses to `lwz r0,0x14; cmpwi r0,1; beq` — 6 insns shorter overall (272 vs 266).
Tried and rejected (MWCC normalizes/folds all of them):
- `isPlaying() == false` at the call site
- `bool playing = anim->isPlaying(); if (!playing)` named local (fuses; eggColorFader's
fadeOut materializes only because `success` is also RETURNED — a second value-use)
- `int isPlaying()` return type — still fuses
- `return !(mState != ANIM_STATE_PLAY)` in the header — still fuses
Conclusion: orig's bool crosses a real value-boundary (2nd use, or a different inlined
shape we haven't identified). Same family as the fused-compare fossil in CHANSVm.
Also tried: convertRevIP untouched (98.7, 292B).

View File

@@ -0,0 +1,350 @@
# sol-nup shape trials
Base f49f337c, branch agent/w1008/data-d4-h. Baseline pools identical: nup 28/28, www_wiisetting 72/72. Baseline differing counts: 66/452 and 14/609, equal sizes. Unrelated pre-existing untracked files retained.
- www/function-i: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-210942. simulator reproduces 312/312 virtual registers; best: 159/159 wanted registers.
- nup/helper-named-lengths: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-211223. simulator reproduces 182/182 virtual registers; best: 74/92 wanted registers.
- www/eur-outer-i: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-211301. simulator reproduces 312/312 virtual registers; best: 157/159 wanted registers.
Tracing adjustment: canceled the queued duplicate baseline Getter capture and queued named-next/dummy-outer captures. Remaining trials use private /tmp/sol-nup-mwdbg-fast.py and /tmp/sol-nup-gc3-fast.py, with the same pinned compiler, arguments, shared debugger lock, GPR before-simplify/final graphs, priority and PCode before/after/scheduling dumps. Per-event coalescing/color chatter and non-GPR allocation snapshots omitted. Every captured object must equal the normal Ninja object SHA256. /tmp/sol-nup-regsim.py additionally restricts permutation to source locals and accepts virtual IDs, excluding @ temporaries and fixed parameters. Initial function-i source-only check reaches 2/5 critical wants, not the unrestricted 159/159.
- www/dummy-outer-i: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-211905. simulator reproduces 312/312 virtual registers; best: 159/159 wanted registers.
- nup/helper-named-next: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-211905. simulator reproduces 173/173 virtual registers; best: 74/92 wanted registers.
- www/security-outer-i: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-212035. simulator reproduces 312/312 virtual registers; best: 158/159 wanted registers.
Trace queue isolation: private driver binds its stock emulator debugger socket to 9002 for nup and 9003 for Getter with /tmp/sol-nup-port.so, a bind-only LD_PRELOAD wrapper. The emulator and pinned compiler binaries remain unchanged; GDB uses the corresponding port and a private /tmp lock. Traced objects continue to require equality with Ninja objects.
- nup/helper-const-param-start: 434/452, size changed, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-212212. simulator reproduces 151/151 virtual registers.
- nup/helper-const-param-end: 434/452, size changed, pool FIRST DIVERGENCE at index 5
3 mine=0x40 base=0x40
M 'downloading content from server'
B 'downloading content from server'
4 mine=0x60 base=0x60
M 'an error occurred'
B 'an error occurred'
* 5 mine=0x90 base=0x90
M '<Version>'
B '</Version>'
* 6 mine=0x9c base=0x9c
M '</Version>'
B '<Version>'
* 7 mine=0xa8 base=0xa8
M '<DeviceId>'
B '</DeviceId>'
* 8 mine=0xb4 base=0xb4
M '</DeviceId>'
B '<DeviceId>'
* 9 mine=0xc0 base=0xc0
M '<MessageId>'
B '</MessageId>'
mine has 28 strings, base has 28. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-212557. simulator reproduces 151/151 virtual registers.
- nup/helper-param-copy-tags: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-212637. simulator reproduces 162/162 virtual registers; best: 71/92 wanted registers.
- nup/helper-startlen-before-end: 477/496, size changed, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-212717. simulator reproduces 171/171 virtual registers.
- www/dummy-body-inc: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-212404. simulator reproduces 311/311 virtual registers; best: 158/159 wanted registers.
- nup/helper-length-return-expr: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-212758. simulator reproduces 173/173 virtual registers; best: 72/92 wanted registers.
- nup/helper-const-response: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-212839. simulator reproduces 162/162 virtual registers; best: 71/92 wanted registers.
- www/dummy-while: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-212830. simulator reproduces 312/312 virtual registers; best: 158/159 wanted registers.
- nup/call-result-blocks: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-212928. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- www/eur-while: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-212933. simulator reproduces 312/312 virtual registers; best: 158/159 wanted registers.
- nup/call-result-blocks-separate: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-213008. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- nup/parser-all-pointer-locals: 74/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-213049. simulator reproduces 162/162 virtual registers; best: 64/92 wanted registers; source-only best: 67/92 wanted registers.
- www/eur-do: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-213035. simulator reproduces 312/312 virtual registers; best: 158/159 wanted registers.
- nup/parser-c89-locals: 74/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-213127. simulator reproduces 162/162 virtual registers; best: 63/92 wanted registers; source-only best: 67/92 wanted registers.
- nup/parser-c89-block-results: 74/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-213211. simulator reproduces 162/162 virtual registers; best: 63/92 wanted registers; source-only best: 67/92 wanted registers.
- nup/nested-SkipTag: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-213250. simulator reproduces 173/173 virtual registers; best: 70/92 wanted registers; source-only best: 67/92 wanted registers.
- www/mask-helper-return: 9/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-213238. simulator reproduces 312/312 virtual registers; best: 159/159 wanted registers; source-only best: 157/159 wanted registers.
- nup/nested-SkipTagConst: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-213330. simulator reproduces 173/173 virtual registers; best: 70/92 wanted registers; source-only best: 67/92 wanted registers.
- www/mask-return-eur-helper: 9/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-213344. simulator reproduces 312/312 virtual registers; best: 158/159 wanted registers; source-only best: 157/159 wanted registers.
- nup/nested-TagSpan: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-213418. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- nup/nested-TagSpanRef: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-213457. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- www/mask-helper-ref: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-213442. simulator reproduces 312/312 virtual registers; best: 158/159 wanted registers; source-only best: 156/159 wanted registers.
- nup/params-03124: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-213537. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- www/mask-ref-eur-helper: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-213539. simulator reproduces 312/312 virtual registers; best: 158/159 wanted registers; source-only best: 156/159 wanted registers.
- nup/params-03412: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-213631. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- www/mask-helper-ptr: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-213650. simulator reproduces 312/312 virtual registers; best: 158/159 wanted registers; source-only best: 156/159 wanted registers.
- nup/params-04312: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-213710. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- nup/params-01243: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-213754. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- www/mask-ptr-eur-helper: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-213753. simulator reproduces 312/312 virtual registers; best: 158/159 wanted registers; source-only best: 156/159 wanted registers.
- nup/params-04123: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-213830. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- www/eur-helper-ref: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-213847. simulator reproduces 312/312 virtual registers; best: 158/159 wanted registers; source-only best: 156/159 wanted registers.
- nup/params-30124: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-213905. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- nup/params-30412: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-213942. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- www/eur-helper-ptr: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-213942. simulator reproduces 312/312 virtual registers; best: 158/159 wanted registers; source-only best: 156/159 wanted registers.
- nup/params-40312: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-214017. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- www/dummy-front: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-214036. simulator reproduces 312/312 virtual registers; best: 159/159 wanted registers; source-only best: 156/159 wanted registers.
- nup/params-40123: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-214054. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- nup/params-34012: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-214131. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- www/dummy-after-ret: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-214130. simulator reproduces 312/312 virtual registers; best: 158/159 wanted registers; source-only best: 156/159 wanted registers.
- nup/params-43012: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-214207. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- nup/params-12034: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-214247. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- www/dummy-after-prop: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-214226. simulator reproduces 312/312 virtual registers; best: 158/159 wanted registers; source-only best: 156/159 wanted registers.
- nup/params-12043: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-214324. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- www/eur-front: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-214326. simulator reproduces 312/312 virtual registers; best: 157/159 wanted registers; source-only best: 156/159 wanted registers.
- nup/params-31204: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-214400. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- www/eur-after-ret: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-214419. simulator reproduces 312/312 virtual registers; best: 158/159 wanted registers; source-only best: 156/159 wanted registers.
- nup/params-12304: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-214437. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- nup/params-12403: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-214514. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- www/eur-after-prop: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-214513. simulator reproduces 312/312 virtual registers; best: 158/159 wanted registers; source-only best: 156/159 wanted registers.
- www/security-front: compile failed. /tmp/sol-nup-www-security-front.build.txt
- www/security-after-ret: compile failed. /tmp/sol-nup-www-security-after-ret.build.txt
- www/security-after-prop: compile failed. /tmp/sol-nup-www-security-after-prop.build.txt
- nup/tag-types-char-cchar: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-214549. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- nup/tag-types-cchar-char: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-214624. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- www/dummy-eur-front: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-214609. simulator reproduces 312/312 virtual registers; best: 159/159 wanted registers; source-only best: 156/159 wanted registers.
- nup/tag-types-char-char: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-214659. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- www/dummy-eur-after-ret: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-214703. simulator reproduces 312/312 virtual registers; best: 159/159 wanted registers; source-only best: 156/159 wanted registers.
- nup/helper-unsigned-length: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-214735. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- nup/helper-param-value-ref: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-214810. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- www/dummy-eur-after-prop: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-214756. simulator reproduces 312/312 virtual registers; best: 159/159 wanted registers; source-only best: 156/159 wanted registers.
- www/all-front: compile failed. /tmp/sol-nup-www-all-front.build.txt
- www/all-after-ret: compile failed. /tmp/sol-nup-www-all-after-ret.build.txt
- www/all-after-prop: compile failed. /tmp/sol-nup-www-all-after-prop.build.txt
- nup/helper-param-length-ref: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-214845. simulator reproduces 162/162 virtual registers; best: 67/92 wanted registers; source-only best: 67/92 wanted registers.
- www/key-length-ref: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-214853. simulator reproduces 313/313 virtual registers; best: 158/159 wanted registers; source-only best: 156/159 wanted registers.
- nup/title-count-helper: 66/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-214922. simulator reproduces 162/162 virtual registers; best: 72/92 wanted registers; source-only best: 67/92 wanted registers.
- nup/caller-tags-function-assign: 97/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-214959. simulator reproduces 162/162 virtual registers; best: 65/92 wanted registers; source-only best: 56/92 wanted registers.
- www/key-length-ref-eur: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-214948. simulator reproduces 313/313 virtual registers; best: 158/159 wanted registers; source-only best: 156/159 wanted registers.
- nup/caller-tags-function-const: 97/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-215036. simulator reproduces 162/162 virtual registers; best: 65/92 wanted registers; source-only best: 56/92 wanted registers.
- www/key-length-ptr: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-215043. simulator reproduces 313/313 virtual registers; best: 158/159 wanted registers; source-only best: 156/159 wanted registers.
- nup/caller-tags-block-assign: 100/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-215112. simulator reproduces 162/162 virtual registers; best: 63/92 wanted registers; source-only best: 56/92 wanted registers.
- nup/caller-tags-block-const: 100/452, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/__nupParseServerInfo__FP14NUPContextInfoPcPcUx-20261008-215150. simulator reproduces 162/162 virtual registers; best: 63/92 wanted registers; source-only best: 56/92 wanted registers.
- www/key-length-ptr-eur: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-215138. simulator reproduces 313/313 virtual registers; best: 158/159 wanted registers; source-only best: 156/159 wanted registers.
NUP round finished: 44 compiled source trials, no exact candidate. Best 66/452, equal size and identical pool. Argument-order and output-type variants reproduce the baseline 162-vreg graph and cannot remove 25 target coloring misses through source-local reorder. Const tag parameters fold strlen and fail equal-size/pool criteria. Best diff saved outside the repository at /mnt/drive2/projects/wii-ipl-workers/_luna-runs/best/sol-nup.nup.diff. Restored nup.cpp to HEAD and rebuilt; restored differing count 66/452 and pool 28/28 identical.
- www/mask-shared-index: 20/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-215231. simulator reproduces 312/312 virtual registers; best: 159/159 wanted registers; source-only best: 156/159 wanted registers.
- www/mask-shared-index-eur: 20/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-215324. simulator reproduces 312/312 virtual registers; best: 159/159 wanted registers; source-only best: 156/159 wanted registers.
- www/mask-buffer-function: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-215419. simulator reproduces 312/312 virtual registers; best: 158/159 wanted registers; source-only best: 156/159 wanted registers.
- www/mask-buffer-function-eur: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-215512. simulator reproduces 312/312 virtual registers; best: 158/159 wanted registers; source-only best: 156/159 wanted registers.
- www/mask-explicit-update-eur: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-215606. simulator reproduces 311/311 virtual registers; best: 158/159 wanted registers; source-only best: 156/159 wanted registers.
- www/mask-local-buffer-first: 9/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-215659. simulator reproduces 312/312 virtual registers; best: 159/159 wanted registers; source-only best: 157/159 wanted registers.
- www/mask-local-buffer-first-eur: 9/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-215753. simulator reproduces 312/312 virtual registers; best: 158/159 wanted registers; source-only best: 157/159 wanted registers.
- www/mask-local-index-first: 9/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-215846. simulator reproduces 312/312 virtual registers; best: 159/159 wanted registers; source-only best: 157/159 wanted registers.
- www/mask-local-index-first-eur: 9/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-215942. simulator reproduces 312/312 virtual registers; best: 158/159 wanted registers; source-only best: 157/159 wanted registers.
- www/prepare-mask-buffer-first: 9/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-220037. simulator reproduces 312/312 virtual registers; best: 159/159 wanted registers; source-only best: 157/159 wanted registers.
- www/prepare-mask-buffer-first-eur: 9/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-220141. simulator reproduces 312/312 virtual registers; best: 158/159 wanted registers; source-only best: 157/159 wanted registers.
- www/prepare-mask-index-first: 9/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-220239. simulator reproduces 312/312 virtual registers; best: 159/159 wanted registers; source-only best: 157/159 wanted registers.
- www/prepare-mask-index-first-eur: 9/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-220333. simulator reproduces 312/312 virtual registers; best: 158/159 wanted registers; source-only best: 157/159 wanted registers.
- www/mask-reference-index-local-buffer-void: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-220507. simulator reproduces 312/312 virtual registers; best: 158/159 wanted registers; source-only best: 156/159 wanted registers.
- www/mask-reference-index-local-buffer-return-buffer: 14/609, size equal, pool identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue-20261008-220636. simulator reproduces 312/312 virtual registers; best: 158/159 wanted registers; source-only best: 156/159 wanted registers.
Getter round finished: best 9/609 from mask-helper-return, equal size and identical pool. Four surviving buffer-register differences and five European-counter differences. Best diff saved outside the repository at /mnt/drive2/projects/wii-ipl-workers/_luna-runs/best/sol-nup.www_wiisetting.diff. Scope-generator compile failures were malformed privacyIndexpl namespace replacements, not compiler limitations. No non-exact source change retained.
Restored verification:
- libs/RVL_SDK/src/nup/nup: POOL IDENTICAL up to 28 (mine=28 base=28), src size 0x710 base size 0x710, differing: 66 / 452.
- src/iplwww/www_wiisetting: POOL IDENTICAL up to 72 (mine=72 base=72), src size 0x984 base size 0x984, differing: 14 / 609.
Final requested quick gate on restored source:
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[libs/RVL_SDK/src/nup/nup] pool: IDENTICAL
[libs/RVL_SDK/src/nup/nup] objdiff: code 8956/10764 data 1720/1720 functions 22/23 fuzzy 99.8774 linked code 0
[libs/RVL_SDK/src/nup/nup] instruction-exact functions: 22/23
[libs/RVL_SDK/src/nup/nup] section .data size 1592 match 100.0
[libs/RVL_SDK/src/nup/nup] section .rodata size 88 match 100.0
[libs/RVL_SDK/src/nup/nup] section .sbss size 8 match 100.0
[libs/RVL_SDK/src/nup/nup] section .sdata size 32 match 100.0
[libs/RVL_SDK/src/nup/nup] section .text size 10764 match 99.87737
[libs/RVL_SDK/src/nup/nup] below 100: __nupParseServerInfo__FP14NUPContextInfoPcPcUx 99.26991
[libs/RVL_SDK/src/nup/nup] baseline: code 8956/10764 data 1720 functions 22 fuzzy 99.8774
[src/iplwww/www_wiisetting] pool: IDENTICAL
[src/iplwww/www_wiisetting] objdiff: code 3740/6176 data 3856/3856 functions 20/21 fuzzy 99.9450 linked code 0
[src/iplwww/www_wiisetting] instruction-exact functions: 20/21
[src/iplwww/www_wiisetting] section .bss size 104 match 100.0
[src/iplwww/www_wiisetting] section .data size 2576 match 100.0
[src/iplwww/www_wiisetting] section .rodata size 792 match 100.0
[src/iplwww/www_wiisetting] section .sbss size 32 match 100.0
[src/iplwww/www_wiisetting] section .sdata size 320 match 100.0
[src/iplwww/www_wiisetting] section .sdata2 size 32 match 100.0
[src/iplwww/www_wiisetting] section .text size 6176 match 99.94495
[src/iplwww/www_wiisetting] below 100: Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue 99.86043
[src/iplwww/www_wiisetting] baseline: code 3740/6176 data 3856 functions 20 fuzzy 99.9450
regressions vs baseline: 0
global matched_code_percent: 97.58331 -> 97.58331
global fuzzy_match_percent: 99.89996 -> 99.89996
global complete_code_percent: 88.95958 -> 88.95958
global matched_data_percent: 100.00000 -> 100.00000
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
GATE PASS
DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d
```
Handoff: nup 44 compiled trials; Getter 50 source trials, 44 compiled and 6 generator compile failures. Exact functions unchanged: nup 22/23 -> 22/23, www_wiisetting 20/21 -> 20/21. No Matching flag changed, no source candidate retained, no push or PR. Final gate passed with 0 regressions, 0 forbidden patterns and 0 readability warnings.
## Round 2, xhigh, Getter only
HEAD d3888148; origin/main fetched, owned source unchanged upstream. Replayed saved best: 9/609, 609/609 instructions, pool 72/72 identical. Trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/sol-nup-r2-best, byte-identical Ninja object SHA256 adb513a9cfd2cd56cb17bd5aa1549c95ef0386465668922fb5c16c6ce3bd59c5. vmap2 want-list has 159 unambiguous virtuals; residual country counter and dummy-key buffer. New source trials use whole-word counter renaming to avoid the prior malformed namespace replacements.
- r2/c89-counters-False-0: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 20517c983b59.
- r2/c89-all-locals-False-0: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 20517c983b59.
- r2/c89-counters-False-1: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 20517c983b59.
- r2/c89-all-locals-False-1: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 20517c983b59.
- r2/c89-counters-True-0: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 89c900f6d5c6.
- r2/c89-all-locals-True-0: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 89c900f6d5c6.
- r2/saved-mask-helper: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 3b8f3228dae8.
- r2/saved-and-country-helper: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object dc2d52f3737d.
- r2/saved-helper-while: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 3b8f3228dae8.
- r2/saved-helper-while-eur: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object dc2d52f3737d.
- r2/saved-helper-do: 417/611, insns 611/609, pool identical; first [34, 40, 62, 68, 117, 121, 130, 133, 136, 140, 144, 148]; object 8b1e2a042f28.
- r2/saved-helper-do-eur: 417/611, insns 611/609, pool identical; first [34, 40, 62, 68, 117, 121, 130, 133, 136, 140, 144, 148]; object 26cd1a48a8a8.
- r2/saved-helper-body-plus: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 3b8f3228dae8.
- r2/saved-helper-body-plus-eur: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object dc2d52f3737d.
- r2/saved-helper-compound: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 3b8f3228dae8.
- r2/saved-helper-compound-eur: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object dc2d52f3737d.
- r2/saved-helper-unsigned-long: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 28f72566ec9f.
- r2/saved-helper-unsigned-long-eur: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object c9a8edfe710b.
Best-source simulator: 312/312 captured virtuals reproduced; movable locals: i, kbLang, staIdx, i, retVal | identity order: 157/159 wanted; wrong: i(v35) r25->r31, @17442(v41) r28->r25 | best locals-only order: 157/159 wanted | order: i(v35), kbLang(v36), staIdx(v37), i(v38), retVal(v39) | still wrong: i(v35) sim r25 want r31; @17442(v41) sim r28 want r25 |
- r2/parameter-local-obj: 9/609, insns 609/609, pool identical; first [255, 258, 259, 267, 578, 583, 589, 592, 593]; object 3d23409d7baf.
- r2/parameter-local-obj-saved-helper: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object d1c797afa424.
- r2/parameter-local-str: 9/609, insns 609/609, pool identical; first [255, 258, 259, 267, 578, 583, 589, 592, 593]; object 3d23409d7baf.
- r2/parameter-local-str-saved-helper: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object d1c797afa424.
- r2/parameter-local-val: 9/609, insns 609/609, pool identical; first [255, 258, 259, 267, 578, 583, 589, 592, 593]; object 3d23409d7baf.
- r2/parameter-local-val-saved-helper: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object d1c797afa424.
- r2/parameter-local-str-val: 9/609, insns 609/609, pool identical; first [255, 258, 259, 267, 578, 583, 589, 592, 593]; object 414999ec87ae.
- r2/parameter-local-str-val-saved-helper: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 945bbb9c116e.
- r2/parameter-local-obj-str-val: 9/609, insns 609/609, pool identical; first [255, 258, 259, 267, 578, 583, 589, 592, 593]; object 106ffe65d6cc.
- r2/parameter-local-obj-str-val-saved-helper: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 96797c44f063.
- r2/shared-mask-format-helper: 400/609, insns 596/609, pool identical; first [34, 40, 62, 68, 117, 121, 130, 133, 136, 140, 144, 148]; object 4d95d18eae9d.
- r2/saved-and-shared-format-helper: 404/609, insns 596/609, pool identical; first [34, 40, 62, 68, 117, 121, 130, 133, 136, 140, 144, 148]; object 1ab31ade119e.
- r2/three-branches-shared-format-helper: 404/609, insns 596/609, pool identical; first [34, 40, 62, 68, 117, 121, 130, 133, 136, 140, 144, 148]; object 1632fabf27bb.
- r2/saved-complete-mask-helper: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 3c8ebc4e3eb3.
- r2/saved-complete-and-eur-helper: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 7d2083688556.
- r2/no-output-dummy-saved-return: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object d75f3865ce83.
- r2/no-output-dummy-saved-return-eur: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object ed4543f88d81.
- r2/no-output-dummy-saved-complete: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object eefd135fbdec.
- r2/no-output-dummy-saved-complete-eur: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 00997c2fecbf.
- r2/c89-all-callback-calendar-and-idle-False: 25/609, insns 609/609, pool identical; first [24, 38, 86, 91, 100, 217, 221, 222, 226, 228, 235, 255]; object 51da6aeb0dac.
- r2/c89-all-callback-calendar-and-idle-True: 25/609, insns 609/609, pool identical; first [24, 38, 86, 91, 100, 217, 221, 222, 226, 228, 235, 255]; object 4d7a8a250ac6.
- r2/country-not-equal-plus-saved-helper: 16/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object c3c6c8616589.
- r2/country-inclusive-plus-saved-helper: 16/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 5339cf502377.
- r2/dummy-helper-definition-after: 9/609, insns 609/609, pool identical; first [255, 258, 259, 267, 578, 583, 589, 592, 593]; object 3d23409d7baf.
- r2/dummy-helper-after-saved-helper: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object d1c797afa424.
- r2/dummy-helper-after-country-helper: 9/609, insns 609/609, pool identical; first [255, 258, 259, 267, 578, 583, 589, 592, 593]; object 09853ef54039.
- r2/settings-branch-helper-after-callback: 25/609, insns 609/609, pool identical; first [91, 92, 94, 95, 96, 97, 99, 103, 217, 221, 222, 226]; object c6803a43c8dc.
- r2/settings-branch-helper-local-params: compile failed; /tmp/sol-nup-r2-settings-branch-helper-local-params.build.txt
- r2/dummy-size-return-saved-helper: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 3b8f3228dae8.
- r2/dummy-size-return-country-helper: 9/609, insns 609/609, pool identical; first [255, 258, 259, 267, 578, 583, 589, 592, 593]; object c9626c825d1c.
- r2/dummy-named-length-saved-helper: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 8bb75d5d012a.
- r2/dummy-named-length-country-helper: 9/609, insns 609/609, pool identical; first [255, 258, 259, 267, 578, 583, 589, 592, 593]; object cfd64a93a33a.
- r2/dummy-named-key-saved-helper: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 8bb75d5d012a.
- r2/dummy-named-key-country-helper: 9/609, insns 609/609, pool identical; first [255, 258, 259, 267, 578, 583, 589, 592, 593]; object cfd64a93a33a.
- r2/dummy-signed-size-counter-saved-helper: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 3b8f3228dae8.
- r2/dummy-signed-size-counter-country-helper: 9/609, insns 609/609, pool identical; first [255, 258, 259, 267, 578, 583, 589, 592, 593]; object c9626c825d1c.
- r2/dummy-unsigned-size-counter-saved-helper: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 3b8f3228dae8.
- r2/dummy-unsigned-size-counter-country-helper: 9/609, insns 609/609, pool identical; first [255, 258, 259, 267, 578, 583, 589, 592, 593]; object c9626c825d1c.
- r2/dummy-index-cast-saved-helper: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 3b8f3228dae8.
- r2/dummy-index-cast-country-helper: 9/609, insns 609/609, pool identical; first [255, 258, 259, 267, 578, 583, 589, 592, 593]; object c9626c825d1c.
- r2/dummy-while-named-length-saved-helper: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 8bb75d5d012a.
- r2/dummy-while-named-length-country-helper: 9/609, insns 609/609, pool identical; first [255, 258, 259, 267, 578, 583, 589, 592, 593]; object cfd64a93a33a.
- r2/dummy-for-comma-condition-saved-helper: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 945bbb9c116e.
- r2/dummy-for-comma-condition-country-helper: 9/609, insns 609/609, pool identical; first [255, 258, 259, 267, 578, 583, 589, 592, 593]; object a969d6389491.
- r2/pair-counter-privacy-country: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object 03ecf03594cd.
- r2/pair-counter-privacy-dummy: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object b5173e5fe1c8.
- r2/pair-counter-dummy-country: 15/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 255, 258, 259, 267, 578, 583]; object b5173e5fe1c8.
- r2/numeric-branch-helper-reference: 89/614, insns 614/609, pool identical; first [12, 34, 37, 39, 40, 62, 65, 67, 68, 84, 100, 101]; object 8622456dd751.
- r2/numeric-branch-helper-reference-c89: 89/614, insns 614/609, pool identical; first [12, 34, 37, 39, 40, 62, 65, 67, 68, 84, 100, 101]; object 8622456dd751.
- r2/numeric-branch-helper-pointer: 89/614, insns 614/609, pool identical; first [12, 34, 37, 39, 40, 62, 65, 67, 68, 84, 100, 101]; object 8622456dd751.
- r2/numeric-branch-helper-pointer-c89: 89/614, insns 614/609, pool identical; first [12, 34, 37, 39, 40, 62, 65, 67, 68, 84, 100, 101]; object 8622456dd751.
- r2/numeric-branch-helper-value: 390/623, insns 623/609, pool identical; first [0, 2, 3, 8, 11, 12, 34, 37, 39, 40, 62, 65]; object 30eb4477509f.
- r2/numeric-branch-helper-value-c89: 390/623, insns 623/609, pool identical; first [0, 2, 3, 8, 11, 12, 34, 37, 39, 40, 62, 65]; object 30eb4477509f.
- r2/callback-branch-helper-status: 573/618, insns 618/609, pool identical; first [7, 12, 13, 17, 24, 32, 33, 34, 35, 36, 37, 38]; object 55fd51e8a6ed.
- r2/callback-and-saved-branch-helper: 573/618, insns 618/609, pool identical; first [7, 12, 13, 17, 24, 32, 33, 34, 35, 36, 37, 38]; object 6e451c0643ab.
- r2/callback-and-country-branch-helper: 573/618, insns 618/609, pool identical; first [7, 12, 13, 17, 24, 32, 33, 34, 35, 36, 37, 38]; object ee034332bc70.
- r2/country-code-range-loop: 44/609, insns 608/609, pool identical; first [34, 40, 62, 68, 255, 258, 259, 267, 275, 282, 287, 537]; object 9def6ff5b014.
- r2/country-code-range-plus-saved-helper: 50/609, insns 608/609, pool identical; first [34, 40, 62, 68, 217, 221, 222, 226, 228, 235, 255, 258]; object 60d462954ea1.
- r2/settings-helper-status-last: 25/609, insns 609/609, pool identical; first [91, 92, 94, 95, 96, 97, 99, 103, 217, 221, 222, 226]; object c6803a43c8dc.
- r2/settings-helper-country-last: 25/609, insns 609/609, pool identical; first [91, 92, 94, 95, 96, 97, 99, 103, 217, 221, 222, 226]; object c6803a43c8dc.
- r2/settings-helper-buffer-first: 25/609, insns 609/609, pool identical; first [91, 92, 94, 95, 96, 97, 99, 103, 217, 221, 222, 226]; object c6803a43c8dc.
Property helper trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/sol-nup-r2-propertyhelper: identical to Ninja SHA256 c6803a43c8dccd5600fc23b14e83ed6df7211c0d200c68af4a41bffeb7d15401. movable locals: | identity order: 154/159 wanted; wrong: @17171(v40) r26->r25, @17165(v43) r26->r31, @17161(v47) r5->r4, @17160(v48) r4->r5, @17157(v49) r28->r26 | best locals-only order: 154/159 wanted | order: | still wrong: @17171(v40) sim r26 want r25; @17165(v43) sim r26 want r31; @17161(v47) sim r5 want r4; @17160(v48) sim r4 want r5; @17157(v49) sim r28 want r26 |
- r2/propertyhelper-swap-name-cursors: 17/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 252, 255, 256, 261, 263, 269]; object 4b4a5f93f187.
- r2/propertyhelper-source-first-assignments: 17/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 252, 255, 256, 261, 263, 269]; object 4b4a5f93f187.
- r2/propertyhelper-destination-first-assignments: 17/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 252, 255, 256, 261, 263, 269]; object 4b4a5f93f187.
- r2/propertyhelper-c89-counters-False: 19/609, insns 609/609, pool identical; first [91, 92, 94, 95, 96, 97, 99, 103, 252, 255, 256, 261]; object 03a252afab01.
- r2/propertyhelper-c89-cursors-False: 11/609, insns 609/609, pool identical; first [252, 255, 256, 261, 263, 269, 578, 583, 589, 592, 593]; object 57d0e4cdb981.
- r2/propertyhelper-c89-counters-True: 19/609, insns 609/609, pool identical; first [91, 92, 94, 95, 96, 97, 99, 103, 252, 255, 256, 261]; object 226a6418146c.
- r2/propertyhelper-c89-cursors-True: 11/609, insns 609/609, pool identical; first [252, 255, 256, 261, 263, 269, 578, 583, 589, 592, 593]; object d2bc1a6736c2.
- r2/propertyhelper-dummy-no-output: 25/609, insns 609/609, pool identical; first [91, 92, 94, 95, 96, 97, 99, 103, 217, 221, 222, 226]; object fe3a8873aa75.
- r2/propertyhelper-dummy-no-output-cursors: 17/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 252, 255, 256, 261, 263, 269]; object a8839ffeeb74.
- r2/propertyhelper-status-before-loop-cursors: 17/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 252, 255, 256, 261, 263, 269]; object a9598eff513d.
- r2/propertyhelper-all-loops-inline: 14/609, insns 609/609, pool identical; first [252, 255, 256, 258, 259, 261, 263, 267, 269, 578, 583, 589]; object 273f9c9bf89d.
- r2/propertyhelper-inline-mask-locals-0: 14/609, insns 609/609, pool identical; first [252, 255, 256, 258, 259, 261, 263, 267, 269, 578, 583, 589]; object 273f9c9bf89d.
- r2/propertyhelper-inline-mask-locals-1: 14/609, insns 609/609, pool identical; first [252, 255, 256, 258, 259, 261, 263, 267, 269, 578, 583, 589]; object 273f9c9bf89d.
- r2/propertyhelper-inline-mask-locals-2: 11/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 578, 583, 589, 592, 593]; object 7c2ec6e45b93.
- r2/propertyhelper-inline-mask-locals-3: 14/609, insns 609/609, pool identical; first [252, 255, 256, 258, 259, 261, 263, 267, 269, 578, 583, 589]; object 273f9c9bf89d.
- r2/propertyhelper-inline-mask-locals-4: 11/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 578, 583, 589, 592, 593]; object 7c2ec6e45b93.
- r2/propertyhelper-inline-mask-locals-5: 14/609, insns 609/609, pool identical; first [252, 255, 256, 258, 259, 261, 263, 267, 269, 578, 583, 589]; object 273f9c9bf89d.
- r2/propertyhelper-inline-mask-locals-6: 20/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 252, 255, 256, 258, 259, 261]; object a8ccb66be7f6.
- r2/propertyhelper-inline-mask-locals-7: 11/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 578, 583, 589, 592, 593]; object 7b705cfc8998.
- r2/propertyhelper-inline-mask-locals-8: 20/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 252, 255, 256, 258, 259, 261]; object 9047ddf09c18.
- r2/propertyhelper-inline-mask-locals-9: 20/609, insns 609/609, pool identical; first [217, 221, 222, 226, 228, 235, 252, 255, 256, 258, 259, 261]; object 9047ddf09c18.
Property-helper source-group diagnostic: real getSettingProperty locals v39..v43 plus getStringPropertyIdx pointer locals v47/v48 reach at most 157/159 in 30000 numbering trials. Reversing the two real name-cursor declarations compiled away all eight copy-loop differences. C89 counters then restore the saved-key loop, but dummy counter stays r28 vs r26 and country counter stays r25 vs r31, 11/609. No arbitrary optimizer temporary renumbering or allocator change is installed. Source-group diagnostic: /tmp/sol-nup-r2-helper-order.py and /tmp/sol-nup-r2-helper-order.json.
- r2/propertyhelper-counter-order-0: 5/609, insns 609/609, pool identical; first [578, 583, 589, 592, 593]; object b5a5ef4c2cc2.
- r2/propertyhelper-counter-order-1: 5/609, insns 609/609, pool identical; first [578, 583, 589, 592, 593]; object b5a5ef4c2cc2.
- r2/propertyhelper-counter-order-2: 5/609, insns 609/609, pool identical; first [578, 583, 589, 592, 593]; object b5a5ef4c2cc2.
- r2/propertyhelper-counter-order-3: 5/609, insns 609/609, pool identical; first [578, 583, 589, 592, 593]; object 3bbed91a5c9d.
- r2/propertyhelper-counter-order-4: 5/609, insns 609/609, pool identical; first [578, 583, 589, 592, 593]; object b5a5ef4c2cc2.
- r2/propertyhelper-counter-order-5: 5/609, insns 609/609, pool identical; first [578, 583, 589, 592, 593]; object 3bbed91a5c9d.
New clean best 5/609: propertyhelper-counter-order-0. Real getSettingProperty helper after Getter, distinct meaningful counters at its top, local buffer with no output-parameter hoist, and reordered getStringPropertyIdx cursor declarations. Instructions 609/609, pool 72/72 identical, Getter objdiff 99.95074; siblings 20/20 at 100; code 3740/6176, data 3856/3856 with every data section 100. All five differences use the European counter r26 instead of r31 (578, 583, 589, 592, 593). New best replaces the saved nine-diff file outside the repository. This is not an exact match and is not linked.
Five-diff trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/sol-nup-r2-five: byte-identical to native object SHA256 b5a5ef4c2cc214d53fa8bcee3abc7db77f0e24d96a291f2e6ea595cbf890f9ca. simulator reproduces 312/312 virtual registers | movable locals: | identity order: 158/159 wanted; wrong: @17155(v42) r26->r31 | best locals-only order: 158/159 wanted | order: | still wrong: @17155(v42) sim r26 want r31 |
- r2/five-country-while: 5/609, insns 609/609, pool identical; first [578, 583, 589, 592, 593]; object b5a5ef4c2cc2.
- r2/five-country-do: 5/609, insns 609/609, pool identical; first [578, 583, 589, 592, 593]; object 4cad17f96f96.
- r2/five-country-pre-inc: 5/609, insns 609/609, pool identical; first [578, 583, 589, 592, 593]; object b5a5ef4c2cc2.
- r2/five-country-body-inc: 5/609, insns 609/609, pool identical; first [578, 583, 589, 592, 593]; object b5a5ef4c2cc2.
- r2/five-country-no-initializer-for: 5/609, insns 609/609, pool identical; first [578, 583, 589, 592, 593]; object b5a5ef4c2cc2.
- r2/five-country-inclusive-limit: 6/609, insns 609/609, pool identical; first [578, 583, 589, 592, 593, 594]; object 68a70cdd5835.
- r2/five-country-not-equal-limit: 6/609, insns 609/609, pool identical; first [578, 583, 589, 592, 593, 594]; object b7c5460aff61.
- r2/five-country-share-privacyIndex: 5/609, insns 609/609, pool identical; first [578, 583, 589, 592, 593]; object 3a9b4ae9b42d.
- r2/five-country-share-maskLength: 5/609, insns 609/609, pool identical; first [578, 583, 589, 592, 593]; object 3a9b4ae9b42d.
- r2/five-country-share-staIdx: 5/609, insns 609/609, pool identical; first [578, 583, 589, 592, 593]; object 3a9b4ae9b42d.
- r2/five-country-scope-region: 5/609, insns 609/609, pool identical; first [578, 583, 589, 592, 593]; object b5a5ef4c2cc2.
- r2/five-country-scope-country: 5/609, insns 609/609, pool identical; first [578, 583, 589, 592, 593]; object b5a5ef4c2cc2.
- r2/five-country-scope-byte-property: 5/609, insns 609/609, pool identical; first [578, 583, 589, 592, 593]; object b5a5ef4c2cc2.
- r2/five-country-scope-after-result: 5/609, insns 609/609, pool identical; first [578, 583, 589, 592, 593]; object b5a5ef4c2cc2.
- r2/five-country-lookup-helper: 0/609, insns 609/609, pool identical; first []; object b2f07c2675ff.
- link/Message-const-pointers: compiled; Message record inspected, no source retained.
- link/Message-char-const-pointers: compiled; Message record inspected, no source retained.
## Exact result and linking
Getter reached 0/609 after 120 compiled Round 2 source trials. Final source uses a real getSettingProperty helper, separate saved/dummy mask counters declared at its top, reversed source/destination cursor declarations in the existing name lookup, and a real selectEuropeanKeyboardLanguage helper. The country helper writes only when a table entry matches; the pre-existing unmatched-country behavior is unchanged. No new uninitialized local, artificial inline assembly, carrier for allocator locals, use-site volatile cast, padding, forced section, or identity helper.
First Matching flip retained native 21/21 code but failed DOL SHA1 18eda0e06fe300a1f1fb770755b0f3fb87ee916f. Native .sbss placed gDpdWaitFrm at +24, target +0. Changing its initializer alone did not reorder it. The target logging block is one 0x38-byte object with tags at +0/+12/+22 and six zero pointers at +32, with no relocation at Message[4] (+48). The old source put an emptyString pointer there and emitted an extra .sbss2 byte. A direct empty literal shifted .sdata and still failed SHA1 0cecccf88a607d9f7520cad8ddca4e174d6bbc0f. Moving the real gDpdWaitFrm definition before the header-owned statics fixed all .sbss offsets. A separate all-null Message array moved to .bss, shifting the pool by 24 bytes and leaving four instruction differences; SHA1 1357c86397d37e2dec02a1970deb0cfea41026db. Const-pointer table trials were discarded by the compiler.
Final logging reconstruction is a real ReportInfo record containing the three fixed-size tags and the six message pointers. Existing src/iplwww/www_print.cpp uses reportInfo.MessageArr in its enabled logging path, and the retail object owns exactly those 56 contiguous bytes. This is a message record, not an allocator carrier or padding object. Its first 56 data bytes and absence of relocations are identical to target. Initialized tags naturally keep the zero pointer table in .data. No header or symbols/splits file changed.
Final Matching link: Getter 609/609, ctxdiff 0, objdiff 100.0; every one of 21 functions and every owned section is 100.0; code 6176/6176 and data 3856/3856, both 100% linked. Pool 72/72 identical. Full DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Final gate follows.
Requested final quick gate, exact linked source:
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/iplwww/www_wiisetting] pool: IDENTICAL
[src/iplwww/www_wiisetting] objdiff: code 6176/6176 data 3856/3856 functions 21/21 fuzzy 100.0000 linked code 6176
[src/iplwww/www_wiisetting] instruction-exact functions: 21/21
[src/iplwww/www_wiisetting] section .bss size 104 match 100.0
[src/iplwww/www_wiisetting] section .data size 2576 match 100.0
[src/iplwww/www_wiisetting] section .rodata size 792 match 100.0
[src/iplwww/www_wiisetting] section .sbss size 32 match 100.0
[src/iplwww/www_wiisetting] section .sdata size 320 match 100.0
[src/iplwww/www_wiisetting] section .sdata2 size 32 match 100.0
[src/iplwww/www_wiisetting] section .text size 6176 match 100.0
[src/iplwww/www_wiisetting] baseline: code 3740/6176 data 3856 functions 20 fuzzy 99.9450
regressions vs baseline: 0
global matched_code_percent: 97.58331 -> 97.66464
global fuzzy_match_percent: 99.89996 -> 99.90007
global complete_code_percent: 88.95958 -> 89.16578
global matched_data_percent: 100.00000 -> 100.00000
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
note: config touched: configure.py (orchestrator reviews every config/symbols change)
GATE PASS
```
Changed tracked paths: src/iplwww/www_wiisetting.cpp, configure.py, tools/decomp-assist/sol-nup.attempts.md. Pre-existing untracked files preserved. No push, PR, merge, rebase, shared-header edit, cross-worktree edit, or subagent spawn. Final best source diff refreshed outside the repository at _luna-runs/best/sol-nup.www_wiisetting.diff. Parent must rerun its independent gates before integration.

View File

@@ -0,0 +1,404 @@
# sol-tiny scheduler and allocator analysis
Assigned branch agent/w1008/sol-high-f, HEAD f49f337c. Full 43U build first passed, DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Source baseline is clean; existing untracked rx4/rx59/rx70 files belong to earlier work and are preserved. No pushes, PRs, merges, rebases or other worktree edits.
Prior evidence read before implementation: main and local BS2Mach, kbd_lib, data-d13, scene4, structural-matching, sol-high rounds and register sweeps; historical sol-kbd at 9af09e10, sol-addr at 1d9fcfe8 and sol-bs2 at 58e02efc recovered with git show because those logs are absent from HEAD; opus-bs2 in the assigned checkout. The broad grep also identifies old fz1/fz15/fz16 sweeps. Previous declaration permutations, ordinary pointer/const casts, name accessors, inline parameter permutations, status spellings and volatility sweeps are excluded from this round.
Acceptance: equal size and zero instruction differences, exact-name objdiff 100%, identical pools, no regressions or artificial source constructs. Commit exact functions individually. Restore non-exact source and save private diffs. Run the requested quick gate over the three owned units at the end. A restored baseline gate is not evidence of a new match.
## Baseline
| Unit | Exact functions | Code | Data | Pool |
| --- | --- | --- | --- | --- |
| BS2Mach | 26/29 | 6024/16980 | 158528/158528 | 91/91 |
| iplAddressEdit | 91/94 | 23344/27112 | 2560/2560 | 57/57 |
| kbd_lib | 18/21 | 4472/5764 | 5296/5296 | 0/0 narrow strings |
## CheckBS2CommandStatus
Baseline 2/406 differing, equal 1624-byte size. The only swap is CCC store and shift in case 0x12.
| Operation | Register dependencies | Memory dependencies | Latency class |
| --- | --- | --- | --- |
| lwz r4,DataToc | defines r4 | reads global pointer | load |
| stw r6,NandPending | reads r6 | writes volatile pending flag | store |
| lwz r5,CacheLength | defines r5 | reads volatile cache length | load |
| lwz r3,0(r4) | reads r4, defines r3 | reads TOC partition count | load |
| slwi r3,r3,3 | reads and writes r3 | none | integer rotate/mask |
| stw r6,CCC | reads r6 | writes completion flag | store |
| addi/rlwinm/add/addi | r3 chain and r5 | none | integer ALU |
| stw/lwz CacheLength | reads then defines r3 | volatile write followed by read | store/load |
Target places the independent completion store in the count-load latency slot. Source places it after the shift. Hypothesis to test with PCode: the indirect count read introduces a conservative memory edge to the completion store, or the store is lowered with different alias metadata. The target DAG is inferred from assembly, not captured from retail source.
## update_friendinfo
Baseline 2/38 differing, equal 152-byte size. Target prepares r4 before r3 after memset.
| Operation | Register dependencies | Memory dependencies | Latency class |
| --- | --- | --- | --- |
| addi r3,r31,8 | reads saved sFriendInfo base, defines argument r3 | computes name address only | integer ALU |
| addi r4,r30,0x2b4 | reads saved this, defines argument r4 | computes String name address only | integer ALU |
| li r5,10 | defines argument r5 | none | integer ALU |
| bl wcsncpy | consumes r3/r4/r5, clobbers caller-saved registers | reads name source and writes destination | call |
The pair has no true register or memory dependency. Prior accessor trials preserve the order before allocation. A different creation/evaluation order or a move eliminated after scheduling is required; changing the text of the same address expression cannot create such an edge. Inspect frontend-to-backend PCode and any return value from memset before testing new address provenance.
## kbd_led_handler
Baseline 3/25 differing, equal 100-byte size. This is a CFG layout difference rather than an instruction scheduler swap: target cmpwi success,1 / bne error / li 0 / b join / li 7. Source dispatches beq success / li 7 / b join / li 0.
cmpwi reads r3 and defines CR0, conditional branch consumes CR0; both li operations define argument r3 on disjoint paths; join tail consumes r3 plus callback index r4. All status operations are integer/branch class and do not touch memory. The callback guard reads the callback pointer and command slot, clears the slot and returns when pointer is null. Target and source guard graphs currently match.
The DAG difference is control dependence and block fallthrough, not latency. A real callback selection which prevents early constant-select folding may retain the target if/else layout. Ordinary if/ternary, switch-case rearrangements and pointer-input notification helpers were already tried; repeat none of those.
## kbdProcMod and KBDSetModState
Baselines 4/256 and 4/42, equal 1024/168-byte sizes. Both swaps come from the same inlined physical-modifier merge in KBDSetModState.
| Operation | Register dependencies | Memory dependencies | Latency class |
| --- | --- | --- | --- |
| lis/addi base | defines table base | address only | integer ALU |
| add address | reads base and channel offset, defines address | address only | integer ALU |
| lwz old,0x220(address) | reads address, defines old | reads channel modifier word | load |
| rlwimi new,old,0,26,31 | reads old and masked new, writes new | none | integer rotate/insert |
| stw new,0x220(address) | reads new and address | writes same modifier word | store |
Target address=r4, old=r5. Source address=r5, old=r4. The address remains live through the store and interferes with old. Both instruction sequences have the same order and dependency chain. The target needs a different coloring priority or coalescing graph, not instruction reordering. Historical captures identify the two values as unnamed temps, so named declaration permutations cannot change their priority. Trace the common setter and derive a construct which changes temp creation or introduces a useful merge move that disappears late.
## BS2StartGame
Baseline 5/393 differing, equal 1572-byte size. MMIO write at 0xCC003024.
| Operation | Register dependencies | Memory dependencies | Latency class |
| --- | --- | --- | --- |
| lis addr,0xCC00 | defines address base | address only | integer ALU |
| li bits,2 | defines bits | none | integer ALU |
| lwz old,0x3024(addr) | reads addr, defines old | MMIO read | load |
| ori bits,bits,4 | reads/writes bits | none | integer ALU |
| ori old,old,1 | reads/writes old | none | integer ALU |
| or bits,old,bits | reads old and bits, writes bits | none | integer ALU |
| stw bits,0x3024(addr) | reads bits and addr | MMIO write | store |
Target address=r4, old=r3; source address=r3, old=r4; bits=r0 in both. Same dependency DAG and physical interference, but opposite coloring order. Ordinary named pointer/value/bits declarations were already forwarded to unnamed temps. Trace the raw block and test only constructs predicted to change surviving temp priority or coalescing. Full inline rewrites which combine the two OR constants lose an instruction and are not a match.
## Measurements
### address-clear-in-source-argument
A real memset call in the source argument should make evaluation of that argument precede destination materialization. This tests a call-induced DAG change, unlike prior separate getter/helper statements. Clear still occurs before copying and both addresses have no side effects.
Source /tmp/sol-tiny-address-clear-in-source-argument.cpp, object /tmp/sol-tiny-address-clear-in-source-argument.o.
- update_friendinfo__Q33ipl5scene11AddressEditFv: 2 differing, 38/38 instructions; size 152/152.
- POOL IDENTICAL up to 57 (mine=57 base=57)
### modifier-aggregate-copy-store
Copy the actual four-byte modifier union into the channel word using memcpy. Unlike scalar-store helpers tried earlier, aggregate copy lowering can create its destination address after the old-word temp, then common it with the read address. Prediction: address priority moves above old-word priority without adding a runtime operation.
Source /tmp/sol-tiny-modifier-aggregate-copy-store.c, object /tmp/sol-tiny-modifier-aggregate-copy-store.o.
- kbd_led_handler: 3 differing, 25/25 instructions; size 100/100.
- kbdProcMod: 58 differing, 261/256 instructions; size 1044/1024.
- KBDSetModState: 24 differing, 48/42 instructions; size 192/168.
- POOL IDENTICAL up to 0 (mine=0 base=0)
### modifier-aggregate-copy-load
Use the aggregate copy for the actual old modifier word. This tests whether copy-source address propagation changes coalescing or temp identity before the shared physical-bit insertion. The interrupt interval, masks and scalar field layout remain identical.
Source /tmp/sol-tiny-modifier-aggregate-copy-load.c, object /tmp/sol-tiny-modifier-aggregate-copy-load.o.
- kbd_led_handler: 3 differing, 25/25 instructions; size 100/100.
- kbdProcMod: 259 differing, 264/256 instructions; size 1056/1024.
- KBDSetModState: 49 differing, 51/42 instructions; size 204/168.
- POOL IDENTICAL up to 0 (mine=0 base=0)
### led-predicate-control-dependence
Switch dispatch now consumes a comparison predicate rather than the raw callback status. Its case-FALSE branch should lower to success!=1 while the default is successful fallthrough. A temporary boolean comparison is expected to disappear late. This tests an extra control-dependence node; it is not a case-order permutation of the old raw-status switch.
Source /tmp/sol-tiny-led-predicate-control-dependence.c, object /tmp/sol-tiny-led-predicate-control-dependence.o.
- kbd_led_handler: 16 differing, 27/25 instructions; size 108/100.
- kbdProcMod: 4 differing, 256/256 instructions; size 1024/1024.
- KBDSetModState: 4 differing, 42/42 instructions; size 168/168.
- POOL IDENTICAL up to 0 (mine=0 base=0)
### Validated captures
Fresh setter capture `_mwdbg/runs/sol-tiny-set-base` has source SHA256 73a09baeb394c13a2ccc5a8cac873f166276678c3b6dfca7855f3aee511c5d3b and complete object SHA256 6a85c207eaac2f59a57f1c2b16f05861bf20a1ca1250449848ef0fa7353d06de, byte-identical to the current Ninja object. Prior `sol-kbd-proc-base` has the same source and object hashes, so its PCode is current evidence. Existing address capture `update_friendinfo__Q33ipl5scene11AddressEditFv-20261008-195401` likewise has the exact current source and whole-object bytes, independently compared this run.
regsim reproduces setter 23/23, proc 156/156 and address 16/16. Search over named-local numbering reproduces 0/2 desired address/old-word colors for both keyboard functions. Setter pre-allocation B8 has address r48 then old-word r49; r49 is colored first to r4, excluding r4 for r48, which gets r5. The address is live through the store, creating the r48/r49 edge. The masked destination r52 becomes r0; OSDisableInterrupts return is live in physical r3 for OSRestoreInterrupts. Proc has the corresponding address r181 / old-word r182. Both values are unnamed compiler temps, outside source declaration-order control.
Address backend-00 emits a dead return move from memset, reloads the global base, then emits addi r3 followed by addi r4. Backend-01 removes the return move and commons the global base across calls, but keeps the pair order. Backend-02, 03 and 04 retain that order. There is no register interference explanation for the scheduling swap; the initial argument-evaluation order already differs from retail. Call-in-source-argument trial lowers to the same final pair, rejecting that hypothesized source construct.
### address-memset-result-destination
Use memset's actual destination return value as the wcsncpy destination. This creates a real call-result edge rather than recomputing a separate address. Check whether MWCC replaces that return value with its known destination late enough to change argument preparation. No extra work or dummy value is introduced.
Source /tmp/sol-tiny-address-memset-result-destination.cpp, object /tmp/sol-tiny-address-memset-result-destination.o.
- update_friendinfo__Q33ipl5scene11AddressEditFv: 24 differing, 37/38 instructions; size 148/152.
- POOL IDENTICAL up to 57 (mine=57 base=57)
### command-count-before-completion-reload-for-write
Isolate only the first partition-count read, then store completion before shifting the saved count. Unlike prior sol-bs2 local-count trials, retain the second DataToc/count reload for BS2NANDDivideWriteAsync, which the target has. This separates the read-to-store alias edge from the read-to-shift edge without removing the later four instructions.
Source /tmp/sol-tiny-command-count-before-completion-reload-for-write.c, object /tmp/sol-tiny-command-count-before-completion-reload-for-write.o.
- CheckBS2CommandStatus: 7 differing, 406/406 instructions; size 1624/1624.
- BS2StartGame: 5 differing, 393/393 instructions; size 1572/1572.
- POOL IDENTICAL up to 91 (mine=91 base=91)
### command-save-length-and-count-before-completion
Preserve the baseline volatile CacheLength read before the partition-count read, then store completion and calculate the new length. This explicitly preserves the memory-read order while removing the shift from the completion-store predecessor chain. The write branch still reloads its own count.
Source /tmp/sol-tiny-command-save-length-and-count-before-completion.c, object /tmp/sol-tiny-command-save-length-and-count-before-completion.o.
- CheckBS2CommandStatus: 6 differing, 406/406 instructions; size 1624/1624.
- BS2StartGame: 5 differing, 393/393 instructions; size 1572/1572.
- POOL IDENTICAL up to 91 (mine=91 base=91)
### modifier-typed-union-assignment-store
The prior aggregate memcpy trials retained actual calls and stack storage, so reject that lowering. A typed four-byte union assignment should use aggregate load/store lowering without memcpy, creating a separate store lvalue whose address can common with the read later. The view names the actual modifier representation, not raw offsets or unrelated storage.
Source /tmp/sol-tiny-modifier-typed-union-assignment-store.c, object /tmp/sol-tiny-modifier-typed-union-assignment-store.o.
- kbd_led_handler: 3 differing, 25/25 instructions; size 100/100.
- kbdProcMod: 4 differing, 256/256 instructions; size 1024/1024.
- KBDSetModState: 4 differing, 42/42 instructions; size 168/168.
- POOL IDENTICAL up to 0 (mine=0 base=0)
### command-toc-disjoint-alias-contract
A restrict-qualified read-only TOC view asserts the actual disjointness of TOC storage and cache flags. It directly tests the load-to-store alias-edge hypothesis. Unlike the prior plain const pointer trials this adds an alias contract; the write branch still reads the original pointer. Retain only if the compiler supports the keyword and source/object evidence justifies it.
Source /tmp/sol-tiny-command-toc-disjoint-alias-contract.c, object /tmp/sol-tiny-command-toc-disjoint-alias-contract.o.
Compile failed: ### mwcceppc.exe Compiler: # File: Z:\tmp\sol-tiny-command-toc-disjoint-alias-contract.c # -------------------------------------------------------------- # 1172: const DVDGameTOC * restrict toc; # Error: ^^^ # (10123) ';' expected # Too many errors printed, aborting program User break, cancelled...
### command-completion-typed-state-storage
Replace the scalar completion storage with a single-field typed command state, preserving its four-byte representation and all accesses. A TOC field read and command-state field write now have distinct aggregate types, directly testing type-based alias separation. This is one real state field, with no grouped unrelated objects or padding.
Source /tmp/sol-tiny-command-completion-typed-state-storage.c, object /tmp/sol-tiny-command-completion-typed-state-storage.o.
- CheckBS2CommandStatus: 2 differing, 406/406 instructions; size 1624/1624.
- BS2StartGame: 5 differing, 393/393 instructions; size 1572/1572.
- POOL IDENTICAL up to 91 (mine=91 base=91)
### start-control-word-bitfield-promotion
The baseline old DI word survives as named scalar r33, while address becomes later temp r196. Represent the actual MMIO word and its low enable bit as a union, so stack/aggregate promotion creates a later load temp. Keep the independent diBits two-step construction unchanged to preserve li 2 / ori 4 rather than folding constants into ori 5. This changes old-word provenance, not declaration numbering.
Source /tmp/sol-tiny-start-control-word-bitfield-promotion.c, object /tmp/sol-tiny-start-control-word-bitfield-promotion.o.
- CheckBS2CommandStatus: 2 differing, 406/406 instructions; size 1624/1624.
- BS2StartGame: 7 differing, 393/393 instructions; size 1572/1572.
- POOL IDENTICAL up to 91 (mine=91 base=91)
### start-control-word-complete-update
Update the actual control word with both enable and legacy bits before storing it. The first union trial created a promoted old-word temp that took r0, displacing the separate bits to r4. A final aggregate field update should allocate the final OR result after that old-word temp rather than before it, leaving final result/bits in r0 and the loaded word in r3.
Source /tmp/sol-tiny-start-control-word-complete-update.c, object /tmp/sol-tiny-start-control-word-complete-update.o.
- CheckBS2CommandStatus: 2 differing, 406/406 instructions; size 1624/1624.
- BS2StartGame: 7 differing, 393/393 instructions; size 1572/1572.
- POOL IDENTICAL up to 91 (mine=91 base=91)
### led-output-parameter-conditional-stores
Use an actual output-parameter error converter with success passed by value. Previous both-pointer helpers also took success by pointer. This shape keeps the raw condition register available but hides the constant result behind conditional memory stores until inlining/promotion, which may preserve target fallthrough and remove the stores late.
Source /tmp/sol-tiny-led-output-parameter-conditional-stores.c, object /tmp/sol-tiny-led-output-parameter-conditional-stores.o.
- kbd_led_handler: 23 differing, 23/25 instructions; size 92/100.
- kbdProcMod: 4 differing, 256/256 instructions; size 1024/1024.
- KBDSetModState: 4 differing, 42/42 instructions; size 168/168.
- POOL IDENTICAL up to 0 (mine=0 base=0)
### modifier-word-value-arguments
A real union-word merge takes both modifier values by value and returns the result. Prior helpers took a channel pointer and read the old word inside the helper. Here load/address provenance remains in the caller while aggregate parameter/return copies are introduced at the merge, testing a late coalescing change without pointer-read alias changes.
Source /tmp/sol-tiny-modifier-word-value-arguments.c, object /tmp/sol-tiny-modifier-word-value-arguments.o.
- kbd_led_handler: 3 differing, 25/25 instructions; size 100/100.
- kbdProcMod: 4 differing, 256/256 instructions; size 1024/1024.
- KBDSetModState: 4 differing, 42/42 instructions; size 168/168.
- POOL IDENTICAL up to 0 (mine=0 base=0)
### modifier-channel-field-union-representation
Model the actual channel modifier word as KBDModifierState at its declaration, preserving four-byte layout and scalar value access in every other function. Prior mod-channel-union trials changed only a local pointer, not the field type. Read the actual union object into oldState. This tests aggregate field lowering and alias metadata without extra storage.
Source /tmp/sol-tiny-modifier-channel-field-union-representation.c, object /tmp/sol-tiny-modifier-channel-field-union-representation.o.
- kbd_led_handler: 3 differing, 25/25 instructions; size 100/100.
- kbdProcMod: 4 differing, 256/256 instructions; size 1024/1024.
- KBDSetModState: 4 differing, 42/42 instructions; size 168/168.
- POOL IDENTICAL up to 0 (mine=0 base=0)
### modifier-direct-channel-physical-field
With the modifier representation in the real field, read physical bits directly into the requested union. The deleted oldState held a genuine copy that should be unnecessary. The field load may acquire a different temp identity than the baseline scalar-to-local-union copy; inspect the resulting address/word colors.
Source /tmp/sol-tiny-modifier-direct-channel-physical-field.c, object /tmp/sol-tiny-modifier-direct-channel-physical-field.o.
- kbd_led_handler: 3 differing, 25/25 instructions; size 100/100.
- kbdProcMod: 47 differing, 253/256 instructions; size 1012/1024.
- KBDSetModState: 7 differing, 42/42 instructions; size 168/168.
- POOL IDENTICAL up to 0 (mine=0 base=0)
### modifier-update-real-software-field
Assign the actual high software-modifier bitfield while leaving its low physical field intact under the same interrupt exclusion. It computes exactly the baseline 0xfc0 input mask plus old 0x3f bits. This tests whether target merge direction came from updating a declared field rather than merging two scalar representations.
Source /tmp/sol-tiny-modifier-update-real-software-field.c, object /tmp/sol-tiny-modifier-update-real-software-field.o.
- kbd_led_handler: 3 differing, 25/25 instructions; size 100/100.
- kbdProcMod: 48 differing, 253/256 instructions; size 1012/1024.
- KBDSetModState: 7 differing, 42/42 instructions; size 168/168.
- POOL IDENTICAL up to 0 (mine=0 base=0)
### address-clear-copy-output-helper
The direct memset-result trial preserved the returned destination and lost the required reload. Here a real clear-and-copy helper owns the source and record values while the call result supplies its destination. This combines a new actual return edge with the earlier helper boundary, testing whether the inliner late rematerializes the record name while preserving source-first evaluation.
Source /tmp/sol-tiny-address-clear-copy-output-helper.cpp, object /tmp/sol-tiny-address-clear-copy-output-helper.o.
- update_friendinfo__Q33ipl5scene11AddressEditFv: 24 differing, 37/38 instructions; size 148/152.
- POOL IDENTICAL up to 57 (mine=57 base=57)
### start-two-control-word-bitfield-promotion
The old-word-only union trial moved old to r0 and left mask in r4. Promote both actual control words as the same real bitfield representation. The final OR reads old then mask, so mask promotion should create the latest input temp, coloring mask/result to r0, old to r3 and address to r4. Both unions contain only the related register word and its bits; no unrelated locals or dummy storage.
Source /tmp/sol-tiny-start-two-control-word-bitfield-promotion.c, object /tmp/sol-tiny-start-two-control-word-bitfield-promotion.o.
- CheckBS2CommandStatus: 2 differing, 406/406 instructions; size 1624/1624.
- BS2StartGame: 5 differing, 393/393 instructions; size 1572/1572.
- POOL IDENTICAL up to 91 (mine=91 base=91)
### command-readonly-toc-and-explicit-output-aliases
A real accounting helper takes a const TOC parameter plus two explicit output pointers. Pointer-to-const parameter provenance is different from a const cast at the load, and separate output parameters expose the read/store alias relation to the inliner. Unlike the previous begin-write helper, completion follows the length calculation and pending stays in the caller.
Source /tmp/sol-tiny-command-readonly-toc-and-explicit-output-aliases.c, object /tmp/sol-tiny-command-readonly-toc-and-explicit-output-aliases.o.
- CheckBS2CommandStatus: 9 differing, 406/406 instructions; size 1624/1624.
- BS2StartGame: 5 differing, 393/393 instructions; size 1572/1572.
- POOL IDENTICAL up to 91 (mine=91 base=91)
### led-output-parameter-switch-stores
The by-value condition/out-result helper folded the conditional into arithmetic. Keep conditional output memory stores but use switch lowering, whose constant stores survive early selection folding. Prediction: after inlining, the branch graph can keep successful fallthrough while promotion removes only memory operations. This is the output-only counterpart of the old both-pointer experiment.
Source /tmp/sol-tiny-led-output-parameter-switch-stores.c, object /tmp/sol-tiny-led-output-parameter-switch-stores.o.
- kbd_led_handler: 14 differing, 26/25 instructions; size 104/100.
- kbdProcMod: 4 differing, 256/256 instructions; size 1024/1024.
- KBDSetModState: 4 differing, 42/42 instructions; size 168/168.
- POOL IDENTICAL up to 0 (mine=0 base=0)
### start-control-read-before-mask-construction
Trace of old-word union shows final OR result can share either input, and the higher-numbered surviving input gets r0. With two unions, old-word promotion was later than mask promotion and took r0. Read/update the actual control word before constructing the independent mask, so promoted old temp precedes promoted mask temp. Prediction: mask/result r0, old r3, address r4, with the scheduler restoring the same parallel instruction order.
Source /tmp/sol-tiny-start-control-read-before-mask-construction.c, object /tmp/sol-tiny-start-control-read-before-mask-construction.o.
- CheckBS2CommandStatus: 2 differing, 406/406 instructions; size 1624/1624.
- BS2StartGame: 0 differing, 393/393 instructions; size 1572/1572.
- POOL IDENTICAL up to 91 (mine=91 base=91)
### modifier-named-physical-extraction-before-insert
Extract the real physical six-bit state into a scalar using load then mask. A twice-assigned scalar survives forwarding as a named node, unlike the union old-word temp. The explicit mask is redundant at the later six-bit insertion and should disappear, leaving address as a higher-numbered temp than the old word. This is a phase-order test derived from the successful DI trace, not a declaration permutation.
Source /tmp/sol-tiny-modifier-named-physical-extraction-before-insert.c, object /tmp/sol-tiny-modifier-named-physical-extraction-before-insert.o.
- kbd_led_handler: 3 differing, 25/25 instructions; size 100/100.
- kbdProcMod: 4 differing, 256/256 instructions; size 1024/1024.
- KBDSetModState: 4 differing, 42/42 instructions; size 168/168.
- POOL IDENTICAL up to 0 (mine=0 base=0)
### modifier-physical-byte-promotion
Represent the six physical bits in an unsigned byte, consistent with HID modifier storage. Narrowing the loaded word may survive until late bitfield insertion and then disappear because only six bits are consumed. This tests typed promotion/coalescing rather than changing the masks or caller validation.
Source /tmp/sol-tiny-modifier-physical-byte-promotion.c, object /tmp/sol-tiny-modifier-physical-byte-promotion.o.
- kbd_led_handler: 3 differing, 25/25 instructions; size 100/100.
- kbdProcMod: 4 differing, 256/256 instructions; size 1024/1024.
- KBDSetModState: 4 differing, 42/42 instructions; size 168/168.
- POOL IDENTICAL up to 0 (mine=0 base=0)
### modifier-physical-byte-read-helper
A real const-channel physical-modifier accessor returns only the six HID bits as a byte. Earlier read helpers returned the full u32 word or a full union. The smaller typed return plus const parameter tests a different inline result/coalescing boundary while preserving the target full-word read and final low-bit insertion.
Source /tmp/sol-tiny-modifier-physical-byte-read-helper.c, object /tmp/sol-tiny-modifier-physical-byte-read-helper.o.
- kbd_led_handler: 3 differing, 25/25 instructions; size 100/100.
- kbdProcMod: 4 differing, 256/256 instructions; size 1024/1024.
- KBDSetModState: 7 differing, 42/42 instructions; size 168/168.
- POOL IDENTICAL up to 0 (mine=0 base=0)
### start-control-word-bit-position-names
Source review: the target proves three bit positions, but not the semantic names legacyReset/legacyControl/enabled. Name the actual bit positions explicitly instead of claiming undocumented hardware meanings. This only changes field names; retain the same typed raw register word, width and update order. Expected code identity with the exact candidate.
Source /tmp/sol-tiny-start-control-word-bit-position-names.c, object /tmp/sol-tiny-start-control-word-bit-position-names.o.
- CheckBS2CommandStatus: 2 differing, 406/406 instructions; size 1624/1624.
- BS2StartGame: 0 differing, 393/393 instructions; size 1572/1572.
- POOL IDENTICAL up to 91 (mine=91 base=91)
## Backend conclusions and retained result
### BS2StartGame: exact
Fresh `_mwdbg/runs/sol-tiny-start-exact` confirms the predicted promotion order. Initial B113 reads the actual control word into the diValue aggregate, updates bit 0, then constructs diBits and updates bit 2. Before allocation those stores/loads promote to address r194, old-word r197, mask r200 and final OR r203. The final result can share either input. Coloring gives mask/result r0, old word r3 and address r4. regsim reproduces 173/173 virtual registers and all 3/3 requested colors. Backend-02, 03 and 04 retain exactly the target seven-operation MMIO sequence. The tracer whole-object bytes equal the normal Ninja object.
The raw u32 and 32-bit bitfield overlay describe the same DI control register. Both locals have that representation; they do not group unrelated state. Reading/updating the word precedes constructing the independent mask. For every input word the result remains `(old | 1) | (2 | 4)`. No extra memory access, call, storage or instruction survives. Source review replaced speculative hardware meanings with bit-position names. That rename leaves the complete object identical. The retained diff touches only this block, adds no code comments, and does not alter configure.py.
Normal Ninja verification after source cleanup: 1572/1572 bytes, ctxdiff 393/393 instructions with diffs 0, and pool 91/91 identical. Exact-name objdiff is 100.0%. BS2Mach rises from 26/29 to 27/29 exact functions and code 6024/16980 to 7596/16980. Every other function score in this unit is unchanged. The unit still has two non-exact functions, so it remains NonMatching; this is a function match, not safe whole-unit linking.
### CheckBS2CommandStatus: unresolved
Fresh `_mwdbg/runs/sol-tiny-command-base` reproduces 126/126 GPR allocations. B44 already puts the count shift before the completion store before allocation; backend-02/03/04 preserve that order. This eliminates register coloring as the cause. The count load has PCode flags 0x100000000022, completion store 0x100000000004, and volatile length/pending operations 0x100000000082/84. These are operation flags, not captured scheduler dependency edges. The tracer does not prove a count-load/completion-store alias edge, so that remains an inference rather than a recovered target DAG.
Preserving both target count loads while exposing the first read before the completion store did not move the store. Const input/output provenance did not do so either. The restrict alias contract is unsupported by this compiler. The single-field completion wrapper was diagnostic only and is rejected by the no-carrier rule. Best remains the source baseline, 2/406 differing with equal size. No speculative completion-storage or qualifier change is retained.
### update_friendinfo: unresolved
The source-first argument preparation in retail is absent in the initial source PCode, not introduced by physical-register allocation. The two independent addi operations have the same ALU latency and no memory effects; both consume saved bases and feed the same call. The compiler emits destination first before scheduling. A real memset return edge removes the required destination addi instead of delaying it, producing unequal size. Moving memset into the source argument or a genuine clear/copy helper does not produce the required two-argument preparation order. Best remains 2/38 differing, equal size. The source file is unchanged.
### kbd_led_handler: unresolved
Fresh `_mwdbg/runs/sol-tiny-led-base` confirms initial B2 tests success==1 and branches to successful B5; B3 supplies error 7. The same CFG reaches backend-01/02/03/04, with the final callback call becoming a tail branch. The target reverses this fallthrough, so the difference is control dependence/block placement rather than register or memory latency. A by-value status/output-pointer converter folds to arithmetic and loses two required instructions. Switch output stores retain a spare dispatch branch and add one instruction. Predicate-switch lowering preserves extra predicate materialization. None has equal-size improvement. Best remains 3/25 differing; source unchanged.
### kbdProcMod and KBDSetModState: unresolved
Current validated captures reproduce both allocations. Their load-address/old-word values are unnamed temps with a real interference edge because the address must survive until the store. Source declaration permutations cannot change their priority. Real union field copies, parameter/return copies and byte physical-state promotion either forward to the same address/word temps or retain extra operations. Direct field updates reverse the bit insertion direction; the proc then loses three required instructions. Unlike the DI result, the attempted real six-bit extraction mask disappears before it can preserve a named old-word value. No tested normal data representation makes the store address a later surviving temp than the old word while preserving the required operations. Best stays 4/256 and 4/42 differing, equal sizes. Both source functions remain at baseline.
## Private artifacts and scope
Directed trials are in `/tmp/sol-tiny-*.c`, `.cpp`, `.o` and the measurement log above. Tracer output must live under its own `_mwdbg/runs` root; it is tool-generated evidence outside every source worktree. Reused historical captures were accepted only after matching current source and complete object hashes. No worker source edits, rebase, push, PR or merge occurred outside the assigned worktree.
Private best diffs are `/mnt/drive2/projects/wii-ipl-workers/_luna-runs/best/sol-tiny.BS2Mach.diff`, `sol-tiny.iplAddressEdit.diff` and `sol-tiny.kbd_lib.diff`. BS2Mach archives the retained exact function within the still-partial unit. AddressEdit and kbd_lib have empty diffs because their best non-exact version is unchanged baseline. CheckBS2CommandStatus likewise has no retained non-exact diff.
## Final validation
Requested command: `python3 /mnt/drive2/projects/wii-ipl-workers/_restore0928-tools/gate.py src/BS2/BS2Mach src/scene/address/iplAddressEdit libs/RVL_SDK/src/kbd/kbd_lib --quick`. Exit 0, GATE PASS. Full 43U build passed; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Pools identical in all three units; every owned data section remains 100%. Regression count 0, net forbidden-pattern count 0, readability warning count 0. Raw output is `/tmp/sol-tiny-gate.log`. The quick gate was used exactly as requested; it did not remove the existing build tree.
Live report regenerated with `ninja progress build/43U/report.json`. Comparing every current function score to the initial report finds exactly one change: BS2StartGame becomes 100.0%; all other scores are unchanged. Final exact functions are BS2Mach 27/29, AddressEdit 91/94, kbd_lib 18/21. Final ctxdiff measurements confirm CheckBS2CommandStatus 2/406, update_friendinfo 2/38, kbd_led_handler 3/25, kbdProcMod 4/256 and KBDSetModState 4/42, all equal size. BS2StartGame alone is newly exact at 0/393. Linking is unchanged because no assigned unit is fully exact.
Only `src/BS2/BS2Mach.c` and this attempts log are committed. Existing untracked rx4/rx59/rx70 files are preserved. No push, PR, merge or rebase.

View File

@@ -0,0 +1,429 @@
# sol-x14 SDMemory attempts
Baseline branch agent/w1008/w0929-fix-board-y. Only iplSDMemory.cpp and this log are owned. Existing untracked rx61-work and rx69 log are untouched.
Initial object already built. Baseline create 175/1064 differences, equal size; drawTransferTitles 371/451 differences, 438/451 instructions. Pool identical. Scoped IRO 1 authorized by task and levers 26/30.
- create swap cached count/saveData declarations: 5 differing, 1064/1064 instructions; other-function drops [].
- create cached count declared at initialization: 5 differing, 1064/1064 instructions; other-function drops [].
- create count initialized before saveData accessor: 5 differing, 1064/1064 instructions; other-function drops [].
- create postfix count increment: 5 differing, 1064/1064 instructions; other-function drops [].
- draw scoped IRO 1: 287 differing, 451/451 instructions; other-function drops [].
- draw scoped IRO 0: 287 differing, 451/451 instructions; other-function drops [].
- create cached-title pointer named at first use: 543 differing, 1065/1064 instructions; other-function drops [].
- create loop result reused as actual title count: 5 differing, 1064/1064 instructions; other-function drops [].
- create prefix loop index: 5 differing, 1064/1064 instructions; other-function drops [].
- create test title entry as boolean: 5 differing, 1064/1064 instructions; other-function drops [].
- create scoped saveData with count kept root: 5 differing, 1064/1064 instructions; other-function drops [].
- create count-index single for expression: 14 differing, 1064/1064 instructions; other-function drops [].
- create cache walker actual pointer loop: 541 differing, 1063/1064 instructions; other-function drops [].
- create actual count helper: 0 differing, 1064/1064 instructions; other-function drops [].
- create exact: helper countCachedTitles plus scoped IRO 1. Last five differences were cachedTitleCount r49 allocated r6 instead of r5, and System save-data pointer r136 r5 instead of r6. mwdbg replay 727/727. Corrected regsim excluding compiler @ temporaries reaches 0/2 wanted registers with 3000 declaration trials; structural helper fixes both. Pool 90/90 identical, ctxdiff 1064/1064 and diffs 0. Exact-name objdiff 100.0%; unit 64/66 -> 65/66, matched code 14812 -> 19068 / 20872, data 3344/3344. Every other function unchanged. Capture /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/create__Q33ipl5scene8SDMemoryFPQ23EGG4HeapPQ33ipl4nand10LayoutFilePQ33ipl5scene15SDChannelSelect-20261008-215212.
- draw newline initial guard and for: 388 differing, 453/451 instructions; other-function drops [].
- draw line loop guarded counted for: 287 differing, 451/451 instructions; other-function drops [].
- draw remove unused color copies: 381 differing, 443/451 instructions; other-function drops [].
- draw ceil double converted directly to s32: 357 differing, 450/451 instructions; other-function drops [].
- draw target loop shape and only used color copies: 390 differing, 445/451 instructions; other-function drops [].
- draw all real scalar declarations forward IRO1: 290 differing, 451/451 instructions; other-function drops [].
- draw all real scalar declarations reverse IRO1: 285 differing, 451/451 instructions; other-function drops [].
- draw reverse declarations with initial newline guard IRO1: 386 differing, 453/451 instructions; other-function drops [].
- draw reverse declarations with initial newline guard IRO0: 386 differing, 453/451 instructions; other-function drops [].
- draw guard repeated while IRO0: 388 differing, 453/451 instructions; other-function drops [].
- draw prior best shape replay with exact create IRO0: 263 differing, 451/451 instructions; other-function drops [('__ne__Q24nw4r2utFQ44nw4r2ut28LinkList<Q34nw4r3lyt4Pane,4>8IteratorQ44nw4r2ut28LinkList<Q34nw4r3lyt4Pane,4>8Iterator', (0, 6, 6), (6, 8, 6))].
- draw prior helper shape scoped IRO1: 263 differing, 451/451 instructions; other-function drops [('__ne__Q24nw4r2utFQ44nw4r2ut28LinkList<Q34nw4r3lyt4Pane,4>8IteratorQ44nw4r2ut28LinkList<Q34nw4r3lyt4Pane,4>8Iterator', (0, 6, 6), (6, 8, 6))].
- draw prior helper shape initial newline guard: 391 differing, 453/451 instructions; other-function drops [('__ne__Q24nw4r2utFQ44nw4r2ut28LinkList<Q34nw4r3lyt4Pane,4>8IteratorQ44nw4r2ut28LinkList<Q34nw4r3lyt4Pane,4>8Iterator', (0, 6, 6), (6, 8, 6))].
- draw one child iterator reused for three panes: 287 differing, 451/451 instructions; other-function drops [].
- draw guarded newline do while: 392 differing, 452/451 instructions; other-function drops [].
- draw totalLines compared to zero with existing do loop: 391 differing, 450/451 instructions; other-function drops [].
- draw full line for without separate guard: 391 differing, 450/451 instructions; other-function drops [].
- draw alpha loops explicit for: 287 differing, 451/451 instructions; other-function drops [].
- draw VEC3 copy initialization: 436 differing, 452/451 instructions; other-function drops [].
- draw increment matched nand title before color setup: 282 differing, 451/451 instructions; other-function drops [].
- draw real color copies named as call arguments: 380 differing, 447/451 instructions; other-function drops [].
- draw children alpha helper defined after caller: 263 differing, 451/451 instructions; other-function drops [].
- draw children alpha helper after caller nonconst alpha: 263 differing, 451/451 instructions; other-function drops [].
- draw alpha helper after caller sequential confirmation: 263 differing, 451/451 instructions; other-function drops [].
- draw alpha helper after caller sequential confirmation: 263 differing, 451/451 instructions; other-function drops [].
- draw real newline counter helper: 263 differing, 451/451 instructions; other-function drops [].
- draw newline counter helper guarded while: 391 differing, 453/451 instructions; other-function drops [].
- draw line count helper computes total lines: 263 differing, 451/451 instructions; other-function drops [].
- draw original cached count-loop delimiter: 371 differing, 454/451 instructions; other-function drops [].
- draw original cached draw-loop delimiter and pre-guard index: 393 differing, 452/451 instructions; other-function drops [].
- draw original both real delimiters and target loop entry: 331 differing, 455/451 instructions; other-function drops [].
- draw original only pre-guard index/total positive loop: 287 differing, 451/451 instructions; other-function drops [].
- draw helper cached count-loop delimiter: 370 differing, 454/451 instructions; other-function drops [].
- draw helper cached draw-loop delimiter and pre-guard index: 392 differing, 452/451 instructions; other-function drops [].
- draw helper both real delimiters and target loop entry: 324 differing, 455/451 instructions; other-function drops [].
- draw helper only pre-guard index/total positive loop: 263 differing, 451/451 instructions; other-function drops [].
- draw named gradient colors three: 279 differing, 451/451 instructions; other-function drops [].
- draw named gradient colors direct: 279 differing, 451/451 instructions; other-function drops [].
- draw named gradient colors base-args: 263 differing, 451/451 instructions; other-function drops [].
- draw named gradient colors copy-init: 279 differing, 451/451 instructions; other-function drops [].
- draw named gradient colors two-named: 381 differing, 443/451 instructions; other-function drops [].
- draw solid-color helper reference: 379 differing, 431/451 instructions; other-function drops [].
- draw solid-color helper value: 378 differing, 439/451 instructions; other-function drops [].
- draw solid-color helper pointer: 379 differing, 431/451 instructions; other-function drops [].
- draw solid-color helper reference and delimiters: 311 differing, 435/451 instructions; other-function drops [].
- draw solid-color helper value and delimiters: 314 differing, 443/451 instructions; other-function drops [].
- draw solid-color helper pointer and delimiters: 311 differing, 435/451 instructions; other-function drops [].
- Newline-helper forward-declaration trials initially failed before includes; moved the declaration into ipl::scene and compiled the corrected three variants recorded above.
- draw real-color call-argument trial and alpha-helper declaration trial briefly overlapped; their first outputs are advisory. The alpha helper after caller was recompiled sequentially and confirmed 263 differing with no other-function changes.
## Source search
180 seconds, seed 14, 128 source mutation trials from the private 263-difference candidate. Full mutation records retained in /tmp/sol-x14-search14/trials.jsonl; search output /tmp/sol-x14-search14.log. Search improvements were fuzzy only and remain private. Each trial below lists draw instruction count and objdiff score; the source mutation follows.
- Search trial 1: compile failed; --- | +++ | @@ -147 +147 @@ | - ++footerChild; | + footerChild = footerChild + 1; |
- Search trial 2: 451 instructions, objdiff 92.736145; --- | +++ | @@ -15 +15 @@ | - s32 totalLines; | + u32 totalLines; |
- Search trial 3: 451 instructions, objdiff 92.85809; --- | +++ | @@ -5,0 +6 @@ | + nw4r::lyt::TextBox* titleText; | @@ -7 +7,0 @@ | - nw4r::lyt::TextBox* titleText; |
- Search trial 4: 451 instructions, objdiff 92.85809; --- | +++ | @@ -3,0 +4 @@ | + f32 rowTop; | @@ -5 +5,0 @@ | - f32 rowTop; |
- Search trial 5: 451 instructions, objdiff 92.85809; --- | +++ | @@ -105 +105 @@ | - ++nandTitleIndex; | + nandTitleIndex++; |
- Search trial 6: 451 instructions, objdiff 92.80266; --- | +++ | @@ -9,0 +10 @@ | + f32 backgroundOffset; | @@ -11 +11,0 @@ | - f32 backgroundOffset; |
- Search trial 7: 451 instructions, objdiff 92.80266; --- | +++ | @@ -21,0 +22 @@ | + u8 alpha; | @@ -23 +23,0 @@ | - u8 alpha; |
- Search trial 8: 451 instructions, objdiff 92.80266; --- | +++ | @@ -82 +82 @@ | - messageOffset -= bodyHeight; | + messageOffset = messageOffset - bodyHeight; |
- Search trial 9: 451 instructions, objdiff 92.80266; --- | +++ | @@ -11,0 +12 @@ | + const wchar_t* lineEnd; | @@ -13 +13,0 @@ | - const wchar_t* lineEnd; |
- Search trial 10: 451 instructions, objdiff 92.80266; --- | +++ | @@ -4,0 +5 @@ | + nw4r::lyt::TextBox* titleText; | @@ -6 +6,0 @@ | - nw4r::lyt::TextBox* titleText; |
- Search trial 11: 451 instructions, objdiff 92.691795; --- | +++ | @@ -14 +14 @@ | - s32 lineIndex; | + unsigned int lineIndex; |
- Search trial 12: 451 instructions, objdiff 92.691795; --- | +++ | @@ -52 +52 @@ | - while (newline != NULL) { | + while (NULL != newline) { |
- Search trial 13: 451 instructions, objdiff 92.691795; --- | +++ | @@ -6,0 +7 @@ | + f32 rowHeight; | @@ -8 +8,0 @@ | - f32 rowHeight; |
- Search trial 14: 451 instructions, objdiff 92.691795; --- | +++ | @@ -83 +83 @@ | - ++lineIndex; | + lineIndex += 1; |
- Search trial 15: 451 instructions, objdiff 92.691795; --- | +++ | @@ -16,0 +17 @@ | + const wchar_t* newline; | @@ -18 +18,0 @@ | - const wchar_t* newline; |
- Search trial 16: 451 instructions, objdiff 92.691795; --- | +++ | @@ -6,0 +7 @@ | + u32 nandTitleIndex; | @@ -8 +8,0 @@ | - u32 nandTitleIndex; |
- Search trial 17: 451 instructions, objdiff 92.691795; --- | +++ | @@ -21,0 +22 @@ | + f32 messageOffset; | @@ -23 +23,0 @@ | - f32 messageOffset; |
- Search trial 18: 451 instructions, objdiff 92.691795; --- | +++ | @@ -7 +7 @@ | - u32 nandTitleIndex; | + int nandTitleIndex; |
- Search trial 19: 451 instructions, objdiff 92.691795; --- | +++ | @@ -147 +147 @@ | - ++footerChild; | + footerChild++; |
- Search trial 20: compile failed; --- | +++ | @@ -147 +147 @@ | - footerChild++; | + footerChild += 1; |
- Search trial 21: 451 instructions, objdiff 92.691795; --- | +++ | @@ -19,0 +20 @@ | + f32 bodyHeight; | @@ -21 +21,0 @@ | - f32 bodyHeight; |
- Search trial 22: 451 instructions, objdiff 92.691795; --- | +++ | @@ -147 +147 @@ | - footerChild++; | + ++footerChild; |
- Search trial 23: 451 instructions, objdiff 92.691795; --- | +++ | @@ -15 +15 @@ | - s32 totalLines; | + u32 totalLines; |
- Search trial 24: 451 instructions, objdiff 92.68071; --- | +++ | @@ -124 +124 @@ | - rowY = bodyY + backgroundOffset; | + rowY = backgroundOffset + bodyY; |
- Search trial 25: 451 instructions, objdiff 92.68071; --- | +++ | @@ -52,0 +53 @@ | + newline = wcsstr(newline + 1, L"\n"); | @@ -54 +54,0 @@ | - newline = wcsstr(newline + 1, L"\n"); |
- Search trial 26: 451 instructions, objdiff 92.68071; --- | +++ | @@ -7,0 +8 @@ | + nw4r::lyt::Pane* titleSizePane; | @@ -9 +9,0 @@ | - nw4r::lyt::Pane* titleSizePane; |
- Search trial 27: compile failed; --- | +++ | @@ -147 +147 @@ | - ++footerChild; | + footerChild = footerChild + 1; |
- Search trial 28: 451 instructions, objdiff 92.68071; --- | +++ | @@ -82 +82 @@ | - messageOffset = messageOffset - bodyHeight; | + messageOffset -= bodyHeight; |
- Search trial 29: 451 instructions, objdiff 92.68071; --- | +++ | @@ -105 +105 @@ | - nandTitleIndex++; | + nandTitleIndex += 1; |
- Search trial 30: 451 instructions, objdiff 92.68071; --- | +++ | @@ -82 +82 @@ | - messageOffset -= bodyHeight; | + messageOffset = messageOffset - bodyHeight; |
- Search trial 31: 451 instructions, objdiff 92.691795; --- | +++ | @@ -88,0 +89 @@ | + titleOffset = 79.5f + messageOffset; | @@ -90 +90,0 @@ | - titleOffset = 79.5f + messageOffset; |
- Search trial 32: compile failed; --- | +++ | @@ -147 +147 @@ | - ++footerChild; | + footerChild += 1; |
- Search trial 33: 451 instructions, objdiff 92.691795; --- | +++ | @@ -19 +19 @@ | - s32 lineCount; | + unsigned int lineCount; |
- Search trial 34: 451 instructions, objdiff 92.691795; --- | +++ | @@ -7 +7 @@ | - int nandTitleIndex; | + u32 nandTitleIndex; |
- Search trial 35: 451 instructions, objdiff 92.691795; --- | +++ | @@ -72 +72 @@ | - messageLine = lineEnd + 1; | + messageLine = 1 + lineEnd; |
- Search trial 36: 451 instructions, objdiff 92.691795; --- | +++ | @@ -13 +13 @@ | - u32 lineLength; | + s32 lineLength; |
- Search trial 37: 451 instructions, objdiff 92.691795; --- | +++ | @@ -13 +13 @@ | - s32 lineLength; | + int lineLength; |
- Search trial 38: 451 instructions, objdiff 92.691795; --- | +++ | @@ -147 +147 @@ | - ++footerChild; | + footerChild++; |
- Search trial 39: 451 instructions, objdiff 92.68071; --- | +++ | @@ -88,0 +89 @@ | + backgroundOffset = 40.0f + messageOffset; | @@ -90 +90,0 @@ | - backgroundOffset = 40.0f + messageOffset; |
- Search trial 40: 451 instructions, objdiff 92.68071; --- | +++ | @@ -15 +15 @@ | - u32 totalLines; | + unsigned int totalLines; |
- Search trial 41: 451 instructions, objdiff 92.68071; --- | +++ | @@ -139 +139 @@ | - titleOffset -= rowHeight * static_cast<f32>(visibleRows); | + titleOffset = titleOffset - (rowHeight * static_cast<f32>(visibleRows)); |
- Search trial 42: 451 instructions, objdiff 92.68071; --- | +++ | @@ -131 +131 @@ | - backgroundOffset -= rowHeight; | + backgroundOffset = backgroundOffset - rowHeight; |
- Search trial 43: compile failed; --- | +++ | @@ -43 +43 @@ | - ++child; | + child = child + 1; |
- Search trial 44: 451 instructions, objdiff 92.68071; --- | +++ | @@ -7 +7 @@ | - u32 nandTitleIndex; | + int nandTitleIndex; |
- Search trial 45: 451 instructions, objdiff 92.68071; --- | +++ | @@ -52 +52 @@ | - while (NULL != newline) { | + while (newline != NULL) { |
- Search trial 46: compile failed; --- | +++ | @@ -43 +43 @@ | - ++child; | + child = child + 1; |
- Search trial 47: 451 instructions, objdiff 92.68071; --- | +++ | @@ -90 +90 @@ | - titleOffset = 79.5f + messageOffset; | + titleOffset = messageOffset + 79.5f; |
- Search trial 48: 451 instructions, objdiff 92.691795; --- | +++ | @@ -124 +124 @@ | - rowY = backgroundOffset + bodyY; | + rowY = bodyY + backgroundOffset; |
- Search trial 49: 451 instructions, objdiff 92.691795; --- | +++ | @@ -52 +52 @@ | - while (newline != NULL) { | + while (NULL != newline) { |
- Search trial 50: 451 instructions, objdiff 92.691795; --- | +++ | @@ -90 +90 @@ | - titleOffset = messageOffset + 79.5f; | + titleOffset = 79.5f + messageOffset; |
- Search trial 51: 451 instructions, objdiff 92.691795; --- | +++ | @@ -147 +147 @@ | - footerChild++; | + ++footerChild; |
- Search trial 52: 451 instructions, objdiff 92.691795; --- | +++ | @@ -7,0 +8 @@ | + f32 rowHeight; | @@ -9 +9,0 @@ | - f32 rowHeight; |
- Search trial 53: 451 instructions, objdiff 92.691795; --- | +++ | @@ -131 +131 @@ | - backgroundOffset = backgroundOffset - rowHeight; | + backgroundOffset -= rowHeight; |
- Search trial 54: 451 instructions, objdiff 92.691795; --- | +++ | @@ -83 +83 @@ | - lineIndex += 1; | + lineIndex++; |
- Search trial 55: 451 instructions, objdiff 92.691795; --- | +++ | @@ -60 +60 @@ | - totalLines = lineCount + 1; | + totalLines = 1 + lineCount; |
- Search trial 56: 451 instructions, objdiff 92.691795; --- | +++ | @@ -43 +43 @@ | - ++child; | + child++; |
- Search trial 57: 451 instructions, objdiff 92.691795; --- | +++ | @@ -142 +142 @@ | - backgroundOffset += rowHeight; | + backgroundOffset = backgroundOffset + rowHeight; |
- Search trial 58: 451 instructions, objdiff 92.691795; --- | +++ | @@ -21,0 +22 @@ | + u8 alpha; | @@ -23 +23,0 @@ | - u8 alpha; |
- Search trial 59: compile failed; --- | +++ | @@ -147 +147 @@ | - ++footerChild; | + footerChild += 1; |
- Search trial 60: 451 instructions, objdiff 92.691795; --- | +++ | @@ -54 +54 @@ | - ++lineCount; | + lineCount = lineCount + 1; |
- Search trial 61: 451 instructions, objdiff 92.68071; --- | +++ | @@ -124 +124 @@ | - rowY = bodyY + backgroundOffset; | + rowY = backgroundOffset + bodyY; |
- Search trial 62: 451 instructions, objdiff 92.68071; --- | +++ | @@ -1,0 +2 @@ | + f32 rowY; | @@ -3 +3,0 @@ | - f32 rowY; |
- Search trial 63: 451 instructions, objdiff 92.68071; --- | +++ | @@ -2,0 +3 @@ | + f32 rowTop; | @@ -4 +4,0 @@ | - f32 rowTop; |
- Search trial 64: 451 instructions, objdiff 92.691795; --- | +++ | @@ -142 +142 @@ | - backgroundOffset = backgroundOffset + rowHeight; | + backgroundOffset = rowHeight + backgroundOffset; |
- Search trial 65: 451 instructions, objdiff 92.691795; --- | +++ | @@ -15,0 +16 @@ | + const wchar_t* newline; | @@ -17 +17,0 @@ | - const wchar_t* newline; |
- Search trial 66: 451 instructions, objdiff 92.691795; --- | +++ | @@ -22,0 +23 @@ | + nw4r::lyt::Pane* bodyPane; | @@ -24 +24,0 @@ | - nw4r::lyt::Pane* bodyPane; |
- Search trial 67: 451 instructions, objdiff 92.691795; --- | +++ | @@ -60 +60 @@ | - totalLines = 1 + lineCount; | + totalLines = lineCount + 1; |
- Search trial 68: 451 instructions, objdiff 92.68071; --- | +++ | @@ -142 +142 @@ | - backgroundOffset = rowHeight + backgroundOffset; | + backgroundOffset = backgroundOffset + rowHeight; |
- Search trial 69: 451 instructions, objdiff 92.68071; --- | +++ | @@ -23,0 +24 @@ | + f32 bodyY; | @@ -25 +25,0 @@ | - f32 bodyY; |
- Search trial 70: 451 instructions, objdiff 92.68071; --- | +++ | @@ -23,0 +24 @@ | + f32 messageOffset; | @@ -25 +25,0 @@ | - f32 messageOffset; |
- Search trial 71: 451 instructions, objdiff 92.736145; --- | +++ | @@ -9,0 +10 @@ | + f32 titleOffset; | @@ -11 +11,0 @@ | - f32 titleOffset; |
- Search trial 72: 451 instructions, objdiff 92.736145; --- | +++ | @@ -48 +48 @@ | - if (mNandTitleCount != 0) { | + if (0 != mNandTitleCount) { |
- Search trial 73: 451 instructions, objdiff 92.736145; --- | +++ | @@ -54 +54 @@ | - lineCount = lineCount + 1; | + ++lineCount; |
- Search trial 74: 451 instructions, objdiff 92.736145; --- | +++ | @@ -7 +7 @@ | - int nandTitleIndex; | + s32 nandTitleIndex; |
- Search trial 75: 451 instructions, objdiff 92.736145; --- | +++ | @@ -19,0 +20 @@ | + const wchar_t* messageForCount; | @@ -21 +21,0 @@ | - const wchar_t* messageForCount; |
- Search trial 76: compile failed; --- | +++ | @@ -147 +147 @@ | - ++footerChild; | + footerChild = footerChild + 1; |
- Search trial 77: 451 instructions, objdiff 92.736145; --- | +++ | @@ -142 +142 @@ | - backgroundOffset = backgroundOffset + rowHeight; | + backgroundOffset += rowHeight; |
- Search trial 78: 451 instructions, objdiff 92.736145; --- | +++ | @@ -21,0 +22 @@ | + nw4r::lyt::Pane* bodyPane; | @@ -23 +23,0 @@ | - nw4r::lyt::Pane* bodyPane; |
- Search trial 79: compile failed; --- | +++ | @@ -147 +147 @@ | - ++footerChild; | + footerChild = footerChild + 1; |
- Search trial 80: 451 instructions, objdiff 92.736145; --- | +++ | @@ -88 +88 @@ | - messageOffset += bodyHeight; | + messageOffset = messageOffset + bodyHeight; |
- Search trial 81: 451 instructions, objdiff 92.736145; --- | +++ | @@ -88 +88 @@ | - messageOffset = messageOffset + bodyHeight; | + messageOffset += bodyHeight; |
- Search trial 82: 451 instructions, objdiff 92.50333; --- | +++ | @@ -45,0 +46 @@ | + bodyHeight = bodyPane->GetSize().height; | @@ -47 +47,0 @@ | - bodyHeight = bodyPane->GetSize().height; |
- Search trial 83: 451 instructions, objdiff 92.50333; --- | +++ | @@ -83 +83 @@ | - lineIndex++; | + ++lineIndex; |
- Search trial 84: 451 instructions, objdiff 92.51441; --- | +++ | @@ -124 +124 @@ | - rowY = backgroundOffset + bodyY; | + rowY = bodyY + backgroundOffset; |
- Search trial 85: 451 instructions, objdiff 92.51441; --- | +++ | @@ -6,0 +7 @@ | + f32 rowHeight; | @@ -8 +8,0 @@ | - f32 rowHeight; |
- Search trial 86: 451 instructions, objdiff 92.51441; --- | +++ | @@ -83 +83 @@ | - ++lineIndex; | + lineIndex += 1; |
- Search trial 87: 451 instructions, objdiff 92.51441; --- | +++ | @@ -54 +54 @@ | - ++lineCount; | + lineCount += 1; |
- Search trial 88: 451 instructions, objdiff 92.51441; --- | +++ | @@ -23,0 +24 @@ | + f32 bodyY; | @@ -25 +25,0 @@ | - f32 bodyY; |
- Search trial 89: compile failed; --- | +++ | @@ -43 +43 @@ | - child++; | + child = child + 1; |
- Search trial 90: 451 instructions, objdiff 92.51441; --- | +++ | @@ -19,0 +20 @@ | + f32 bodyHeight; | @@ -21 +21,0 @@ | - f32 bodyHeight; |
- Search trial 91: 451 instructions, objdiff 91.06209; --- | +++ | @@ -65,3 +65 @@ | - if (lineEnd == NULL) { | - utility::layout::set_string(messageText, messageLine); | - } else { | + if (lineEnd != NULL) { | @@ -72,0 +71,2 @@ | + } else { | + utility::layout::set_string(messageText, messageLine); |
- Search trial 92: 451 instructions, objdiff 92.51441; --- | +++ | @@ -19,0 +20 @@ | + const wchar_t* messageForCount; | @@ -21 +21,0 @@ | - const wchar_t* messageForCount; |
- Search trial 93: 451 instructions, objdiff 92.51441; --- | +++ | @@ -48 +48 @@ | - if (0 != mNandTitleCount) { | + if (mNandTitleCount != 0) { |
- Search trial 94: 451 instructions, objdiff 92.51441; --- | +++ | @@ -8 +8 @@ | - s32 nandTitleIndex; | + u32 nandTitleIndex; |
- Search trial 95: compile failed; --- | +++ | @@ -43 +43 @@ | - child++; | + child += 1; |
- Search trial 96: 451 instructions, objdiff 92.51441; --- | +++ | @@ -8,0 +9 @@ | + f32 titleOffset; | @@ -10 +10,0 @@ | - f32 titleOffset; |
- Search trial 97: 451 instructions, objdiff 92.51441; --- | +++ | @@ -131 +131 @@ | - backgroundOffset -= rowHeight; | + backgroundOffset = backgroundOffset - rowHeight; |
- Search trial 98: 451 instructions, objdiff 92.51441; --- | +++ | @@ -72 +72 @@ | - messageLine = 1 + lineEnd; | + messageLine = lineEnd + 1; |
- Search trial 99: 451 instructions, objdiff 92.51441; --- | +++ | @@ -13 +13 @@ | - int lineLength; | + u32 lineLength; |
- Search trial 100: 451 instructions, objdiff 92.51441; --- | +++ | @@ -20,0 +21 @@ | + nw4r::lyt::Pane* bodyPane; | @@ -22 +22,0 @@ | - nw4r::lyt::Pane* bodyPane; |
- Search trial 101: 451 instructions, objdiff 92.51441; --- | +++ | @@ -16,0 +17 @@ | + const wchar_t* messageLine; | @@ -18 +18,0 @@ | - const wchar_t* messageLine; |
- Search trial 102: 451 instructions, objdiff 92.51441; --- | +++ | @@ -83 +83 @@ | - lineIndex += 1; | + lineIndex++; |
- Search trial 103: 451 instructions, objdiff 92.51441; --- | +++ | @@ -54 +54 @@ | - lineCount += 1; | + ++lineCount; |
- Search trial 104: 451 instructions, objdiff 91.06209; --- | +++ | @@ -65,3 +65 @@ | - if (lineEnd == NULL) { | - utility::layout::set_string(messageText, messageLine); | - } else { | + if (lineEnd != NULL) { | @@ -72,0 +71,2 @@ | + } else { | + utility::layout::set_string(messageText, messageLine); |
- Search trial 105: 451 instructions, objdiff 92.51441; --- | +++ | @@ -54 +54 @@ | - ++lineCount; | + lineCount++; |
- Search trial 106: 451 instructions, objdiff 92.51441; --- | +++ | @@ -48 +48 @@ | - if (mNandTitleCount != 0) { | + if (0 != mNandTitleCount) { |
- Search trial 107: 451 instructions, objdiff 92.51441; --- | +++ | @@ -43 +43 @@ | - child++; | + ++child; |
- Search trial 108: 451 instructions, objdiff 92.51441; --- | +++ | @@ -60 +60 @@ | - totalLines = lineCount + 1; | + totalLines = 1 + lineCount; |
- Search trial 109: 451 instructions, objdiff 91.06209; --- | +++ | @@ -65,3 +65 @@ | - if (lineEnd == NULL) { | - utility::layout::set_string(messageText, messageLine); | - } else { | + if (lineEnd != NULL) { | @@ -72,0 +71,2 @@ | + } else { | + utility::layout::set_string(messageText, messageLine); |
- Search trial 110: 451 instructions, objdiff 92.51441; --- | +++ | @@ -9,0 +10 @@ | + f32 backgroundOffset; | @@ -11 +11,0 @@ | - f32 backgroundOffset; |
- Search trial 111: 451 instructions, objdiff 92.51441; --- | +++ | @@ -13 +13 @@ | - u32 lineLength; | + s32 lineLength; |
- Search trial 112: 451 instructions, objdiff 92.51441; --- | +++ | @@ -6 +6 @@ | - s32 visibleRows; | + int visibleRows; |
- Search trial 113: 451 instructions, objdiff 92.51441; --- | +++ | @@ -22,0 +23 @@ | + f32 bodyY; | @@ -24 +24,0 @@ | - f32 bodyY; |
- Search trial 114: 451 instructions, objdiff 92.51441; --- | +++ | @@ -142 +142 @@ | - backgroundOffset += rowHeight; | + backgroundOffset = backgroundOffset + rowHeight; |
- Search trial 115: 451 instructions, objdiff 92.51441; --- | +++ | @@ -5,0 +6 @@ | + f32 rowHeight; | @@ -7 +7,0 @@ | - f32 rowHeight; |
- Search trial 116: 451 instructions, objdiff 92.51441; --- | +++ | @@ -43 +43 @@ | - ++child; | + child++; |
- Search trial 117: 451 instructions, objdiff 92.51441; --- | +++ | @@ -1,0 +2 @@ | + f32 rowTop; | @@ -3 +3,0 @@ | - f32 rowTop; |
- Search trial 118: 451 instructions, objdiff 92.51441; --- | +++ | @@ -43 +43 @@ | - child++; | + ++child; |
- Search trial 119: compile failed; --- | +++ | @@ -147 +147 @@ | - ++footerChild; | + footerChild += 1; |
- Search trial 120: 451 instructions, objdiff 92.51441; --- | +++ | @@ -82 +82 @@ | - messageOffset = messageOffset - bodyHeight; | + messageOffset -= bodyHeight; |
- Search trial 121: 451 instructions, objdiff 92.51441; --- | +++ | @@ -13 +13 @@ | - s32 lineLength; | + int lineLength; |
- Search trial 122: 451 instructions, objdiff 92.51441; --- | +++ | @@ -16,0 +17 @@ | + nw4r::lyt::TextBox* messageText; | @@ -18 +18,0 @@ | - nw4r::lyt::TextBox* messageText; |
- Search trial 123: 451 instructions, objdiff 92.51441; --- | +++ | @@ -82 +82 @@ | - messageOffset -= bodyHeight; | + messageOffset = messageOffset - bodyHeight; |
- Search trial 124: 451 instructions, objdiff 92.51441; --- | +++ | @@ -10,0 +11 @@ | + const wchar_t* lineEnd; | @@ -12 +12,0 @@ | - const wchar_t* lineEnd; |
- Search trial 125: 451 instructions, objdiff 92.51441; --- | +++ | @@ -13 +13 @@ | - int lineLength; | + u32 lineLength; |
- Search trial 126: 451 instructions, objdiff 92.51441; --- | +++ | @@ -83 +83 @@ | - lineIndex++; | + lineIndex += 1; |
- Search trial 127: 451 instructions, objdiff 92.51441; --- | +++ | @@ -19,0 +20 @@ | + nw4r::lyt::Pane* bodyPane; | @@ -21 +21,0 @@ | - nw4r::lyt::Pane* bodyPane; |
- Search trial 128: 451 instructions, objdiff 92.51441; --- | +++ | @@ -8 +8 @@ | - u32 nandTitleIndex; | + s32 nandTitleIndex; |
## Disposition
- Retain only exact create, already committed as fb00e5ea. drawTransferTitles remains unmodified in the retained source. Its scoped IRO 0 and 1 candidates both compile to 451 instructions with 287 differences. The strongest private instruction candidate has 263 differences, 451/451 instructions, and identical other function instruction scores; its objdiff score 92.84701 is below baseline 93.456764, so it is rejected. Best private diff: /mnt/drive2/projects/wii-ipl-workers/_luna-runs/best/sol-x14.iplSDMemory.diff.
- draw mwdbg capture /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/drawTransferTitles__Q33ipl5scene8SDMemoryFv-20261008-220103 reproduces 252/252 virtual registers. Target needs cached newline delimiters in two loops, a different guarded line-loop entry, and color argument addresses formed at each call. The source hoists four color addresses across the title loop, causing four extra saved GPRs and a 16-byte larger frame. Named-color copies and real solid-color helper variants did not produce the target layout. No dummy locals, carrier objects, assembly, new volatile fields, or artificial offsets were retained.
- Unit remains NonMatching because drawTransferTitles is open. configure.py untouched.
- draw constrained declaration-number simulator search: 1500 steps, 1/7 requested colors. The unconstrained shared simulator also permutes compiler @ temporaries; such output is not a source declaration solution. The constrained copy and output remain /tmp/sol-x14-regsim-real.py and /tmp/sol-x14-draw-regsim.txt.
## Final gate
Command: python3 /mnt/drive2/projects/wii-ipl-workers/_restore0928-tools/gate.py src/scene/sdChannelMemory/iplSDMemory --quick
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/scene/sdChannelMemory/iplSDMemory] pool: IDENTICAL
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 19068/20872 data 3344/3344 functions 65/66 fuzzy 99.4345 linked code 0
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 65/66
[src/scene/sdChannelMemory/iplSDMemory] section .data size 3144 match 100.0
[src/scene/sdChannelMemory/iplSDMemory] section .sdata size 152 match 100.0
[src/scene/sdChannelMemory/iplSDMemory] section .sdata2 size 48 match 100.0
[src/scene/sdChannelMemory/iplSDMemory] section .text size 20872 match 99.434456
[src/scene/sdChannelMemory/iplSDMemory] below 100: drawTransferTitles__Q33ipl5scene8SDMemoryFv 93.456764
[src/scene/sdChannelMemory/iplSDMemory] baseline: code 14812/20872 data 3344 functions 64 fuzzy 99.2629
regressions vs baseline: 0
global matched_code_percent: 97.58331 -> 97.72541
global fuzzy_match_percent: 99.89996 -> 99.90116
global complete_code_percent: 88.95958 -> 88.95958
global matched_data_percent: 100.00000 -> 100.00000
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
review note: src/scene/sdChannelMemory/iplSDMemory.cpp: per-function optimization pragma (levers 26: orchestrator checks the per-use address recompute evidence) (+1 net), e.g. #pragma ppc_iro_level 1
GATE PASS
```
Final direct instruction comparison against the saved initial object changes only create: 175 -> 0 differing, 1064/1064 instructions. Gate instruction-exact count is 65/66. create exact-name objdiff is 100.0%; draw is restored to baseline 93.456764%. Scope review: source commit fb00e5ea contains only the real countCachedTitles helper, the one-function IRO 1 push/pop, and the replacement of the title-cache loop with the helper call. configure.py unchanged. Existing rx61-work and rx69 untracked files untouched. No push, PR, merge, rebase, other-worktree edits, or subagent was used.

View File

@@ -0,0 +1,72 @@
# sol-x15 ATERMi_AutoConfigThread
Branch agent/w1008/data-d3-j, baseline 9321a926. Owned source src/scene/setting/ATERM.c.
Read sol-common, brief-v2, levers, prior ATERM logs, and orch-aterm-autoconfig.md before trials. Baseline pools identical, zero strings. Function 94.75%, 3/40 differing instructions. ATERM 20/26 exact, code 12200/19204, data 18864/18864.
| Trial | Result | Other functions | Source SHA256 prefix |
| --- | --- | --- | --- |
| 01-readable | 94.75%, 3 differing, 40/40 instructions | unchanged | 831dec15aef3 |
| 02-report-state-args | 88.625%, 20 differing, 42/40 instructions | unchanged | 5b9b672537fe |
| 03-completion-state-args | 88.625%, 20 differing, 42/40 instructions | unchanged | 3b406a9e8504 |
| 04-completion-status-args | 87.75%, 10 differing, 40/40 instructions | unchanged | 544e37b2e460 |
| 05-completion-aggregate | Compile rejected, MWCC C dynamic aggregate initializer is not a constant expression | unchanged | 05445452803c |
| 06-local-aggregate | Compile rejected, MWCC C dynamic aggregate initializer is not a constant expression | unchanged | ee4701aa576f |
| 07-state-from-aggregate | Compile rejected, MWCC C dynamic aggregate initializer is not a constant expression | unchanged | e1aa84f37e70 |
| 08-completion-three-args | 87.75%, 10 differing, 40/40 instructions | unchanged | 7584ff68717f |
| 09-completion-time-middle | 87.75%, 10 differing, 40/40 instructions | unchanged | 38f0dbca8d95 |
| 10-completion-time-first | 87.75%, 10 differing, 40/40 instructions | unchanged | 954a9a688612 |
| 11-completion-result-first | 87.75%, 10 differing, 40/40 instructions | unchanged | 8e61e54b289a |
| 12-completion-const-return | 87.75%, 10 differing, 40/40 instructions | unchanged | 15722d7eb4c6 |
| 13-completion-const-reported | 87.75%, 10 differing, 40/40 instructions | unchanged | 9ce069cbc138 |
| 14-completion-state-declared-last | 87.75%, 10 differing, 40/40 instructions | unchanged | 8f099e2f77cc |
| 15-completion-assigned-state | 87.75%, 10 differing, 40/40 instructions | unchanged | 166049ed8b6a |
| 16-deadline-before-completion | 94.25%, 7 differing, 40/40 instructions | unchanged | ad71a24a281c |
| 17-completion-named-sentinel | 87.75%, 10 differing, 40/40 instructions | unchanged | 1ff1a2596589 |
| 18-completion-pointer | 94.25%, 7 differing, 40/40 instructions | unchanged | e9ba48ff3758 |
| 19-completion-pointer-deadline | 87.75%, 10 differing, 40/40 instructions | unchanged | 3da6b047b91d |
| 20-report-named-state | 94.75%, 3 differing, 40/40 instructions | unchanged | d883e434ed7e |
| 21-report-global-state | 94.75%, 3 differing, 40/40 instructions | unchanged | 20856d20d55d |
| 22-chained-state | 94.75%, 3 differing, 40/40 instructions | unchanged | 5ee804fb6b9b |
| 23-chained-select | 94.0%, 9 differing, 40/40 instructions | unchanged | 28c944e1b6b3 |
| 24-progress-macro | 94.75%, 3 differing, 40/40 instructions | unchanged | 74121dd6ef4e |
| 25-progress-return-aggregate | 77.625%, 25 differing, 43/40 instructions | unchanged | f0f0d22caef9 |
| 26-progress-return-after-state | 91.575%, 21 differing, 43/40 instructions | unchanged | 1c6a11ab59bd |
| 27-get-progress-state-param | 94.0%, 9 differing, 40/40 instructions | unchanged | f3a27668f96f |
| 28-get-progress-result-param | 94.0%, 9 differing, 40/40 instructions | unchanged | 5624532f42a1 |
| 29-get-completion-result-param | 94.25%, 7 differing, 40/40 instructions | unchanged | 4e62454cd179 |
| 30-progress-pointer-snapshot | 87.75%, 10 differing, 40/40 instructions | unchanged | d71b77bd441e |
| 31-progress-pointer-load-last | 94.75%, 3 differing, 40/40 instructions | unchanged | 88dd98d9cd90 |
| 32-progress-pointer-load-first | 85.2%, 10 differing, 40/40 instructions | unchanged | 879aa0bb3ea7 |
| 33-report-state-local-copy | 94.25%, 7 differing, 40/40 instructions | unchanged | b8848a306fe9 |
| 34-report-state-global-reload | 94.25%, 7 differing, 40/40 instructions | unchanged | cb1e4ad09655 |
| 35-completion-callback-param | 87.75%, 10 differing, 40/40 instructions | unchanged | 86ae07db931c |
| 36-completion-callback-first | 87.75%, 10 differing, 40/40 instructions | unchanged | a093a81864a2 |
| 37-completion-callback-global-result | 94.75%, 3 differing, 40/40 instructions | unchanged | 35c8192d9e95 |
| 38-global-result-select | 66.325%, 37 differing, 37/40 instructions | unchanged | 877456206a39 |
| 39-progress-deadline-macro | 94.75%, 3 differing, 40/40 instructions | unchanged | 9c64104abc48 |
| 40-progress-shared-inline | 94.75%, 3 differing, 40/40 instructions | unchanged | 39bec75fdec5 |
| 41-shared-sibling-inline | 94.75%, 3/40 differing | ATERMRunConfigProtocol 92.100945 -> 92.08623; ATERMi_ApConfigEnd 100.0 -> 99.84496 | measured full unit |
## Backend captures
- Readable baseline: /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/ATERMi_AutoConfigThread-20261008-215834. Backend-01 orders addi/subfic/nor/li/srawi/lwz. NOR r43 gets r0, gAtermResult load r48 gets r0. Their live ranges do not interfere. regsim reproduces 17/17 registers. Active tie values are compiler temporaries, so named-local declaration order cannot directly reorder them.
- Completion helper with reported-result parameter: /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/ATERMi_AutoConfigThread-20261008-215954. Backend-01 still orders addi/subfic/nor/li/srawi/lwz. The helper gives reportedResult the early inline-argument register r34, colored r5, while the sentinel r47 gets r0 and the NOR r44 gets r3. It fixes the NOR destination but changes the sentinel/state/result register assignments and produces 10 differences. Argument permutations, const parameters, local declaration placement, and a named sentinel do not solve it.
- Shared helper capture: /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/ATERMi_AutoConfigThread-20261008-220248. Backend-01 still orders addi/subfic/nor/li/srawi/lwz, with the same virtual registers as the readable baseline. Sharing the helper does not move the result load before the NOR.
- Shared progress helper trial 41 replaces four sibling report blocks and the completion report. AutoConfigThread remains at 3/40. ATERMi_ApConfigEnd drops from exact to 99.84496%, and RunConfigProtocol changes from 92.100945% to 92.08623%. Reject the helper and restore all siblings.
## Retained change
Replace the hand-expanded equality mask and arithmetic shift with completedState = (result == 1) ? 6 : 7. Keep deadline/state/progress store order. This compiles to the same function instructions as the initial source and leaves every ATERM function score unchanged. No exact gain.
Final independent comparison recompiles the original committed source into /tmp/sol-x15-baseline. Every allocated ELF section and every relocation resolved to section/value or external symbol is identical to the readable replacement. This proves every sibling function and unit code/data are unchanged, beyond unchanged fuzzy scores. Final pool check identical, ctxdiff 3 differences with 40/40 instructions, focused source diff clean.
## Final gate
Command: python3 /mnt/drive2/projects/wii-ipl-workers/_restore0928-tools/gate.py src/scene/setting/ATERM --quick
Full 43U build passes. DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Pools identical. Unit exact functions 20/26 before and after, matched code 12200/19204, matched data 18864/18864, fuzzy 98.20204%. Regressions 0, forbidden patterns 0, readability warnings 0. Gate baseline is ancestor 22e6bbed, one commit before HEAD; the separate current-HEAD unit baseline and allocated-section/relocation comparison also prove zero drops.
GATE PASS
Readability-only source commit cdf7c17c. Exact matching remains open after 41 source candidates, including three rejected aggregate initializers. The retained ternary replaces the hand-expanded comparison without changing executable code or data.

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,497 @@
# sol-x7 attempts
Baseline 9321a926, branch agent/w1008/data-d9. Read sol-common, brief-v2, all levers, prior sol-tex rounds, owned historical attempt logs, unslop and writing-for-agents. No remote writes or other-worktree edits.
- {"trial": "baseline-RGB565", "unit": "RGB565", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 12}
- {"trial": "baseline-RGBA8", "unit": "RGBA8", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 11}
- {"trial": "baseline-Y8U8V8", "unit": "Y8U8V8", "diffs": 195, "insns": [195, 196], "base": false, "score": 92.78571, "exact": 12}
- {"trial": "RGB565-plane-sizes-s32", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 12}
- {"trial": "RGB565-plane-sizes-u32", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 12}
- {"trial": "RGB565-plane-sizes-u16", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 12}
- {"trial": "RGB565-plane-sizes-u8", "unit": "RGB565", "diffs": 170, "insns": [163, 170], "base": false, "score": 86.98235, "exact": 12}
- {"trial": "RGB565-layout-outer-u32", "unit": "RGB565", "error": "compile"}
- {"trial": "RGB565-layout-outer-u8", "unit": "RGB565", "error": "compile"}
- {"trial": "RGB565-layout-case-u32", "unit": "RGB565", "error": "compile"}
- {"trial": "RGB565-layout-case-u8", "unit": "RGB565", "error": "compile"}
- {"trial": "RGBA8-plane-sizes-s32", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 11}
- {"trial": "RGBA8-plane-sizes-u32", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 11}
- {"trial": "RGBA8-plane-sizes-u16", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 11}
- {"trial": "RGBA8-plane-sizes-u8", "unit": "RGBA8", "diffs": 170, "insns": [163, 170], "base": false, "score": 86.98235, "exact": 11}
- {"trial": "RGBA8-layout-outer-u32", "unit": "RGBA8", "error": "compile"}
- {"trial": "RGBA8-layout-outer-u8", "unit": "RGBA8", "error": "compile"}
- {"trial": "RGBA8-layout-case-u32", "unit": "RGBA8", "error": "compile"}
- {"trial": "RGBA8-layout-case-u8", "unit": "RGBA8", "error": "compile"}
- {"trial": "Y8U8V8-plane-sizes-s32", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.77041, "exact": 12}
- {"trial": "Y8U8V8-plane-sizes-u32", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.77041, "exact": 12}
- {"trial": "Y8U8V8-plane-sizes-u16", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.77041, "exact": 12}
- {"trial": "Y8U8V8-plane-sizes-u8", "unit": "Y8U8V8", "diffs": 196, "insns": [189, 196], "base": false, "score": 87.10714, "exact": 12}
- {"trial": "Y8U8V8-layout-outer-u32", "unit": "Y8U8V8", "error": "compile"}
- {"trial": "Y8U8V8-layout-outer-u8", "unit": "Y8U8V8", "error": "compile"}
- {"trial": "Y8U8V8-layout-case-u32", "unit": "Y8U8V8", "error": "compile"}
- {"trial": "Y8U8V8-layout-case-u8", "unit": "Y8U8V8", "error": "compile"}
- {"trial": "baseline-RGB565", "unit": "RGB565", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 12}
- {"trial": "baseline-RGBA8", "unit": "RGBA8", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 11}
- {"trial": "baseline-Y8U8V8", "unit": "Y8U8V8", "diffs": 195, "insns": [195, 196], "base": false, "score": 92.78571, "exact": 12}
- {"trial": "RGB565-plane-sizes-s32", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 12}
- {"trial": "RGB565-plane-sizes-u32", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 12}
- {"trial": "RGB565-plane-sizes-u16", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 12}
- {"trial": "RGB565-layout-fixed-outer-u32", "unit": "RGB565", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 12}
- {"trial": "RGB565-layout-fixed-outer-u8", "unit": "RGB565", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 12}
- {"trial": "RGB565-layout-fixed-case-u32", "unit": "RGB565", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 12}
- {"trial": "RGB565-layout-fixed-case-u8", "unit": "RGB565", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 12}
- {"trial": "RGBA8-plane-sizes-s32", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 11}
- {"trial": "RGBA8-plane-sizes-u32", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 11}
- {"trial": "RGBA8-plane-sizes-u16", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 11}
- {"trial": "RGBA8-layout-fixed-outer-u32", "unit": "RGBA8", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 11}
- {"trial": "RGBA8-layout-fixed-outer-u8", "unit": "RGBA8", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 11}
- {"trial": "RGBA8-layout-fixed-case-u32", "unit": "RGBA8", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 11}
- {"trial": "RGBA8-layout-fixed-case-u8", "unit": "RGBA8", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 11}
- {"trial": "Y8U8V8-plane-sizes-s32", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.77041, "exact": 12}
- {"trial": "Y8U8V8-plane-sizes-u32", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.77041, "exact": 12}
- {"trial": "Y8U8V8-plane-sizes-u16", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.77041, "exact": 12}
- {"trial": "Y8U8V8-layout-fixed-outer-u32", "unit": "Y8U8V8", "diffs": 195, "insns": [195, 196], "base": false, "score": 92.78571, "exact": 12}
- {"trial": "Y8U8V8-layout-fixed-outer-u8", "unit": "Y8U8V8", "diffs": 195, "insns": [195, 196], "base": false, "score": 92.78571, "exact": 12}
- {"trial": "Y8U8V8-layout-fixed-case-u32", "unit": "Y8U8V8", "diffs": 195, "insns": [195, 196], "base": false, "score": 92.78571, "exact": 12}
- {"trial": "Y8U8V8-layout-fixed-case-u8", "unit": "Y8U8V8", "diffs": 195, "insns": [195, 196], "base": false, "score": 92.78571, "exact": 12}
- {"trial": "RGB565-pre-size-conditional-False", "unit": "RGB565", "diffs": 191, "insns": [195, 170], "base": false, "score": 69.6647, "exact": 12}
- {"trial": "RGB565-pre-size-conditional-True", "unit": "RGB565", "diffs": 187, "insns": [191, 170], "base": false, "score": 73.55882, "exact": 12}
- {"trial": "RGB565-pre-size-if-False", "unit": "RGB565", "diffs": 182, "insns": [188, 170], "base": false, "score": 74.752945, "exact": 12}
- {"trial": "RGB565-pre-size-if-True", "unit": "RGB565", "diffs": 182, "insns": [184, 170], "base": false, "score": 74.935295, "exact": 12}
- {"trial": "RGB565-pre-size-switch-False", "unit": "RGB565", "diffs": 188, "insns": [190, 170], "base": false, "score": 74.858826, "exact": 12}
- {"trial": "RGB565-pre-size-switch-True", "unit": "RGB565", "diffs": 184, "insns": [186, 170], "base": false, "score": 75.94118, "exact": 12}
- {"trial": "RGB565-pre-size-shift-False", "unit": "RGB565", "diffs": 178, "insns": [179, 170], "base": false, "score": 73.62353, "exact": 12}
- {"trial": "RGB565-pre-size-shift-True", "unit": "RGB565", "diffs": 174, "insns": [175, 170], "base": false, "score": 73.958824, "exact": 12}
- {"trial": "RGB565-plane-helper-False-False", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.59412, "exact": 12}
- {"trial": "RGB565-plane-helper-False-True", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.59412, "exact": 12}
- {"trial": "RGB565-plane-helper-True-False", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.59412, "exact": 12}
- {"trial": "RGB565-plane-helper-True-True", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.59412, "exact": 12}
- {"trial": "RGBA8-pre-size-conditional-False", "unit": "RGBA8", "diffs": 191, "insns": [195, 170], "base": false, "score": 69.6647, "exact": 11}
- {"trial": "RGBA8-pre-size-conditional-True", "unit": "RGBA8", "diffs": 187, "insns": [191, 170], "base": false, "score": 73.55882, "exact": 11}
- {"trial": "RGBA8-pre-size-if-False", "unit": "RGBA8", "diffs": 182, "insns": [188, 170], "base": false, "score": 74.752945, "exact": 11}
- {"trial": "RGBA8-pre-size-if-True", "unit": "RGBA8", "diffs": 182, "insns": [184, 170], "base": false, "score": 74.935295, "exact": 11}
- {"trial": "RGBA8-pre-size-switch-False", "unit": "RGBA8", "diffs": 188, "insns": [190, 170], "base": false, "score": 74.858826, "exact": 11}
- {"trial": "RGBA8-pre-size-switch-True", "unit": "RGBA8", "diffs": 184, "insns": [186, 170], "base": false, "score": 75.94118, "exact": 11}
- {"trial": "RGBA8-pre-size-shift-False", "unit": "RGBA8", "diffs": 178, "insns": [179, 170], "base": false, "score": 73.62353, "exact": 11}
- {"trial": "RGBA8-pre-size-shift-True", "unit": "RGBA8", "diffs": 174, "insns": [175, 170], "base": false, "score": 73.958824, "exact": 11}
- {"trial": "RGBA8-plane-helper-False-False", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.59412, "exact": 11}
- {"trial": "RGBA8-plane-helper-False-True", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.59412, "exact": 11}
- {"trial": "RGBA8-plane-helper-True-False", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.59412, "exact": 11}
- {"trial": "RGBA8-plane-helper-True-True", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.59412, "exact": 11}
- {"trial": "Y8U8V8-pre-size-conditional-False", "unit": "Y8U8V8", "diffs": 217, "insns": [221, 196], "base": false, "score": 74.04592, "exact": 12}
- {"trial": "Y8U8V8-pre-size-conditional-True", "unit": "Y8U8V8", "diffs": 213, "insns": [217, 196], "base": false, "score": 69.755104, "exact": 12}
- {"trial": "Y8U8V8-pre-size-if-False", "unit": "Y8U8V8", "diffs": 208, "insns": [214, 196], "base": false, "score": 74.561226, "exact": 12}
- {"trial": "Y8U8V8-pre-size-if-True", "unit": "Y8U8V8", "diffs": 208, "insns": [210, 196], "base": false, "score": 76.79592, "exact": 12}
- {"trial": "Y8U8V8-pre-size-switch-False", "unit": "Y8U8V8", "diffs": 214, "insns": [216, 196], "base": false, "score": 74.65306, "exact": 12}
- {"trial": "Y8U8V8-pre-size-switch-True", "unit": "Y8U8V8", "diffs": 210, "insns": [212, 196], "base": false, "score": 78.28571, "exact": 12}
- {"trial": "Y8U8V8-pre-size-shift-False", "unit": "Y8U8V8", "diffs": 204, "insns": [205, 196], "base": false, "score": 73.34694, "exact": 12}
- {"trial": "Y8U8V8-pre-size-shift-True", "unit": "Y8U8V8", "diffs": 200, "insns": [201, 196], "base": false, "score": 72.46939, "exact": 12}
- {"trial": "Y8U8V8-plane-helper-False-False", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.744896, "exact": 12}
- {"trial": "Y8U8V8-plane-helper-False-True", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.744896, "exact": 12}
- {"trial": "Y8U8V8-plane-helper-True-False", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.744896, "exact": 12}
- {"trial": "Y8U8V8-plane-helper-True-True", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.744896, "exact": 12}
- {"trial": "rgba411-baseline", "unit": "RGBA8", "diffs": 153, "insns": [242, 242], "base": false, "score": 82.70661, "exact": 11}
- {"trial": "rgba411-all-expression", "unit": "RGBA8", "diffs": 161, "insns": [242, 242], "base": false, "score": 79.78925, "exact": 11}
- {"trial": "rgba411-all-assign", "unit": "RGBA8", "diffs": 165, "insns": [242, 242], "base": false, "score": 77.694214, "exact": 11}
- {"trial": "rgba411-all-locals", "unit": "RGBA8", "diffs": 161, "insns": [242, 242], "base": false, "score": 79.78925, "exact": 11}
- {"trial": "rgba411-greenblue-expression", "unit": "RGBA8", "diffs": 161, "insns": [242, 242], "base": false, "score": 79.78925, "exact": 11}
- {"trial": "rgba411-greenblue-assign", "unit": "RGBA8", "diffs": 171, "insns": [242, 242], "base": false, "score": 76.75207, "exact": 11}
- {"trial": "rgba411-greenblue-locals", "unit": "RGBA8", "diffs": 161, "insns": [242, 242], "base": false, "score": 79.78925, "exact": 11}
- {"trial": "rgba411-red-expression", "unit": "RGBA8", "diffs": 160, "insns": [242, 242], "base": false, "score": 82.119835, "exact": 11}
- {"trial": "rgba411-red-assign", "unit": "RGBA8", "diffs": 150, "insns": [242, 242], "base": false, "score": 79.11157, "exact": 11}
- {"trial": "rgba411-red-locals", "unit": "RGBA8", "diffs": 160, "insns": [242, 242], "base": false, "score": 82.119835, "exact": 11}
- {"trial": "rgba411-middle-expression", "unit": "RGBA8", "diffs": 161, "insns": [242, 242], "base": false, "score": 79.78925, "exact": 11}
- {"trial": "rgba411-middle-assign", "unit": "RGBA8", "diffs": 165, "insns": [242, 242], "base": false, "score": 80.71075, "exact": 11}
- {"trial": "rgba411-middle-locals", "unit": "RGBA8", "diffs": 161, "insns": [242, 242], "base": false, "score": 79.78925, "exact": 11}
- {"trial": "rgba411-edges-expression", "unit": "RGBA8", "diffs": 161, "insns": [242, 242], "base": false, "score": 79.83058, "exact": 11}
- {"trial": "rgba411-edges-assign", "unit": "RGBA8", "diffs": 157, "insns": [242, 242], "base": false, "score": 77.96281, "exact": 11}
- {"trial": "rgba411-edges-locals", "unit": "RGBA8", "diffs": 161, "insns": [242, 242], "base": false, "score": 79.83058, "exact": 11}
- {"trial": "rgba411-index-single-after", "unit": "RGBA8", "diffs": 161, "insns": [242, 242], "base": false, "score": 80.29752, "exact": 11}
- {"trial": "rgba411-index-single-before", "unit": "RGBA8", "diffs": 226, "insns": [245, 242], "base": false, "score": 74.24793, "exact": 11}
- {"trial": "rgba411-index-perpixel-after", "unit": "RGBA8", "diffs": 159, "insns": [242, 242], "base": false, "score": 78.90496, "exact": 11}
- {"trial": "rgba411-index-perpixel-before", "unit": "RGBA8", "diffs": 226, "insns": [245, 242], "base": false, "score": 73.86777, "exact": 11}
- {"trial": "RGB565-stride-size-pitch-False-early", "unit": "RGB565", "diffs": 167, "insns": [169, 170], "base": false, "score": 79.87059, "exact": 12}
- {"trial": "RGB565-stride-size-pitch-False-late", "unit": "RGB565", "diffs": 167, "insns": [169, 170], "base": false, "score": 79.87059, "exact": 12}
- {"trial": "RGB565-stride-size-pitch-True-early", "unit": "RGB565", "diffs": 167, "insns": [169, 170], "base": false, "score": 79.87059, "exact": 12}
- {"trial": "RGB565-stride-size-pitch-True-late", "unit": "RGB565", "diffs": 167, "insns": [169, 170], "base": false, "score": 79.87059, "exact": 12}
- {"trial": "RGB565-stride-size-localPitch-False-early", "unit": "RGB565", "diffs": 167, "insns": [169, 170], "base": false, "score": 80.23529, "exact": 12}
- {"trial": "RGB565-stride-size-localPitch-False-late", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 12}
- {"trial": "RGB565-stride-size-localPitch-True-early", "unit": "RGB565", "diffs": 167, "insns": [169, 170], "base": false, "score": 80.23529, "exact": 12}
- {"trial": "RGB565-stride-size-localPitch-True-late", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 12}
- {"trial": "RGB565-stride-size-rowSpan-False-early", "unit": "RGB565", "diffs": 167, "insns": [169, 170], "base": false, "score": 80.23529, "exact": 12}
- {"trial": "RGB565-stride-size-rowSpan-False-late", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 12}
- {"trial": "RGB565-stride-size-rowSpan-True-early", "unit": "RGB565", "diffs": 167, "insns": [169, 170], "base": false, "score": 80.23529, "exact": 12}
- {"trial": "RGB565-stride-size-rowSpan-True-late", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 12}
- {"trial": "RGBA8-stride-size-pitch-False-early", "unit": "RGBA8", "diffs": 167, "insns": [169, 170], "base": false, "score": 79.87059, "exact": 11}
- {"trial": "RGBA8-stride-size-pitch-False-late", "unit": "RGBA8", "diffs": 167, "insns": [169, 170], "base": false, "score": 79.87059, "exact": 11}
- {"trial": "RGBA8-stride-size-pitch-True-early", "unit": "RGBA8", "diffs": 167, "insns": [169, 170], "base": false, "score": 79.87059, "exact": 11}
- {"trial": "RGBA8-stride-size-pitch-True-late", "unit": "RGBA8", "diffs": 167, "insns": [169, 170], "base": false, "score": 79.87059, "exact": 11}
- {"trial": "RGBA8-stride-size-localPitch-False-early", "unit": "RGBA8", "diffs": 167, "insns": [169, 170], "base": false, "score": 80.23529, "exact": 11}
- {"trial": "RGBA8-stride-size-localPitch-False-late", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 11}
- {"trial": "RGBA8-stride-size-localPitch-True-early", "unit": "RGBA8", "diffs": 167, "insns": [169, 170], "base": false, "score": 80.23529, "exact": 11}
- {"trial": "RGBA8-stride-size-localPitch-True-late", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 11}
- {"trial": "RGBA8-stride-size-rowSpan-False-early", "unit": "RGBA8", "diffs": 167, "insns": [169, 170], "base": false, "score": 80.23529, "exact": 11}
- {"trial": "RGBA8-stride-size-rowSpan-False-late", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 11}
- {"trial": "RGBA8-stride-size-rowSpan-True-early", "unit": "RGBA8", "diffs": 167, "insns": [169, 170], "base": false, "score": 80.23529, "exact": 11}
- {"trial": "RGBA8-stride-size-rowSpan-True-late", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 11}
- {"trial": "Y8U8V8-stride-size-pitch-False-early", "unit": "Y8U8V8", "diffs": 193, "insns": [195, 196], "base": false, "score": 80.22959, "exact": 12}
- {"trial": "Y8U8V8-stride-size-pitch-False-late", "unit": "Y8U8V8", "diffs": 193, "insns": [195, 196], "base": false, "score": 80.22959, "exact": 12}
- {"trial": "Y8U8V8-stride-size-pitch-True-early", "unit": "Y8U8V8", "diffs": 193, "insns": [195, 196], "base": false, "score": 80.22959, "exact": 12}
- {"trial": "Y8U8V8-stride-size-pitch-True-late", "unit": "Y8U8V8", "diffs": 193, "insns": [195, 196], "base": false, "score": 80.22959, "exact": 12}
- {"trial": "Y8U8V8-stride-size-localPitch-False-early", "unit": "Y8U8V8", "diffs": 193, "insns": [195, 196], "base": false, "score": 80.22959, "exact": 12}
- {"trial": "Y8U8V8-stride-size-localPitch-False-late", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.77041, "exact": 12}
- {"trial": "Y8U8V8-stride-size-localPitch-True-early", "unit": "Y8U8V8", "diffs": 193, "insns": [195, 196], "base": false, "score": 80.22959, "exact": 12}
- {"trial": "Y8U8V8-stride-size-localPitch-True-late", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.77041, "exact": 12}
- {"trial": "Y8U8V8-stride-size-rowSpan-False-early", "unit": "Y8U8V8", "diffs": 193, "insns": [195, 196], "base": false, "score": 80.22959, "exact": 12}
- {"trial": "Y8U8V8-stride-size-rowSpan-False-late", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.77041, "exact": 12}
- {"trial": "Y8U8V8-stride-size-rowSpan-True-early", "unit": "Y8U8V8", "diffs": 193, "insns": [195, 196], "base": false, "score": 80.22959, "exact": 12}
- {"trial": "Y8U8V8-stride-size-rowSpan-True-late", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.77041, "exact": 12}
- {"trial": "rgba411-pack-s32-outer-s32", "unit": "RGBA8", "diffs": 148, "insns": [242, 242], "base": false, "score": 80.17355, "exact": 11}
- {"trial": "rgba411-pack-s32-outer-u8", "unit": "RGBA8", "diffs": 146, "insns": [242, 242], "base": false, "score": 81.82645, "exact": 11}
- {"trial": "rgba411-pack-s32-group-s32", "unit": "RGBA8", "diffs": 148, "insns": [242, 242], "base": false, "score": 80.17355, "exact": 11}
- {"trial": "rgba411-pack-s32-group-u8", "unit": "RGBA8", "diffs": 146, "insns": [242, 242], "base": false, "score": 81.82645, "exact": 11}
- {"trial": "rgba411-pack-s32-pixel-s32", "unit": "RGBA8", "diffs": 148, "insns": [242, 242], "base": false, "score": 80.17355, "exact": 11}
- {"trial": "rgba411-pack-s32-pixel-u8", "unit": "RGBA8", "diffs": 146, "insns": [242, 242], "base": false, "score": 81.82645, "exact": 11}
- {"trial": "rgba411-pack-u32-outer-s32", "unit": "RGBA8", "diffs": 148, "insns": [242, 242], "base": false, "score": 80.17355, "exact": 11}
- {"trial": "rgba411-pack-u32-outer-u8", "unit": "RGBA8", "diffs": 146, "insns": [242, 242], "base": false, "score": 81.82645, "exact": 11}
- {"trial": "rgba411-pack-u32-group-s32", "unit": "RGBA8", "diffs": 148, "insns": [242, 242], "base": false, "score": 80.17355, "exact": 11}
- {"trial": "rgba411-pack-u32-group-u8", "unit": "RGBA8", "diffs": 146, "insns": [242, 242], "base": false, "score": 81.82645, "exact": 11}
- {"trial": "rgba411-pack-u32-pixel-s32", "unit": "RGBA8", "diffs": 148, "insns": [242, 242], "base": false, "score": 80.17355, "exact": 11}
- {"trial": "rgba411-pack-u32-pixel-u8", "unit": "RGBA8", "diffs": 146, "insns": [242, 242], "base": false, "score": 81.82645, "exact": 11}
- {"trial": "rgba411-pack-u16-outer-s32", "unit": "RGBA8", "diffs": 148, "insns": [242, 242], "base": false, "score": 80.17355, "exact": 11}
- {"trial": "rgba411-pack-u16-outer-u8", "unit": "RGBA8", "diffs": 146, "insns": [242, 242], "base": false, "score": 81.82645, "exact": 11}
- {"trial": "rgba411-pack-u16-group-s32", "unit": "RGBA8", "diffs": 148, "insns": [242, 242], "base": false, "score": 80.17355, "exact": 11}
- {"trial": "rgba411-pack-u16-group-u8", "unit": "RGBA8", "diffs": 146, "insns": [242, 242], "base": false, "score": 81.82645, "exact": 11}
- {"trial": "rgba411-pack-u16-pixel-s32", "unit": "RGBA8", "diffs": 148, "insns": [242, 242], "base": false, "score": 80.17355, "exact": 11}
- {"trial": "rgba411-pack-u16-pixel-u8", "unit": "RGBA8", "diffs": 146, "insns": [242, 242], "base": false, "score": 81.82645, "exact": 11}
- {"trial": "rgba411-plane-indices-outer-s32", "unit": "RGBA8", "diffs": 153, "insns": [242, 242], "base": false, "score": 82.70661, "exact": 11}
- {"trial": "rgba411-plane-indices-outer-u32", "unit": "RGBA8", "diffs": 153, "insns": [242, 242], "base": false, "score": 82.70661, "exact": 11}
- {"trial": "rgba411-plane-indices-group-s32", "unit": "RGBA8", "diffs": 153, "insns": [242, 242], "base": false, "score": 82.70661, "exact": 11}
- {"trial": "rgba411-plane-indices-group-u32", "unit": "RGBA8", "diffs": 153, "insns": [242, 242], "base": false, "score": 82.70661, "exact": 11}
- {"trial": "rgba411-plane-indices-pixel-s32", "unit": "RGBA8", "diffs": 153, "insns": [242, 242], "base": false, "score": 82.70661, "exact": 11}
- {"trial": "rgba411-plane-indices-pixel-u32", "unit": "RGBA8", "diffs": 153, "insns": [242, 242], "base": false, "score": 82.70661, "exact": 11}
## Source review and rejected diagnostics
The initial u8 ySize probes truncated 256 to zero. Their results are invalid and excluded from best-source selection. Corrected sizes use s32/u32/u16. The first typed-layout probes placed typedefs before the type includes and failed to compile; the corrected probes put them after the includes. No failed or semantically invalid source is retained.
All three setters were tested with per-mode ySize/cSize, actual header/Y/Cb/Cr layout types, pre-switch size selection through conditional/if/switch/shift forms, chroma-plane inline access, and plane sizes derived from the descriptor's pitch or a local row span. The case-local sizes and typed views still fold convBuf into work-relative addresses. Pre-switch size selection adds size-selection operations and still misses the target base. Deriving sizes from pitch changes scheduling and colors but retains 169/170 or 195/196 instructions with no prologue base. No new setter result improves the existing diagnostic saved by sol-tex.
The other converter units use the byte-array field with literal plane offsets. decapi.c selects the converter functions but never accesses convBuf. Other C sources in this library do not access convBuf. No evidence supports a different shared field definition; the header remains unchanged.
RGBA411 probes covered per-pixel color identities, separate alpha/GB packing with integer-width and scope variations, and explicit indices for both tiled output planes. Best positional result is 146/242, equal 968-byte size, but official fuzzy is 81.82645 versus 82.70661 baseline. It repeats the earlier packed-pixel diagnostic at the instruction level, so it is rejected. All exact siblings remained exact in the per-trial unit reports. None of these results is a match or a retained gain.
Restored all owned sources before final verification. No source, header, configure.py, or inventory edit is retained. The queued first tracer was cancelled before it produced a capture, then relaunched with an immutable /tmp/sol-x7-rgba-snapshot.c so later source probes cannot race its compiler input. The debugger permits capture directories only under its own tool root; the first requested in-worktree output path was rejected before execution.
## Allocator evidence
Fresh immutable-source capture completed at `/mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/sol-x7-rgba-snapshot`. Its .text and relocations equal the freshly rebuilt normal source object. The only ELF differences are the STT_FILE basename and corresponding string-table indices in .symtab/.strtab; resolved symbol properties otherwise agree. No byte-identical whole-object claim is made. The earlier sol-tex-rgba411 capture also has the same 242-instruction function as the fresh source object.
The current regsim reproduces 179/179 virtual registers for the fresh capture. A 20,000-step search for lumaSkip=r24, chromaSkip=r23, output=r21, tileRow=r20, redOffset=r12, greenOffset=r31 and blueOffset=r30 reaches 6/7 requested colors. Its proposed order includes compiler-created @ temporaries, so it is not an implementable C declaration order and does not prove impossibility over other source shapes. Evidence: `/tmp/sol-x7-rgba-regsim-fresh.txt`. The independently checked older capture gives the same reproduction and search result. No declaration permutation derived from this diagnostic is retained.
## Final gate and handoff
Distinct valid compiled source snapshots, excluding the baselines, invalid u8-size probes and initial typedef compile failures: RGB565 setter 31; Y8U8V8 setter 31; RGBA8 setter 31; RGBA411 43. Duplicate invocations from the corrected driver are excluded. All trials and frozen objects/reports are under `/tmp/sol-x7-trials/`.
Saved newly tested diagnostics outside the repository as `/mnt/drive2/projects/wii-ipl-workers/_luna-runs/best/sol-x7.Texture_MCUtoRGB565.diff`, `sol-x7.Texture_MCUtoY8U8V8.diff` and `sol-x7.Texture_MCUtoRGBA8.diff`. These are rejected diagnostic shapes, not gains. The earlier sol-tex prologue-base diagnostics are unchanged and remain better for studying base materialization.
Final restored-source gate: GATE PASS. Initial full 43U Ninja build and final full build both passed. DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Every owned pool is empty and identical; zero regressions, zero forbidden additions and zero readability warnings. Gate compared against snapshotted ancestor 22e6bbed, one commit before this leaf's 9321a926 baseline; that intervening commit changes completion accounting, not owned source. Evidence: `/tmp/sol-x7-final-gate.log`.
Exact counts unchanged: RGB565 12/13, Y8U8V8 12/13, RGBA8 11/13. Linked code is zero for each owned unit, as before. Final exact-name scores remain RGB565/RGBA8 setters 93.91765, Y8U8V8 setter 92.78571, RGBA411 82.70661. Restored-source odiff is respectively 169/170, 169/170, 195/196 and 153/242 differing. No function reached zero differing at equal size. Only this log is committed; owned sources, header and configure.py remain byte-identical to HEAD.
## Scoped optimization follow-up
User authorizes exactly one function-scoped optimization_level push/pop per setter. Origin/main 9321a926, all three sources already identical. Preserve other functions and shared headers.
- {"trial": "rgb-opt1-baseline", "unit": "RGB565", "diffs": 116, "blind": 21, "insns": [170, 170]}
- {"trial": "rgb-opt1-outer-reverse", "unit": "RGB565", "diffs": 116, "blind": 21, "insns": [170, 170]}
- {"trial": "rgb-opt1-direct-rows", "unit": "RGB565", "diffs": 181, "blind": 176, "insns": [185, 170]}
- {"trial": "rgb-opt1-converters-after-compute", "unit": "RGB565", "diffs": 112, "blind": 14, "insns": [170, 170]}
- {"trial": "rgb-opt1-aftercompute-reverse-row-declarations", "unit": "RGB565", "diffs": 113, "blind": 14, "insns": [170, 170]}
- {"trial": "rgb-opt1-aftercompute-mode-after-pointers", "unit": "RGB565", "diffs": 114, "blind": 14, "insns": [170, 170]}
- {"trial": "rgb-opt1-hoisted-locals", "unit": "RGB565", "diffs": 115, "blind": 23, "insns": [170, 170]}
- {"trial": "rgb-opt1-hoisted-converters", "unit": "RGB565", "diffs": 115, "blind": 15, "insns": [170, 170]}
- {"trial": "rgb-opt1-inline-cbBlock-crBlock", "unit": "RGB565", "diffs": 108, "blind": 17, "insns": [170, 170]}
- {"trial": "rgb-opt1-inline-fourthRow", "unit": "RGB565", "diffs": 114, "blind": 21, "insns": [170, 170]}
- {"trial": "rgb-opt1-inline-secondRow", "unit": "RGB565", "diffs": 159, "blind": 138, "insns": [171, 170]}
- {"trial": "rgb-opt1-inline-fourthRow-thirdRow", "unit": "RGB565", "diffs": 163, "blind": 148, "insns": [173, 170]}
- {"trial": "rgb-opt1-inline-cbBlock-crBlock-fourthRow", "unit": "RGB565", "diffs": 104, "blind": 17, "insns": [170, 170]}
- {"trial": "rgb-opt1-stored-rows", "unit": "RGB565", "diffs": 168, "blind": 161, "insns": [166, 170]}
- {"trial": "rgb-opt1-cursor", "unit": "RGB565", "diffs": 166, "blind": 155, "insns": [167, 170]}
- {"trial": "rgb-opt1-assign-store", "unit": "RGB565", "diffs": 112, "blind": 13, "insns": [170, 170]}
- {"trial": "rgb-opt0-baseline", "unit": "RGB565", "diffs": 228, "blind": 216, "insns": [230, 170]}
- {"trial": "rgb-opt0-stored-rows", "unit": "RGB565", "diffs": 190, "blind": 188, "insns": [191, 170]}
- {"trial": "rgb-opt0-assign-store", "unit": "RGB565", "diffs": 213, "blind": 211, "insns": [215, 170]}
- {"trial": "rgb-opt0-inline-cbBlock-crBlock-fourthRow", "unit": "RGB565", "diffs": 212, "blind": 211, "insns": [213, 170]}
- {"trial": "rgb-opt1-case-converter-first", "unit": "RGB565", "diffs": 112, "blind": 13, "insns": [170, 170]}
- {"trial": "rgb-opt1-case-converter-last", "unit": "RGB565", "diffs": 111, "blind": 13, "insns": [170, 170]}
- {"trial": "rgb-opt1-reverse-all-pointers", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-reverse-all-and-outer", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-initialized", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-const-state", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-const-buffer", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-late-state", "unit": "RGB565", "diffs": 169, "blind": 167, "insns": [166, 170]}
- {"trial": "rgb-opt1-signed-count", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-tail-swap-addends", "unit": "RGB565", "diffs": 54, "blind": 7, "insns": [170, 170]}
- {"trial": "rgb-opt1-tail-direct-width-height", "unit": "RGB565", "diffs": 64, "blind": 30, "insns": [172, 170]}
- {"trial": "rgb-opt1-tail-rounded-locals", "unit": "RGB565", "diffs": 51, "blind": 5, "insns": [170, 170]}
- {"trial": "rgb-opt1-tail-padding-locals", "unit": "RGB565", "diffs": 55, "blind": 7, "insns": [170, 170]}
- {"trial": "rgb-opt1-tail-remainders-locals", "unit": "RGB565", "diffs": 57, "blind": 18, "insns": [170, 170]}
- {"trial": "rgb-opt1-tail-rounded-assign-back", "unit": "RGB565", "diffs": 52, "blind": 5, "insns": [170, 170]}
- {"trial": "rgb-opt1-round-swap-loads", "unit": "RGB565", "diffs": 51, "blind": 5, "insns": [170, 170]}
- {"trial": "rgb-opt1-round-swap-rounds", "unit": "RGB565", "diffs": 57, "blind": 12, "insns": [170, 170]}
- {"trial": "rgb-opt1-round-swap-addends", "unit": "RGB565", "diffs": 57, "blind": 7, "insns": [170, 170]}
- {"trial": "rgb-opt1-round-multiply-first", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-shape-tail-helper", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-shape-case0-outer", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-shape-count-direct", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-shape-dims-outer", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-shape-case3-outer", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-entry-021", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-entry-102", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-entry-120", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-entry-201", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-entry-210", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-finalinline-cbBlock", "unit": "RGB565", "diffs": 58, "blind": 16, "insns": [170, 170]}
- {"trial": "rgb-opt1-finalinline-crBlock", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-finalinline-cbBlock-crBlock", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-finalinline-fourthRow-cbBlock-crBlock", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-finalinline-fourthRow-crBlock", "unit": "RGB565", "diffs": 56, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-finalinline-secondRow", "unit": "RGB565", "diffs": 57, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-finalinline-fourthRow", "unit": "RGB565", "diffs": 59, "blind": 13, "insns": [170, 170]}
- {"trial": "rgb-opt1-work-copy", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-state-copy", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-state-void", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-state-array", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-buffer-array", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-buffer-s8", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-quotient-divisor-unsigned", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-mod-divisor-long", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-all-unique-first", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-all-unique-last", "unit": "RGB565", "diffs": 17, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-all-unique-between", "unit": "RGB565", "diffs": 17, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-unique-tail-swap-addends", "unit": "RGB565", "diffs": 16, "blind": 7, "insns": [170, 170]}
- {"trial": "rgb-opt1-unique-tail-rounded-locals", "unit": "RGB565", "diffs": 18, "blind": 5, "insns": [170, 170]}
- {"trial": "rgb-opt1-unique-tail-padding-locals", "unit": "RGB565", "diffs": 22, "blind": 7, "insns": [170, 170]}
- {"trial": "rgb-opt1-unique-tail-remainders-locals", "unit": "RGB565", "diffs": 27, "blind": 18, "insns": [170, 170]}
- {"trial": "rgb-opt1-unique-tail-rounded-assign-back", "unit": "RGB565", "diffs": 19, "blind": 5, "insns": [170, 170]}
- {"trial": "rgb-opt1-unique-round-swap-addends", "unit": "RGB565", "diffs": 25, "blind": 7, "insns": [170, 170]}
- {"trial": "rgb-opt1-case3-operand-reverse", "unit": "RGB565", "diffs": 17, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-case3-shift-spelling", "unit": "RGB565", "compile": "FAIL"}
- {"trial": "rgb-opt1-case3-shift-fixed", "unit": "RGB565", "diffs": 17, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-case3-mode-u32", "unit": "RGB565", "diffs": 14, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-case3-offset-local", "unit": "RGB565", "diffs": 17, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-case3-cb-before-second", "unit": "RGB565", "diffs": 17, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-case3-cr-before-second", "unit": "RGB565", "diffs": 17, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-case3-compute-before-converters", "unit": "RGB565", "diffs": 14, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-case3-second-after-stores", "unit": "RGB565", "diffs": 17, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-case3-array-index", "unit": "RGB565", "diffs": 17, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-round2-dividend-updates", "unit": "RGB565", "diffs": 22, "blind": 15, "insns": [170, 170]}
- {"trial": "rgb-opt1-round2-quotient-locals", "unit": "RGB565", "diffs": 22, "blind": 8, "insns": [170, 170]}
- {"trial": "rgb-opt1-round2-s32-rounded", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-round2-dimension-copy", "unit": "RGB565", "diffs": 22, "blind": 15, "insns": [170, 170]}
- {"trial": "rgb-current-inspect", "unit": "RGB565", "diffs": 22, "blind": 15, "insns": [170, 170]}
- {"trial": "rgb-opt1-round3-reverse-round-decls", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-round3-separate-round-decls", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-round3-height-first", "unit": "RGB565", "diffs": 24, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-round3-width-reuse", "unit": "RGB565", "compile": "FAIL"}
- {"trial": "rgb-opt1-round3-height-reuse", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-round3-both-reuse", "unit": "RGB565", "diffs": 16, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-round3-swap-width-expr", "unit": "RGB565", "diffs": 23, "blind": 8, "insns": [170, 170]}
- {"trial": "rgb-opt1-round3-swap-height-expr", "unit": "RGB565", "diffs": 16, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-round3-swap-both-expr", "unit": "RGB565", "diffs": 22, "blind": 4, "insns": [170, 170]}
- {"trial": "rgb-s32-rounding-inspect", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-boolean-0", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-boolean-1", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-boolean-2", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-boolean-3", "unit": "RGB565", "diffs": 16, "blind": 4, "insns": [170, 170]}
- {"trial": "rgb-opt1-boolean-4", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-boolean-5", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-dimtypes-s32-u32", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-dimtypes-s32-s16", "unit": "RGB565", "diffs": 21, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-dimtypes-s32-u16", "unit": "RGB565", "diffs": 21, "blind": 5, "insns": [170, 170]}
- {"trial": "rgb-opt1-dimtypes-u32-s32", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-dimtypes-u32-u32", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-dimtypes-u32-s16", "unit": "RGB565", "diffs": 21, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-dimtypes-u32-u16", "unit": "RGB565", "diffs": 21, "blind": 5, "insns": [170, 170]}
- {"trial": "rgb-opt1-dimtypes-s16-s32", "unit": "RGB565", "diffs": 21, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-dimtypes-s16-u32", "unit": "RGB565", "diffs": 21, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-dimtypes-s16-s16", "unit": "RGB565", "diffs": 21, "blind": 4, "insns": [170, 170]}
- {"trial": "rgb-opt1-dimtypes-s16-u16", "unit": "RGB565", "diffs": 16, "blind": 3, "insns": [170, 170]}
- {"trial": "rgb-opt1-dimtypes-u16-s32", "unit": "RGB565", "diffs": 21, "blind": 7, "insns": [170, 170]}
- {"trial": "rgb-opt1-dimtypes-u16-u32", "unit": "RGB565", "diffs": 21, "blind": 7, "insns": [170, 170]}
- {"trial": "rgb-opt1-dimtypes-u16-s16", "unit": "RGB565", "diffs": 16, "blind": 3, "insns": [170, 170]}
- {"trial": "rgb-opt1-dimtypes-u16-u16", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-0", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-1", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-2", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-3", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-4", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-5", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-01", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-02", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-03", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-04", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-05", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-12", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-13", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-14", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-15", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-23", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-24", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-25", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-34", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-35", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-45", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-012", "unit": "RGB565", "diffs": 14, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-013", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-014", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-015", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-023", "unit": "RGB565", "diffs": 14, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-024", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-025", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-034", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-035", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-045", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-123", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-124", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-125", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-134", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-135", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-145", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-234", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-235", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-245", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
- {"trial": "rgb-opt1-minhoist-345", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-real-round-helper-0", "unit": "RGB565", "diffs": 14, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-real-round-helper-1", "unit": "RGB565", "diffs": 21, "blind": 12, "insns": [170, 170]}
- {"trial": "rgb-opt1-real-round-helper-2", "unit": "RGB565", "diffs": 14, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-real-round-helper-3", "unit": "RGB565", "diffs": 19, "blind": 15, "insns": [170, 170]}
- {"trial": "RGBA8-opt1-baseline", "unit": "RGBA8", "diffs": 116, "blind": 21, "insns": [170, 170]}
- {"trial": "RGBA8-opt1-global-source-order", "unit": "RGBA8", "diffs": 14, "blind": 6, "insns": [170, 170]}
- {"trial": "RGBA8-opt1-s32-rounds", "unit": "RGBA8", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "RGBA8-opt1-signed-dimensions-quotient-last", "unit": "RGBA8", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "RGBA8-opt1-swap-addends", "unit": "RGBA8", "diffs": 13, "blind": 4, "insns": [170, 170]}
- {"trial": "RGBA8-opt1-opt0", "unit": "RGBA8", "diffs": 238, "blind": 231, "insns": [240, 170]}
- {"trial": "Y8U8V8-opt1-baseline", "unit": "Y8U8V8", "diffs": 134, "blind": 27, "insns": [196, 196]}
- {"trial": "Y8U8V8-opt1-global-source-order", "unit": "Y8U8V8", "diffs": 28, "blind": 12, "insns": [196, 196]}
- {"trial": "Y8U8V8-opt1-s32-rounds", "unit": "Y8U8V8", "compile": "FAIL"}
- {"trial": "Y8U8V8-opt1-signed-dimensions-quotient-last", "unit": "Y8U8V8", "compile": "FAIL"}
- {"trial": "Y8U8V8-opt1-swap-addends", "unit": "Y8U8V8", "diffs": 26, "blind": 8, "insns": [196, 196]}
- {"trial": "Y8U8V8-opt1-opt0", "unit": "Y8U8V8", "diffs": 263, "blind": 259, "insns": [265, 196]}
- {"trial": "rgb-opt1-shiftround-1", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-shiftround-2", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-shiftround-3", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-shiftround-4", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-shiftround-5", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-shiftround-6", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-shiftround-7", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-shiftround-8", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-shiftround-9", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-shiftround-10", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-shiftround-11", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-shiftround-12", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-shiftround-13", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-shiftround-14", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-shiftround-15", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-round4-width-only", "unit": "RGB565", "diffs": 14, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-round4-height-only", "unit": "RGB565", "diffs": 24, "blind": 9, "insns": [170, 170]}
- {"trial": "rgb-opt1-round4-height-only-separate", "unit": "RGB565", "diffs": 14, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-round4-width-only-quot", "unit": "RGB565", "diffs": 14, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-round4-height-only-quot", "unit": "RGB565", "diffs": 22, "blind": 8, "insns": [170, 170]}
- {"trial": "rgb-opt1-round4-height-unsigned", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
- {"trial": "rgb-opt1-asymmetric-u32-1", "unit": "RGB565", "diffs": 22, "blind": 12, "insns": [170, 170]}
- {"trial": "rgb-opt1-asymmetric-u32-2", "unit": "RGB565", "diffs": 4, "blind": 4, "insns": [170, 170]}
- {"trial": "rgb-opt1-asymmetric-u32-3", "unit": "RGB565", "diffs": 13, "blind": 4, "insns": [170, 170]}
- {"trial": "rgb-opt1-asymmetric-rounded-1", "unit": "RGB565", "diffs": 23, "blind": 8, "insns": [170, 170]}
- {"trial": "rgb-opt1-asymmetric-rounded-2", "unit": "RGB565", "diffs": 16, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-asymmetric-rounded-3", "unit": "RGB565", "diffs": 22, "blind": 4, "insns": [170, 170]}
- {"trial": "rgb-opt1-asymmetric-only-1", "unit": "RGB565", "diffs": 22, "blind": 12, "insns": [170, 170]}
- {"trial": "rgb-opt1-asymmetric-only-2", "unit": "RGB565", "diffs": 4, "blind": 4, "insns": [170, 170]}
- {"trial": "rgb-opt1-asymmetric-only-3", "unit": "RGB565", "diffs": 13, "blind": 4, "insns": [170, 170]}
- {"trial": "rgb-opt1-last4-height-padding-after", "unit": "RGB565", "diffs": 4, "blind": 4, "insns": [170, 170]}
- {"trial": "rgb-opt1-last4-height-padding-before", "unit": "RGB565", "diffs": 21, "blind": 7, "insns": [170, 170]}
- {"trial": "rgb-opt1-last4-height-rounded-after", "unit": "RGB565", "diffs": 4, "blind": 4, "insns": [170, 170]}
- {"trial": "rgb-opt1-last4-both-round-before", "unit": "RGB565", "diffs": 16, "blind": 6, "insns": [170, 170]}
- {"trial": "rgb-opt1-last4-height-quot-after", "unit": "RGB565", "diffs": 22, "blind": 8, "insns": [170, 170]}
- {"trial": "rgb-opt1-last4-height-compare-unsigned", "unit": "RGB565", "diffs": 4, "blind": 4, "insns": [170, 170]}
- {"trial": "rgb-opt1-last4-height-compare-signed", "unit": "RGB565", "diffs": 4, "blind": 4, "insns": [170, 170]}
- {"trial": "rgb-opt1-last4-multiply-negative", "unit": "RGB565", "diffs": 4, "blind": 4, "insns": [170, 170]}
- {"trial": "rgb-opt1-last4-height-helper", "unit": "RGB565", "diffs": 4, "blind": 4, "insns": [170, 170]}
- {"trial": "rgb-opt1-width-round-height-pad-s32-s32-0", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
- {"trial": "rgb-opt1-width-round-height-pad-s32-s32-1", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
- {"trial": "rgb-opt1-width-round-height-pad-s32-u32-0", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
- {"trial": "rgb-opt1-width-round-height-pad-s32-u32-1", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
- {"trial": "rgb-opt1-width-round-height-pad-u32-s32-0", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
- {"trial": "rgb-opt1-width-round-height-pad-u32-s32-1", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
- {"trial": "rgb-opt1-width-round-height-pad-u32-u32-0", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
- {"trial": "rgb-opt1-width-round-height-pad-u32-u32-1", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
- {"trial": "rgb-exact-confirm", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
- {"trial": "rgb-exact-minhoist-012", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
- {"trial": "rgb-exact-minhoist-023", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
- {"trial": "RGBA8-exact-transfer", "unit": "RGBA8", "diffs": 0, "blind": 0, "insns": [170, 170]}
- {"trial": "Y8U8V8-exact-transfer", "unit": "Y8U8V8", "diffs": 0, "blind": 0, "insns": [196, 196]}
- {"trial": "RGB565-final-minimal", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
- {"trial": "RGBA8-final-minimal", "unit": "RGBA8", "diffs": 0, "blind": 0, "insns": [170, 170]}
- {"trial": "Y8U8V8-final-minimal", "unit": "Y8U8V8", "diffs": 0, "blind": 0, "insns": [196, 196]}
## Exact source and review
All three setters reach exact-name objdiff 100.0 and ctxdiff diffs 0 at target counts 170, 196, 170. Empty pools identical. RGB565 and Y8U8V8 reach 13/13; RGBA8 reaches 12/13 and retains its prior open 411 converter unchanged. Scope each optimization_level 1 push/pop to the setter only. No shared header edit or other converter body edit.
Changes are real converter pointer locals, reverse pointer declaration order, C89 declarations for the 411/422/420 cases before buffer/state, converter stores before row stores, a widened unsigned mode local for the 211 row stride, and separate roundedWidth and heightPadding calculations before the dimension stores. Y8U8V8 applies the same calculations to both dimension pairs, using 8 for widths and 4 for heights. Source groups 012 and 023 both preserve exactness; retain 012, which relocates fewer declarations than the all-case diagnostic.
Signed short dimension probes are semantically invalid for JPEG dimensions above 32767 and excluded from candidate selection. The unparenthesized row-shift probe failed compilation. Initial planar rounded-local probes violated C89 declaration placement and failed compilation; the final explicit assignments follow all declarations. No invalid or failed candidate is retained.
Instruction and symbol order verified independently before the Matching flips. Symorder ORDER OK for all three units, 13 identical text symbols each. RGB565 and Y8U8V8 are set Matching, pending full DOL verification; RGBA8 stays NonMatching.
Live gate.py currently lists optimization_level in NOTES as a per-function optimization review note, not HACKS. Report the actual final gate output; do not change the gate.
## Final scoped-optimization gate
Final source review confirms all 12 sibling converter bodies in each unit are byte-identical to origin/main. Each source contains exactly one push/optimization_level 1/pop scope surrounding its setter. No helper, header, artificial assembly or inventory change remains.
The signed height remainder is evaluated into heightPadding before the unsigned height quotient and after the width tile count, then width and height are stored in target order. This fixes both srwi scheduling and register reuse. JPEG dimensions are u16, so s32 roundedWidth fits for all input values; positive dimensions and pointer arithmetic preserve the original values.
Compiled unique source snapshots in the follow-up, excluding signed-short dimension diagnostics: {"RGB565": 200, "Y8U8V8": 7, "RGBA8": 9}. Frozen sources, objects, build diagnostics and disassemblies remain in /tmp/sol-x7-opt/. Initial and near-exact immutable MWCC captures are /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/sol-x7-opt-rgb and sol-x7-opt-rgb-round. The initial allocator simulator reproduces 96/96 nodes; it predicts buffer/state can swap only after broader declaration changes, implemented with actual C89 locals. The near-exact capture supplies the tail creation-order evidence.
Fresh ninja progress build/43U/report.json build/43U/ok succeeded. No other unit's report differs from the saved scoped-RGB checkpoint. RGB565 links all 6184 code bytes; Y8U8V8 links all 15948 code bytes, a total of 22132 newly linked bytes. Both units have no data sections and matched_data_percent 100.0. RGBA8 remains unlinked because its unchanged 411 converter is 82.70661. Three setters add 2144 exactly matched code bytes.
Final gate evidence from /tmp/sol-x7-opt-final-gate.log:
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] pool: IDENTICAL
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] objdiff: code 6184/6184 data None/None functions 13/13 fuzzy 100.0000 linked code 6184
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] instruction-exact functions: 13/13
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] section .text size 6184 match 100.0
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] baseline: code 5504/6184 data None functions 12 fuzzy 99.3312
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] pool: IDENTICAL
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] objdiff: code 15948/15948 data None/None functions 13/13 fuzzy 100.0000 linked code 15948
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] instruction-exact functions: 13/13
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] section .text size 15948 match 100.0
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] baseline: code 15164/15948 data None functions 12 fuzzy 99.6453
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] pool: IDENTICAL
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] objdiff: code 5628/6596 data None/None functions 12/13 fuzzy 97.4621 linked code 0
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] instruction-exact functions: 12/13
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] section .text size 6596 match 97.4621
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV411toRGBA8 82.70661
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] baseline: code 4948/6596 data None functions 11 fuzzy 96.8350
regressions vs baseline: 0
global matched_code_percent: 97.58331 -> 97.65490
global fuzzy_match_percent: 99.89996 -> 99.90462
global complete_code_percent: 88.95958 -> 89.69850
global matched_data_percent: 100.00000 -> 100.00000
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
review note: libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565.c: per-function optimization pragma (levers 26: orchestrator checks the per-use address recompute evidence) (+1 net), e.g. #pragma optimization_level 1
review note: libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8.c: per-function optimization pragma (levers 26: orchestrator checks the per-use address recompute evidence) (+1 net), e.g. #pragma optimization_level 1
review note: libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.c: per-function optimization pragma (levers 26: orchestrator checks the per-use address recompute evidence) (+1 net), e.g. #pragma optimization_level 1
note: config touched: configure.py (orchestrator reviews every config/symbols change)
GATE PASS
```
No automatic pragma failure occurred. The three actual gate lines are review notes for per-function optimization pragmas. No gate or external tool was edited. Final DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d.
Local RGB565 exact-setter commit: 5315fa04. The near-exact allocator simulator reproduces 95/95 virtual registers. Y8U8V8 is committed next with both fully exact unit Matching flips; the final gate above covers this source and configuration.
Local Y8U8V8 exact-setter and Matching-flips commit: 9bb9d719. The RGBA8 setter is exact and committed next; its unchanged 411 converter remains open, so RGBA8 stays NonMatching. All final source was independently rebuilt and gated before these local commits; commits introduce no further code changes.

View File

@@ -0,0 +1,180 @@
# sol-y5 AddressEdit attempts
Base d558bb14, branch agent/w1009/data-d11, 43U only. Unslop and writing-for-agents applied.
Pool first: identical 57 strings. Baseline exact 91/94, data 2560/2560. update_friendinfo 2/38, get_friendinfo 68/84 with 82 source instructions, create 331/820 with 818 source instructions.
History read: sol-common, brief-v2, all levers, effort-policy, scene4, data-d7, a23m/a23h, gk3, f5/f5b, fz16, lv19, agg, register-sweep logs and sol-tiny. Avoid repeating standalone getter, record/name pointer, helper parameter-order, copy-result, named-pane setter, root accessor and margin-only trials. New rounds combine destination provenance with scoped optimization, then replace the prior output-reference formatting helper with a natural pointer return.
Verified debugger capture update_friendinfo__Q33ipl5scene11AddressEditFv-20261008-195401 against current whole source and object SHA256. In backend-01, destination addi is already before source addi; backend-04 keeps that order. Only this and global-record base survive allocation, so declaration order cannot steer those call arguments.
- update-scoped-optimization-level-0: update_friendinfo 44 differing, 46/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-scoped-optimization-level-0.cpp, SHA256 07fe1d8a61c5.
- update-scoped-optimization-level-1: update_friendinfo 40 differing, 44/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-scoped-optimization-level-1.cpp, SHA256 a54d23a09a91.
- update-scoped-optimization-level-2: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-scoped-optimization-level-2.cpp, SHA256 45d0437b8220.
- update-scoped-optimization-level-3: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-scoped-optimization-level-3.cpp, SHA256 5a5255458877.
- update-scoped-ppc-iro-level-0: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-scoped-ppc-iro-level-0.cpp, SHA256 3de0470aacc5.
- update-scoped-ppc-iro-level-1: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-scoped-ppc-iro-level-1.cpp, SHA256 d1c3337c6ed9.
- update-sized-attr-pointer: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-sized-attr-pointer.cpp, SHA256 34c895908092.
- update-sized-attr-reference: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-sized-attr-reference.cpp, SHA256 02c58c9cf0af.
- update-sized-record-pointer: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-sized-record-pointer.cpp, SHA256 7d72b00d5b21.
- get-prior-output-reference-seed: get_friendinfo 42 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-prior-output-reference-seed.cpp, SHA256 a86fb6732c7f.
- get-return-display-mutable-ref: get_friendinfo 42 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-return-display-mutable-ref.cpp, SHA256 a032b77713c5.
- get-return-name-display-mutable-ref: get_friendinfo 42 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-return-name-display-mutable-ref.cpp, SHA256 6cae1a05866b.
- get-return-display-mutable-ptr: get_friendinfo 42 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-return-display-mutable-ptr.cpp, SHA256 072404ff5e52.
- get-return-name-display-mutable-ptr: get_friendinfo 42 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-return-name-display-mutable-ptr.cpp, SHA256 143c291689e5.
- get-baseline-scoped-optimization-level-0: get_friendinfo 101 differing, 104/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-baseline-scoped-optimization-level-0.cpp, SHA256 79c78014399f.
- get-baseline-scoped-optimization-level-1: get_friendinfo 77 differing, 88/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-baseline-scoped-optimization-level-1.cpp, SHA256 b409c39bd7ea.
- get-baseline-scoped-optimization-level-2: get_friendinfo 64 differing, 82/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-baseline-scoped-optimization-level-2.cpp, SHA256 ea6745938426.
- get-baseline-scoped-optimization-level-3: get_friendinfo 64 differing, 82/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-baseline-scoped-optimization-level-3.cpp, SHA256 1a01272a4f6e.
- get-baseline-scoped-ppc-iro-level-0: get_friendinfo 64 differing, 82/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-baseline-scoped-ppc-iro-level-0.cpp, SHA256 210f416185a4.
- get-baseline-scoped-ppc-iro-level-1: get_friendinfo 64 differing, 82/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-baseline-scoped-ppc-iro-level-1.cpp, SHA256 93e1154ab4a1.
- get-pointer-return-scoped-optimization-level-0: get_friendinfo 110 differing, 116/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-pointer-return-scoped-optimization-level-0.cpp, SHA256 6e6379f31bef.
- get-pointer-return-scoped-optimization-level-1: get_friendinfo 88 differing, 93/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-pointer-return-scoped-optimization-level-1.cpp, SHA256 5367a1f0ba04.
- get-pointer-return-scoped-optimization-level-2: get_friendinfo 40 differing, 85/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-pointer-return-scoped-optimization-level-2.cpp, SHA256 095e5482d3a1.
- get-pointer-return-scoped-optimization-level-3: get_friendinfo 40 differing, 85/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-pointer-return-scoped-optimization-level-3.cpp, SHA256 2ad26b89fb19.
- get-pointer-return-scoped-ppc-iro-level-0: get_friendinfo 40 differing, 85/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-pointer-return-scoped-ppc-iro-level-0.cpp, SHA256 6bf7041f0645.
- get-pointer-return-scoped-ppc-iro-level-1: get_friendinfo 40 differing, 85/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-pointer-return-scoped-ppc-iro-level-1.cpp, SHA256 235c749516fb.
- get-entry-name-text-string: get_friendinfo 39 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-entry-name-text-string.cpp, SHA256 f75c7fc483f1.
- get-entry-name-string-text: get_friendinfo 39 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-entry-name-string-text.cpp, SHA256 7aa00bc282d7.
- get-entry-text-name-string: get_friendinfo 39 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-entry-text-name-string.cpp, SHA256 26870d51fbf4.
- get-entry-text-string-name: get_friendinfo 39 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-entry-text-string-name.cpp, SHA256 ecd754118ea9.
- get-entry-string-name-text: get_friendinfo 39 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-entry-string-name-text.cpp, SHA256 cba1b7d9761f.
- get-entry-string-text-name: get_friendinfo 39 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-entry-string-text-name.cpp, SHA256 a470cda1b4f8.
- get-name-return-direct-optimization-level-2: get_friendinfo 22 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-direct-optimization-level-2.cpp, SHA256 0344e8566434.
- get-name-return-direct-optimization-level-3: get_friendinfo 22 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-direct-optimization-level-3.cpp, SHA256 0000b43adfa2.
- get-name-return-direct-ppc-iro-level-1: get_friendinfo 22 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-direct-ppc-iro-level-1.cpp, SHA256 2d0a89148d78.
- get-name-return-direct-ppc-iro-level-0: get_friendinfo 22 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-direct-ppc-iro-level-0.cpp, SHA256 7c8a810d72d5.
- get-name-return-local-optimization-level-2: get_friendinfo 22 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-local-optimization-level-2.cpp, SHA256 e38d83fe6ff8.
- get-name-return-local-optimization-level-3: get_friendinfo 22 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-local-optimization-level-3.cpp, SHA256 d38d865a9d36.
- get-name-return-local-ppc-iro-level-1: get_friendinfo 0 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-local-ppc-iro-level-1.cpp, SHA256 a726bf3ae9f4.
- get-name-return-local-ppc-iro-level-0: get_friendinfo 0 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-local-ppc-iro-level-0.cpp, SHA256 97a36d681932.
- get-name-return-reuse-name-optimization-level-2: get_friendinfo 22 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-reuse-name-optimization-level-2.cpp, SHA256 4fd8c5da7885.
- get-name-return-reuse-name-optimization-level-3: get_friendinfo 22 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-reuse-name-optimization-level-3.cpp, SHA256 8aaca28cdbfe.
- get-name-return-reuse-name-ppc-iro-level-1: get_friendinfo 0 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-reuse-name-ppc-iro-level-1.cpp, SHA256 9f4bc33974d8.
- get-name-return-reuse-name-ppc-iro-level-0: get_friendinfo 0 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-reuse-name-ppc-iro-level-0.cpp, SHA256 b7a67b585682.
- get-name-return-helper-optimization-level-2: get_friendinfo 2 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-helper-optimization-level-2.cpp, SHA256 3268ccf99f9e.
- get-name-return-helper-optimization-level-3: get_friendinfo 2 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-helper-optimization-level-3.cpp, SHA256 4ada855d0274.
- get-name-return-helper-ppc-iro-level-1: get_friendinfo 0 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-helper-ppc-iro-level-1.cpp, SHA256 4a107ba8d7c0.
- get-name-return-helper-ppc-iro-level-0: get_friendinfo 0 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-name-return-helper-ppc-iro-level-0.cpp, SHA256 d08af78be4d1.
- get-minimal-local-iro1: get_friendinfo 0 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-minimal-local-iro1.cpp, SHA256 557eb73d17f7.
- get-helper-outside-iro1: get_friendinfo 0 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-helper-outside-iro1.cpp, SHA256 8eca69772423.
- get-minimal-local-iro0: get_friendinfo 0 differing, 84/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-minimal-local-iro0.cpp, SHA256 235962f1bb76.
- get-minimal-name-direct-display-iro1: get_friendinfo 22 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-minimal-name-direct-display-iro1.cpp, SHA256 06c917dd6891.
- get-minimal-direct-name-display-iro1: get_friendinfo 65 differing, 83/84 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-get-minimal-direct-name-display-iro1.cpp, SHA256 ac9e090c4251.
- update-source-local-ppc-iro-level-1: update_friendinfo 0 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-source-local-ppc-iro-level-1.cpp, SHA256 bef14cfae1ab.
- update-source-local-ppc-iro-level-0: update_friendinfo 0 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-source-local-ppc-iro-level-0.cpp, SHA256 ea2ced8b8bee.
- update-source-local-optimization-level-2: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-source-local-optimization-level-2.cpp, SHA256 8ca0b74672dc.
- update-destination-local-ppc-iro-level-1: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-destination-local-ppc-iro-level-1.cpp, SHA256 e5ed5293388f.
- update-destination-local-ppc-iro-level-0: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-destination-local-ppc-iro-level-0.cpp, SHA256 d70fd6247d8f.
- update-destination-local-optimization-level-2: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-destination-local-optimization-level-2.cpp, SHA256 da2410410231.
- update-source-destination-locals-ppc-iro-level-1: update_friendinfo 0 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-source-destination-locals-ppc-iro-level-1.cpp, SHA256 49337de3c8e0.
- update-source-destination-locals-ppc-iro-level-0: update_friendinfo 0 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-source-destination-locals-ppc-iro-level-0.cpp, SHA256 dcdb92431691.
- update-source-destination-locals-optimization-level-2: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-source-destination-locals-optimization-level-2.cpp, SHA256 254fa6dad102.
- update-destination-source-locals-ppc-iro-level-1: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-destination-source-locals-ppc-iro-level-1.cpp, SHA256 2b384cc9fb5e.
- update-destination-source-locals-ppc-iro-level-0: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-destination-source-locals-ppc-iro-level-0.cpp, SHA256 7d027325c388.
- update-destination-source-locals-optimization-level-2: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-destination-source-locals-optimization-level-2.cpp, SHA256 c9573c5ed13d.
- update-attr-source-locals-ppc-iro-level-1: update_friendinfo 0 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-attr-source-locals-ppc-iro-level-1.cpp, SHA256 a39c81b83928.
- update-attr-source-locals-ppc-iro-level-0: update_friendinfo 0 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-attr-source-locals-ppc-iro-level-0.cpp, SHA256 f0c982596df4.
- update-attr-source-locals-optimization-level-2: update_friendinfo 2 differing, 38/38 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-update-attr-source-locals-optimization-level-2.cpp, SHA256 3baff148890b.
get_friendinfo exact handoff: scoped ppc_iro_level 1 plus separate name and display pointer locals preserves both addresses across FindPaneByName. Removed every formatting helper from the candidate. Fresh Ninja rebuild: objdiff 100.0%, ctxdiff 84/84, diffs 0, pool identical 57. Unit exact count 91 -> 92/94, matched code 23344 -> 23680/27112, data unchanged 2560/2560. Full gate pending until the remaining owned trials finish.
update_friendinfo exact handoff: scoped ppc_iro_level 1 preserves an explicit source-name local after memset. This changes source r4 materialization to precede destination r3, exactly as in the target. Destination-only local and reversed local order remain two differences even under IRO 1. Optimization level 2 still folds the source local and leaves two differences. Fresh Ninja rebuild: objdiff 100.0%, ctxdiff 38/38, diffs 0, pool identical 57. get_friendinfo stays exact 84/84. Unit exact count 92 -> 93/94, matched code 23680 -> 23832/27112, data unchanged 2560/2560. Full gate pending until create trials finish.
create optsweep completed with the original optsweep logic in a private copy that prefixes temporary paths with sol-y5 and prints every measurement. MEASURE src/scene/address/iplAddressEdit create__Q33ipl5scene11AddressEditFv [base] insns 818/820 diff 331; MEASURE src/scene/address/iplAddressEdit create__Q33ipl5scene11AddressEditFv [optimization_level 0] insns 1271/820 diff 1246; MEASURE src/scene/address/iplAddressEdit create__Q33ipl5scene11AddressEditFv [optimization_level 1] insns 840/820 diff 798; MEASURE src/scene/address/iplAddressEdit create__Q33ipl5scene11AddressEditFv [optimization_level 2] insns 818/820 diff 567; MEASURE src/scene/address/iplAddressEdit create__Q33ipl5scene11AddressEditFv [optimization_level 3] insns 819/820 diff 326; MEASURE src/scene/address/iplAddressEdit create__Q33ipl5scene11AddressEditFv [ppc_iro_level 0] insns 821/820 diff 786; MEASURE src/scene/address/iplAddressEdit create__Q33ipl5scene11AddressEditFv [ppc_iro_level 1] insns 819/820 diff 227;
- create-baseline-ppc-iro-level-1: create 227 differing, 819/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-baseline-ppc-iro-level-1.cpp, SHA256 4d3221707207.
- create-baseline-optimization-level-3: create 326 differing, 819/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-baseline-optimization-level-3.cpp, SHA256 a7405b868f2b.
- create-baseline-ppc-iro-level-0: create 227 differing, 819/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-baseline-ppc-iro-level-0.cpp, SHA256 95b383f766ff.
- create-separate-text-before-lookups-ppc-iro-level-1: create 52 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-separate-text-before-lookups-ppc-iro-level-1.cpp, SHA256 200ac3c219db.
- create-separate-text-before-lookups-optimization-level-3: create 331 differing, 818/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-separate-text-before-lookups-optimization-level-3.cpp, SHA256 aced9c281ecb.
- create-separate-text-before-lookups-ppc-iro-level-0: create 52 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-separate-text-before-lookups-ppc-iro-level-0.cpp, SHA256 77bcc8fbca26.
- create-reuse-text-before-lookups-ppc-iro-level-1: create 52 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-reuse-text-before-lookups-ppc-iro-level-1.cpp, SHA256 c13700d5b923.
- create-reuse-text-before-lookups-optimization-level-3: create 326 differing, 819/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-reuse-text-before-lookups-optimization-level-3.cpp, SHA256 fd7c4b5cc785.
- create-reuse-text-before-lookups-ppc-iro-level-0: create 52 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-reuse-text-before-lookups-ppc-iro-level-0.cpp, SHA256 817c222a74ac.
- create-direct-mode-named-margins: create 46 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-named-margins.cpp, SHA256 fa2c5bd46915.
- create-direct-mode-named-margins-entry-pane-animator-text: create 46 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-named-margins-entry-pane-animator-text.cpp, SHA256 438cf5649216.
- create-direct-mode-named-margins-entry-pane-text-animator: create 42 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-named-margins-entry-pane-text-animator.cpp, SHA256 478d431dc62e.
- create-direct-mode-named-margins-entry-animator-pane-text: create 46 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-named-margins-entry-animator-pane-text.cpp, SHA256 d55bab74cbbd.
- create-direct-mode-named-margins-entry-animator-text-pane: create 46 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-named-margins-entry-animator-text-pane.cpp, SHA256 512ef66957d1.
- create-direct-mode-named-margins-entry-text-pane-animator: create 42 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-named-margins-entry-text-pane-animator.cpp, SHA256 a836cd205311.
- create-direct-mode-named-margins-entry-text-animator-pane: create 42 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-named-margins-entry-text-animator-pane.cpp, SHA256 9381cc2ce1a3.
- create-named-mode-literal-margins: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-named-mode-literal-margins.cpp, SHA256 eca96c52d729.
- create-named-mode-literal-margins-entry-pane-animator-text: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-named-mode-literal-margins-entry-pane-animator-text.cpp, SHA256 f5ae2fdbefc1.
- create-named-mode-literal-margins-entry-pane-text-animator: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-named-mode-literal-margins-entry-pane-text-animator.cpp, SHA256 f2a6b9ac9d74.
- create-named-mode-literal-margins-entry-animator-pane-text: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-named-mode-literal-margins-entry-animator-pane-text.cpp, SHA256 9cb666aa2e12.
- create-named-mode-literal-margins-entry-animator-text-pane: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-named-mode-literal-margins-entry-animator-text-pane.cpp, SHA256 738ebdbb3fb7.
- create-named-mode-literal-margins-entry-text-pane-animator: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-named-mode-literal-margins-entry-text-pane-animator.cpp, SHA256 70c760a416a2.
- create-named-mode-literal-margins-entry-text-animator-pane: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-named-mode-literal-margins-entry-text-animator-pane.cpp, SHA256 265d6d7cad2f.
- create-direct-mode-literal-margins: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-literal-margins.cpp, SHA256 127056268082.
- create-direct-mode-literal-margins-entry-pane-animator-text: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-literal-margins-entry-pane-animator-text.cpp, SHA256 dee301022c71.
- create-direct-mode-literal-margins-entry-pane-text-animator: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-literal-margins-entry-pane-text-animator.cpp, SHA256 776e39bfcca0.
- create-direct-mode-literal-margins-entry-animator-pane-text: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-literal-margins-entry-animator-pane-text.cpp, SHA256 3b76e97f6828.
- create-direct-mode-literal-margins-entry-animator-text-pane: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-literal-margins-entry-animator-text-pane.cpp, SHA256 b76c60c3bc20.
- create-direct-mode-literal-margins-entry-text-pane-animator: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-literal-margins-entry-text-pane-animator.cpp, SHA256 9db1dabf637c.
- create-direct-mode-literal-margins-entry-text-animator-pane: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-direct-mode-literal-margins-entry-text-animator-pane.cpp, SHA256 ce29a16f5304.
- create-balloon-factory-ref-plain: create 800 differing, 812/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-balloon-factory-ref-plain.cpp, SHA256 866de4b8d28f.
- create-balloon-factory-ref-const: create 800 differing, 812/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-balloon-factory-ref-const.cpp, SHA256 b3429cbb6c78.
- create-balloon-factory-ptr-plain: create 800 differing, 812/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-balloon-factory-ptr-plain.cpp, SHA256 8a970850cfb3.
- create-balloon-factory-ptr-const: create 800 differing, 812/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-balloon-factory-ptr-const.cpp, SHA256 74c97b86a7a6.
- create-balloon-aspect-margin-ternary: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-balloon-aspect-margin-ternary.cpp, SHA256 012f5661d66e.
- create-balloon-aspect-margin-branch: create 64 differing, 824/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-balloon-aspect-margin-branch.cpp, SHA256 703cf89aa9f9.
- create-balloon-aspect-margin-local: create 64 differing, 824/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-balloon-aspect-margin-local.cpp, SHA256 0354014c2afb.
- create-margin-type-const-f32: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-margin-type-const-f32.cpp, SHA256 9927bc66db1c.
- create-margin-type-const-f32reference: create 42 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-margin-type-const-f32reference.cpp, SHA256 0f842cf1947c.
- create-margin-type-f64: create 44 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-margin-type-f64.cpp, SHA256 18d584e5df26.
- create-margin-type-const-f64: create 801 differing, 810/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-margin-type-const-f64.cpp, SHA256 d7c4c39440eb.
- create-margin-type-u32: create 798 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-margin-type-u32.cpp, SHA256 ba1353836c25.
- create-margin-type-s32: create 802 differing, 822/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-margin-type-s32.cpp, SHA256 de222a671141.
- create-margin-local-factory: create 65 differing, 822/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-margin-local-factory.cpp, SHA256 08dd002edab5.
- create-balloon-own-margins-default: create 65 differing, 822/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-balloon-own-margins-default.cpp, SHA256 cb99ef71c307.
- create-balloon-own-margins-ppc-iro-level-1: create 65 differing, 822/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-balloon-own-margins-ppc-iro-level-1.cpp, SHA256 8660c87cd069.
- create-balloon-own-margins-optimization-level-2: create 65 differing, 822/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-balloon-own-margins-optimization-level-2.cpp, SHA256 4336be629b4b.
- create-balloon-own-margins-optimization-level-3: create 65 differing, 822/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-balloon-own-margins-optimization-level-3.cpp, SHA256 e1dbeacbdbd2.
- create-ui-helpers-messages-default: create 507 differing, 784/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-ui-helpers-messages-default.cpp, SHA256 d7d9ce1cac06.
- create-ui-helpers-messages-caller-iro1: create 507 differing, 784/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-ui-helpers-messages-caller-iro1.cpp, SHA256 3937e7b4ed95.
- create-ui-helpers-animations-default: create 42 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-ui-helpers-animations-default.cpp, SHA256 326900537595.
- create-ui-helpers-animations-caller-iro1: create 42 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-ui-helpers-animations-caller-iro1.cpp, SHA256 21679a93bc3f.
- create-ui-helpers-messages-animations-default: create 507 differing, 784/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-ui-helpers-messages-animations-default.cpp, SHA256 35f5882f028b.
- create-ui-helpers-messages-animations-caller-iro1: create 507 differing, 784/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-ui-helpers-messages-animations-caller-iro1.cpp, SHA256 2a9ff5241d12.
- create-all-entry-creation-ppc-iro-level-1: create 46 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-all-entry-creation-ppc-iro-level-1.cpp, SHA256 1994572ed13a.
- create-all-entry-creation-optimization-level-3: create 326 differing, 819/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-all-entry-creation-optimization-level-3.cpp, SHA256 411bf19c5314.
- create-all-entry-ui-first-ppc-iro-level-1: create 42 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-all-entry-ui-first-ppc-iro-level-1.cpp, SHA256 05dc204f9598.
- create-all-entry-ui-first-optimization-level-3: create 326 differing, 819/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-all-entry-ui-first-optimization-level-3.cpp, SHA256 7d4bbcba7856.
- create-all-entry-reverse-ppc-iro-level-1: create 59 differing, 820/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-all-entry-reverse-ppc-iro-level-1.cpp, SHA256 cdec656df90d.
- create-all-entry-reverse-optimization-level-3: create 337 differing, 819/820 instructions, 0 exact regressions, POOL IDENTICAL up to 57 (mine=57 base=57). Source /tmp/sol-y5-create-all-entry-reverse-optimization-level-3.cpp, SHA256 0a37ec3856f7.
Round closure: {'update_friendinfo': 24, 'get_friendinfo': 44, 'create': 60} successfully compiled distinct source trials, plus seven settings in the create optsweep.
Fresh origin/main a65cd4cb73a59ffe343e057c1df93113863417d6. Owned source/header changes since assigned base: none. No rebase or cross-worktree mutation.
create remains open. Best readable private candidate is IRO 1 with direct mode dispatch and text buffers bound before virtual pane lookups. Fresh object: 820/820, diffs 42, objdiff 99.256096%, unit data 2560/2560, all 93 pre-existing/new exact functions preserved. Saved only the create diff against the two exact-function commits at /mnt/drive2/projects/wii-ipl-workers/_luna-runs/best/sol-y5.iplAddressEdit.diff, then restored create to HEAD. No fuzzy source is retained.
create trace /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/sol-y5-create-iro1 is whole-object byte-identical to its Ninja build. vmap2 identifies pane/animator r23 -> r27 and name/display r24/r23 -> r25, plus mode r4 -> r0. Simulator reproduces 510/510. Unmodified regsim reports 6/6 only by moving @ compiler temps, which cannot be realized through declarations. A private simulator copy excluding @ temps and this reaches only 4/6 over 5000 attempts. Its result is structural for the current shape, not a usable declaration order. C89 entry declarations, typed margins, real message/animation and balloon boundaries did not close it. Target loads margins after the allocation guard; the 42-difference candidate loads them before allocation.
Retained source is only get_friendinfo and update_friendinfo. Both are ordinary pointer locals under scoped IRO 1, with no new helpers, assembly, carrier types, header changes or configure.py change. Unit remains unlinked while create is open. Final gate follows.
Final retained-source gate, one invocation of gate.py --quick:
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/scene/address/iplAddressEdit] pool: IDENTICAL
[src/scene/address/iplAddressEdit] objdiff: code 23832/27112 data 2560/2560 functions 93/94 fuzzy 99.7043 linked code 0
[src/scene/address/iplAddressEdit] instruction-exact functions: 93/94
[src/scene/address/iplAddressEdit] section .bss size 320 match 100.0
[src/scene/address/iplAddressEdit] section .data size 2152 match 100.0
[src/scene/address/iplAddressEdit] section .rodata size 40 match 100.0
[src/scene/address/iplAddressEdit] section .sdata size 24 match 100.0
[src/scene/address/iplAddressEdit] section .sdata2 size 24 match 100.0
[src/scene/address/iplAddressEdit] section .text size 27112 match 99.70434
[src/scene/address/iplAddressEdit] below 100: create__Q33ipl5scene11AddressEditFv 97.5561
[src/scene/address/iplAddressEdit] baseline: code 23344/27112 data 2560 functions 91 fuzzy 99.5528
regressions vs baseline: 0
global matched_code_percent: 97.84948 -> 97.86577
global fuzzy_match_percent: 99.90586 -> 99.90723
global complete_code_percent: 89.69850 -> 89.69850
global matched_data_percent: 100.00000 -> 100.00000
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
review note: src/scene/address/iplAddressEdit.cpp: per-function optimization pragma (levers 26: orchestrator checks the per-use address recompute evidence) (+2 net), e.g. #pragma ppc_iro_level 1
GATE PASS
```
Live build/43U/report.json regenerated after the gate. Final AddressEdit measures {"fuzzy_match_percent": 99.70434, "matched_code": "23832", "matched_code_percent": 87.90203, "matched_data": "2560", "matched_data_percent": 100.0, "matched_functions": 93, "matched_functions_percent": 98.93617, "total_code": "27112", "total_data": "2560", "total_functions": 94, "total_units": 1}. DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Exact gains +2 functions, +488 code bytes; data unchanged. create restored to original 818/820 and 97.5561%, 331 differences; best 42 is external evidence only.
Exact-function commits: 775fb5a1 get_friendinfo, 7888f068 update_friendinfo. Source scope is two function bodies and their scoped IRO settings. No remote writes or unrelated edits. Parent verification/acceptance remains required.

View File

@@ -0,0 +1,132 @@
# sol-y8 kbd_lib attempts
Scope: data-d12, agent/w1009/data-d12, baseline d558bb14. First requested Ninja object build passed. Fetch confirmed HEAD equals origin/main. Raw baseline exact 18/21; setter 4/42, processor 4/256, LED handler 3/25; pools identical.
History read: sol-common.md, brief-v2.md, levers.md, kbd_lib, rx6, rx6b, rx6c, perm4, fz15, structural-matching, opus-art, lv19, sol-tiny and data-d4 g2 attempt logs. Empty sol-tiny.kbd_lib.diff is unchanged baseline. Do not repeat pointer-local, old-first, declaration permutation, index casts, scalar mask merges, union field copies, status output helpers or duplicated callback-index experiments.
Fresh setter capture: /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/KBDSetModState-20261008-223655. Whole object matches baseline. Address v48=r5 and old word v49=r4 have an interference edge. Regsim reproduces 23/23 and reaches 0/2 desired colors with named-local reorder. Whole-unit optsweep optimization levels 0-3 and IRO 0-1 returned no leads.
| Trial | Setter diffs/insns | Processor diffs/insns | LED diffs/insns | Other exact losses |
| --- | --- | --- | --- | --- |
| led-optimization_level-0-if | 4/42 | 4/256 | 51/51 | 0 |
| led-optimization_level-0-else | 4/42 | 4/256 | 51/51 | 0 |
| led-optimization_level-0-switch | 4/42 | 4/256 | 51/51 | 0 |
| led-optimization_level-1-if | 4/42 | 4/256 | 35/35 | 0 |
| led-optimization_level-1-else | 4/42 | 4/256 | 35/35 | 0 |
| led-optimization_level-1-switch | 4/42 | 4/256 | 33/33 | 0 |
| led-optimization_level-2-if | 4/42 | 4/256 | 24/24 | 0 |
| led-optimization_level-2-else | 4/42 | 4/256 | 24/24 | 0 |
| led-optimization_level-2-switch | 4/42 | 4/256 | 3/25 | 0 |
| led-optimization_level-3-if | 4/42 | 4/256 | 23/23 | 0 |
| led-optimization_level-3-else | 4/42 | 4/256 | 23/22 | 0 |
| led-optimization_level-3-switch | 4/42 | 4/256 | 3/25 | 0 |
| led-ppc_iro_level-0-if | 4/42 | 4/256 | 9/25 | 0 |
| led-ppc_iro_level-0-else | 4/42 | 4/256 | 12/25 | 0 |
| led-ppc_iro_level-0-switch | 4/42 | 4/256 | 12/25 | 0 |
| led-ppc_iro_level-1-if | 4/42 | 4/256 | 25/23 | 0 |
| led-ppc_iro_level-1-else | 4/42 | 4/256 | 25/22 | 0 |
| led-ppc_iro_level-1-switch | 4/42 | 4/256 | 12/25 | 0 |
| mod-optimization_level-0 | 50/51 | 4/256 | 3/25 | 0 |
| mod-optimization_level-1 | 32/49 | 4/256 | 3/25 | 0 |
| mod-optimization_level-2 | 26/45 | 4/256 | 3/25 | 0 |
| mod-optimization_level-3 | 7/42 | 4/256 | 3/25 | 0 |
| mod-ppc_iro_level-0 | 7/42 | 4/256 | 3/25 | 0 |
| mod-ppc_iro_level-1 | 4/42 | 4/256 | 3/25 | 0 |
| mod-nested-plain | 4/42 | 4/256 | 3/25 | 0 |
| mod-nested-union | 4/42 | 4/256 | 3/25 | 0 |
| mod-nested-union-copy-load | 4/42 | 4/256 | 3/25 | 0 |
| mod-nested-overlay | 4/42 | 4/256 | 3/25 | 0 |
| mod-nested-overlay-union-load | 4/42 | 4/256 | 3/25 | 0 |
| mod-accessor-u32-load | 7/42 | 47/253 | 3/25 | 0 |
| mod-accessor-u32-store | 4/42 | 4/256 | 3/25 | 0 |
| mod-accessor-u32-both | 7/42 | 4/256 | 3/25 | 0 |
| mod-accessor-s32-load | 7/42 | 251/261 | 3/25 | 0 |
| mod-accessor-s32-store | 4/42 | 251/261 | 3/25 | 0 |
| mod-accessor-s32-both | 7/42 | 254/258 | 3/25 | 0 |
| mod-accessor-const-u32-load | 7/42 | 251/261 | 3/25 | 0 |
| mod-accessor-const-u32-store | 4/42 | 251/261 | 3/25 | 0 |
| mod-accessor-const-u32-both | 7/42 | 254/258 | 3/25 | 0 |
| mod-accessor-u8-load | 22/45 | 252/262 | 3/25 | 0 |
| mod-accessor-u8-store | 21/45 | 252/262 | 3/25 | 0 |
| mod-accessor-u8-both | 20/43 | 255/259 | 3/25 | 0 |
| mod-parameter-s32 | 5/42 | 254/259 | 3/25 | KBDResetChannel |
| mod-parameter-u8 | 4/42 | 256/261 | 3/25 | KBDResetChannel |
| mod-parameter-const-u32 | 4/42 | 254/259 | 3/25 | 0 |
| led-iro0-decls-callback-index-err | 4/42 | 4/256 | 9/25 | 0 |
| led-iro0-decls-callback-err-index | 4/42 | 4/256 | 9/25 | 0 |
| led-iro0-decls-index-callback-err | 4/42 | 4/256 | 9/25 | 0 |
| led-iro0-decls-index-err-callback | 4/42 | 4/256 | 9/25 | 0 |
| led-iro0-decls-err-callback-index | 4/42 | 4/256 | 9/25 | 0 |
| led-iro0-decls-err-index-callback | 4/42 | 4/256 | 9/25 | 0 |
| led-iro0-u32-pointer-null | 4/42 | 4/256 | 9/25 | 0 |
| led-iro0-u32-pointer-device | 4/42 | 4/256 | 9/25 | 0 |
| led-iro0-u32-value-null | 4/42 | 4/256 | 10/25 | 0 |
| led-iro0-u32-value-device | 4/42 | 4/256 | 10/25 | 0 |
| led-iro0-u32-direct-null | 4/42 | 4/256 | 0/25 | 0 |
| led-iro0-u32-direct-device | 4/42 | 4/256 | 0/25 | 0 |
| led-iro0-s32-pointer-null | 4/42 | 4/256 | 9/25 | 0 |
| led-iro0-s32-pointer-device | 4/42 | 4/256 | 9/25 | 0 |
| led-iro0-s32-value-null | 4/42 | 4/256 | 10/25 | 0 |
| led-iro0-s32-value-device | 4/42 | 4/256 | 10/25 | 0 |
| led-iro0-s32-direct-null | 4/42 | 4/256 | 0/25 | 0 |
| led-iro0-s32-direct-device | 4/42 | 4/256 | 0/25 | 0 |
| led-iro0-clean-index-uses | 4/42 | 4/256 | 0/25 | 0 |
| led-iro0-clean-index-init | 4/42 | 4/256 | 0/25 | 0 |
| led-iro0-clean-result-type | 4/42 | 4/256 | 0/25 | 0 |
| led-iro0-clean-direct-arg | compile failed | - | - | - |
## Retained LED handler match
The target preserves a success==TRUE if/else, supplies zero on the fallthrough and seven on the taken path, then rematerializes the mutable callback-table address. Default optimization folds the ordinary if/else into arithmetic or places a switch error block first. A function-scoped ppc_iro_level 0 preserves the target control flow. Removing the cached callback-record pointer fixes the remaining nine initial address/zero register differences. Direct table reads, a plain NULL guard and the existing per-slot index match all 25 instructions. Success remains exactly TRUE, rather than any nonzero value. Command release still precedes the callback guard and invocation.
Retained source uses u32 index, USBKBDErr err and direct index reads throughout. Normal requested Ninja build passed. ctxdiff and odiff each report 0/25 differences, equal 100-byte size. Exact-name objdiff is 100.0%; unit gains 18/21 -> 19/21 and matched code 4472 -> 4572 bytes. All four owned data sections remain 100%, total 5296/5296 bytes; pool identical. Other 20 functions unchanged. The modifier pair remains 4/42 and 4/256. No configure.py flip while two functions remain open.
The clean-direct-arg scratch generator removed index declarations in unrelated functions and failed compilation. That failed generator is excluded from source-attempt coverage. Whole-unit optimization sweep is diagnostic; only the scoped LED setting is retained.
## Modifier representation with scoped optimization
These trials combine the supported scoped settings with scalar/bitfield update forms. They test whether suppressing IRO copy/address rewriting retains an old-word virtual register before the destination address; the ordinary default-setting versions were already exhausted and are not repeated. All scratch compilations now include the retained exact LED handler.
| Trial | Setter diffs/insns | Processor diffs/insns | LED diffs/insns | Other exact losses |
| --- | --- | --- | --- | --- |
| mod-combo-ppc_iro_level-0-scalar-old | 7/42 | 5/256 | 0/25 | 0 |
| mod-combo-ppc_iro_level-0-scalar-new | 7/42 | 5/256 | 0/25 | 0 |
| mod-combo-ppc_iro_level-0-scalar-expression | 7/42 | 5/256 | 0/25 | 0 |
| mod-combo-ppc_iro_level-0-union-old-first | 7/42 | 4/256 | 0/25 | 0 |
| mod-combo-ppc_iro_level-0-union-old-copy | 6/42 | 7/256 | 0/25 | 0 |
| mod-combo-ppc_iro_level-0-union-physical-input | 7/42 | 4/256 | 0/25 | 0 |
| mod-combo-ppc_iro_level-0-scalar-with-physical-field | 7/42 | 5/256 | 0/25 | 0 |
| mod-combo-ppc_iro_level-0-field-physical | 7/42 | 47/253 | 0/25 | 0 |
| mod-combo-ppc_iro_level-0-field-copy | 7/42 | 4/256 | 0/25 | 0 |
| mod-combo-optimization_level-3-scalar-old | 7/42 | 5/256 | 0/25 | 0 |
| mod-combo-optimization_level-3-scalar-new | 7/42 | 5/256 | 0/25 | 0 |
| mod-combo-optimization_level-3-scalar-expression | 7/42 | 5/256 | 0/25 | 0 |
| mod-combo-optimization_level-3-union-old-first | 7/42 | 4/256 | 0/25 | 0 |
| mod-combo-optimization_level-3-union-old-copy | 6/42 | 7/256 | 0/25 | 0 |
| mod-combo-optimization_level-3-union-physical-input | 7/42 | 4/256 | 0/25 | 0 |
| mod-combo-optimization_level-3-scalar-with-physical-field | 7/42 | 5/256 | 0/25 | 0 |
| mod-combo-optimization_level-3-field-physical | 7/42 | 47/253 | 0/25 | 0 |
| mod-combo-optimization_level-3-field-copy | 7/42 | 4/256 | 0/25 | 0 |
| mod-combo-ppc_iro_level-1-scalar-old | 4/42 | 5/256 | 0/25 | 0 |
| mod-combo-ppc_iro_level-1-scalar-new | 7/42 | 5/256 | 0/25 | 0 |
| mod-combo-ppc_iro_level-1-scalar-expression | 7/42 | 5/256 | 0/25 | 0 |
| mod-combo-ppc_iro_level-1-union-old-first | 4/42 | 4/256 | 0/25 | 0 |
| mod-combo-ppc_iro_level-1-union-old-copy | 6/42 | 7/256 | 0/25 | 0 |
| mod-combo-ppc_iro_level-1-union-physical-input | 4/42 | 4/256 | 0/25 | 0 |
| mod-combo-ppc_iro_level-1-scalar-with-physical-field | 7/42 | 5/256 | 0/25 | 0 |
| mod-combo-ppc_iro_level-1-field-physical | 7/42 | 47/253 | 0/25 | 0 |
| mod-combo-ppc_iro_level-1-field-copy | 4/42 | 4/256 | 0/25 | 0 |
## Modifier result
Twenty new layout/accessor/parameter trials plus six scoped baseline settings and twenty-seven scoped representation combinations produced no accepted modifier improvement. Nested lock-processing/state records, union overlays and complete state copies preserve four differences. Returning an element from an inline accessor either preserves the four or adds earlier address swaps. Signature signedness/width/const trials regress inlined processor or sibling reset code. Supported low optimization settings leave seven register differences or unequal sizes. All rejected source remained in private /tmp/sol-y8-* files; retained setter/processor definitions are unchanged.
The direct-field variants under IRO 0/1 lose three instructions in the inlined processor. Scalar forms preserve 42/256 counts but alter insert shape. Physical union extraction continues to disappear into unnamed v48/v49, whose priority cannot be changed by local declaration order. Best remains baseline 4/42 and 4/256. No fuzzy-only modifier change is retained.
Private best diff will include the exact LED match only. Unit remains NonMatching at 19/21. Final gate recorded below.
## Final gate
Command: python3 /mnt/drive2/projects/wii-ipl-workers/_restore0928-tools/gate.py libs/RVL_SDK/src/kbd/kbd_lib --quick. Exit 0, GATE PASS. Full 43U build passed; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Instruction-exact and objdiff exact functions 19/21; code 4572/5764 bytes; data 5296/5296 bytes. Pools identical, all four data sections 100%. Global and unit regressions 0; net forbidden patterns 0; readability warnings 0. The gate flags the supported scoped pragma for orchestrator review. Target rematerializes callback-table base after the success/error branch, although no intervening call or write modifies the callback table; IRO 0 reproduces that repeated address computation and the target branch layout.
Raw gate output: /tmp/sol-y8-gate.log. Live report regenerated with Ninja progress build/43U/report.json. Private focused diff: /mnt/drive2/projects/wii-ipl-workers/_luna-runs/best/sol-y8.kbd_lib.diff. Retained source commit 56a9d48d. No Matching flip, because KBDSetModState and kbdProcMod remain nonexact. Worker handoff requires parent independent verification before landing.

View File

@@ -0,0 +1,128 @@
# sol-z1 UpdateThread integrity cleanup
Worktree `/mnt/drive2/projects/wii-ipl-workers/data-d10`, branch `agent/w1009/data-d10-c`, base `c723136f`. Own `src/BS2/BS2Update.c` and this log. Read sol-common, brief-v2, all levers, local AGENTS.md, effort policy, earlier UpdateThread notes, both sol-x8 rounds and sol-y3 log recovered with `git show 4925fde2:tools/decomp-assist/sol-y3.attempts.md`. Applied unslop and writing-for-agents. Fetched only the fork under `/tmp/wii-git.lock`. No push, PR, merge, rebase, subagents, shared header changes or other-worktree writes.
The explicit task authorizes committing this integrity cleanup even without an exact UpdateThread match. It overrides brief-v2's default instruction to restore nonexact source. The requested final gate is `gate.py src/BS2/BS2Update --quick`.
## Prior evidence
Do not repeat the logged restrict/const pointers, flag helpers, primitive/enum types, volatile-bank diagnostics, entry wrappers, whole-table seat indexing, bitfield views, cursors, source order variants or optimizer sweeps. sol-x8 and sol-y3 both already flattened the scratch carrier in their saved best. Neither source candidate was landed; main still has the carrier. The saved sol-y3 diff applies cleanly and already contains the required ordinary locals. This round independently verifies that order and commits the valid cleanup.
## Compiled trials
1. Fresh rebuild of HEAD: UpdateThread 335/913 differing, source 911 versus target 913 instructions, size 0xe3c versus 0xe44. No inherited source object used as measurement.
2. Apply sol-y3.BS2Update.diff: 6/913, equal 913 instructions and size 0xe44, pools 55/55 identical. All scratch members are separate ordinary locals. The three scheduling swaps are unchanged after cleanup.
3. Correct saved titleRegion indentation and remove extra blank lines: 6/913, 913/913.
4. Restore original static linkage for rc, VersionIOS, VersionMEM2, VersionES and ConsoleType: 6/913, 913/913. All other nine functions instruction exact. Keep this narrower change; the saved external-linkage edits were unnecessary.
5. Restore original external linkage of getSuffix: 6/913, 913/913. Keep original linkage; changing it was unnecessary.
6. Read a named ordinary attributes scalar after the diagnostic reports and before clearing Flags0, then test that value: 7/913, 913/913. Address add moves before the store, but load and bit test also precede it. Reject and restore trial 5.
No declaration permutation is needed: the supplied ordinary declarations already reproduce every target stack access. No carrier, dummy object, padding, helper that merely hoists locals, added pragma or assembly is retained. Configure remains NonMatching because UpdateThread is not exact.
## Target stack layout
Source declaration order: freeChannels, freeBlocks, freeInodes, ticketCount, productArea[8], titleId, updatePath[32], seatPath[32], DVDFileInfo file. MWCC assigns these independent objects the target offsets without a wrapper.
| Object | r1 offset | Size | Target use |
| --- | --- | --- | --- |
| freeChannels | 0x08 | 4 | Zero store, SCGetFreeChannelAppCount argument, channel limit load |
| freeBlocks | 0x0c | 4 | Zero store, NAND area output, available byte limit load |
| freeInodes | 0x10 | 4 | Zero store, NAND area output, inode limit load |
| ticketCount | 0x14 | 4 | ES_GetTicketViews output and count load |
| productArea | 0x18 | 8 | SCGetProductAreaString output and both strcat sources |
| titleId | 0x20 | 8 | ES_GetTitleId output; low word loaded at 0x24 |
| updatePath | 0x28 | 32 | Update path construction, entry lookup, report and DVDOpen |
| seatPath | 0x48 | 32 | Seat path construction, entry lookup, report and DVDOpen |
| file | 0x68 | 0x3c | DVD open/read arguments; length loaded at 0x9c |
Frame is 0xf0. LR slot is 0xf4. _savegpr_14/_restgpr_14 use r11 = r1 + 0xf0. The disassembly audit below records every explicit r1 access, including frame and LR operations.
## Remaining differences
913/913 instructions, equal 0xe44 size. Differences 442/443 exchange Flags0 clear and seat attribute address add. Differences 545/546 exchange constant-one load and selected seat address add. Differences 549/550 exchange selected output offset increment and seat size load. Registers and operands match otherwise. Ordinary stack objects do not remove these previously documented seat-memory scheduling dependencies.
## Final validation
Requested quick gate passed on the retained source. Full 43U build passed; DOL SHA1 is `26116613f624061ba99c8d1a299aaa6efa85670d`. Pools are identical. UpdateThread is 99.33625% fuzzy with 6 differences, not exact; unit remains 9/10 exact functions, code 400/4052, data 10488/10488, linked code 0. All data sections are 100%. Global regressions, forbidden additions and readability warnings are zero. Fresh `ninja progress build/43U/report.json` and ctxdiff confirm those results.
The only retained definition-level qualifiers are StartUpdate and CancelUpdate. Public BS2StartUpdate/BS2CancelUpdate APIs write them while UpdateThread polls them. Their target-proven independent zero stores and polling/exit schedule reproduce the saved best; all other unit functions remain exact. No use-site volatile cast was added.
DiscEntries is the actual existing 512-entry disc table at 0x80480000, stride 0x200. Target memset covers 0x40000 bytes and DVDReadPrio fills the table. The declaration follows the same ADDRESS convention as Entries/EntriesToImport in the existing header and adds no allocated section storage. Direct typed accesses restore the target logging address rematerialization. Combined seat/output initializers compute the same pointers as the former assignment-plus-increment statements. No operation, string, error path, counter or call argument changes meaning.
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/BS2/BS2Update] pool: IDENTICAL
[src/BS2/BS2Update] objdiff: code 400/4052 data 10488/10488 functions 9/10 fuzzy 99.4018 linked code 0
[src/BS2/BS2Update] instruction-exact functions: 9/10
[src/BS2/BS2Update] section .bss size 9056 match 100.0
[src/BS2/BS2Update] section .data size 1328 match 100.0
[src/BS2/BS2Update] section .sbss size 80 match 100.0
[src/BS2/BS2Update] section .sdata size 24 match 100.0
[src/BS2/BS2Update] section .text size 4052 match 99.40178
[src/BS2/BS2Update] below 100: UpdateThread 99.33625
[src/BS2/BS2Update] baseline: code 400/4052 data 10488 functions 9 fuzzy 95.7088
regressions vs baseline: 0
global matched_code_percent: 97.95043 -> 97.95043
global fuzzy_match_percent: 99.90734 -> 99.91234
global complete_code_percent: 89.90470 -> 89.90470
global matched_data_percent: 100.00000 -> 100.00000
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
review note: src/BS2/BS2Update.c: volatile object declaration (orchestrator checks the target really re-reads it) (+2 net), e.g. volatile u32 StartUpdate = 0;
GATE PASS
```
### Complete explicit stack-access audit
Target/source both 47 explicit stack instructions, equal at every ordinal.
```text
0 stwu r1, -0xf0(r1)
2 stw r0, 0xf4(r1)
3 addi r11, r1, 0xf0
15 addi r3, r1, 0x20
22 stw r15, 8(r1)
24 stw r15, 0xc(r1)
25 stw r15, 0x10(r1)
33 lwz r0, 0x24(r1)
79 addi r3, r1, 0x18
89 addi r3, r1, 0x28
92 addi r3, r1, 0x28
95 addi r3, r1, 0x28
96 addi r4, r1, 0x18
98 addi r3, r1, 0x28
115 addi r3, r1, 0x28
118 addi r3, r1, 0x28
133 addi r4, r1, 0x28
136 addi r3, r1, 0x28
137 addi r4, r1, 0x68
146 addi r3, r1, 0x68
185 addi r3, r1, 0x68
236 addi r4, r1, 0x68
248 lwz r0, 0x9c(r1)
290 addi r3, r1, 0x48
293 addi r3, r1, 0x48
296 addi r3, r1, 0x48
297 addi r4, r1, 0x18
299 addi r3, r1, 0x48
316 addi r3, r1, 0x48
319 addi r3, r1, 0x48
332 addi r4, r1, 0x48
335 addi r3, r1, 0x48
336 addi r4, r1, 0x68
344 addi r3, r1, 0x68
381 addi r3, r1, 0x68
472 addi r4, r1, 0x68
488 addi r6, r1, 0x14
499 lwz r0, 0x14(r1)
562 addi r3, r1, 8
570 addi r3, r1, 0xc
571 addi r4, r1, 0x10
579 lwz r4, 0xc(r1)
593 lwz r3, 0x10(r1)
601 lwz r0, 8(r1)
907 addi r11, r1, 0xf0
909 lwz r0, 0xf4(r1)
911 addi r1, r1, 0xf0
```

View File

@@ -15,3 +15,16 @@ Initial reconstruction uses the sibling tiString and tiUtil headers, real member
## character predicates
The sibling util declarations return bool, while target callers normalize an integer result. Guarded u32 declarations preserve every other translation unit and make all three predicates 16/16 with zero differences.
## inputChar (w1010 orchestrator probe) — indexed-store + dead-compare fossil
Orig mode==3 block (this->0x24==3) emits: `sth r6,0x10` (input[0]=0, r6=0 reused as
value), `cmplwi r4,0xa` (DEAD compare — no branch consumes it), then indexed stores
`slwi r0,r6,1; sthx r4,buf,r0; addi r6,1; slwi r0,r6,1; clrlwi r29,r6,0x10; sthx r5,buf,r0`
= input[i]=ch; i++; input[i]=0 with the index kept SYMBOLIC despite li i,0.
Ours: direct-offset `sth r4,0x10; li r29,1; sth r5,0x12` (125 vs 136 insns).
Tried: `input[i]=ch; i++; input[i]=0; count=i` — MWCC constant-folds i to 0,
re-emits direct offsets. Index must be runtime-opaque in orig (loop bound from a
call result, or a non-foldable form). Dead `cmplwi r4,0xa` matches the documented
dead-compare-fossil family (both-branch merge). Also: count lands in r29 via
clrlwi (u16) — count is i.
Unresolved: what source produces symbolic-index stores + dead compare.

View File

@@ -182,12 +182,10 @@ class WorkflowGuardTests(unittest.TestCase):
failures = check_report(report)
self.assertFalse(any("enc_dummy section .sbss" in failure for failure in failures))
@unittest.skipUnless(
(Path(__file__).resolve().parents[1] / "build/43U/report.json").is_file(),
"generated 43U report is not available",
)
def test_complete_report_schema_passes(self):
def complete_report(self):
report_path = Path(__file__).resolve().parents[1] / "build/43U/report.json"
if not report_path.is_file():
self.skipTest("generated 43U report is not available")
report = copy.deepcopy(json.loads(report_path.read_text(encoding="utf-8")))
def fill(measures):
@@ -230,7 +228,36 @@ class WorkflowGuardTests(unittest.TestCase):
function["fuzzy_match_percent"] = 100.0
for category in report["categories"]:
fill(category["measures"])
self.assertEqual(check_report(report), [])
return report
def test_complete_report_schema_passes(self):
self.assertEqual(check_report(self.complete_report()), [])
def test_missing_or_extra_unit_fails(self):
for total_units in (1027, 1029):
with self.subTest(total_units=total_units):
report = self.complete_report()
if total_units == 1027:
report["units"].pop()
else:
extra = copy.deepcopy(report["units"][-1])
extra["name"] += "/extra"
report["units"].append(extra)
failures = check_report(report)
self.assertIn(f"unit report length: {total_units}", failures)
self.assertIn(f"unit aggregate total_units: {total_units} != 1028", failures)
def test_wrong_unit_totals_fail(self):
for total_units in (1027, 1029):
with self.subTest(total_units=total_units):
report = self.complete_report()
delta = total_units - 1028
for field in ("total_units", "complete_units"):
report["measures"][field] = total_units
report["categories"][0]["measures"][field] += delta
failures = check_report(report)
self.assertIn(f"overall total_units: {total_units} != 1028", failures)
self.assertIn(f"category total_units: {total_units} != 1028", failures)
@unittest.skipUnless(
(Path(__file__).resolve().parents[1] / "build/43U/report.json").is_file(),