decomp(chansvm): VmBlobPackCommon per-phase locals (230 -> 47) #1297

Merged
coah80 merged 1 commits from agent/w0929/sol-m12-land into main 2026-10-09 01:01:20 +00:00
2 changed files with 303 additions and 142 deletions

View File

@@ -4994,30 +4994,47 @@ static inline void VmBlobCopyPadded(BlobHeader* parentBlob, const BlobHeader* sr
static vmBoolInt VmBlobPackCommon(CHANSVm* VmInst, CHANSVmObjHdr* VmParentObj, CHANSVmObjHdr* VmReturnObj, vmU32 flag) {
u32 packBuf[2];
s32 writeHexBufSize;
CHANSVmObjHdr* argArr;
CHANSVmObjHdr* measureStringObj;
s32 measureBlobCount;
u32 writeFmtPos;
u32 writeHexI;
BlobHeader* parentBlob;
CHANSVmObjHdr* argStr;
CHANSVmObjHdr* measureHexObj;
CHANSVmObjHdr* writeStringStrObj;
u32 writeIntegerValHigh;
CHANSVmObjHdr* writeHexStrObj;
u32 writeIntegerValLow;
u8* writeStringDest;
const wchar_t* fmtStr;
u8* writeHexSrcData;
u32 writeStringStrLen;
u32 fmtLen;
CHANSVmObjHdr* argArr;
u32 fmtPos;
u32 writeArgCount;
u8* writeHexDest;
s32 measureHexCount;
s32 writeIntegerCount;
BlobHeader* measureBlobSrcBlob;
u32 writeIntegerI;
s32 writeStringCount;
CHANSVmObjHdr* writeBlobObj;
u32 argCount;
CHANSVmObjHdr* measureBlobObj;
s32 writeBlobCopySize;
s32 measureIntegerCount;
CHANSVmObjHdr* writeIntegerIntObj;
BlobHeader* writeBlobSrcBlob;
u8* writeStringSrcData;
u32 writeStringCharCount;
u32 fmtPos;
u32 totalSize;
s32 count;
u32 i;
CHANSVmObjHdr* obj;
BlobHeader* srcBlob;
s32 copySize;
CHANSVmObjHdr* strObj;
u8* srcData;
u32 charCount;
u32 strLen;
CHANSVmObjHdr* intObj;
u32 valLow;
u32 valHigh;
s32 bufSize;
u8* dest;
u32 ch;
CHANSVmExecutionCtx* execCtx;
u32 writeHexCh;
s32 measureStringCount;
s32 writeHexCount;
CHANSVmExecutionCtx* measureIntegerExecCtx;
CHANSVmExecutionCtx* writeIntegerExecCtx;
parentBlob = (BlobHeader*)VmGetStrFromObjHdr(VmParentObj);
argStr = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_STRING, CHANSVmGetArg(VmInst, 0));
@@ -5057,26 +5074,26 @@ static vmBoolInt VmBlobPackCommon(CHANSVm* VmInst, CHANSVmObjHdr* VmParentObj, C
case 4: {
if (paramValue < 0) {
if (argArr != vmNull) {
obj = CHANSVmGetArrayElement(VmInst, argArr, argCount);
measureBlobObj = CHANSVmGetArrayElement(VmInst, argArr, argCount);
} else {
obj = CHANSVmGetArg(VmInst, argCount + 1);
measureBlobObj = CHANSVmGetArg(VmInst, argCount + 1);
}
if (CHANSVmCheckNativeInstance(obj, VmBlobClassName)) {
srcBlob = (BlobHeader*)VmGetStrFromObjHdr(obj);
if (CHANSVmCheckNativeInstance(measureBlobObj, VmBlobClassName)) {
measureBlobSrcBlob = (BlobHeader*)VmGetStrFromObjHdr(measureBlobObj);
} else {
srcBlob = vmNull;
measureBlobSrcBlob = vmNull;
}
if (srcBlob == vmNull) {
if (measureBlobSrcBlob == vmNull) {
goto error;
}
count = srcBlob->size - srcBlob->offset;
measureBlobCount = measureBlobSrcBlob->size - measureBlobSrcBlob->offset;
} else {
count = paramValue;
measureBlobCount = paramValue;
}
if (count < 0) {
if (measureBlobCount < 0) {
goto error;
}
totalSize += count;
totalSize += measureBlobCount;
argCount++;
break;
}
@@ -5093,20 +5110,20 @@ static vmBoolInt VmBlobPackCommon(CHANSVm* VmInst, CHANSVmObjHdr* VmParentObj, C
case 9: {
if (paramValue < 0) {
if (argArr != vmNull) {
count = CHANSVmGetArrayLength(VmInst, argArr);
count = count - argCount;
measureIntegerCount = CHANSVmGetArrayLength(VmInst, argArr);
measureIntegerCount = measureIntegerCount - argCount;
} else {
execCtx = ((CHANSVmPrivate*)VmInst)->pActiveCtx;
count = execCtx->argc - argCount - 1;
measureIntegerExecCtx = ((CHANSVmPrivate*)VmInst)->pActiveCtx;
measureIntegerCount = measureIntegerExecCtx->argc - argCount - 1;
}
} else {
count = paramValue;
measureIntegerCount = paramValue;
}
if (count < 0) {
if (measureIntegerCount < 0) {
goto error;
}
argCount += count;
totalSize += elemSize * count;
argCount += measureIntegerCount;
totalSize += elemSize * measureIntegerCount;
break;
}
case 10:
@@ -5115,47 +5132,47 @@ static vmBoolInt VmBlobPackCommon(CHANSVm* VmInst, CHANSVmObjHdr* VmParentObj, C
case 13: {
if (paramValue < 0) {
if (argArr != vmNull) {
obj = CHANSVmGetArrayElement(VmInst, argArr, argCount);
obj = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_STRING, obj);
measureStringObj = CHANSVmGetArrayElement(VmInst, argArr, argCount);
measureStringObj = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_STRING, measureStringObj);
} else {
obj = CHANSVmGetArg(VmInst, argCount + 1);
obj = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_STRING, obj);
measureStringObj = CHANSVmGetArg(VmInst, argCount + 1);
measureStringObj = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_STRING, measureStringObj);
}
if (obj == vmNull) {
if (measureStringObj == vmNull) {
goto error;
}
count = (u32)obj->value.int32_v->val >> 1;
measureStringCount = (u32)measureStringObj->value.int32_v->val >> 1;
} else {
count = paramValue;
measureStringCount = paramValue;
}
if (count < 0) {
if (measureStringCount < 0) {
goto error;
}
argCount++;
totalSize += elemSize * count;
totalSize += elemSize * measureStringCount;
break;
}
case 14: {
if (paramValue < 0) {
if (argArr != vmNull) {
obj = CHANSVmGetArrayElement(VmInst, argArr, argCount);
obj = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_STRING, obj);
measureHexObj = CHANSVmGetArrayElement(VmInst, argArr, argCount);
measureHexObj = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_STRING, measureHexObj);
} else {
obj = CHANSVmGetArg(VmInst, argCount + 1);
obj = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_STRING, obj);
measureHexObj = CHANSVmGetArg(VmInst, argCount + 1);
measureHexObj = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_STRING, measureHexObj);
}
if (obj == vmNull) {
if (measureHexObj == vmNull) {
goto error;
}
count = (u32)obj->value.int32_v->val >> 1;
measureHexCount = (u32)measureHexObj->value.int32_v->val >> 1;
} else {
count = paramValue;
measureHexCount = paramValue;
}
if (count < 0) {
if (measureHexCount < 0) {
goto error;
}
argCount++;
totalSize += (s32)((u32)count + 1U) / 2;
totalSize += (s32)((u32)measureHexCount + 1U) / 2;
break;
}
}
@@ -5180,8 +5197,8 @@ static vmBoolInt VmBlobPackCommon(CHANSVm* VmInst, CHANSVmObjHdr* VmParentObj, C
}
}
argCount = 0;
fmtPos = 0;
writeArgCount = 0;
writeFmtPos = 0;
while (vmTrue) {
u32 nextPos = 0;
@@ -5189,7 +5206,7 @@ static vmBoolInt VmBlobPackCommon(CHANSVm* VmInst, CHANSVmObjHdr* VmParentObj, C
u32 elemSize = 1;
s32 paramValue = 1;
fmtPos = vmBlobParsePackFormatString(&nextPos, &elemType, &elemSize, (void*)&paramValue, fmtStr, fmtLen, fmtPos);
writeFmtPos = vmBlobParsePackFormatString(&nextPos, &elemType, &elemSize, (void*)&paramValue, fmtStr, fmtLen, writeFmtPos);
if (elemType == 1) {
break;
@@ -5202,33 +5219,33 @@ static vmBoolInt VmBlobPackCommon(CHANSVm* VmInst, CHANSVmObjHdr* VmParentObj, C
switch (elemType) {
case 4: {
if (argArr != vmNull) {
obj = CHANSVmGetArrayElement(VmInst, argArr, argCount);
writeBlobObj = CHANSVmGetArrayElement(VmInst, argArr, writeArgCount);
} else {
obj = CHANSVmGetArg(VmInst, argCount + 1);
writeBlobObj = CHANSVmGetArg(VmInst, writeArgCount + 1);
}
if (CHANSVmCheckNativeInstance(obj, VmBlobClassName)) {
srcBlob = (BlobHeader*)VmGetStrFromObjHdr(obj);
if (CHANSVmCheckNativeInstance(writeBlobObj, VmBlobClassName)) {
writeBlobSrcBlob = (BlobHeader*)VmGetStrFromObjHdr(writeBlobObj);
} else {
srcBlob = vmNull;
writeBlobSrcBlob = vmNull;
}
argCount++;
writeArgCount++;
if (srcBlob == vmNull) {
if (writeBlobSrcBlob == vmNull) {
goto error;
}
if (paramValue < 0) {
copySize = srcBlob->size - srcBlob->offset;
writeBlobCopySize = writeBlobSrcBlob->size - writeBlobSrcBlob->offset;
} else {
copySize = paramValue;
writeBlobCopySize = paramValue;
}
if (copySize < 0 || !CHANSVmBlobHasSpace(parentBlob, copySize)) {
if (writeBlobCopySize < 0 || !CHANSVmBlobHasSpace(parentBlob, writeBlobCopySize)) {
goto error;
}
VmBlobCopyPadded(parentBlob, srcBlob, copySize);
VmBlobCopyPadded(parentBlob, writeBlobSrcBlob, writeBlobCopySize);
break;
}
case 5: {
@@ -5247,38 +5264,38 @@ static vmBoolInt VmBlobPackCommon(CHANSVm* VmInst, CHANSVmObjHdr* VmParentObj, C
case 9: {
if (paramValue < 0) {
if (argArr != vmNull) {
count = CHANSVmGetArrayLength(VmInst, argArr) - argCount;
writeIntegerCount = CHANSVmGetArrayLength(VmInst, argArr) - writeArgCount;
} else {
execCtx = ((CHANSVmPrivate*)VmInst)->pActiveCtx;
count = execCtx->argc - argCount - 1;
writeIntegerExecCtx = ((CHANSVmPrivate*)VmInst)->pActiveCtx;
writeIntegerCount = writeIntegerExecCtx->argc - writeArgCount - 1;
}
} else {
count = paramValue;
writeIntegerCount = paramValue;
}
if (count < 0) {
if (writeIntegerCount < 0) {
goto error;
}
if (!CHANSVmBlobHasSpace(parentBlob, elemSize * count)) {
if (!CHANSVmBlobHasSpace(parentBlob, elemSize * writeIntegerCount)) {
goto error;
}
for (i = 0; i < count; i++) {
for (writeIntegerI = 0; writeIntegerI < writeIntegerCount; writeIntegerI++) {
packBuf[1] = 0;
packBuf[0] = 0;
if (argArr != vmNull) {
intObj = CHANSVmGetArrayElement(VmInst, argArr, argCount);
intObj = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_INTEGER, intObj);
writeIntegerIntObj = CHANSVmGetArrayElement(VmInst, argArr, writeArgCount);
writeIntegerIntObj = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_INTEGER, writeIntegerIntObj);
} else {
intObj = CHANSVmGetArg(VmInst, argCount + 1);
intObj = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_INTEGER, intObj);
writeIntegerIntObj = CHANSVmGetArg(VmInst, writeArgCount + 1);
writeIntegerIntObj = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_INTEGER, writeIntegerIntObj);
}
argCount++;
if (intObj == vmNull) {
writeArgCount++;
if (writeIntegerIntObj == vmNull) {
goto error;
}
valLow = (u32)intObj->value.int_v;
valHigh = (u32)((u64)intObj->value.int_v >> 32);
writeIntegerValLow = (u32)writeIntegerIntObj->value.int_v;
writeIntegerValHigh = (u32)((u64)writeIntegerIntObj->value.int_v >> 32);
switch ((s32)elemType) {
case 6:
@@ -5286,20 +5303,20 @@ static vmBoolInt VmBlobPackCommon(CHANSVm* VmInst, CHANSVmObjHdr* VmParentObj, C
// signed
switch (elemSize) {
case 1: {
*(s8*)packBuf = (s8)valLow;
*(s8*)packBuf = (s8)writeIntegerValLow;
break;
}
case 2: {
*(s16*)packBuf = (s16)valLow;
*(s16*)packBuf = (s16)writeIntegerValLow;
break;
}
case 4: {
packBuf[0] = valLow;
*(s32*)packBuf = writeIntegerValLow;
break;
}
case 8: {
packBuf[1] = valLow;
packBuf[0] = valHigh;
((s32*)packBuf)[1] = writeIntegerValLow;
*(s32*)packBuf = writeIntegerValHigh;
break;
}
default: {
@@ -5313,15 +5330,15 @@ static vmBoolInt VmBlobPackCommon(CHANSVm* VmInst, CHANSVmObjHdr* VmParentObj, C
// unsigned
switch (elemSize) {
case 1: {
*(u8*)packBuf = (u8)valLow;
*(u8*)packBuf = (u8)writeIntegerValLow;
break;
}
case 2: {
*(u16*)packBuf = (u16)valLow;
*(u16*)packBuf = (u16)writeIntegerValLow;
break;
}
case 4: {
packBuf[0] = valLow;
*(u32*)packBuf = writeIntegerValLow;
break;
}
default: {
@@ -5350,7 +5367,7 @@ static vmBoolInt VmBlobPackCommon(CHANSVm* VmInst, CHANSVmObjHdr* VmParentObj, C
break;
}
case 4: {
__stwbrx(packBuf[0], packBuf, 0);
__stwbrx(*(u32*)packBuf, packBuf, 0);
break;
}
case 8: {
@@ -5371,100 +5388,100 @@ static vmBoolInt VmBlobPackCommon(CHANSVm* VmInst, CHANSVmObjHdr* VmParentObj, C
case 12:
case 13: {
if (argArr != vmNull) {
strObj = CHANSVmGetArrayElement(VmInst, argArr, argCount);
strObj = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_STRING, strObj);
writeStringStrObj = CHANSVmGetArrayElement(VmInst, argArr, writeArgCount);
writeStringStrObj = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_STRING, writeStringStrObj);
} else {
strObj = CHANSVmGetArg(VmInst, argCount + 1);
strObj = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_STRING, strObj);
writeStringStrObj = CHANSVmGetArg(VmInst, writeArgCount + 1);
writeStringStrObj = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_STRING, writeStringStrObj);
}
argCount++;
if (strObj == vmNull) {
writeArgCount++;
if (writeStringStrObj == vmNull) {
goto error;
}
if (paramValue < 0) {
count = (u32)strObj->value.int32_v->val >> 1;
writeStringCount = (u32)writeStringStrObj->value.int32_v->val >> 1;
} else {
count = paramValue;
writeStringCount = paramValue;
}
if (count < 0) {
if (writeStringCount < 0) {
goto error;
}
if (!CHANSVmBlobHasSpace(parentBlob, elemSize * count)) {
if (!CHANSVmBlobHasSpace(parentBlob, elemSize * writeStringCount)) {
goto error;
}
srcData = (u8*)VmGetStrFromObjHdr(strObj);
strLen = (u32)VmGetIntFromObjHdr(strObj) >> 1;
charCount = strLen;
dest = parentBlob->pData + parentBlob->offset;
writeStringSrcData = (u8*)VmGetStrFromObjHdr(writeStringStrObj);
writeStringStrLen = (u32)VmGetIntFromObjHdr(writeStringStrObj) >> 1;
writeStringCharCount = writeStringStrLen;
writeStringDest = parentBlob->pData + parentBlob->offset;
if (charCount > count) {
charCount = count;
if (writeStringCharCount > writeStringCount) {
writeStringCharCount = writeStringCount;
}
memset(dest, 0, elemSize * count);
memset(writeStringDest, 0, elemSize * writeStringCount);
if (elemSize == 1) {
CHANSVmStrCpyToU8FromU16(dest, srcData, charCount);
CHANSVmStrCpyToU8FromU16(writeStringDest, writeStringSrcData, writeStringCharCount);
} else {
memcpy(dest, srcData, elemSize * charCount);
memcpy(writeStringDest, writeStringSrcData, elemSize * writeStringCharCount);
}
parentBlob->offset += elemSize * count;
parentBlob->offset += elemSize * writeStringCount;
break;
}
case 14: {
if (argArr != vmNull) {
strObj = CHANSVmGetArrayElement(VmInst, argArr, argCount);
strObj = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_STRING, strObj);
writeHexStrObj = CHANSVmGetArrayElement(VmInst, argArr, writeArgCount);
writeHexStrObj = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_STRING, writeHexStrObj);
} else {
strObj = CHANSVmGetArg(VmInst, argCount + 1);
strObj = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_STRING, strObj);
writeHexStrObj = CHANSVmGetArg(VmInst, writeArgCount + 1);
writeHexStrObj = CHANSVmConvertObjectType(VmInst, CHANS_VM_OBJ_TYPE_STRING, writeHexStrObj);
}
argCount++;
if (strObj == vmNull) {
writeArgCount++;
if (writeHexStrObj == vmNull) {
goto error;
}
if (paramValue < 0) {
count = (u32)strObj->value.int32_v->val >> 1;
writeHexCount = (u32)writeHexStrObj->value.int32_v->val >> 1;
} else {
count = paramValue;
writeHexCount = paramValue;
}
if (count < 0) {
if (writeHexCount < 0) {
goto error;
}
bufSize = (s32)((u32)count + 1U) / 2;
if (!CHANSVmBlobHasSpace(parentBlob, bufSize)) {
writeHexBufSize = (s32)((u32)writeHexCount + 1U) / 2;
if (!CHANSVmBlobHasSpace(parentBlob, writeHexBufSize)) {
goto error;
}
srcData = (u8*)VmGetStrFromObjHdr(strObj);
strLen = (u32)VmGetIntFromObjHdr(strObj) >> 1;
dest = parentBlob->pData + parentBlob->offset;
memset(dest, 0, bufSize);
writeHexSrcData = (u8*)VmGetStrFromObjHdr(writeHexStrObj);
VmGetIntFromObjHdr(writeHexStrObj);
writeHexDest = parentBlob->pData + parentBlob->offset;
memset(writeHexDest, 0, writeHexBufSize);
for (i = 0; (s32)i < count; i++) {
ch = ((const u16*)srcData)[i];
if (ch >= 0x30 && ch <= 0x39) {
ch -= 0x30;
} else if (ch >= 0x61 && ch <= 0x66) {
ch -= 0x57;
} else if (ch >= 0x41 && ch <= 0x46) {
ch -= 0x37;
for (writeHexI = 0; (s32)writeHexI < writeHexCount; writeHexI++) {
writeHexCh = ((const u16*)writeHexSrcData)[writeHexI];
if (writeHexCh >= 0x30 && writeHexCh <= 0x39) {
writeHexCh -= 0x30;
} else if (writeHexCh >= 0x61 && writeHexCh <= 0x66) {
writeHexCh -= 0x57;
} else if (writeHexCh >= 0x41 && writeHexCh <= 0x46) {
writeHexCh -= 0x37;
} else {
ch = 0;
writeHexCh = 0;
}
if ((i & 1) == 0) {
ch *= 16;
if ((writeHexI & 1) == 0) {
writeHexCh *= 16;
}
*dest |= ch & 0xFF;
if (i & 1) {
dest++;
*writeHexDest |= writeHexCh & 0xFF;
if (writeHexI & 1) {
writeHexDest++;
}
}
parentBlob->offset += bufSize;
parentBlob->offset += writeHexBufSize;
break;
}
default: {

View File

@@ -0,0 +1,144 @@
# sol-m12 CHANSVm big functions, MAX
Worktree data-d2, branch agent/w1009/chansvm-big, initial HEAD bbd98e1e. Requested full Ninja build passed before edits, required DOL SHA1 verified by the build. Source initially clean. Read sol-common, brief-v2, all levers, AGENTS.md, unslop, writing-for-agents, graphify query instructions, 11b01025:sol-m8, 50eb9be2:sol-c1, ef500621:sol-y4, archived and repository histories, and every CHANSVm effort-policy entry. History inventory and prior trial labels are /tmp/sol-m12-history.json and /tmp/sol-m12-prior-rows.json. Graph query resolved its ambiguous name to src/channelScript/CHANSVm.c::VmBlobPackCommon.
## Excluded repetitions
- No unchanged-graph declaration permutations. Prior 218-node Pack models prove the array/counter swap needs a changed interference graph.
- No whole Pack measure/write wrappers, complete packing helper, element-size/format-specific writers, typed argument-selection wrappers, named remaining-count/format-length/blob-length getters, sequential generic argument reuse, or shared pass counters/format positions already tried.
- No Step scratch carrier, out-parameters hoisting locals, dead locals, duplicated control flags, redundant conditions, raw offset casts, table-identity getters, previously tested late-table getters, readonly-view cleanup helpers, named immediate getters, instruction-union variants, or countdown normalization variants.
- No compiler-version/unit-flag sweep or standalone scoped-setting repeat. No small-function work outside Pack and Step.
## Acceptance and method
Replay the saved Pack-only best, remove any unused local, and check equivalent behavior and all existing exact functions before retaining it. The task explicitly authorizes committing clean improvements below exactness; record them as partial results. Align opcode plus resolved-relocation streams with difflib, locate count differences first, then scheduling and allocation. For Step, map the switch table and inspect the least-different cases first. Preserve the pool, all data sections and existing exact functions. Run the requested final quick gate once. Keep all source experiments in this worktree and temporary files under /tmp/sol-m12-. No push, PR, merge, rebase, subagent or Matching flip without a fully exact unit.
## Measurements
- {"label": "pack-clean-replay", "counts": {"VmBlobPackCommon": {"diff": 151, "insns": [666, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "c18451afb381"} Removed unused hexadecimal length local and pure getter from historical best. All separated locals carry genuine pass-specific values.
- {"label": "pack-clean-unused-result-call", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "705ffdaec24d"} Target instruction 604 prepares writeHexStrObj and 605 calls VmGetIntFromObjHdr. Return is unused in the remaining hex block. Preserve that original call without a dead local.
Pack clean replay is 47/668 versus 230/668 at HEAD. All 47 aligned differences are the r18/r23 array-counter exchange. Target hex block explicitly calls VmGetIntFromObjHdr and discards its result, so the required source call is retained without declaring a dead local. The rest of the function keeps identical call order, branches, instruction count, all allocated data, and every other function. Unit report after replay: {"fuzzy_match_percent": 99.66164, "total_code": "53564", "matched_code": "44588", "matched_code_percent": 83.24248, "total_data": "6904", "matched_data": "6904", "matched_data_percent": 100.0, "total_functions": 233, "matched_functions": 227, "matched_functions_percent": 97.4249, "total_units": 1}. Task authorizes this partial checkpoint. No exact match claimed.
- {"label": "pack-integer-store-words", "counts": {"VmBlobPackCommon": {"diff": 325, "insns": [677, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "34b5f067b570"} Actual integer serialization or byte-swap helper writes the real packing buffer; no scratch carrier or hoisted local out-parameter.
- {"label": "pack-integer-store-integer", "counts": {"VmBlobPackCommon": {"diff": 325, "insns": [677, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "c75536b1e87b"} Actual integer serialization or byte-swap helper writes the real packing buffer; no scratch carrier or hoisted local out-parameter.
- {"label": "pack-integer-store-integer-case-scope", "build": "FAIL"} Same new serialization boundary, with integer-loop values declared in their owning case.
- {"label": "pack-integer-store-object", "counts": {"VmBlobPackCommon": {"diff": 321, "insns": [677, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "b0afd352444d"} Actual integer serialization or byte-swap helper writes the real packing buffer; no scratch carrier or hoisted local out-parameter.
- {"label": "pack-integer-store-object-case-scope", "build": "FAIL"} Same new serialization boundary, with integer-loop values declared in their owning case.
- {"label": "pack-integer-swap-words", "counts": {"VmBlobPackCommon": {"diff": 56, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "434ff2985dbf"} Actual integer serialization or byte-swap helper writes the real packing buffer; no scratch carrier or hoisted local out-parameter.
- {"label": "pack-integer-encode-words", "counts": {"VmBlobPackCommon": {"diff": 333, "insns": [675, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "46cb1062b4df"} Actual integer serialization or byte-swap helper writes the real packing buffer; no scratch carrier or hoisted local out-parameter.
- {"label": "pack-integer-encode-integer", "counts": {"VmBlobPackCommon": {"diff": 333, "insns": [675, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "37020ec61736"} Actual integer serialization or byte-swap helper writes the real packing buffer; no scratch carrier or hoisted local out-parameter.
- {"label": "pack-integer-encode-integer-case-scope", "counts": {"VmBlobPackCommon": {"diff": 334, "insns": [675, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "1e8a9605e258"} Same new serialization boundary, with integer-loop values declared in their owning case.
- {"label": "pack-integer-encode-object", "counts": {"VmBlobPackCommon": {"diff": 329, "insns": [675, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "389b97208b09"} Actual integer serialization or byte-swap helper writes the real packing buffer; no scratch carrier or hoisted local out-parameter.
- {"label": "pack-integer-encode-object-case-scope", "counts": {"VmBlobPackCommon": {"diff": 330, "insns": [675, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "73d7c8ffa5e6"} Same new serialization boundary, with integer-loop values declared in their owning case.
- {"label": "pack-restore-after-integer-helpers", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "705ffdaec24d"} Restore the best reviewed packing shape after serialized helper trials.
- {"label": "step-case-float-local", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 266, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "5a5c1246d7a2"} Move only this case actual operand/index/literal into its owning scope, following the least-different case ordering. Independent objects, unchanged calls and operand sizes.
- {"label": "step-case-string-index-local", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "19ecec628150"} Move only this case actual operand/index/literal into its owning scope, following the least-different case ordering. Independent objects, unchanged calls and operand sizes.
- {"label": "step-case-new-array-index-local", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "c16b93768a1c"} Move only this case actual operand/index/literal into its owning scope, following the least-different case ordering. Independent objects, unchanged calls and operand sizes.
- {"label": "step-case-call-operand-local", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "52188babcf52"} Move only this case actual operand/index/literal into its owning scope, following the least-different case ordering. Independent objects, unchanged calls and operand sizes.
- {"label": "step-single-function-scope-opSize", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "0bcda653f75c"} One real cross-case interpreter local lives at function scope. Carrier-free baseline; this is not a declaration permutation of the previous carrier graph.
- {"label": "step-single-function-scope-operandBuf", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "70349864ce40"} One real cross-case interpreter local lives at function scope. Carrier-free baseline; this is not a declaration permutation of the previous carrier graph.
- {"label": "step-single-function-scope-copyResult", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "e302683194b4"} One real cross-case interpreter local lives at function scope. Carrier-free baseline; this is not a declaration permutation of the previous carrier graph.
- {"label": "step-single-function-scope-foundObj", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "c0c7872f13d2"} One real cross-case interpreter local lives at function scope. Carrier-free baseline; this is not a declaration permutation of the previous carrier graph.
- {"label": "step-single-function-scope-result", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "621e11cb0158"} One real cross-case interpreter local lives at function scope. Carrier-free baseline; this is not a declaration permutation of the previous carrier graph.
- {"label": "step-single-function-scope-newPos", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "72977265684a"} One real cross-case interpreter local lives at function scope. Carrier-free baseline; this is not a declaration permutation of the previous carrier graph.
- {"label": "step-case-helper-VmLoadIndirect", "build": "FAIL"} Real opcode operation helper preserves its complete copy/delete/store or boolean operation and error propagation. Buffer parameter is the actual operation storage, not an allocator carrier.
- {"label": "step-case-helper-VmDeleteIndirect", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "a78209fb7d99"} Real opcode operation helper preserves its complete copy/delete/store or boolean operation and error propagation. Buffer parameter is the actual operation storage, not an allocator carrier.
- {"label": "step-case-helper-VmLogicalNot", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "78a1e07de24a"} Real opcode operation helper preserves its complete copy/delete/store or boolean operation and error propagation. Buffer parameter is the actual operation storage, not an allocator carrier.
- {"label": "step-internal-readonly-VmResultTypeTbl", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "d7acb65b18d2"} Diagnostic internal linkage on real TU-private readonly globals. Target shares the rodata base; retain only if every symbol user and relocation remain valid.
- {"label": "step-internal-readonly-CHANSVmConstStringObjectUndefined_", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "29f94ee37b0f"} Diagnostic internal linkage on real TU-private readonly globals. Target shares the rodata base; retain only if every symbol user and relocation remain valid.
- {"label": "step-internal-readonly-both", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "9ffa6e38abd1"} Diagnostic internal linkage on real TU-private readonly globals. Target shares the rodata base; retain only if every symbol user and relocation remain valid.
- {"label": "step-restore-after-case-trials", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "705ffdaec24d"} Restore best reviewed source after opcode and scope trials.
- {"label": "pack-real-serialization-buffer-signed-words", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "953ba41006c9"} Actual eight-byte serialization buffer has its natural byte, signed-word or integer representation; typed accesses preserve exactly the stored byte ranges and order.
- {"label": "pack-real-serialization-buffer-bytes", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "68bdeb48da60"} Actual eight-byte serialization buffer has its natural byte, signed-word or integer representation; typed accesses preserve exactly the stored byte ranges and order.
- {"label": "pack-real-serialization-buffer-integer", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "c817b37a562e"} Actual eight-byte serialization buffer has its natural byte, signed-word or integer representation; typed accesses preserve exactly the stored byte ranges and order.
- {"label": "pack-hex-real-phase-indexed-vmBoolInt", "counts": {"VmBlobPackCommon": {"diff": 125, "insns": [669, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "8037667d9caf"} Named consumed high/low nibble phase and a real index, remaining-count or input cursor. Ghidra shows alternating phase and two-byte source traversal; no artificial lifetime or extra VM call.
- {"label": "pack-hex-real-phase-indexed-vmBool", "counts": {"VmBlobPackCommon": {"diff": 125, "insns": [669, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "d10098e4f2c2"} Named consumed high/low nibble phase and a real index, remaining-count or input cursor. Ghidra shows alternating phase and two-byte source traversal; no artificial lifetime or extra VM call.
- {"label": "pack-hex-real-phase-remaining-vmBoolInt", "counts": {"VmBlobPackCommon": {"diff": 235, "insns": [669, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "51a8b18b0da5"} Named consumed high/low nibble phase and a real index, remaining-count or input cursor. Ghidra shows alternating phase and two-byte source traversal; no artificial lifetime or extra VM call.
- {"label": "pack-hex-real-phase-remaining-vmBool", "counts": {"VmBlobPackCommon": {"diff": 235, "insns": [669, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "25983a62b93c"} Named consumed high/low nibble phase and a real index, remaining-count or input cursor. Ghidra shows alternating phase and two-byte source traversal; no artificial lifetime or extra VM call.
- {"label": "pack-hex-real-phase-pointer-end-vmBoolInt", "counts": {"VmBlobPackCommon": {"diff": 255, "insns": [673, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "73d1cf266113"} Named consumed high/low nibble phase and a real index, remaining-count or input cursor. Ghidra shows alternating phase and two-byte source traversal; no artificial lifetime or extra VM call.
- {"label": "pack-hex-real-phase-pointer-end-vmBool", "counts": {"VmBlobPackCommon": {"diff": 255, "insns": [673, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "d1915f38ce30"} Named consumed high/low nibble phase and a real index, remaining-count or input cursor. Ghidra shows alternating phase and two-byte source traversal; no artificial lifetime or extra VM call.
- {"label": "pack-restore-after-buffer-and-phase", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "705ffdaec24d"} Restore best reviewed source after actual buffer and nibble traversal shapes.
- {"label": "step-property-found-init-before-lookup", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 1105, "insns": [1249, 1253]}}, "drops": [], "others": [], "data_changes": [".rela.data"], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "554f8359dc13"} Initialize the real found flag on entry and remove unused arrayIdx assignments and the redundant non-array flag store. Same success, failure and branch conditions.
- {"label": "step-property-found-init-after-lookup", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 1105, "insns": [1249, 1253]}}, "drops": [], "others": [], "data_changes": [".rela.data"], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "1f0ce1b9b7c3"} Initialize the real found flag on entry and remove unused arrayIdx assignments and the redundant non-array flag store. Same success, failure and branch conditions.
- {"label": "step-property-found-init-guard", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 649, "insns": [1250, 1253]}}, "drops": [], "others": [], "data_changes": [".rela.data"], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "48ba164a012a"} Initialize the real found flag on entry and remove unused arrayIdx assignments and the redundant non-array flag store. Same success, failure and branch conditions.
- {"label": "step-property-operation-output-last", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 640, "insns": [1249, 1253]}}, "drops": [], "others": [], "data_changes": [".rela.data"], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "49695948b8e6"} Real property lookup operation returns CHANSVmErr and an actual found result, like CHANSVmGetBoolean. The output controls the bytecode branch and does not hoist helper temporaries.
- {"label": "step-property-operation-output-last-format-scope", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 640, "insns": [1249, 1253]}}, "drops": [], "others": [], "data_changes": [".rela.data"], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "b23ec141e9bc"} Same property operation, with formatting temporaries in their actual owning scope. Original 64-bit snprintf argument is preserved.
- {"label": "step-property-operation-output-first", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 640, "insns": [1249, 1253]}}, "drops": [], "others": [], "data_changes": [".rela.data"], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "0d4424248f8e"} Real property lookup operation returns CHANSVmErr and an actual found result, like CHANSVmGetBoolean. The output controls the bytecode branch and does not hoist helper temporaries.
- {"label": "step-property-operation-output-first-format-scope", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 640, "insns": [1249, 1253]}}, "drops": [], "others": [], "data_changes": [".rela.data"], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "b94e4670e35e"} Same property operation, with formatting temporaries in their actual owning scope. Original 64-bit snprintf argument is preserved.
- {"label": "step-operation-helper-VmLoadStringConstant", "build": "FAIL"} Complete actual opcode operation behind a normal helper. Operand buffers are genuine input and storage used for VM object operations; no scratch carrier or artificial dependency.
- {"label": "step-operation-helper-VmCreateArrayOpcode", "build": "FAIL"} Complete actual opcode operation behind a normal helper. Operand buffers are genuine input and storage used for VM object operations; no scratch carrier or artificial dependency.
- {"label": "step-operation-helper-VmStoreIndirect", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "1eb11d802892"} Complete actual opcode operation behind a normal helper. Operand buffers are genuine input and storage used for VM object operations; no scratch carrier or artificial dependency.
- {"label": "step-operation-helper-VmLoadIndirect", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "bd99a82f2c25"} Complete actual opcode operation behind a normal helper. Operand buffers are genuine input and storage used for VM object operations; no scratch carrier or artificial dependency.
- {"label": "step-restore-after-property-operation", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "705ffdaec24d"} Restore best source after new property and object-operation boundaries.
- {"label": "pack-consume-argument-advance-call-Blob", "counts": {"VmBlobPackCommon": {"diff": 450, "insns": [670, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "b559537f4f93"} A real next-argument expression advances the cursor at its lookup. Argument indexes and call order stay unchanged, and no counter address escapes. Nested conversion keeps the same two calls.
- {"label": "pack-consume-argument-advance-call-Integer", "counts": {"VmBlobPackCommon": {"diff": 354, "insns": [670, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "f660f73ecb6a"} A real next-argument expression advances the cursor at its lookup. Argument indexes and call order stay unchanged, and no counter address escapes. Nested conversion keeps the same two calls.
- {"label": "pack-consume-argument-advance-call-String", "counts": {"VmBlobPackCommon": {"diff": 253, "insns": [670, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "08ba492b44e7"} A real next-argument expression advances the cursor at its lookup. Argument indexes and call order stay unchanged, and no counter address escapes. Nested conversion keeps the same two calls.
- {"label": "pack-consume-argument-advance-call-Hex", "counts": {"VmBlobPackCommon": {"diff": 187, "insns": [670, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "390460abe825"} A real next-argument expression advances the cursor at its lookup. Argument indexes and call order stay unchanged, and no counter address escapes. Nested conversion keeps the same two calls.
- {"label": "pack-consume-argument-advance-call-Integer-String", "counts": {"VmBlobPackCommon": {"diff": 350, "insns": [672, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "ca6636c2679e"} A real next-argument expression advances the cursor at its lookup. Argument indexes and call order stay unchanged, and no counter address escapes. Nested conversion keeps the same two calls.
- {"label": "pack-consume-argument-advance-call-String-Hex", "counts": {"VmBlobPackCommon": {"diff": 253, "insns": [672, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "83e444dc541f"} A real next-argument expression advances the cursor at its lookup. Argument indexes and call order stay unchanged, and no counter address escapes. Nested conversion keeps the same two calls.
- {"label": "pack-consume-argument-advance-call-Blob-Integer-String-Hex", "counts": {"VmBlobPackCommon": {"diff": 450, "insns": [676, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "365e81430a1d"} A real next-argument expression advances the cursor at its lookup. Argument indexes and call order stay unchanged, and no counter address escapes. Nested conversion keeps the same two calls.
- {"label": "pack-consume-argument-nested-conversion-Blob", "counts": {"VmBlobPackCommon": {"diff": 450, "insns": [670, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "b559537f4f93"} A real next-argument expression advances the cursor at its lookup. Argument indexes and call order stay unchanged, and no counter address escapes. Nested conversion keeps the same two calls.
- {"label": "pack-consume-argument-nested-conversion-Integer", "counts": {"VmBlobPackCommon": {"diff": 354, "insns": [670, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "75618b2bc41c"} A real next-argument expression advances the cursor at its lookup. Argument indexes and call order stay unchanged, and no counter address escapes. Nested conversion keeps the same two calls.
- {"label": "pack-consume-argument-nested-conversion-String", "counts": {"VmBlobPackCommon": {"diff": 251, "insns": [669, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "49deaae31879"} A real next-argument expression advances the cursor at its lookup. Argument indexes and call order stay unchanged, and no counter address escapes. Nested conversion keeps the same two calls.
- {"label": "pack-consume-argument-nested-conversion-Hex", "counts": {"VmBlobPackCommon": {"diff": 250, "insns": [669, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "04cbe5619579"} A real next-argument expression advances the cursor at its lookup. Argument indexes and call order stay unchanged, and no counter address escapes. Nested conversion keeps the same two calls.
- {"label": "pack-consume-argument-nested-conversion-Integer-String", "counts": {"VmBlobPackCommon": {"diff": 350, "insns": [671, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "67e5b3e35451"} A real next-argument expression advances the cursor at its lookup. Argument indexes and call order stay unchanged, and no counter address escapes. Nested conversion keeps the same two calls.
- {"label": "pack-consume-argument-nested-conversion-String-Hex", "counts": {"VmBlobPackCommon": {"diff": 303, "insns": [670, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "f4f5cef096fa"} A real next-argument expression advances the cursor at its lookup. Argument indexes and call order stay unchanged, and no counter address escapes. Nested conversion keeps the same two calls.
- {"label": "pack-consume-argument-nested-conversion-Blob-Integer-String-Hex", "counts": {"VmBlobPackCommon": {"diff": 463, "insns": [674, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "3cce13c8aeff"} A real next-argument expression advances the cursor at its lookup. Argument indexes and call order stay unchanged, and no counter address escapes. Nested conversion keeps the same two calls.
- {"label": "pack-measure-count-after-size-Integer", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "c92bdc893fbe"} Accumulate the format element byte size before advancing its argument cursor. These local updates commute and retain all overflow/conversion rules.
- {"label": "pack-measure-count-after-size-String", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "0055b2fe1791"} Accumulate the format element byte size before advancing its argument cursor. These local updates commute and retain all overflow/conversion rules.
- {"label": "pack-measure-count-after-size-Hex", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "a7e4638108c1"} Accumulate the format element byte size before advancing its argument cursor. These local updates commute and retain all overflow/conversion rules.
- {"label": "pack-measure-count-after-size-all", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "30d118739d6f"} Accumulate the format element byte size before advancing its argument cursor. These local updates commute and retain all overflow/conversion rules.
- {"label": "pack-restore-after-argument-shapes", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "705ffdaec24d"} Restore best source after actual cursor lifetime changes.
## Fresh backend evidence
Pack capture /tmp/sol-m12-pack-capture has executable bytes, resolved text relocations and every allocated data section identical to the ordinary Ninja object. Simulator reproduces 218/218, and the manually checked array/counter want-list reaches only 2/3. All 47 baseline differences are the r18/r23 exchange. Step capture /tmp/sol-m12-step-capture likewise equals normal compilation in all allocated sections and resolved relocations and reproduces 491/491. The 10-name diagnostic reaches 8/10, but the stock search can reorder compiler @ aliases and parameters, so it is not a writable source order and no proposed ordering is applied. Maps are /tmp/sol-m12-pack-vmap.txt and /tmp/sol-m12-step-vmap.txt.
Opcode/relocation alignment includes HA/LO relocations stored at instruction offset +2. It identifies Step target shared rodata base 0, source separate bases 352 and 96; early count normalization and pretest branch; stack object locations; enum indexing; property flag/output stack stores; and later branch cleanup. The source jump tables currently match all 121 relocation destinations. Case priority is /tmp/sol-m12-step-case-priority.json. POP, IS_CLASS, DELETE_INDIRECT, LOG_NOT and BIT_NOT bodies already match; the first positive-difference cases differ by the shared instruction-size register. Property lookup has 92 differing positions in its 134-instruction block. Internal linkage on the real readonly globals changes no instructions. No fake common-base aggregate or cross-object pointer arithmetic is introduced.
- {"label": "step-operation-helper-VmLoadStringConstant-fixed", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "6282fff9aa19"} Corrected helper generator retains original case declarations. Same opcode operation boundary and original call order, without hoisted local outputs.
- {"label": "step-operation-helper-VmLoadStringConstant-decoded-input", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 695, "insns": [1252, 1253]}}, "drops": [], "others": [], "data_changes": [".rela.data"], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "550e55657ba8"} Actual decoded string index or array extent is the operation input; keep decoding at the caller and object creation inside the helper.
- {"label": "step-operation-helper-VmCreateArrayOpcode-fixed", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "f3e3f9a42c40"} Corrected helper generator retains original case declarations. Same opcode operation boundary and original call order, without hoisted local outputs.
- {"label": "step-operation-helper-VmCreateArrayOpcode-decoded-input", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "6b1fff6c9d84"} Actual decoded string index or array extent is the operation input; keep decoding at the caller and object creation inside the helper.
- {"label": "step-property-output-last-pretest", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 1227, "insns": [1251, 1253]}}, "drops": [], "others": [], "data_changes": [".rela.data"], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "7d34bf2d9d62"} Combine new real property operation with assembly-proven pretest countdown or indexed operand-type output. Old standalone controls are not counted as new ideas.
- {"label": "step-property-output-last-indexed-types", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 1099, "insns": [1250, 1253]}}, "drops": [], "others": [], "data_changes": [".rela.data"], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "2cb470409b7e"} Combine new real property operation with assembly-proven pretest countdown or indexed operand-type output. Old standalone controls are not counted as new ideas.
- {"label": "step-property-output-last-pretest-indexed-types", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 1222, "insns": [1252, 1253]}}, "drops": [], "others": [], "data_changes": [".rela.data"], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "59a1cb761b4e"} Combine new real property operation with assembly-proven pretest countdown or indexed operand-type output. Old standalone controls are not counted as new ideas.
- {"label": "step-property-output-first-pretest", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 1227, "insns": [1251, 1253]}}, "drops": [], "others": [], "data_changes": [".rela.data"], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "23cf3deee40e"} Combine new real property operation with assembly-proven pretest countdown or indexed operand-type output. Old standalone controls are not counted as new ideas.
- {"label": "step-property-output-first-indexed-types", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 1099, "insns": [1250, 1253]}}, "drops": [], "others": [], "data_changes": [".rela.data"], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "bff9685e9c39"} Combine new real property operation with assembly-proven pretest countdown or indexed operand-type output. Old standalone controls are not counted as new ideas.
- {"label": "step-property-output-first-pretest-indexed-types", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 1222, "insns": [1252, 1253]}}, "drops": [], "others": [], "data_changes": [".rela.data"], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "11b5acc54f47"} Combine new real property operation with assembly-proven pretest countdown or indexed operand-type output. Old standalone controls are not counted as new ideas.
- {"label": "step-case-property-object-values", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "06ad45705671"} The large opcode case owns its actual object handles or decoded operands. Separate per-case values remove cross-case source reuse without a carrier or any added operation.
- {"label": "step-case-property-operand-values", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 614, "insns": [1251, 1253]}}, "drops": [], "others": [], "data_changes": [".rela.data"], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "17f609f5347f"} The large opcode case owns its actual object handles or decoded operands. Separate per-case values remove cross-case source reuse without a carrier or any added operation.
- {"label": "step-case-index-object-values", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "d5a261278a30"} The large opcode case owns its actual object handles or decoded operands. Separate per-case values remove cross-case source reuse without a carrier or any added operation.
- {"label": "step-case-index-operand-values", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 703, "insns": [1251, 1253]}}, "drops": [], "others": [], "data_changes": [".rela.data"], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "bdd38f3134bd"} The large opcode case owns its actual object handles or decoded operands. Separate per-case values remove cross-case source reuse without a carrier or any added operation.
- {"label": "step-restore-final-best", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "705ffdaec24d"} Restore best source after combined operation and indexed-operand shapes.
- {"label": "pack-integer-store-integer-case-scope-fixed", "counts": {"VmBlobPackCommon": {"diff": 326, "insns": [677, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "0b8f526b806a"} Corrected generator identifies the outer format case with an anchored pattern. Real loop index and converted argument are owned by that case.
- {"label": "pack-integer-store-object-case-scope-fixed", "counts": {"VmBlobPackCommon": {"diff": 322, "insns": [677, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "4278fbf87ee4"} Corrected generator identifies the outer format case with an anchored pattern. Real loop index and converted argument are owned by that case.
- {"label": "step-case-property-real-operands", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 614, "insns": [1251, 1253]}}, "drops": [], "others": [], "data_changes": [".rela.data"], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "9bdcba724a96"} Remove the generated unused per-case array-index local. Keep only real operand buffer and decoded index values; reject if target count or table offsets differ.
- {"label": "final-retained-checkpoint", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "705ffdaec24d"} Retain only the committed clean Pack replay; all new non-exact experiments are rejected.
- {"label": "pack-typed-buffer-index", "counts": {"VmBlobPackCommon": {"diff": 47, "insns": [668, 668]}, "CHANSVmStep": {"diff": 262, "insns": [1253, 1253]}}, "drops": [], "others": [], "data_changes": [], "pool": "POOL IDENTICAL up to 125 (mine=125 base=125)", "sha": "a0f7d087c354"} The source scan flags cast-plus-offset spelling in the replay. Use actual typed array indexing for the known eight-byte serialization buffer; store width and order remain identical. The measurement completed successfully; an unquoted separator in its trailing shell note then attempted an unrelated command and returned 127. The later independent final checks below pass.
## Final result and handoff
The log contains 92 measurement rows: 87 successful compilations/checkpoints and five generator failures. After the cleaned replay, there are 38 compiled Pack variants (37 distinct source hashes) and 39 Step variants. These are measured variations, not 77 independent ideas: parameter orders, unchanged-code controls and the composed pretest/indexing controls are labeled above. The failed generators were corrected. The generated property-operand trial with an unused array-index local was rejected and corrected to use only real operands. Every follow-up source experiment was restored.
Retain the inherited Pack replay from sol-c1, with the unused hexadecimal length local removed and the signed word store written as typed array indexing. The target's explicit unused-result getter call remains. Pack improves from 230 to 47 differences, 668/668 instructions, fuzzy 98.0988 to 99.588326. There is no new exact function. The remaining 47 differences exchange the argument-array and argument-counter registers r18/r23; their opcode and resolved-relocation streams align without insertions or deletions. Fresh backend evidence reproduces the allocator, but does not supply an honest source change that fixes the exchange.
Step remains 262 differences, 1253/1253 instructions, fuzzy 97.23225. Its function text equals the initial bbd98e1e function exactly. The smallest differing opcode bodies mostly inherit the shared opSize register. Full property-operation boundaries, genuine case-owned inputs and object handles, readonly linkage, and operand-type/pretest compositions either preserve the original differences or change instruction counts and jump-table relocations. The target common readonly base, operand storage, property flag and loop control remain unresolved; none justifies a scratch carrier or fabricated object layout. All 121 data-table relocation destinations and every previously exact sibling are preserved in the retained object.
Final source SHA256: a0f7d087c354b113fcdbc456fa90f651a739af74353db4673aadac3cfc9f395c. Changed repository paths are src/channelScript/CHANSVm.c and this log. Source checkpoint ae3810af contains the clean replay; the final checkpoint also contains the typed-index spelling and this audit. The focused source diff is saved as /mnt/drive2/projects/wii-ipl-workers/_luna-runs/best/sol-m12.CHANSVm.diff.
Ran the requested final gate exactly once:
```
python3 /mnt/drive2/projects/wii-ipl-workers/_restore0928-tools/gate.py src/channelScript/CHANSVm --quick
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
pool: IDENTICAL
objdiff: code 44588/53564 data 6904/6904 functions 227/233 fuzzy 99.66164 linked code 0
instruction-exact functions: 227/233
all five allocated data sections: 100.0
regressions vs baseline: 0
forbidden patterns added: 0
readability warnings: 0
GATE PASS
```
The gate baseline is bbd98e1e, unit fuzzy 99.58733. Final live report was regenerated with Ninja progress and build/43U/report.json. Independent final ctxdiff reports Pack 47 and Step 262; pool_diff reports 125/125 identical; git diff --check passes. Direct executable-byte and resolved-relocation comparison against the initial object finds no changed sibling, exact-function drop or allocated-data change. Final evidence is /tmp/sol-m12-gate.txt, /tmp/sol-m12-final-VmBlobPackCommon.ctxdiff.txt, /tmp/sol-m12-final-CHANSVmStep.ctxdiff.txt and /tmp/sol-m12-final-pool.txt. This is a validated partial replay, with the unit still NonMatching and unlinked.