decomp(wad): match WADImportGetBlocks and WADImportDVDExForBS (rx10 astra max) #1196
@@ -394,19 +394,23 @@ s32 WADImportGetBlocks(char* path, MEMAllocator* allocator, WADLocation location
|
||||
WADBlocks* blocks, u32* fileListOut) {
|
||||
WADImportWorkspace workspace ALIGN32;
|
||||
void* wadHeader = workspace.wadHeader;
|
||||
s32 result;
|
||||
u32 fileOffset;
|
||||
WADFileEntry* allocatedFiles;
|
||||
BOOL streamOpened;
|
||||
u32 transferId;
|
||||
u32 contentCount;
|
||||
ESTitleMeta* titleMeta;
|
||||
ESContentMeta* contentMeta;
|
||||
u32 contentCount;
|
||||
s32 result;
|
||||
BOOL streamOpened;
|
||||
u32 index;
|
||||
void* secondBuffer;
|
||||
void* firstBuffer;
|
||||
WADFileEntry* allocatedFiles;
|
||||
u32 fileOffset;
|
||||
u32 transferId;
|
||||
ESContentMeta* contentMeta;
|
||||
u32 skipTitleMeta = flags & 4;
|
||||
WADFileHeader* fileHeader;
|
||||
|
||||
streamOpened = FALSE;
|
||||
secondBuffer = 0;
|
||||
firstBuffer = 0;
|
||||
fileOffset = 0;
|
||||
allocatedFiles = 0;
|
||||
memset(&workspace.unpackInfo, 0, sizeof(WADUnpackInfo));
|
||||
@@ -521,6 +525,12 @@ s32 WADImportGetBlocks(char* path, MEMAllocator* allocator, WADLocation location
|
||||
|
||||
cleanup:
|
||||
_WADFreeMemory(&workspace.unpackInfo, allocator);
|
||||
if (firstBuffer != 0) {
|
||||
_WADMemFree(allocator, firstBuffer);
|
||||
}
|
||||
if (secondBuffer != 0) {
|
||||
_WADMemFree(allocator, secondBuffer);
|
||||
}
|
||||
if ((fileListOut != 0) && (result != 0)) {
|
||||
if (allocatedFiles != 0) {
|
||||
_WADMemFree(allocator, allocatedFiles);
|
||||
@@ -3476,18 +3486,18 @@ s32 WADImportDVDExForBS(const char* path, void* buffer, u32 bufferSize) {
|
||||
u32 titleMetaSize;
|
||||
void* titleMeta;
|
||||
} parts;
|
||||
u8* readBuffer = buffer;
|
||||
ESTitleMeta* titleMeta;
|
||||
ESContentMeta* contentMeta;
|
||||
s32 sectionOffset;
|
||||
BOOL fileOpened = FALSE;
|
||||
s32 result;
|
||||
u8* contentBuffer;
|
||||
u32 contentCount;
|
||||
u32 remainingBufferSize;
|
||||
ESTitleMeta* titleMeta;
|
||||
u8* readBuffer = buffer;
|
||||
u32 contentIndex;
|
||||
s32 contentFd;
|
||||
s32 result;
|
||||
s32 readResult;
|
||||
BOOL fileOpened = FALSE;
|
||||
s32 sectionOffset;
|
||||
u32 remainingBufferSize;
|
||||
u32 size;
|
||||
ESContentMeta* contentMeta;
|
||||
s32 value;
|
||||
|
||||
if ((path == 0) || (buffer == 0)) {
|
||||
result = -3000;
|
||||
@@ -3506,8 +3516,8 @@ s32 WADImportDVDExForBS(const char* path, void* buffer, u32 bufferSize) {
|
||||
readBuffer += 0x20;
|
||||
bufferSize -= 0x20;
|
||||
}
|
||||
readResult = DVDReadPrio(&fileInfo, &header, sizeof(header), 0, 2);
|
||||
if (readResult != sizeof(header)) {
|
||||
value = DVDReadPrio(&fileInfo, &header, sizeof(header), 0, 2);
|
||||
if (value != sizeof(header)) {
|
||||
result = -3005;
|
||||
goto cleanup;
|
||||
}
|
||||
@@ -3539,14 +3549,17 @@ s32 WADImportDVDExForBS(const char* path, void* buffer, u32 bufferSize) {
|
||||
parts.titleMeta = readBuffer + sectionOffset;
|
||||
sectionOffset += (header.tmdSize + 0x3F) & ~0x3F;
|
||||
}
|
||||
if (header.contentSize != 0) {
|
||||
size = header.contentSize;
|
||||
}
|
||||
contentBuffer = readBuffer + sectionOffset;
|
||||
remainingBufferSize = bufferSize - sectionOffset;
|
||||
if ((u32)sectionOffset > bufferSize) {
|
||||
result = -3003;
|
||||
goto cleanup;
|
||||
}
|
||||
readResult = DVDReadPrio(&fileInfo, readBuffer, sectionOffset, 0, 2);
|
||||
if (readResult != (s32)sectionOffset) {
|
||||
value = DVDReadPrio(&fileInfo, readBuffer, sectionOffset, 0, 2);
|
||||
if (value != (s32)sectionOffset) {
|
||||
result = -3005;
|
||||
goto cleanup;
|
||||
}
|
||||
@@ -3587,7 +3600,6 @@ s32 WADImportDVDExForBS(const char* path, void* buffer, u32 bufferSize) {
|
||||
contentIndex = 0;
|
||||
while (contentIndex < contentCount) {
|
||||
s32 titleContentIndex;
|
||||
u32 remainingContentSize;
|
||||
|
||||
if (parts.cidxMode >= 1) {
|
||||
titleContentIndex = _WADGetCidx((ESContentMask*)&parts,
|
||||
@@ -3601,39 +3613,40 @@ s32 WADImportDVDExForBS(const char* path, void* buffer, u32 bufferSize) {
|
||||
} else {
|
||||
contentMeta = &titleMeta->contents[contentIndex];
|
||||
}
|
||||
contentFd = ES_ImportContentBegin(titleMeta->head.titleId, contentMeta->cid);
|
||||
if (contentFd < 0) {
|
||||
result = contentFd;
|
||||
ES_ImportContentEnd(contentFd);
|
||||
value = ES_ImportContentBegin(titleMeta->head.titleId, contentMeta->cid);
|
||||
if (value < 0) {
|
||||
result = value;
|
||||
ES_ImportContentEnd(value);
|
||||
ES_ImportTitleCancel();
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
remainingContentSize = ((u32)contentMeta->size + 0xF) & ~0xF;
|
||||
while (remainingContentSize != 0) {
|
||||
u32 chunkSize = remainingContentSize > remainingBufferSize ?
|
||||
remainingBufferSize : remainingContentSize;
|
||||
size = ((u32)contentMeta->size + 0xF) & ~0xF;
|
||||
while (size != 0) {
|
||||
u32 chunkSize = size > remainingBufferSize ?
|
||||
remainingBufferSize : size;
|
||||
u32 readSize;
|
||||
s32 readResult;
|
||||
|
||||
readResult = DVDReadPrio(&fileInfo, contentBuffer, (chunkSize + 0x1F) & ~0x1F, sectionOffset, 2);
|
||||
readSize = (chunkSize + 0x1F) & ~0x1F;
|
||||
if ((u32)readResult != readSize) {
|
||||
result = -3005;
|
||||
ES_ImportContentEnd(contentFd);
|
||||
ES_ImportContentEnd(value);
|
||||
ES_ImportTitleCancel();
|
||||
goto cleanup;
|
||||
}
|
||||
sectionOffset += readResult;
|
||||
result = ES_ImportContentData(contentFd, contentBuffer, chunkSize);
|
||||
result = ES_ImportContentData(value, contentBuffer, chunkSize);
|
||||
if (result < 0) {
|
||||
ES_ImportContentEnd(contentFd);
|
||||
ES_ImportContentEnd(value);
|
||||
ES_ImportTitleCancel();
|
||||
goto cleanup;
|
||||
}
|
||||
remainingContentSize -= chunkSize;
|
||||
size -= chunkSize;
|
||||
}
|
||||
sectionOffset = (sectionOffset + 0x3F) & ~0x3F;
|
||||
result = ES_ImportContentEnd(contentFd);
|
||||
result = ES_ImportContentEnd(value);
|
||||
if (result != 0) {
|
||||
ES_ImportTitleCancel();
|
||||
goto cleanup;
|
||||
|
||||
@@ -471,3 +471,390 @@ All seven remaining functions completed three 1200-second annealing seeds under
|
||||
| pfd_sddrv_build_fat32_mbr_bpb | 3 | 5732 | pfd_sddrv_build_fat32_mbr_bpb-11: 95.202705%, pfd_sddrv_build_fat32_mbr_bpb-12: 95.202705%, pfd_sddrv_build_fat32_mbr_bpb-10: 95.202705% |
|
||||
|
||||
Retained production source is byte-for-byte identical to clean-gated commit 6bb8c562. The final DOL SHA1 is 26116613f624061ba99c8d1a299aaa6efa85670d. Fresh review confirms the shared origin/main reference has no owned-source changes relative to the initial 48c6d3fc baseline. No push, PR, merge, rebase, branch switch, other-worktree edit, or subagent was performed. The local source commit contains only wad.c, sd_drv.c and this log; pdm_partition.c is unchanged. The three exact functions are ready for independent parent verification; all seven open functions remain explicitly unresolved.
|
||||
|
||||
## rx10b continuation, baseline aced52f0
|
||||
|
||||
Seven named open functions are in scope. Prior accepted matches remain protected. Re-export target Ghidra locally and compare backend-00/01 before allocation. Source trials must preserve target-observable side effects, truthful names, and existing exact functions. Ghidra exporter is copied privately only to redirect its project output into this worktree. All compiler options stay unchanged.
|
||||
|
||||
- WADImportGetBlocks, `b-blocks-target-null-cleanup-nullmacro`. Target r25 and r26 are initialized NULL at entry, have no intervening definitions, then checked and freed at cleanup. Reconstruct both target-proven null buffer lifetimes, testing typed NULL versus integer zero. Diagnostic: retain only a readable reconstruction of the actual cleanup, no allocator coercion. Result: 98.003360%, instructions 300/298, positional differences 80.
|
||||
|
||||
- WADImportGetBlocks, `b-blocks-target-null-cleanup-zero`. Target r25 and r26 are initialized NULL at entry, have no intervening definitions, then checked and freed at cleanup. Reconstruct both target-proven null buffer lifetimes, testing typed NULL versus integer zero. Diagnostic: retain only a readable reconstruction of the actual cleanup, no allocator coercion. Result: 99.043625%, instructions 298/298, positional differences 50.
|
||||
|
||||
- pfd_sddrv_build_fat32_mbr_bpb, `b-reserved-return-null-conditional`. Separate success default and null error assignment so the inlined constant global address can eliminate the null path before result propagation. All null semantics, signature stores, calls and strings preserved. Result: 95.000000%, instructions 230/222, positional differences 122.
|
||||
|
||||
- pfd_sddrv_build_fat32_mbr_bpb, `b-reserved-ternary-null-result`. Separate success default and null error assignment so the inlined constant global address can eliminate the null path before result propagation. All null semantics, signature stores, calls and strings preserved. Result: 93.400900%, instructions 233/222, positional differences 123.
|
||||
|
||||
- pfd_sddrv_build_fat32_mbr_bpb, `b-reserved-negative-first`. Place null error before actual buffer initialization, preserving both arms; test pre-allocation branch elimination after inline expansion. Result: 94.752250%, instructions 230/222, positional differences 122.
|
||||
|
||||
- pfd_sddrv_finalize, `b-finalize-outer-else-status`. Ghidra has a single returned status assigned by null and initialized arms. Use nested successful arm and common return to change pre-allocation return-zero lifetime without changing field order. Result: 92.631580%, instructions 57/57, positional differences 4.
|
||||
|
||||
- pfd_sddrv_finalize, `b-finalize-comma-zero`. Equivalent flag transition with a genuine success-status lifetime or unsigned shift spelling; compare whether backend-01 keeps flags ahead of media reset. Result: 92.631580%, instructions 57/57, positional differences 4.
|
||||
|
||||
- pfd_sddrv_finalize, `b-finalize-bit-mask`. Equivalent flag transition with a genuine success-status lifetime or unsigned shift spelling; compare whether backend-01 keeps flags ahead of media reset. Result: 92.631580%, instructions 57/57, positional differences 4.
|
||||
|
||||
- WADImportGetBlocks, `b-blocks-target-declaration-order`. mwdbg gives result/fileOffset/allocatedFiles/firstBuffer/secondBuffer/streamOpened consecutive r29-r24 after invariant temps; target needs count/meta/result/stream/index/null2/null1/files/offset/transfer. Move genuine locals into that order, keeping null cleanup exact and initialization in target order. Result: 99.832214%, instructions 298/298, positional differences 9.
|
||||
|
||||
- WADImportGetBlocks, `b-blocks-meta-count-order`. Test the two nonoverlapping metadata lifetimes in the opposite declaration order to resolve the first saved-register priority. Result: 100.000000%, instructions 298/298, positional differences 0.
|
||||
|
||||
- WADImportGetBlocks, `b-blocks-index-before-count`. Name the whole-loop index before the metadata locals so its implicit scaled walker priority changes without changing the loop or values. Result: 99.312080%, instructions 298/298, positional differences 37.
|
||||
|
||||
- pfd_sddrv_init, `b-init-success-label`. Reconstruct existing-disk error and success as separate control-flow exits, using a typed null disk value. Target has branch blocks rather than branchless selection; compare CFG before allocation. Result: 95.138885%, instructions 143/144, positional differences 138.
|
||||
|
||||
- pfd_sddrv_init, `b-init-explicit-compare-switch`. Reconstruct existing-disk error and success as separate control-flow exits, using a typed null disk value. Target has branch blocks rather than branchless selection; compare CFG before allocation. Result: 89.201385%, instructions 150/144, positional differences 143.
|
||||
|
||||
- pfd_sddrv_init, `b-init-shared-success-status`. Reconstruct existing-disk error and success as separate control-flow exits, using a typed null disk value. Target has branch blocks rather than branchless selection; compare CFG before allocation. Result: 95.138885%, instructions 143/144, positional differences 138.
|
||||
|
||||
- pfd_sddrv_build_fat32_mbr_bpb, `b-reserved-explicit-void-null`. Test null-check expression provenance at real helper boundary; target eliminates known-global null test late while retaining unreachable reports. Equivalent address/null comparison, no removed check. Result: 95.202705%, instructions 229/222, positional differences 122.
|
||||
|
||||
- pfd_sddrv_build_fat32_mbr_bpb, `b-reserved-unsigned-address`. Test null-check expression provenance at real helper boundary; target eliminates known-global null test late while retaining unreachable reports. Equivalent address/null comparison, no removed check. Result: 95.202705%, instructions 229/222, positional differences 122.
|
||||
|
||||
- pfd_sddrv_build_fat32_mbr_bpb, `b-reserved-logical-null`. Test null-check expression provenance at real helper boundary; target eliminates known-global null test late while retaining unreachable reports. Equivalent address/null comparison, no removed check. Result: 95.202705%, instructions 229/222, positional differences 122.
|
||||
|
||||
- pfd_sddrv_build_fat32_mbr_bpb, `b-reserved-type-null`. Test null-check expression provenance at real helper boundary; target eliminates known-global null test late while retaining unreachable reports. Equivalent address/null comparison, no removed check. Result: 95.202705%, instructions 229/222, positional differences 122.
|
||||
|
||||
GetBlocks correction to the previous log: the two null buffer lifetimes are directly present in the target, not invented to adjust allocation. Both are set to zero before memset and have no subsequent definitions before cleanup. The former run refused to model them and therefore could not recover 12 instructions. Modeling those exact checks with ordinary zero comparisons gives 298/298 instructions. Initial priority was result/fileOffset/files/null1/null2/stream, giving r29/r28/r27/r26/r25/r24. Metadata and count reordered before result, stream and index ahead of the two null owners, and files/offset/transfer afterward give exact target colors, 100%, positional diff 0. Both buffers stay null and cleanup calls remain unreachable on every path, as in the target. Exact capture is queued.
|
||||
|
||||
- pfd_sddrv_build_fat32_mbr_bpb, `b-reserved-nonnull-contract`. Only call site passes the 512-byte global array. Test removing redundant internal null rejection, whose branch is absent in target, while keeping the ordinary caller result check and report strings. Static helper is not externally callable; actual call semantics unchanged. Result: 97.207210%, instructions 216/222, positional differences 100.
|
||||
|
||||
- pfd_sddrv_build_fat32_mbr_bpb, `b-reserved-null-guard-return`. Make null failure a real early return and success unconditional at function end, while retaining signature alignment split. Result: 94.752250%, instructions 230/222, positional differences 122.
|
||||
|
||||
- pfd_sddrv_init, `b-init-current-disk-local`. Target compares input disk with explicit zero then uses the initialized disk after reporting. A current_disk local represents those two device states; test explicit pointer-copy provenance. Result: 95.138885%, instructions 143/144, positional differences 138.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-output-helper`. Ghidra target prefetches count bytes before start stores and reloads count after storing. Use a real little-endian output-parameter helper, allowing alias dependencies to survive inline expansion. No raw offset casts or artificial barriers. Result: 87.392860%, instructions 86/84, positional differences 84.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-zero-output-helper`. Ghidra target prefetches count bytes before start stores and reloads count after storing. Use a real little-endian output-parameter helper, allowing alias dependencies to survive inline expansion. No raw offset casts or artificial barriers. Result: 87.392860%, instructions 86/84, positional differences 84.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-named-temporary-output`. Ghidra target prefetches count bytes before start stores and reloads count after storing. Use a real little-endian output-parameter helper, allowing alias dependencies to survive inline expansion. No raw offset casts or artificial barriers. Result: 87.392860%, instructions 86/84, positional differences 84.
|
||||
|
||||
- WADBackupEx, `b-backup-header-call-boundaries`. Target forms header base and field addresses separately in three calls; separate real header field operations into typed helpers. Identical call arguments and bytes copied. Result: 97.385124%, instructions 1057/1062, positional differences 876.
|
||||
|
||||
- WADBackupEx, `b-backup-header-pointer`. Use a named pointer to the existing header union member for all header field access; test whether target two-stage call addresses survive before allocation. Result: 97.385124%, instructions 1057/1062, positional differences 876.
|
||||
|
||||
- pfd_sddrv_init, `b-init-unsigned-null`. Test explicit null comparison at the validation boundary; preserve Ghidra two-arm status CFG. Target comparison uses a materialized zero, ours folds it before allocation. Result: 95.138885%, instructions 143/144, positional differences 138.
|
||||
|
||||
- WADBackupEx, `b-backup-empty-file-success`. Target explicitly reloads file type and compares one on the empty/non-file arm before cleanup. Express zero-length regular files as successful without opening a file. Read/close/error behavior for nonempty files remains unchanged. Result: 97.294720%, instructions 1064/1062, positional differences 894.
|
||||
|
||||
- pfd_sddrv_init, `b-init-void-null`. Test explicit null comparison at the validation boundary; preserve Ghidra two-arm status CFG. Target comparison uses a materialized zero, ours folds it before allocation. Result: 95.138885%, instructions 143/144, positional differences 138.
|
||||
|
||||
- pfd_sddrv_init, `b-init-inline-null`. Test explicit null comparison at the validation boundary; preserve Ghidra two-arm status CFG. Target comparison uses a materialized zero, ours folds it before allocation. Result: 95.138885%, instructions 143/144, positional differences 138.
|
||||
|
||||
- WADBackupEx, `b-backup-empty-file-remaining`. Target dead file-type test may come from initializing the existing byte counter for an empty file; reconstruct that real counter assignment, whose value is dead at the join. Diagnostic only pending source review. Result: 97.677025%, instructions 1060/1062, positional differences 892.
|
||||
|
||||
- pfd_sddrv_finalize, `b-finalize-state-pointer`. Use a named pointer to the real global driver state for the full lifecycle; tests load/store alias provenance and return-value lifetime, without changing the type or flags. Result: 67.842100%, instructions 52/57, positional differences 45.
|
||||
|
||||
- pfd_sddrv_finalize, `b-finalize-flags-named-lifetime`. Name the old flags and masked result as one truthful flags local. Target uses old flags in r3 before zero return and masked flags in r5; verify whether this changes pre-allocation scheduling. Result: 92.631580%, instructions 57/57, positional differences 4.
|
||||
|
||||
- WADImportDVDExForBS, `b-dvd-content-success`. Target retains a content-size load/compare before content-buffer setup. Test an explicit successful optional-content parse, with status already zero on this path; preserve all reads and ES calls. Diagnostic only. Result: 97.490490%, instructions 265/263, positional differences 193.
|
||||
|
||||
- WADImportDVDExForBS, `b-dvd-content-size-dead-assignment`. Diagnostic to identify optimizer phase: a target-proven content-size check with a dead assignment. Not a landing candidate because contentCount would have an unrelated temporary meaning. Result: 98.250950%, instructions 263/263, positional differences 73.
|
||||
|
||||
- WADImportDVDExForBS, `b-dvd-content-size-lifetime`. Use one truthful size local for the optional aggregate content size and each content transfer size. Target explicitly reads and compares header content size at this point but discards its value before the content loop. No fake object, new memory access or surviving added operation. Result: 98.669205%, instructions 263/263, positional differences 60.
|
||||
|
||||
Confirmed GetBlocks captures b-blocks-null-zero and b-blocks-exact against ordinary compilation: all 40 function streams identical. Exact allocator colors metadata v51 r30, count v50 r31, result v49 r29, stream v48 r28, index v47 r27, second/first buffers v46/v45 r26/r25, files v44 r24, offset v43 r23, transfer v42 r22. These high-degree nodes survive the initial degree<29 simplify scan, then simplify in ascending vreg order at degrees 12-21; reverse coloring and nonoverlapping invariant lives select target colors. Parameter/result copy candidates are interference-rejected. Backend-00/01 now include both target cleanup branches; ctxdiff0.
|
||||
|
||||
- pfd_sddrv_build_fat32_mbr_bpb, `b-reserved-success-in-each-signature-arm`. Vary genuine signature success/null status flow at private helper boundary. Only caller is nonnull global; compare late block pruning and retained report paths, before register allocation. Result: 94.549550%, instructions 231/222, positional differences 124.
|
||||
|
||||
- pfd_sddrv_build_fat32_mbr_bpb, `b-reserved-bool-null-status`. Vary genuine signature success/null status flow at private helper boundary. Only caller is nonnull global; compare late block pruning and retained report paths, before register allocation. Result: 93.400900%, instructions 233/222, positional differences 123.
|
||||
|
||||
- pfd_sddrv_build_fat32_mbr_bpb, `b-reserved-null-after-clear`. Vary genuine signature success/null status flow at private helper boundary. Only caller is nonnull global; compare late block pruning and retained report paths, before register allocation. Result: 96.139640%, instructions 229/222, positional differences 121.
|
||||
|
||||
- pfd_sddrv_build_fat32_mbr_bpb, `b-reserved-caller-success-label`. Match target unconditional branch over report block by making the caller success continuation explicit; helper checks, report order and every return stay the same. Result: 95.202705%, instructions 229/222, positional differences 122.
|
||||
|
||||
Clean full gate for GetBlocks: GATE PASS, wad exact 37/40 -> 38/40, code 18008 -> 19200/24500, data 528/528; sd_drv 23/26, pdm_partition 19/20 unchanged. Zero regressions, forbidden patterns and readability warnings. SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Evidence build/rx10b/gate-blocks.log.
|
||||
|
||||
- WADImportDVDExForBS, `b-dvd-target-declaration-order`. Target value map: opened r31, result r30, contentBuffer r29, contentCount r28, titleMeta r27, readBuffer r26, sectionOffset r25, capacity r24, fd r23, scaled index r22, chunk r21, size/contentMeta r20. Reorder real locals by those high-degree priorities; preserve all computations and initialization. Result: 98.783270%, instructions 263/263, positional differences 46.
|
||||
|
||||
- WADImportDVDExForBS, `b-dvd-target-separate-initialization`. Separate flag initialization from declaration while preserving entry order; tests virtual numbering without changing the actual false/true lifetime. Result: 98.783270%, instructions 263/263, positional differences 46.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-byte-args-high-upper-low-lower`. Target sums (upper16+low)+(high24+lower8) but creates high-byte load first. Pass actual decoded bytes through a value helper in target load order, and use array indexing in the independent bounds pass. Different inline parameter provenance, identical four byte reads and sums. Result: 87.535710%, instructions 86/84, positional differences 84.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-byte-args-high-low-upper-lower`. Target sums (upper16+low)+(high24+lower8) but creates high-byte load first. Pass actual decoded bytes through a value helper in target load order, and use array indexing in the independent bounds pass. Different inline parameter provenance, identical four byte reads and sums. Result: 87.535710%, instructions 86/84, positional differences 84.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-byte-args-low-lower-upper-high`. Target sums (upper16+low)+(high24+lower8) but creates high-byte load first. Pass actual decoded bytes through a value helper in target load order, and use array indexing in the independent bounds pass. Different inline parameter provenance, identical four byte reads and sums. Result: 87.535710%, instructions 86/84, positional differences 84.
|
||||
|
||||
- WADImportDVDExForBS, `b-dvd-index-before-offset`. Target readBuffer shares r26 with later contentIndex, while titleMeta uses r27. Give contentIndex higher coloring priority than sectionOffset so the nonoverlapping buffer copy has r26 available. Result: 99.600760%, instructions 263/263, positional differences 19.
|
||||
|
||||
- WADImportDVDExForBS, `b-dvd-fd-above-capacity`. Resolve the remaining fd/chunk/scaled-walker priority using real descriptor/transfer locals; no lifetime overlap or operation changes. Result: 99.600760%, instructions 263/263, positional differences 19.
|
||||
|
||||
- WADImportDVDExForBS, `b-dvd-fd-initialized`. Resolve the remaining fd/chunk/scaled-walker priority using real descriptor/transfer locals; no lifetime overlap or operation changes. Result: 99.600760%, instructions 263/263, positional differences 19.
|
||||
|
||||
- WADImportDVDExForBS, `b-dvd-chunk-outer`. Resolve the remaining fd/chunk/scaled-walker priority using real descriptor/transfer locals; no lifetime overlap or operation changes. Result: Compile failed; excluded from attempt count.
|
||||
|
||||
- WADImportDVDExForBS, `b-dvd-chunk-outer-fixed`. Give chunkSize a named outer local so it is numbered before the implicit scaled walker, preserving all values and scopes visible to calls. Result: 99.600760%, instructions 263/263, positional differences 19.
|
||||
|
||||
- WADImportDVDExForBS, `b-dvd-minimum-boundary`. Reuse the existing real minimum helper to separate chunk temporary creation from fd and loop walker creation; target fd r23, walker r22, chunk r21. Result: 98.954380%, instructions 262/263, positional differences 87.
|
||||
|
||||
- WADBackupEx, `b-backup-header-field-accessors`. Return real field pointers from typed aggregate accessors. Unlike wrapping the calls, this changes creation time of address values; target has three split addi field addresses. Result: 97.677025%, instructions 1060/1062, positional differences 892.
|
||||
|
||||
- WADImportDVDExForBS, `b-dvd-initial-read-and-descriptor-result`. Target bufferSize and fd share r23, and chunk comes afterward. Reuse one neutral value local for nonoverlapping initial DVD call results and ES descriptor; keep inner read result separate while descriptor is live. Truthful name for every use. Result: 100.000000%, instructions 263/263, positional differences 0.
|
||||
|
||||
- WADBackupEx, `b-backup-rebound-header-view`. Explicitly bind header buffer at initialization and access real fields through it; target materializes header base separately at field-pointer calls. No new layout or data. Result: 97.538605%, instructions 1061/1062, positional differences 898.
|
||||
|
||||
- WADBackupEx, `b-backup-content-status-provenance`. Target saves zero to escaped status before count test and again on success. Give count validation its own named zero status, then assign the function status at both target points. Diagnostic pending optimizer comparison. Result: 97.921844%, instructions 1060/1062, positional differences 891.
|
||||
|
||||
DVD shape fix: target has lwz header.contentSize; cmpwi before buffer setup. A truthful size local receives the aggregate content size in that optional-section branch, then each content size in the loop. The aggregate assignment dies, retaining the two target instructions. With 263/263 restored, ordinary declaration order fixes opened/result/buffer/count/meta/index/offset/capacity colors. The fd is initially a single-assignment low-degree value; reusing a neutral value local for nonoverlapping initial DVD read counts and the ES content handle moves it into the later high-degree simplify group. Inner DVD read counts have a separate readResult while the ES handle is live. Result: 100%, diffs0. Exact capture queued. This preserves every target operation and all names remain truthful.
|
||||
|
||||
- WADBackupEx, `b-backup-aligned-header-view`. Target stack is rounded to 64 bytes and three member addresses retain header-base addi plus field addi. Use an explicitly aligned view of the actual header block as for existing certificate buffers; value and alignment unchanged. Result: 93.545200%, instructions 1067/1062, positional differences 992.
|
||||
|
||||
- WADBackupEx, `b-backup-common-count-status`. Target stores success to escaped result before count validation and on its success edge. Express the real count-validation status and shared join explicitly, retaining all error outcomes. Result: 96.059320%, instructions 1061/1062, positional differences 743.
|
||||
|
||||
- WADBackupEx, `b-backup-both-count-arms`. Target stores success to escaped result before count validation and on its success edge. Express the real count-validation status and shared join explicitly, retaining all error outcomes. Result: 96.026370%, instructions 1060/1062, positional differences 932.
|
||||
|
||||
- WADBackupEx, `b-backup-count-positive-join`. Target stores success to escaped result before count validation and on its success edge. Express the real count-validation status and shared join explicitly, retaining all error outcomes. Result: 97.677025%, instructions 1060/1062, positional differences 892.
|
||||
|
||||
- pfd_sddrv_init, `b-types-flags-pfd_sddrv_init`. Test actual driver flags/status signedness at its definition. Target uses scalar load/store masks; signed versus unsigned alias classes may affect scheduling. Preserve field widths, layout and all external definitions; retain only whole-unit nondropping exactness. Result: 95.138885%, instructions 143/144, positional differences 138.
|
||||
|
||||
- pfd_sddrv_finalize, `b-types-flags-pfd_sddrv_finalize`. Test actual driver flags/status signedness at its definition. Target uses scalar load/store masks; signed versus unsigned alias classes may affect scheduling. Preserve field widths, layout and all external definitions; retain only whole-unit nondropping exactness. Result: 92.631580%, instructions 57/57, positional differences 4.
|
||||
|
||||
- pfd_sddrv_init, `b-types-media_inserted-pfd_sddrv_init`. Test actual driver flags/status signedness at its definition. Target uses scalar load/store masks; signed versus unsigned alias classes may affect scheduling. Preserve field widths, layout and all external definitions; retain only whole-unit nondropping exactness. Result: 95.138885%, instructions 143/144, positional differences 138.
|
||||
|
||||
- WADBackupEx, `b-backup-header-byte-buffer-view`. Target builds base of the actual 128-byte header storage then forms each typed field address. Cast the existing byte-array view to the real header type at those three calls, without raw offsets or a new object. Result: 97.921844%, instructions 1060/1062, positional differences 891.
|
||||
|
||||
- pfd_sddrv_finalize, `b-types-media_inserted-pfd_sddrv_finalize`. Test actual driver flags/status signedness at its definition. Target uses scalar load/store masks; signed versus unsigned alias classes may affect scheduling. Preserve field widths, layout and all external definitions; retain only whole-unit nondropping exactness. Result: 92.631580%, instructions 57/57, positional differences 4.
|
||||
|
||||
- pfd_sddrv_init, `b-types-media_ejected-pfd_sddrv_init`. Test actual driver flags/status signedness at its definition. Target uses scalar load/store masks; signed versus unsigned alias classes may affect scheduling. Preserve field widths, layout and all external definitions; retain only whole-unit nondropping exactness. Result: 95.138885%, instructions 143/144, positional differences 138.
|
||||
|
||||
- WADBackupEx, `b-backup-size-only-existing-success`. Target size-only path inherits existing zero status and has no second store after writing sizeOut. Remove that provably redundant assignment; no call can change the local between its preceding zero assignment and this branch. Result: 98.016010%, instructions 1059/1062, positional differences 933.
|
||||
|
||||
- pfd_sddrv_finalize, `b-types-media_ejected-pfd_sddrv_finalize`. Test actual driver flags/status signedness at its definition. Target uses scalar load/store masks; signed versus unsigned alias classes may affect scheduling. Preserve field widths, layout and all external definitions; retain only whole-unit nondropping exactness. Result: 92.631580%, instructions 57/57, positional differences 4.
|
||||
|
||||
- pfd_sddrv_init, `b-types-flags-media_inserted-pfd_sddrv_init`. Test actual driver flags/status signedness at its definition. Target uses scalar load/store masks; signed versus unsigned alias classes may affect scheduling. Preserve field widths, layout and all external definitions; retain only whole-unit nondropping exactness. Result: 95.138885%, instructions 143/144, positional differences 138.
|
||||
|
||||
- pfd_sddrv_finalize, `b-types-flags-media_inserted-pfd_sddrv_finalize`. Test actual driver flags/status signedness at its definition. Target uses scalar load/store masks; signed versus unsigned alias classes may affect scheduling. Preserve field widths, layout and all external definitions; retain only whole-unit nondropping exactness. Result: 92.631580%, instructions 57/57, positional differences 4.
|
||||
|
||||
- pfd_sddrv_init, `b-types-flags-media_inserted-media_ejected-pfd_sddrv_init`. Test actual driver flags/status signedness at its definition. Target uses scalar load/store masks; signed versus unsigned alias classes may affect scheduling. Preserve field widths, layout and all external definitions; retain only whole-unit nondropping exactness. Result: 95.138885%, instructions 143/144, positional differences 138.
|
||||
|
||||
- pfd_sddrv_finalize, `b-types-flags-media_inserted-media_ejected-pfd_sddrv_finalize`. Test actual driver flags/status signedness at its definition. Target uses scalar load/store masks; signed versus unsigned alias classes may affect scheduling. Preserve field widths, layout and all external definitions; retain only whole-unit nondropping exactness. Result: 92.631580%, instructions 57/57, positional differences 4.
|
||||
|
||||
- pfd_sddrv_init, `b-pointer-order-device-pfd_sddrv_init`. Definition-only ordering diagnostic. Target stores device before media read and disk before flags read; test pointer-store ordering barriers. Do not retain without matching other unit functions and target evidence that this state is observed asynchronously. Result: 95.138885%, instructions 143/144, positional differences 138.
|
||||
|
||||
- pfd_sddrv_finalize, `b-pointer-order-device-pfd_sddrv_finalize`. Definition-only ordering diagnostic. Target stores device before media read and disk before flags read; test pointer-store ordering barriers. Do not retain without matching other unit functions and target evidence that this state is observed asynchronously. Result: 92.631580%, instructions 57/57, positional differences 4.
|
||||
|
||||
- pfd_sddrv_init, `b-pointer-order-disk-pfd_sddrv_init`. Definition-only ordering diagnostic. Target stores device before media read and disk before flags read; test pointer-store ordering barriers. Do not retain without matching other unit functions and target evidence that this state is observed asynchronously. Result: 95.138885%, instructions 143/144, positional differences 138.
|
||||
|
||||
- pfd_sddrv_finalize, `b-pointer-order-disk-pfd_sddrv_finalize`. Definition-only ordering diagnostic. Target stores device before media read and disk before flags read; test pointer-store ordering barriers. Do not retain without matching other unit functions and target evidence that this state is observed asynchronously. Result: 92.631580%, instructions 57/57, positional differences 7.
|
||||
|
||||
- pfd_sddrv_init, `b-pointer-order-device-disk-pfd_sddrv_init`. Definition-only ordering diagnostic. Target stores device before media read and disk before flags read; test pointer-store ordering barriers. Do not retain without matching other unit functions and target evidence that this state is observed asynchronously. Result: 95.138885%, instructions 143/144, positional differences 138.
|
||||
|
||||
- pfd_sddrv_finalize, `b-pointer-order-device-disk-pfd_sddrv_finalize`. Definition-only ordering diagnostic. Target stores device before media read and disk before flags read; test pointer-store ordering barriers. Do not retain without matching other unit functions and target evidence that this state is observed asynchronously. Result: 92.631580%, instructions 57/57, positional differences 7.
|
||||
|
||||
- WADBackupEx, `b-backup-header-bytes-storage`. Model the actual 128-byte header I/O buffer as an aligned array with a typed header view rather than union storage. Same extent, alignment, fields and binary layout; target has separate base and member-address formation. Result: 98.016010%, instructions 1059/1062, positional differences 933.
|
||||
|
||||
- WADBackupEx, `b-backup-header-words-storage`. Model the actual 128-byte header I/O buffer as an aligned array with a typed header view rather than union storage. Same extent, alignment, fields and binary layout; target has separate base and member-address formation. Result: 98.016010%, instructions 1059/1062, positional differences 933.
|
||||
|
||||
- WADBackupEx, `b-backup-header-align-4`. Test typed-header or DMA alignment of the existing 64-aligned storage view. No alignment/layout change; compare the exact target two-stage member addresses before allocation. Result: 93.869120%, instructions 1066/1062, positional differences 963.
|
||||
|
||||
- WADBackupEx, `b-backup-header-align-32`. Test typed-header or DMA alignment of the existing 64-aligned storage view. No alignment/layout change; compare the exact target two-stage member addresses before allocation. Result: 93.869120%, instructions 1066/1062, positional differences 963.
|
||||
|
||||
- pfd_sddrv_init, `b-init-new-device-boundary-plain`. Factor the complete new-device initialization branch into a real lifecycle helper. Outer null and already-initialized checks stay in entry point. Examine pre-allocation null comparison, store/load boundaries and returned status. Result: 95.083336%, instructions 143/144, positional differences 138.
|
||||
|
||||
- pfd_sddrv_init, `b-init-new-device-boundary-const`. Factor the complete new-device initialization branch into a real lifecycle helper. Outer null and already-initialized checks stay in entry point. Examine pre-allocation null comparison, store/load boundaries and returned status. Result: 95.083336%, instructions 143/144, positional differences 138.
|
||||
|
||||
- pfd_sddrv_init, `b-init-pointer-comparison-boundary`. Make explicit typed comparison operands at a real disk-identity helper; target validates against a materialized null pointer. Actual predicate and branch status remain unchanged. Result: 95.138885%, instructions 143/144, positional differences 138.
|
||||
|
||||
DVD exact capture b-dvd-exact validated against ordinary compiler, all 40 function instruction streams identical. Target core v50-v42 receives r31-r24 in value order opened/result/contentBuffer/contentCount/titleMeta/index/offset/capacity. Initial fd alone simplified in first sweep at degree 27 before named high-degree values, giving r21 after coloring; reusing neutral value for initial read counts leaves v39 in the second sweep at degree 20, ahead of the scaled-walker v126 r22 and chunk v51 r21. value and bufferSize use r23 without overlap. Buffer/readBuffer coalesce successfully, call-result to value/result merges are interference-rejected. Backend-01 B26/B27 retains the target content-size compare and an empty branch after the dead aggregate assignment is removed; final 263/263 instruction diff is zero.
|
||||
|
||||
- pfd_sddrv_finalize, `b-finalize-flags-bitfield`. Model actual 32-bit state flags as a union with the three observed bits, preserving the entire value view for other functions. Use the initialized bit transition directly in finalize; test RMW scheduling. Genuine field semantics, no additional state, padding object or qualifier. Result: 92.105260%, instructions 57/57, positional differences 9.
|
||||
|
||||
- pfd_sddrv_init, `b-init-flags-bitfield`. Use the actual initialized state bit at the final disk publication store. Tests whether field RMW keeps the target store-before-load sequence without volatile. Result: 95.138885%, instructions 143/144, positional differences 138.
|
||||
|
||||
- WADBackupEx, `b-backup-count-output-status`. Place count validation at an output-status helper boundary because result is already an escaped OSJoinThread out-parameter. Target has a zero store before validation. This changes provenance of the actual status write, not its values or timing relative to calls. Result: 96.285310%, instructions 1060/1062, positional differences 931.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-0123`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 85.952380%, instructions 84/84, positional differences 43.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-0132`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 85.880950%, instructions 84/84, positional differences 43.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-0213`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 86.000000%, instructions 84/84, positional differences 43.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-0231`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 86.000000%, instructions 84/84, positional differences 43.
|
||||
|
||||
- pfd_sddrv_build_fat32_mbr_bpb, `b-fat32-explicit-reserved-phase`. Expose actual reserved-sector phase at its only call site so global-array null knowledge exists before inlining. Preserve full helper checks and both report strings; compare which dead blocks survive before allocation. Result: 95.202705%, instructions 229/222, positional differences 122.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-0312`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 86.011900%, instructions 84/84, positional differences 43.
|
||||
|
||||
- pfd_sddrv_build_fat32_mbr_bpb, `b-fat32-reserved-status-output`. Change private reserved-sector helper result to an explicit output parameter. Same single global-buffer call and status value; test whether return-copy folding controls late pruning. Result: 95.202705%, instructions 229/222, positional differences 122.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-0321`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 86.083336%, instructions 84/84, positional differences 43.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-1023`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 88.345240%, instructions 84/84, positional differences 43.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-1032`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 88.202380%, instructions 84/84, positional differences 43.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-1203`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 86.011900%, instructions 84/84, positional differences 43.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-1230`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 83.309525%, instructions 82/84, positional differences 82.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-1302`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 85.880950%, instructions 84/84, positional differences 43.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-1320`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 83.428570%, instructions 82/84, positional differences 82.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-2013`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 88.202380%, instructions 84/84, positional differences 43.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-2031`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 88.333336%, instructions 84/84, positional differences 43.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-2103`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 86.011900%, instructions 84/84, positional differences 43.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-2130`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 83.369050%, instructions 82/84, positional differences 82.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-2301`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 86.023810%, instructions 84/84, positional differences 43.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-2310`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 83.511900%, instructions 82/84, positional differences 82.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-3012`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 88.285710%, instructions 84/84, positional differences 43.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-3021`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 88.559525%, instructions 84/84, positional differences 43.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-3102`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 85.952380%, instructions 84/84, positional differences 43.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-3120`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 83.428570%, instructions 82/84, positional differences 82.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-3201`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 86.095240%, instructions 84/84, positional differences 43.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-accumulate-3210`. Create decoded value through sequential unsigned byte accumulation rather than an associative return expression. Same four byte reads and modulo-32-bit sum. Tests backend arithmetic regrouping and load lifetime creation; array bounds pass fixed to target. Result: 83.452380%, instructions 82/84, positional differences 82.
|
||||
|
||||
- pfd_sddrv_finalize, `b-finalize-media-memset`. Express actual field reset as a standard fixed-size zeroing operation, allowing alias-sensitive builtin expansion. Equivalent bytes and same ordering; target contains scalar zero stores, so reject if a call or byte loop remains. Result: 83.596490%, instructions 62/57, positional differences 58.
|
||||
|
||||
- pfd_sddrv_finalize, `b-finalize-disk-memset`. Express actual field reset as a standard fixed-size zeroing operation, allowing alias-sensitive builtin expansion. Equivalent bytes and same ordering; target contains scalar zero stores, so reject if a call or byte loop remains. Result: 84.280700%, instructions 64/57, positional differences 60.
|
||||
|
||||
- pfd_sddrv_finalize, `b-finalize-drive-memset`. Express actual field reset as a standard fixed-size zeroing operation, allowing alias-sensitive builtin expansion. Equivalent bytes and same ordering; target contains scalar zero stores, so reject if a call or byte loop remains. Result: 91.842100%, instructions 60/57, positional differences 17.
|
||||
|
||||
- pfd_sddrv_build_fat32_mbr_bpb, `b-fat32-reserved-pointer-const`. Test actual buffer parameter alias type at private clear helper boundary. The sole caller passes writable global bytes; compare null/result pruning before coloring. Diagnostic only; a const clear interface is not a landing candidate. Result: 95.202705%, instructions 229/222, positional differences 122.
|
||||
|
||||
- pfd_sddrv_build_fat32_mbr_bpb, `b-fat32-reserved-pointer-void`. Test actual buffer parameter alias type at private clear helper boundary. The sole caller passes writable global bytes; compare null/result pruning before coloring. Diagnostic only; a const clear interface is not a landing candidate. Result: 95.202705%, instructions 229/222, positional differences 122.
|
||||
|
||||
Search driver correction: shared srcsearch locates the first function-name occurrence, which is a prototype in sd_drv.c; it then mutates the callback table initializer and terminates after one trial. A private copy changes only function-definition selection and reports its selected body length. The shared 24-slot CPU lock is byte-for-byte unchanged. Restarted only this worker's nine SD searches using the corrected definition matcher. All search outputs remain inside this worktree.
|
||||
|
||||
- WADBackupEx, `b-backup-call-header-alignment-32`. Resolve the aligned header view at each actual field-pointer call, avoiding a long-lived cached header pointer. Target separately materializes base/member addresses; stack storage is already 64-aligned so values and bounds are unchanged. Result: 97.799440%, instructions 1064/1062, positional differences 888.
|
||||
|
||||
- WADBackupEx, `b-backup-call-header-alignment-64`. Resolve the aligned header view at each actual field-pointer call, avoiding a long-lived cached header pointer. Target separately materializes base/member addresses; stack storage is already 64-aligned so values and bounds are unchanged. Result: 97.799440%, instructions 1064/1062, positional differences 888.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-even-odd`. Decode little-endian bytes with actual intermediate accumulator lifetimes or a byte-reading loop. All arithmetic is unsigned and modulo 32 bits; test whether MWCC preserves the target even/odd pair grouping before allocation rather than flattening one return expression. Result: 84.702380%, instructions 84/84, positional differences 38.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-even-odd-separate`. Decode little-endian bytes with actual intermediate accumulator lifetimes or a byte-reading loop. All arithmetic is unsigned and modulo 32 bits; test whether MWCC preserves the target even/odd pair grouping before allocation rather than flattening one return expression. Result: 84.583336%, instructions 84/84, positional differences 38.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-shift-accumulate`. Decode little-endian bytes with actual intermediate accumulator lifetimes or a byte-reading loop. All arithmetic is unsigned and modulo 32 bits; test whether MWCC preserves the target even/odd pair grouping before allocation rather than flattening one return expression. Result: 82.654760%, instructions 82/84, positional differences 82.
|
||||
|
||||
- pdm_part_is_master_boot_sector, `b-partition-shift-loop`. Decode little-endian bytes with actual intermediate accumulator lifetimes or a byte-reading loop. All arithmetic is unsigned and modulo 32 bits; test whether MWCC preserves the target even/odd pair grouping before allocation rather than flattening one return expression. Result: 82.654760%, instructions 82/84, positional differences 82.
|
||||
|
||||
- WADBackupEx, `b-backup-header-rebind-before-calls`. Bind the real stack header independently at the three member-address call sites. Target computes header base before status initialization and field offset afterward. Test named pointer rebinding and block scope without additional objects or altered layout. Result: 98.016010%, instructions 1059/1062, positional differences 933.
|
||||
|
||||
- WADBackupEx, `b-backup-header-rebind-before-init`. Bind the real stack header independently at the three member-address call sites. Target computes header base before status initialization and field offset afterward. Test named pointer rebinding and block scope without additional objects or altered layout. Result: 98.016010%, instructions 1059/1062, positional differences 933.
|
||||
|
||||
- WADBackupEx, `b-backup-header-inline-local-before-init`. Bind the real stack header independently at the three member-address call sites. Target computes header base before status initialization and field offset afterward. Test named pointer rebinding and block scope without additional objects or altered layout. Result: Compile failed; excluded from attempt count.
|
||||
|
||||
- WADBackupEx, `b-backup-count-boundary-early-return`. Use a real content-count validator returning the existing status code. Target retains a success store before the count test; compare return-value provenance at a scalar inline boundary before register tuning. Result: 97.342750%, instructions 1062/1062, positional differences 634.
|
||||
|
||||
- WADBackupEx, `b-backup-count-boundary-assigned-status`. Use a real content-count validator returning the existing status code. Target retains a success store before the count test; compare return-value provenance at a scalar inline boundary before register tuning. Result: 97.568740%, instructions 1061/1062, positional differences 926.
|
||||
|
||||
- WADBackupEx, `b-backup-count-boundary-nested-success`. Use a real content-count validator returning the existing status code. Target retains a success store before the count test; compare return-value provenance at a scalar inline boundary before register tuning. Result: 97.337100%, instructions 1062/1062, positional differences 633.
|
||||
|
||||
- WADBackupEx, `b-backup-header-type-aligned`. Express the existing 64-byte DMA alignment on the genuine header block type or header member rather than the one local. Extent remains 128 bytes. Test separate base/member address generation; retain only identical whole-unit layout and exact instructions. Result: 97.719400%, instructions 1059/1062, positional differences 982.
|
||||
|
||||
- WADBackupEx, `b-backup-header-member-aligned`. Express the existing 64-byte DMA alignment on the genuine header block type or header member rather than the one local. Extent remains 128 bytes. Test separate base/member address generation; retain only identical whole-unit layout and exact instructions. Result: 98.016010%, instructions 1059/1062, positional differences 933.
|
||||
|
||||
|
||||
rx10b pre-allocation and allocator audit of the five remaining functions:
|
||||
|
||||
- WADBackupEx (`build/rx10/mwdbg-b-backup-guided`): target long-lived values are titleMetaBuffer r25, files r24, importedSize r22, outputBuffer r21, encryptionBuffer r19 and titleMeta r16; the guided source colors files v69 r25, outputBuffer v64 r24 and encryptionBuffer v63 r23 after six high-priority loop invariants consume r31-r26. Its second GPR pass follows spills; the earlier status, file-type and address-formation differences change that graph. The restored empty-file arm recovers three instructions. The current best still lacks the target success store before count validation and folds three target base-plus-member address pairs; one compensating spill reload makes 1059/1062. Those are backend source-shape gaps, not proven allocator ties. Do not retain this fuzzy candidate or tune around its wrong graph.
|
||||
- pdm_part_is_master_boot_sector (`build/rx10/mwdbg-b-pdm-guided`): target start/count output pointers are r6/r7 and the loop index is r8, matching v37/v36/v35. The target decodes each LE32 value with even-byte and odd-byte pairs, whereas backend-01 B5 combines byte2 with byte1 and byte3 with byte0 and places the start-zero store before the count-byte prefetch. The source first shifted byte v46 colors r31, while target uses r30; subsequent sum v54 and count shift v56 occupy r30/r31. Pointer copies coalesce, with no spills. Source arithmetic and load lifetimes still differ before coloring; the 84/84 instruction count alone does not establish a tie.
|
||||
- pfd_sddrv_init (`build/rx10/mwdbg-b-init-guided`): target report base, disk and driver-state base use r31/r30/r29, already reproduced by v40/v32 and v42/v60/v72. The success-label form recovers the target branch layout (143/144) without altering error results. Backend-00 still emits cmpi disk,0 instead of target li zero plus cmpl; backend-01 also hoists media and flags loads across the preceding device/disk stores. Coalescing report arguments with physical r3 cannot recover a missing null materialization or those source-shape scheduling boundaries.
|
||||
- pfd_sddrv_finalize (`build/rx10/mwdbg-b-finalize-nested`): target old flags r3 precede the zero return; masked flags r5 are stored before clearing media. Backend-01 B13 instead places media=0 and return=0 ahead of the mask/store. Old flags v57 and masked flags v58 both simplify at degree 4 and color r5; they do not coalesce, but have nonoverlapping lifetimes. State base v56 simplifies at degree 7 and colors r6, while field base v60 and zero v59 simplify at degree 3 and color r4/r0. Return v35 coalesces into physical r3, making that early zero definition interfere with old flags. No spills. The r3/r5 discrepancy is a consequence of pre-allocation scheduling, not a free color swap.
|
||||
- pfd_sddrv_build_fat32_mbr_bpb (`build/rx10/mwdbg-b-fat32-guided`): target omits the known-global reserved-buffer null test and result branch, but retains an unreachable report block. The guided backend still has both decisions before allocation (229/222); removing the redundant guard instead loses six target dead-report instructions (216/222). Report base v46 colors r31, buffer bases v50/v104 r30, state bases v53/v96 r29 and call results r28. No successful GPR coalesces or spills explain the seven extra instructions. Helper status provenance and late pruning remain unresolved.
|
||||
|
||||
Each of those five mwdbg captures was separately recompiled with the ordinary project compiler command. Every function instruction stream and the complete ELF object bytes agree (40 WAD, 20 partition, 26 SD functions); `ordinary-validation.json` beside each capture records the result. None of these five fuzzy-only shapes is applied to production source.
|
||||
|
||||
- pfd_sddrv_init, `b-handle-void-device-pfd_sddrv_init`. Test generic handle types on the actual driver state fields. C object-pointer conversions preserve all stored values and the 32-byte layout. Compare whether alias type changes load/store scheduling before allocation; require all other unit functions unchanged before retaining. Result: 95.138885%, instructions 143/144, positional differences 138.
|
||||
|
||||
- pfd_sddrv_finalize, `b-handle-void-device-pfd_sddrv_finalize`. Test generic handle types on the actual driver state fields. C object-pointer conversions preserve all stored values and the 32-byte layout. Compare whether alias type changes load/store scheduling before allocation; require all other unit functions unchanged before retaining. Result: 92.631580%, instructions 57/57, positional differences 4.
|
||||
|
||||
- pfd_sddrv_init, `b-handle-void-disk-pfd_sddrv_init`. Test generic handle types on the actual driver state fields. C object-pointer conversions preserve all stored values and the 32-byte layout. Compare whether alias type changes load/store scheduling before allocation; require all other unit functions unchanged before retaining. Result: 95.138885%, instructions 143/144, positional differences 138.
|
||||
|
||||
- pfd_sddrv_finalize, `b-handle-void-disk-pfd_sddrv_finalize`. Test generic handle types on the actual driver state fields. C object-pointer conversions preserve all stored values and the 32-byte layout. Compare whether alias type changes load/store scheduling before allocation; require all other unit functions unchanged before retaining. Result: 92.631580%, instructions 57/57, positional differences 4.
|
||||
|
||||
- pfd_sddrv_init, `b-handle-void-device-disk-pfd_sddrv_init`. Test generic handle types on the actual driver state fields. C object-pointer conversions preserve all stored values and the 32-byte layout. Compare whether alias type changes load/store scheduling before allocation; require all other unit functions unchanged before retaining. Result: 95.138885%, instructions 143/144, positional differences 138.
|
||||
|
||||
- pfd_sddrv_finalize, `b-handle-void-device-disk-pfd_sddrv_finalize`. Test generic handle types on the actual driver state fields. C object-pointer conversions preserve all stored values and the 32-byte layout. Compare whether alias type changes load/store scheduling before allocation; require all other unit functions unchanged before retaining. Result: 92.631580%, instructions 57/57, positional differences 4.
|
||||
|
||||
- WADBackupEx, `b-backup-count-positive-content-arm`. Reconstruct count validation together with its actual content-check call in one control-flow region. Preserve the two error outcomes and all calls; test whether whole success/failure arms keep the target pre-test status store instead of optimizing it away. Result: 97.162900%, instructions 1060/1062, positional differences 829.
|
||||
|
||||
- WADBackupEx, `b-backup-count-negative-content-arm`. Reconstruct count validation together with its actual content-check call in one control-flow region. Preserve the two error outcomes and all calls; test whether whole success/failure arms keep the target pre-test status store instead of optimizing it away. Result: 97.639360%, instructions 1059/1062, positional differences 934.
|
||||
|
||||
- WADBackupEx, `b-backup-count-joined-content-status`. Reconstruct count validation together with its actual content-check call in one control-flow region. Preserve the two error outcomes and all calls; test whether whole success/failure arms keep the target pre-test status store instead of optimizing it away. Result: 95.969870%, instructions 1058/1062, positional differences 862.
|
||||
|
||||
- WADBackupEx, `b-backup-count-validation-loop`. Reconstruct count validation together with its actual content-check call in one control-flow region. Preserve the two error outcomes and all calls; test whether whole success/failure arms keep the target pre-test status store instead of optimizing it away. Result: 95.969870%, instructions 1058/1062, positional differences 862.
|
||||
|
||||
- pfd_sddrv_finalize, `b-finalize-reuse-value`. Reuse the existing scalar call-result local for the final flags value, renamed value because it holds both meanings. Bitwise conversion preserves all 32 bits on this target. Target old flags use r3 before the zero return; test ordinary local lifetime/coalescing rather than adding a dependency. Result: 92.631580%, instructions 57/57, positional differences 4.
|
||||
|
||||
- pfd_sddrv_finalize, `b-finalize-reuse-value-return`. Use the same neutral value local for call status, final flags read and success return, in nonoverlapping lifetimes. Preserve every field store and error report; inspect whether r3 return coalescing now applies to the old-flags value. Result: 92.631580%, instructions 57/57, positional differences 4.
|
||||
|
||||
- pfd_sddrv_finalize, `b-finalize-reuse-unsigned-value`. Keep the reused neutral scalar unsigned to express flags without signed conversion. ISD errors are tested only for zero and OSReport receives the same 32 bits; final success remains zero. Compare allocator provenance after equivalent type spelling. Result: 92.631580%, instructions 57/57, positional differences 4.
|
||||
|
||||
|
||||
Source review of the retained rx10b changes: WADImportGetBlocks restores two target-proven zero-initialized buffer owners and their conditional cleanup, preserving all existing calls and error paths. WADImportDVDExForBS restores the target content-size read/compare; size is assigned from each content entry before any loop read. The neutral value local holds initial DVD read counts only before content import begins, then holds the ES content handle; inner DVD reads use a distinct readResult while that handle remains live. Declaration movement changes allocator priority without changing stack objects, types, flags, globals, strings or function interfaces. No new comment, carrier structure, inline assembly, volatile qualifier or artificial dependency is present in either production change.
|
||||
|
||||
- pdm_part_is_master_boot_sector, rx10b search seed 30: 1200 seconds after acquiring the unchanged shared 24-slot lock; done 1994 trials; best-nodrop energy -89.8452. No nondropping improvement was saved; production source unchanged. Source/log: `build/rx10b/search/pdm_part_is_master_boot_sector-30.log`.
|
||||
|
||||
- pdm_part_is_master_boot_sector, rx10b search seed 32: 1200 seconds after acquiring the unchanged shared 24-slot lock; done 1991 trials; best-nodrop energy -89.8452. No nondropping improvement was saved; production source unchanged. Source/log: `build/rx10b/search/pdm_part_is_master_boot_sector-32.log`.
|
||||
|
||||
- pfd_sddrv_build_fat32_mbr_bpb, rx10b search seed 32: 1200 seconds after acquiring the unchanged shared 24-slot lock; done 1546 trials; best-nodrop energy -81.2027. No nondropping improvement was saved; production source unchanged. Source/log: `build/rx10b/search/pfd_sddrv_build_fat32_mbr_bpb-32-definition-shape.log`.
|
||||
|
||||
- WADBackupEx, `b-backup-member-offsets-byte-array`. Diagnostic: address the real serialized header bytes using offsetof of the existing named fields. Same typed field offsets and no magic byte constants. Compare source array-address lowering with the target base/member addi pairs; prefer ordinary field access for a retained candidate. Result: 98.016010%, instructions 1059/1062, positional differences 933.
|
||||
|
||||
- WADBackupEx, `b-backup-member-offsets-byte-base`. Diagnostic: address the real serialized header bytes using offsetof of the existing named fields. Same typed field offsets and no magic byte constants. Compare source array-address lowering with the target base/member addi pairs; prefer ordinary field access for a retained candidate. Result: 97.877590%, instructions 1060/1062, positional differences 918.
|
||||
|
||||
- WADBackupEx, `b-backup-member-offsets-byte-base-per-call`. Diagnostic: address the real serialized header bytes using offsetof of the existing named fields. Same typed field offsets and no magic byte constants. Compare source array-address lowering with the target base/member addi pairs; prefer ordinary field access for a retained candidate. Result: 98.016010%, instructions 1059/1062, positional differences 933.
|
||||
|
||||
- pfd_sddrv_init, rx10b search seed 32: 1200 seconds after acquiring the unchanged shared 24-slot lock; done 1744 trials; best-nodrop energy -93.1389. No nondropping improvement was saved; production source unchanged. Source/log: `build/rx10b/search/pfd_sddrv_init-32-definition.log`.
|
||||
|
||||
- WADBackupEx, rx10b search seed 30: 1200 seconds after acquiring the unchanged shared 24-slot lock; done 1082 trials; best-nodrop energy -94.0593. No nondropping improvement was saved; production source unchanged. Source/log: `build/rx10b/search/WADBackupEx-30.log`.
|
||||
|
||||
- WADBackupEx, rx10b search seed 31: 1200 seconds after acquiring the unchanged shared 24-slot lock; done 1120 trials; best-nodrop energy -92.016. No nondropping improvement was saved; production source unchanged. Source/log: `build/rx10b/search/WADBackupEx-31.log`.
|
||||
|
||||
- WADBackupEx, rx10b search seed 32: 1200 seconds after acquiring the unchanged shared 24-slot lock; done 1114 trials; best-nodrop energy -95.5386. No nondropping improvement was saved; production source unchanged. Source/log: `build/rx10b/search/WADBackupEx-32.log`.
|
||||
|
||||
- WADBackupEx, `b-backup-spill-fd-first`. Allocator-guided declaration order after the backend audit. Current pass 2 selects titleMetaBuffer (cost 42, degree 29) as the spill candidate before equal-cost fileFd; target gives fd r14 and titleMetaBuffer r25. Move fd to the earlier/higher-numbered declaration, then order the actual long-lived locals by target colors. No extra state, changed operations or field layout; structural gaps remain independently tracked. Result: 98.157250%, instructions 1059/1062, positional differences 930.
|
||||
|
||||
- WADBackupEx, `b-backup-target-live-values`. Allocator-guided declaration order after the backend audit. Current pass 2 selects titleMetaBuffer (cost 42, degree 29) as the spill candidate before equal-cost fileFd; target gives fd r14 and titleMetaBuffer r25. Move fd to the earlier/higher-numbered declaration, then order the actual long-lived locals by target colors. No extra state, changed operations or field layout; structural gaps remain independently tracked. Result: 98.533900%, instructions 1059/1062, positional differences 929.
|
||||
|
||||
- WADBackupEx, `b-backup-target-initialization-order`. With the target long-lived colors recovered by degree/cost-guided declaration order, initialize the real owners in target instruction order: metadata buffer, metadata view, file list, byte count, output buffer, encryption buffer. These independent local zero stores precede all calls; values and cleanup behavior are unchanged. Result: 98.552734%, instructions 1059/1062, positional differences 925.
|
||||
|
||||
- WADBackupEx, `b-backup-shared-index`. Target reuses r20 for the content and file indices, and r23 for padding/header/file-transfer sizes in separate phases. Reuse truthful plain locals only where lifetimes do not overlap, with neutral index/size names. All loop values, calls and transfer bounds remain unchanged; evaluate whether the file-phase zero spill disappears. Result: 98.571560%, instructions 1059/1062, positional differences 925.
|
||||
|
||||
- WADBackupEx, `b-backup-file-size-local`. Target reuses r20 for the content and file indices, and r23 for padding/header/file-transfer sizes in separate phases. Reuse truthful plain locals only where lifetimes do not overlap, with neutral index/size names. All loop values, calls and transfer bounds remain unchanged; evaluate whether the file-phase zero spill disappears. Result: 99.100750%, instructions 1058/1062, positional differences 924.
|
||||
|
||||
- WADBackupEx, `b-backup-shared-index-file-size`. Target reuses r20 for the content and file indices, and r23 for padding/header/file-transfer sizes in separate phases. Reuse truthful plain locals only where lifetimes do not overlap, with neutral index/size names. All loop values, calls and transfer bounds remain unchanged; evaluate whether the file-phase zero spill disappears. Result: 99.124290%, instructions 1058/1062, positional differences 924.
|
||||
|
||||
- WADBackupEx, `b-backup-header-reserved-tail`. Represent the existing 128-byte serialized header as its 112-byte header plus the real zeroed 16-byte reserved tail instead of a union. Same fields, size, alignment, memset and I/O extent; test whether nested union address folding causes the three target addi deficits. This is actual file storage, not an allocator carrier. Result: 99.124290%, instructions 1058/1062, positional differences 924.
|
||||
|
||||
Backup allocator follow-up, confirmed by b-backup-ordered and an independent byte-identical ordinary compile (all 40 functions): moving fileFd before titleMetaBuffer changes the equal-cost spill choice exactly as predicted. Pass 2 selects fileFd v69 (cost 42, degree 29), then simplifies the long-lived locals in ascending virtual order. Reverse coloring gives metadata buffer v68 r25, files v67 r24, padding size v66 r23, imported size v65 r22, output v64 r21, content index v63 r20, encryption v62 r19, buffer index v61 r18, remaining size v60 r17, chunk v59 r16, callback v40 r15 and fd v69 r14. The core target colors now agree; the unchanged chunk-size copy merge does not explain the reordered owner colors. In pass 1, the separate file-loop success zero v298 actually spills (cost 17, degree 33), while error constant v333 is only an optimistic spill candidate and retains r31. Reusing the content/file index and the real file-phase size lifetime subsequently removes that spill reload, reaching 99.12429%, 1058/1062. Its four remaining missing instructions are exactly the pre-count status store and three folded header member-address adds; this remains a private diagnostic, not an exact match.
|
||||
|
||||
- pfd_sddrv_finalize, rx10b search seed 31: 1200 seconds after acquiring the unchanged shared 24-slot lock; done 1531 trials; best-nodrop energy -92.6316. No nondropping improvement was saved; production source unchanged. Source/log: `build/rx10b/search/pfd_sddrv_finalize-31-definition.log`.
|
||||
|
||||
- pfd_sddrv_build_fat32_mbr_bpb, rx10b search seed 31: 1200 seconds after acquiring the unchanged shared 24-slot lock; done 1496 trials; best-nodrop energy -82.1396. No nondropping improvement was saved; production source unchanged. Source/log: `build/rx10b/search/pfd_sddrv_build_fat32_mbr_bpb-31-definition-shape.log`.
|
||||
|
||||
- pfd_sddrv_init, rx10b search seed 30: 1200 seconds after acquiring the unchanged shared 24-slot lock; done 1865 trials; best-nodrop energy -93.1389. No nondropping improvement was saved; production source unchanged. Source/log: `build/rx10b/search/pfd_sddrv_init-30-definition.log`.
|
||||
|
||||
- pfd_sddrv_init, rx10b search seed 31: 1200 seconds after acquiring the unchanged shared 24-slot lock; done 1809 trials; best-nodrop energy -93.1389. No nondropping improvement was saved; production source unchanged. Source/log: `build/rx10b/search/pfd_sddrv_init-31-definition.log`.
|
||||
|
||||
- pfd_sddrv_finalize, rx10b search seed 32: 1200 seconds after acquiring the unchanged shared 24-slot lock; done 1489 trials; best-nodrop energy -92.6316. No nondropping improvement was saved; production source unchanged. Source/log: `build/rx10b/search/pfd_sddrv_finalize-32-definition.log`.
|
||||
|
||||
Semantic review exclusion: b-finalize-reuse-unsigned-value is diagnostic only. Passing an unsigned value to OSReport with a signed %d conversion is not a source-level type-preserving change; identical ABI bits are insufficient to retain it. The signed neutral-value variants preserve types but remain non-exact.
|
||||
|
||||
- pfd_sddrv_finalize, rx10b search seed 30: 1200 seconds after acquiring the unchanged shared 24-slot lock; done 1509 trials; best-nodrop energy -92.6316. No nondropping improvement was saved; production source unchanged. Source/log: `build/rx10b/search/pfd_sddrv_finalize-30-definition.log`.
|
||||
|
||||
- pfd_sddrv_build_fat32_mbr_bpb, rx10b search seed 30: 1200 seconds after acquiring the unchanged shared 24-slot lock; done 1495 trials; best-nodrop energy -82.1396. No nondropping improvement was saved; production source unchanged. Source/log: `build/rx10b/search/pfd_sddrv_build_fat32_mbr_bpb-30-definition.log`.
|
||||
|
||||
Final backup capture b-backup-phase-reuse confirms the local-reuse effect and is byte-identical to an ordinary compile across all 40 functions. The success zero is now v297, whose degree falls from 33 to 32 in pass 1; it is considered for spilling but successfully colors r31 in both passes. In pass 2 its degree is 29, and error constant v332 instead simplifies afterward and colors r18. Thus the target zero store uses a register rather than a reload from a spill slot. The main value colors remain target-correct (size r23, shared index r20, owners r25/r24/r21/r19, fd r14). The only successful GPR copy merge is unchanged in meaning: the chunk-size temporary merges into chunkSize in pass 1 (old v237 -> v59, new v236 -> v58); pass 2 has no successful merge. The changed degree and coloring order cause this gain. The remaining four opcode gaps are unchanged before allocation; the 99.12429% candidate stays private.
|
||||
|
||||
- pdm_part_is_master_boot_sector, rx10b search seed 31: 1200 seconds after acquiring the unchanged shared 24-slot lock; done 2316 trials; best-nodrop energy -89.8452. No nondropping improvement was saved; production source unchanged. Source/log: `build/rx10b/search/pdm_part_is_master_boot_sector-31.log`.
|
||||
|
||||
rx10b search completion: all 15 fresh searches completed their 1200-second budgets after acquiring the unchanged global 24-slot lock; 24101 total trials. None saved a nondropping improvement. The one prototype-selection failure was excluded and its SD search rerun on the correct function definition. Compiled manual/diagnostic trials this round: WADBackupEx 41, WADImportDVDExForBS 11, WADImportGetBlocks 5, pdm_part_is_master_boot_sector 34, pfd_sddrv_build_fat32_mbr_bpb 17, pfd_sddrv_finalize 23, pfd_sddrv_init 22. Diagnostic compilation does not imply semantic acceptance.
|
||||
|
||||
Retained source remains limited to WADImportGetBlocks and WADImportDVDExForBS. WADBackupEx, partition validation and the three SD functions remain unresolved source-shape/scheduling problems; they are not being reported as proven allocator ties. The later 99.12429% backup source and both confirming captures are private artifacts, with its cost/degree and spill explanation recorded above.
|
||||
|
||||
Final rx10b clean validation: gate.py ran without --quick on wad, sd_drv and pdm_partition; full 43U build passed and main.dol SHA1 is 26116613f624061ba99c8d1a299aaa6efa85670d. Fresh exact-name objdiff confirms both new matches and all three PR1189 matches at 100.0%. Fresh ctxdiff: WADImportGetBlocks 298/298, WADImportDVDExForBS 263/263, WADImportEx 1146/1146, WAD_815C1288 61/61, pfd_sddrv_store_mbr_buf 202/202; every one has diffs 0. Standalone pool_diff.py also reports identical pools (wad 18 strings, SD 46, partition 0).
|
||||
|
||||
[libs/RVL_SDK/src/wad/wad] objdiff: code 20252/24500 data 528/528 functions 39/40; instruction-exact 39/40 (baseline 37/40).
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] objdiff: code 10068/11760 data 3592/3592 functions 23/26; instruction-exact 23/26, unchanged.
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] objdiff: code 3380/3716; no data; functions 19/20; instruction-exact 19/20, unchanged.
|
||||
Regressions 0; net forbidden patterns 0; readability warnings 0. GATE PASS. Full log: build/rx10b/final-gate.log; fresh report: build/rx10b/final-report.json.
|
||||
|
||||
Reference in New Issue
Block a user