decomp(eZiText): match the user-word insert and link zi8uwd (rx51 astra max) #1229

Merged
coah80 merged 1 commits from agent/w0929/rx51-land into main 2026-10-05 16:24:54 +00:00
3 changed files with 432 additions and 9 deletions

View File

@@ -1000,7 +1000,7 @@ config.libs = [
Object(Matching, "clib/zi8pud2.c"),
Object(Matching, "clib/Zi8punct.c"),
Object(Matching, "clib/zi8space.c"),
Object(NonMatching, "clib/zi8uwd.c"),
Object(Matching, "clib/zi8uwd.c"),
Object(Matching, "clib/zi8ver.c"),
Object(Matching, "clib/zi8ZHuwd.c"),
Object(Matching, "clib/zidawg1.c"),

View File

@@ -1,3 +1,4 @@
#include <stddef.h>
#include <zi8clib/zitypes.h>
#include <zi8clib/zierror.h>
#include <zi8clib/zconvert.h>
@@ -7,19 +8,25 @@ typedef struct ziUserWord {
ziU8 size, language, length, priority;
ziU8 text[1];
} ziUserWord;
enum {
ZI_UWD_LENGTH_OFFSET = offsetof(ziUserWord, length),
ZI_UWD_PRIORITY_OFFSET = offsetof(ziUserWord, priority),
ZI_UWD_TEXT_OFFSET = offsetof(ziUserWord, text),
};
typedef struct ziUserDictionary {
ziU16 flags, end, current, boundary;
ziU8 entries[1];
} ziUserDictionary;
void Zi8Memset(ziPtr, ziU32, ziU32);
ziBool Zi8_81480224(ziUserWord* word ZI_NEED_WORK) {
ziBool Zi8_81480224(ziU8* word ZI_NEED_WORK) {
ziU8 length;
ziUwdNode* previous;
ziUwdNode* current;
ziUwdNode* added;
ziU8 position;
ziUserWord* candidate;
ziU8* candidate;
if (ZI_WORK->uwdCount >= 32) {
Zi8LogError(0x19D, __zi8_work_data);
return 0;
@@ -28,7 +35,7 @@ ziBool Zi8_81480224(ziUserWord* word ZI_NEED_WORK) {
Zi8LogError(0x19F, __zi8_work_data);
return 0;
}
length = word->length;
length = word[ZI_UWD_LENGTH_OFFSET];
if (length == 0) {
Zi8LogError(0x193, __zi8_work_data);
return 0;
@@ -40,12 +47,12 @@ ziBool Zi8_81480224(ziUserWord* word ZI_NEED_WORK) {
previous = 0;
current = ZI_WORK->uwdList;
while (current != 0) {
candidate = (ziUserWord*)current->word;
if (ZI_WORK->uwdPrioritySort == 1 && word->priority > candidate->priority) break;
if (candidate->length == length) {
candidate = current->word;
if (ZI_WORK->uwdPrioritySort == 1 && word[ZI_UWD_PRIORITY_OFFSET] > candidate[ZI_UWD_PRIORITY_OFFSET]) break;
if (candidate[ZI_UWD_LENGTH_OFFSET] == length) {
position = 0;
while (position < length) {
if (candidate->text[position] != word->text[position]) break;
if (candidate[position + ZI_UWD_TEXT_OFFSET] != word[position + ZI_UWD_TEXT_OFFSET]) break;
position++;
}
if (position == length) {
@@ -203,7 +210,7 @@ next:
if (ZI_WORK->uwdContextRecord[prefixLength] != ((ziU8*)previous)[prefixLength] && ZI_WORK->uwdContextAlternateCase[prefixLength] != ((ziU8*)previous)[prefixLength]) goto next;
}
}
Zi8_81480224((ziUserWord*)cursor, __zi8_work_data);
Zi8_81480224(cursor, __zi8_work_data);
}
goto next;
}

View File

@@ -0,0 +1,416 @@
# rx51 allocator investigation
Baseline: `fed3bdbb`, branch `agent/w1005/rx51`, GC/3.0a5. All work runs in
`data-d3`; temporary sources, reports and debugger captures are in `/tmp/rx51`.
`origin/main` was fetched under the shared Git lock and is `044ab571`.
The five owned units remain NonMatching. configure.py and zkokeyp.c are outside
this assignment.
Acceptance: readable, equivalent source; identical pools; exact-name objdiff
100%; ctxdiff zero differences; no unit regression; clean full gate with DOL
SHA1 `26116613f624061ba99c8d1a299aaa6efa85670d`. Open functions need at least
three distinct source trials and measured allocator explanations.
## Fresh baseline
| Function | Objdiff | Source/target instructions |
| --- | ---: | ---: |
| Zi8Get1KeyPressSpelling | 99.555885 | 1701/1700 |
| Zi8Get1KeyPressCandidates | 96.419270 | 2405/2397 |
| zi8InternalGetZH | 98.336266 | 10676/10676 |
| Zi8AlphaGetCandidates | 95.648506 | 3946/3946 |
| Zi8PrepareMatch | 96.994680 | 940/940 |
| Zi8_81480224 | 99.827580 | 116/116 |
Exact functions: zi81key 7/9, zi8cgetc 7/8, zi8alpha 11/12, zprepare 0/1,
zi8uwd 3/4. Every string pool is empty and identical. zi81key data is
1280/1388; the other owned units have full data credit. Baseline objects were
rebuilt with the current source before measuring.
## Debugger reproduction
Applied the supplied rx35 a5 patch to private copies under `/tmp/rx51/mwdbg`.
The compiler hash is checked by the launcher. A private emulator uses port
19051; only its existing port immediate changes. Shared tool files are read
only. Captures use immutable baseline source snapshots and the actual Ninja
compiler flags. Independent wibo compilation validates every completed
capture. Large functions use the supplied snapshot mode, which records graph,
priority, coalescing, no-opt assignment and PCode but omits per-node coloring
events. Snapshot degree is graph degree, not an observed simplify counter.
rx35 already demonstrated that named saved-register assignments under
`-opt off` precede graph coloring. Those reference weights must be checked
before attributing a saved-register swap to simplify priority.
## Spelling trials
Target saved values already agree with the no-opt assignments: tableIndex r31
weight 160, params r30 158, character r29 71, work r28 58, options r27 18.
The remaining structural differences are one byte narrowing at source 957,
a missing copy of the 0x7c support result, and an extra copy of the 0x7d
support result. These are not a saved-register swap.
Baseline B186 uses v56 for candidateCount, v57 for its sum and v58 for byte
narrowing. v57 colors r6, graph degree 11, priority 182; v58 colors r4,
degree 10, priority 181. B196 copies the 0x7c result into v74, which coalesces
to r3. B205 copies 0x7d into v84, degree 10 and priority 158, whose r3
interference forces r5. Retail needs the 0x7c copy retained and the 0x7d
copy merged instead.
Postfix and prefix candidateCount increments remove the narrowing but shift
temporary identities. The postfix capture changes 207 colored temporaries
and 21 coalesces to 204 and 24. v57 now gets target r4, but later copies move
to v73 and v83, and other copies disappear. Result 1697/1700, 96.80000%.
Compound assignment, unsigned literal, explicit byte cast and moving the
loop increment into its latch were also compiled. None improves the source.
All are rejected. The two spelling captures pass independent wibo and PCode
validation.
## User-word address trials
Retail maps word=r28, candidate=r26, position=r27, length=r25. Its two
character accesses add the byte index first, then load at header offset 4.
The original named text-array expression reverses those ADD operands.
Commuted indexing/dereferencing, explicit index widths, address-of-array,
zero-offset indexing and a split trailing-header representation failed.
A scalar-header-address expression reached 100% but is rejected because it
indexes beyond a scalar field. A union byte view also reached 100%, but the
simpler serialized-byte form makes the union unnecessary.
Plain byte parameters with structure casts for header reads got the ADD
order right but changed no-opt weights and regressed 25 instructions.
Reading the encoded header directly as bytes restores all target registers
and reaches 116/116, zero differences and 100% for every function in zi8uwd.
The final candidate names header offsets through offsetof on the existing
ziUserWord record. It uses no extra wrapper, carrier, padding or forced data.
The only caller already holds the serialized byte cursor, so its cast is
removed. The validated final capture is recorded below.
## Other initial structural trials
Candidates target/source saved registers agree: params r31 weight 160, index
r30 118, work r29 79, options r28 26. Three count-only branches have a source
reload of totalCandidates that retail omits. Merging the increment into the
comparison at one, two and all three sites gives 2401, 2400 and 2394
instructions, respectively, against 2397. The all-three capture leaves named
registers unchanged but changes coloring from 188 nodes/39 coalesces to
180/46. The missing reloads are repaired; changed temporary reuse removes
other required copies. These candidates are rejected for code/data loss.
Prepare trials covered chained element/comp assignment, a halfword component
byte cast and separate phonetic zero stores. Separately they produce 939,
940 and 942 instructions. Combined they produce 943/940 at 97.36276%, losing
data. Named roles remain match r31 147, request r30 53, index r29 42,
nibbles r28 29, work r27 9. Coloring changes 217/8 to 218/7 for priority-node
and accepted-coalesce counts. The combined source has three extra call-result
copies. Both baseline and candidate captures pass independent validation.
Alpha trials removed the dead dictionaryIndex initialization, separated the
14 dictionary-state zero stores, and moved the terminator after the preceding
character store. Every changed order was checked for dependencies. A proposed
postfix index expression reading the same index on its RHS was rejected
before compiling. No unsequenced increment is tested or retained.
Two dictionary-kind range tests compile as register r29 comparisons, while
retail compares a temporary using a switch-shaped branch tree. Each test was
replaced with a direct switch over the byte table, then both were combined.
Combining the switches, dead-store removal and terminator order reaches
3946/3946, 96.065636%, but data falls from 564 to 516. This remains a rejected
trial rather than an exact result.
ZH trials split the component pointer assignment, decrement before copying
the component count, and use a postfix count test equivalent for ziU16.
They produce 10676/10673/10675 instructions. Replacing three output stores
followed by preincrement comparisons with postfix-index stores and later
comparisons preserves values and ordering, and raises objdiff to 99.22377%
at 10682/10676. Data falls to 72/536, so it is not retained. Combining the
first three changes with these stores gives 10679/10676 and is also rejected.
All baseline debugger captures validated against independent wibo objects.
ZH's three out-of-range conditional branches were checked as inverted skips
plus unconditional branches: 8604 ordinary instructions and 16379 register
operands match after accounting for these expansions.
Three 1200-second shared source searches per open function were launched with
seeds 51/151/251. The shared CPU limiter was not changed; completed results are recorded below. The queued UWD searches were stopped after its exact
source candidate and independent debugger validation succeeded.
## Retained user-word candidate
The final byte-buffer form passes a full-event debugger capture, independent
wibo object identity, reversed simplify/priority order, every assignment and
coalescing check, 206 GPR rewrites, and 144 machine register operands.
The no-opt choices are work r31 weight 12, current r30 10, added r29 9,
word r28 8, position r27 7, candidate r26 7, length r25 6, previous r24 5.
The final PCode has v42=position narrowed, v43=v42+candidate, then a byte
load at offset 4. It similarly uses v46 then word for the other load.
This fixes instruction selection while preserving the register choices.
The one accepted graph coalesce is v54 into v53; 26 GPR nodes color without
spills. The source is retained only in zi8uwd.c, with the existing record
structure providing offsetof constants. Fresh Ninja, pool and ctxdiff pass.
Symorder agrees on every text symbol and every exception offset/size; its
raw warning is solely the different anonymous @ exception-label names.
## Measured remaining allocator constraints
Alpha's first mismatch is primaryMatched's initial zero: v37 colors r0,
graph degree 8 and priority 165, but retail uses r4. Its neighboring v38
colors r4, v39 r3 and v40 r0; retail wants r3, r4 and r6 for those zeros.
These virtual slots are reused for values in later blocks, including the
candidate-byte comparison. Changing dictionary range tests to direct switches
reduces named index weight 208 to 199 without moving r29. The temporary graph
changes from 171 priority nodes/55 coalesces to 174/53 but leaves v37-v40's
colors unchanged. Direct predicate-call variants were also tested at one,
three and six sites; none is exact and all lose data.
Prepare's structural candidate keeps v62, v103 and v104 as call-result copies
where retail uses r3 directly. v62 has degree 7 and priority 189, selecting
r4; v103 has degree 6 and priority 150, selecting r0; v104 has degree 7 and
priority 149, selecting r4. Each interferes with r3 in another lifetime of
that same virtual slot. v62 also addresses strokePrefix in B117; v103/v104
form the index/address for a record-mask store in B28. Its 255 literal shares
a virtual slot with a result coalesced into r3. This reproduces rx35's
constraint with the actual a5 compiler. It is evidence of cross-block slot
reuse, not evidence that the source already matches retail.
Baseline versus final UWD capture proves identical no-opt weights and graph
colors. For v42/v43/v46/v47, graph degrees are 7/8/8/9, coloring priorities
15/14/11/10 and physical registers r0/r3/r0/r3 in both captures. The ADD
sources alone reverse in pre-color PCode. The final candidate has no register
forcing and no allocator-priority change disguised as a register fix.
Quick gate over all five owned units: GATE PASS. Full build succeeds and DOL
SHA1 is correct; zero regressions, zero forbidden additions, zero readability
warnings. zi8uwd is 2656/2656 code, 80/80 data, 4/4 instruction-exact. Its
linked count remains zero because Matching flips are outside this assignment.
The configure.py note in the gate is inherited from rx35; rx51 has not edited
that file. The final clean gate is recorded below.
ZH's structural candidate retains request/work/options at r31/r30/r29 with
weights 352/277/99. The graph changes from 206 priority nodes/31 accepted
coalesces to 208/29. Its initial v32 changes degree 10 to 9, priority 205 to
207 and color r8 to r5; v33 merges into r3, while baseline v33 colors r7.
The source repairs local instruction shapes but changes the reused temporary
graph elsewhere. Postfix output, ordinal and count variants reached
99.28653% at 10681/10676 with lost data. All are rejected. Combining every
observed structural correction gives 10678/10676, also rejected.
## Compiled trial index
Unretained unless identified as the final UWD candidate above. Values are from
objdiff and fresh instruction disassembly. Artifacts use the tag below under
`/tmp/rx51/trials/`.
| Trial | Objdiff | Instructions | Matched data |
| --- | ---: | ---: | ---: |
| spell-count-post | 96.800000 | 1697/1700 | 1280 |
| spell-count-compound | 99.555885 | 1701/1700 | 1280 |
| spell-count-pre | 96.800000 | 1697/1700 | 1280 |
| spell-u8-add-unsigned | 99.555885 | 1701/1700 | 1280 |
| spell-u8-add-cast | 99.555885 | 1701/1700 | 1280 |
| spell-u8-post-loopbody | 96.800000 | 1697/1700 | 1280 |
| uwd-commuted-index | 99.827580 | 116/116 | 80 |
| uwd-commuted-deref | 99.827580 | 116/116 | 80 |
| uwd-header-base | 100.000000 | 116/116 | 80 |
| uwd-whole-byte-index | 99.008620 | 116/116 | 80 |
| uwd-text-const | 98.922420 | 116/116 | 80 |
| uwd-index-u32 | 99.827580 | 116/116 | 80 |
| uwd-index-long | 99.827580 | 116/116 | 80 |
| uwd-index-promoted | 99.827580 | 116/116 | 80 |
| uwd-index-size-type | 99.827580 | 116/116 | 80 |
| uwd-index-unsignedint | 99.827580 | 116/116 | 80 |
| uwd-index-header-relative | 100.000000 | 116/116 | 80 |
| uwd-text-address | 99.827580 | 116/116 | 80 |
| uwd-array-address | 99.827580 | 116/116 | 80 |
| uwd-array-pointer | 98.922420 | 116/116 | 80 |
| uwd-indexed-zero | 99.827580 | 116/116 | 80 |
| uwd-commuted-zero | 99.827580 | 116/116 | 80 |
| uwd-text-zeroplus | 99.827580 | 116/116 | 80 |
| uwd-text-onediff | 99.827580 | 116/116 | 80 |
| prepare-compound-element | 97.574470 | 939/940 | 8 |
| prepare-halfword-mask | 97.425530 | 940/940 | 20 |
| prepare-separate-pairs | 97.251060 | 942/940 | 56 |
| prepare-structural | 97.362760 | 943/940 | 8 |
| uwd-trailing-header | 98.922420 | 116/116 | 80 |
| uwd-trailing-header-commuted | 98.922420 | 116/116 | 80 |
| candidates-merge-count-1 | 96.175640 | 2401/2397 | 1280 |
| candidates-merge-count-2 | 95.840220 | 2400/2397 | 1232 |
| candidates-merge-count-3 | 95.926155 | 2394/2397 | 1232 |
| zh-split-component-pointer | 98.097320 | 10676/10676 | 144 |
| zh-decrement-then-copy | 96.226960 | 10673/10676 | 72 |
| zh-post-count-test | 98.352005 | 10675/10676 | 464 |
| alpha-dead-index-init | 95.851240 | 3942/3946 | 408 |
| alpha-separate-dictionary-zero | 95.306130 | 3957/3946 | 408 |
| alpha-terminator-after-character | 95.722000 | 3947/3946 | 408 |
| uwd-byte-buffer | 98.836205 | 116/116 | 80 |
| uwd-header-byte-view | 100.000000 | 116/116 | 80 |
| uwd-byte-fields | 100.000000 | 116/116 | 80 |
| uwd-byte-offsets | 100.000000 | 116/116 | 80 |
| alpha-next-kind-switch1 | 95.715660 | 3945/3946 | 456 |
| alpha-next-kind-switch2 | 95.677900 | 3943/3946 | 456 |
| alpha-next-kind-switches | 95.833755 | 3947/3946 | 456 |
| alpha-structural-switches | 96.065636 | 3946/3946 | 516 |
| zh-post-output-index | 99.223770 | 10682/10676 | 72 |
| zh-structural | 96.071560 | 10679/10676 | 72 |
| zh-output-ordinal-post | 99.261240 | 10681/10676 | 72 |
| zh-output-ordinal-count-post | 99.286530 | 10681/10676 | 72 |
| zh-output-separate-cursor | 98.931526 | 10684/10676 | 72 |
| zh-all-structural | 96.090294 | 10678/10676 | 72 |
| alpha-direct-predicates-1 | 95.738720 | 3951/3946 | 408 |
| alpha-direct-predicates-3 | 95.832490 | 3947/3946 | 408 |
| alpha-direct-predicates-6 | 95.905980 | 3949/3946 | 408 |
| alpha-mode-promoted | 96.074510 | 3948/3946 | 408 |
| alpha-mode-bytecast | 96.074510 | 3948/3946 | 408 |
| alpha-mode-mask | 96.074510 | 3948/3946 | 408 |
| spell-post-table-index-width | 96.800000 | 1697/1700 | 1280 |
| spell-post-output-index-width | 96.800000 | 1697/1700 | 1280 |
| spell-post-input-index-width | 96.800000 | 1697/1700 | 1280 |
## Validation scheduling correction
An unnecessary `gate.py --help` invocation was mistakenly treated as a clean
build because the script has no help parser. It ran only in data-d3 and changed
no source. A few source searches were already active. Their scores during the
object replacement window are not acceptance evidence; every returned source
must be compiled and measured afresh. The normal five-unit clean gate ran again after all searches ended. No second full build runs concurrently.
## Prior-branch and moving-base check
Checked the retained s1-s8 branch tips requested by f-round.md. None has an
unmerged change to the four open source files relative to the fetched
044ab571 baseline. Their useful source state is already included here.
During this run the shared origin/main ref advanced to bf65a26b (rx35 landed).
Its only eZiText source difference from this worker baseline is in zkokeyp.c,
which remains outside rx51 ownership. This worker has not rebased or edited
that file. The final gate comparison base is recorded below.
## Additional type and sequencing checks
Changing the spelling total count from unsigned int to unsigned long is
equivalent on this compiler and produces no instruction change. Alpha
structural trials also used scoped character temporaries before postfix
output writes, preserving sequencing rather than reading and modifying the
same index in one expression. The target copy shape still does not emerge;
these candidates remain rejected. Explicit byte conversions were tested at
the target-only narrowing sites and do not resolve the reused-slot graph.
| Trial | Objdiff | Instructions | Matched data |
| --- | ---: | ---: | ---: |
| Zi8Get1KeyPressSpelling-unsigned-long | 99.555885 | 1701/1700 | 1280 |
| alpha-scoped-last-element | 96.002030 | 3947/3946 | 408 |
| alpha-comparison-byte-cast | 96.008610 | 3948/3946 | 408 |
| alpha-first-prefix-mode-cast | 96.074510 | 3948/3946 | 408 |
| alpha-scoped-prefix-punctuation | 96.015970 | 3949/3946 | 408 |
Alpha baseline coloring gives a concrete dependency chain: v43 colors r4,
v42 colors r5, v40 chooses the remaining r0, v39 chooses r3, v38 chooses r4,
and v37 chooses r0. v42/v43 both interfere with physical r0 and r3; v40
interferes with physical r3 plus v42/v43. Retail needs the initial prefixCount
zero in r6 and primaryMatched zero in r4, which cannot follow those same
neighbors and greedy choices. v40 is also reused for the candidate-byte
comparison and language/count operations. This is a source-graph mismatch,
not proof of an unavoidable allocator tie. The chain comes from the actual
a5 assigned graph; no old-compiler priority explanation was reused.
The final Alpha and ZH seeds were still queued with empty logs after their
first baseline searches completed. Restarted only those two queued rx51
processes with the same seed 251, unchanged 1200-second budget and shared
limiter. Alpha starts from alpha-structural-switches; ZH starts from
zh-output-ordinal-count-post. This tests the strongest later manual shapes
instead of spending all three seeds on the unchanged baseline. These starts
lose data credit and are not retained; a search result still needs fresh
compilation, source review and all unit gates.
## Equal instruction count is not an exact result
A snapshot of spelling seed 151 reached 1700/1700, but fresh measurement
found 643 differing instructions, 97.927055%, unchanged 1280/1388 data and
no exact-function gain. Its source reorders declarations, early stores and
saved state, and reverses the output-conversion branch. Restoring those
source regions in four stages still fails. Restoring the target branch
shape returns the size to 1701/1700. This search's SOLUTION label means
matching instruction count; it is not a matching decompilation result.
No search source has been applied to the worktree.
| Trial | Objdiff | Instructions | Matched data |
| --- | ---: | ---: | ---: |
| spell-search-snapshot | 97.927055 | 1700/1700 | 1280 |
| spell-search-declarations-restored | 97.996470 | 1700/1700 | 1280 |
| spell-search-entry-restored | 98.085884 | 1700/1700 | 1280 |
| spell-search-saves-restored | 98.305885 | 1700/1700 | 1280 |
| spell-search-branch-restored | 99.300000 | 1701/1700 | 1280 |
## Completed source searches and coverage
All fifteen required searches completed their 1200-second runs, with the
shared 24-slot limiter unchanged. Counts below are search iterations, including
rejected mutations. There were 34,353 iterations in total. No search result
adds an exact function. Only spelling seed 151 wrote best/solution candidates;
both were recompiled independently and rejected. Final best: 1700/1700,
97.976470%, 600 instruction differences, data 1280/1388. Final solution:
1700/1700, 97.952354%, 617 differences, data 1280/1388. Their source hashes
were rechecked after the searches ended and match the fresh measurements.
| Function | Seed 51 | Seed 151 | Seed 251 | Manual compiled trials |
| --- | ---: | ---: | ---: | ---: |
| Zi8Get1KeyPressSpelling | 2465 | 2501 | 2430 | 17 |
| Zi8Get1KeyPressCandidates | 2382 | 2368 | 2381 | 3 |
| zi8InternalGetZH | 1430 | 1426 | 1640 | 9 |
| Zi8AlphaGetCandidates | 2080 | 2150 | 2104 | 17 |
| Zi8PrepareMatch | 2944 | 3174 | 2878 | 4 |
All five open functions satisfy the three-distinct-source-trial requirement.
None is labeled an unavoidable compiler tie: instruction shapes and reused
temporary interference remain unresolved. The only retained candidate is
the whole-exact zi8uwd unit. Its helper had 24 compiled manual trials, and
the remaining queued searches for that already-exact helper were canceled
before compilation. The complete manual measurement count is 74.
| Trial | Objdiff | Instructions | Matched data |
| --- | ---: | ---: | ---: |
| spell-seed151-final-best | 97.976470 | 1700/1700 | 1280 |
| spell-seed151-final-solution | 97.952354 | 1700/1700 | 1280 |
## Final acceptance evidence
The final gate ran without --quick after all fifteen searches exited. It
cleaned and rebuilt 43U. GATE PASS, zero baseline regressions, zero forbidden
additions, zero readability warnings, and identical pools for all five units.
DOL SHA1: `26116613f624061ba99c8d1a299aaa6efa85670d`.
Gate comparison merge-base: `044ab57149b586de11e0ceff391246d16efb6fd4`.
Its rx35 compiler/config note is inherited. A separate fresh report comparison
against this worker's `fed3bdbb` starting report also finds zero owned-unit
regressions and zero previously exact function drops.
Owned instruction-exact functions: 28 -> 29 / 34. Exact code: 18256 -> 18720
bytes (+464). Data: 2528 -> 2528 / 2636. Five functions and zi81key's 108
unmatched data bytes remain open. zi8uwd alone gains one exact function:
3 -> 4 / 4, code 2192 -> 2656 / 2656, data 80 -> 80 / 80.
Fresh ctxdiff for Zi8_81480224: 116/116 instructions, diffs 0. The unit's
.text, extab and extabindex sections all report 100%. Function order agrees
with retail, and there is no BSS-order change to make. Matching flags remain
unchanged as required; local exactness is ready for parent verification.
Final gate unit lines:
```text
[libs/RVLMiddleware/eZiText/src/clib/zi81key] objdiff: code 5072/21460 data 1280/1388 functions 7/9 fuzzy 98.2595 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/zi81key] instruction-exact functions: 7/9
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] objdiff: code 5112/47816 data 536/536 functions 7/8 fuzzy 98.5141 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] instruction-exact functions: 7/8
[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] objdiff: code 5880/21664 data 564/564 functions 11/12 fuzzy 96.8296 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] instruction-exact functions: 11/12
[libs/RVLMiddleware/eZiText/src/clib/zprepare] objdiff: code None/3760 data 68/68 functions 0/1 fuzzy 96.9947 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/zprepare] instruction-exact functions: 0/1
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] objdiff: code 2656/2656 data 80/80 functions 4/4 fuzzy 100.0000 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] instruction-exact functions: 4/4
GATE PASS
```
Retained source SHA256: `76f553a599513cdc019110f306a4121440293d9af47f510b6759a22e5c49c852`.
Only `libs/RVLMiddleware/eZiText/src/clib/zi8uwd.c` and this log are changed.
configure.py, zkokeyp.c and the four open source files are unchanged from
HEAD. Reports, trial sources, source-search logs and all debugger captures
remain under `/tmp/rx51`. No push, PR, merge, rebase or other-worktree edit.