Compare commits
71 Commits
agent/bitt
...
agent/w092
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
706d053c74 | ||
|
|
099a6e2de2 | ||
|
|
255256dfc4 | ||
|
|
41dcc6f888 | ||
|
|
6f2b84e167 | ||
|
|
775167f4a5 | ||
|
|
547637bf79 | ||
|
|
2b1e29a746 | ||
|
|
394f6c2444 | ||
|
|
35e7147b97 | ||
|
|
ed3fad1bff | ||
|
|
f72e4281a8 | ||
|
|
f6fd278076 | ||
|
|
4b25950eeb | ||
|
|
dc5d3cf81b | ||
|
|
d54e4ba47a | ||
|
|
3f330a39ea | ||
|
|
85701c828f | ||
|
|
f37268de4f | ||
|
|
26afef0d00 | ||
|
|
ecd5e498b5 | ||
|
|
68e1ee3a35 | ||
|
|
bcb2ac0e37 | ||
|
|
00ff6ea6a0 | ||
|
|
eadb516be8 | ||
|
|
e3be21cd6c | ||
|
|
9eb08c48a7 | ||
|
|
456e9dbd2e | ||
|
|
4d08c3005b | ||
|
|
a16c5191f0 | ||
|
|
eecf16f01e | ||
|
|
73f5b332e2 | ||
|
|
3d97a4040f | ||
|
|
0b623f581b | ||
|
|
f4e539191d | ||
|
|
cb0716f7a5 | ||
|
|
d47d308721 | ||
|
|
1bf9ae4569 | ||
|
|
bab82c12dd | ||
|
|
ccca706770 | ||
|
|
a9833b51a2 | ||
|
|
76d8500dcf | ||
|
|
184bee0173 | ||
|
|
368a86cc6c | ||
|
|
9a7da62d3a | ||
|
|
b3c1300392 | ||
|
|
bd762fd162 | ||
|
|
f18d945894 | ||
|
|
bc505c3b8a | ||
|
|
a5f79b81fa | ||
|
|
137edaff42 | ||
|
|
4a7353ec73 | ||
|
|
618e713b53 | ||
|
|
3dcd723459 | ||
|
|
4ed63ff786 | ||
|
|
eb8b9b978d | ||
|
|
10e3f47e64 | ||
|
|
006457008c | ||
|
|
75677c746b | ||
|
|
ccbc04a997 | ||
|
|
da35a476bf | ||
|
|
589bee2b0d | ||
|
|
f36411d483 | ||
|
|
9a897b043b | ||
|
|
4d828ed557 | ||
|
|
f479546211 | ||
|
|
a6c7690eb0 | ||
|
|
54b82eb747 | ||
|
|
326273b619 | ||
|
|
31d0f12981 | ||
|
|
01fb2284c6 |
164
AGENTS.md
164
AGENTS.md
@@ -164,9 +164,8 @@ This repository targets only Wii Menu 4.3U. Do not configure or build 43E,
|
||||
43J, or 43K while doing matching work.
|
||||
|
||||
Most workers should pursue exact matching or safe linking; assign the remainder
|
||||
to decompilation. Keep up to 75 live workers when the runtime allows it, while
|
||||
reserving capacity for fixer and validation workers. Fill completed slots with
|
||||
disjoint tasks. Never duplicate a source file or function
|
||||
to decompilation. Keep every worker slot busy (currently four Codex slots; see
|
||||
"Orchestrator loop" below). Fill completed slots with disjoint tasks. Never duplicate a source file or function
|
||||
range. Workers return changed paths, exact objdiff measurements, and validation
|
||||
results. Fuzzy-only results are not accepted.
|
||||
|
||||
@@ -246,6 +245,12 @@ and merge the PR, fast-forward `origin/main`, and publish progress. If a
|
||||
candidate fails validation, return it to its worker; do not fix the candidate
|
||||
inline in the orchestrator.
|
||||
|
||||
Two exceptions, both set by the human: once a leaf has failed at `max` effort
|
||||
(see the effort scale below) the orchestrator itself takes a crack at it, and
|
||||
the orchestrator may finish PRs whose authors are gone (rebase, drop a
|
||||
forbidden pattern, close with evidence). Record every such attempt in the
|
||||
policy log, including the ones that fail.
|
||||
|
||||
A new thread must begin by reading this file, checking the live 43U report and
|
||||
remote branch, and dispatching the worker pool. The parent must not claim a
|
||||
match without fresh independent verification.
|
||||
@@ -320,6 +325,159 @@ Linked: <percent> | Fuzzy: <percent> | Data: <percent>
|
||||
Do not report stale values, unmerged PR results, or add other text to that
|
||||
update. Continue all required verification and coordination silently.
|
||||
|
||||
## Orchestrator loop (Claude orchestrator, Codex workers)
|
||||
|
||||
This is the loop currently in use. One Claude session is the orchestrator.
|
||||
It does not spawn Claude subagents. All decompilation work goes to Codex CLI
|
||||
workers running `gpt-6.1-sol`. The orchestrator assigns leaves, verifies,
|
||||
lands, reviews outside PRs, and only decompiles by hand in the cases listed
|
||||
under the ownership boundary above.
|
||||
|
||||
Only one orchestrator session may run at a time. If a second session resumes
|
||||
the same thread (for example, the same session opened in two windows), close
|
||||
one of them. Two orchestrators double-merge PRs and fight over the shared
|
||||
build tree.
|
||||
|
||||
### Worker slots and the effort scale
|
||||
|
||||
Run four worker slots, each in its own worktree on a fresh branch from
|
||||
`origin/main`. Every slot gets a disjoint set of three or four leaves (units),
|
||||
closest-to-matching first. A slot starts at `medium` (or `low`) reasoning
|
||||
effort and escalates only when a round produces no new exact function:
|
||||
|
||||
```
|
||||
low/medium -> high -> xhigh -> max -> orchestrator attempt -> parked
|
||||
```
|
||||
|
||||
A round that gains at least one exact function is landed, and the remaining
|
||||
functions go out again at the same effort or one step up. A set that fails at
|
||||
`max` goes to the orchestrator. If the orchestrator also fails, the function
|
||||
is parked as a compiler tie-break with its evidence. Fill freed slots from the
|
||||
live checklist right away; never leave a slot idle.
|
||||
|
||||
Before starting a function, a worker fetches `origin/main` and checks it is
|
||||
not already matched. Outside contributors land work in parallel, and
|
||||
duplicated matches waste a round.
|
||||
|
||||
### Silent mode for workers
|
||||
|
||||
Workers run unattended and must not talk. Every turn is tool calls only: no
|
||||
plans, no progress notes, no summaries. Progress goes into an attempts log
|
||||
file in `tools/decomp-assist/`. The only text message in a run is the final
|
||||
report, at most 8-15 short lines:
|
||||
|
||||
- exact functions per unit, before and after;
|
||||
- the final `GATE` line;
|
||||
- commit hashes;
|
||||
- a link to the attempts log.
|
||||
|
||||
Runs are audited for text messages, and any chatter is a contract
|
||||
violation. Workers also must not push, open PRs, merge, rebase, touch other
|
||||
worktrees, or spawn subagents.
|
||||
|
||||
Each worker prompt has this layout:
|
||||
|
||||
1. the `<task>` block (leaves, current exact counts, method, report format);
|
||||
2. the shared `common.md` block with `<silent_mode>`, `<forbidden>`,
|
||||
`<method>` and `<definition_of_done>`.
|
||||
|
||||
Resume a stalled worker on the same session with the failure evidence. Don't
|
||||
replace it with a fresh one.
|
||||
|
||||
### Gate, landing and review
|
||||
|
||||
- `gate.py <unit...>` is the acceptance check for workers and for outside
|
||||
PRs. It covers:
|
||||
- a full 4.3U build and the DOL SHA1;
|
||||
- per-unit objdiff and instruction-exact counts;
|
||||
- regressions against a baseline report of `origin/main`;
|
||||
- a net forbidden-pattern scan and a readability scan (auto-named
|
||||
identifiers, raw `*(T*)(p + N)` offset casts).
|
||||
- A function that disappears because it was renamed is not a regression,
|
||||
unless the unit's exact count, code or data also drops.
|
||||
- Landing a worker result builds a branch from `origin/main` with the
|
||||
worker's diff, gates it, pushes it, then opens and squash-merges a PR on
|
||||
the fork. After that it regenerates the checklist.
|
||||
- Never run two full builds in the same build tree at once.
|
||||
- Never land while the review queue is building. Both use the same
|
||||
verification worktree.
|
||||
|
||||
Outside PRs are reviewed by a daemon. It re-runs the gate on any open PR
|
||||
whose head commit changed since its last review. A PR is merged
|
||||
automatically only when all of these hold:
|
||||
|
||||
- the PR rebases cleanly;
|
||||
- the full build passes;
|
||||
- the DOL hash matches;
|
||||
- the gate passes, or its only failures are renamed-away functions;
|
||||
- the diff adds no forbidden pattern and no `.s` file.
|
||||
|
||||
Everything else is reviewed by hand:
|
||||
|
||||
- **Conflicts:** comment asking for a rebase.
|
||||
- **Forbidden patterns:** request changes with a concrete honest
|
||||
alternative.
|
||||
- **"Linking" by swapping in retail assembly or pinned labels:** close and
|
||||
explain.
|
||||
- **Proven split/ownership corrections** (relocation evidence, total data
|
||||
unchanged): merge even if one unit's numbers move to its neighbour.
|
||||
|
||||
Policy additions learned in this loop:
|
||||
|
||||
- Linking a unit by building the retail `.s` instead of its C/C++ is
|
||||
forbidden. "Linked" means the C/C++ itself compiles to the exact bytes.
|
||||
- Definition-level `volatile` (on the field or object declaration) is allowed
|
||||
when the target proves it, e.g. back-to-back reloads with no store in
|
||||
between. Check that it changes no other function in the units that use it.
|
||||
Use-site volatile casts and the `register` keyword stay forbidden.
|
||||
|
||||
### Handoff: where the loop lives
|
||||
|
||||
The loop's tools and state live outside the repository, in the author's
|
||||
workers directory `/mnt/drive2/projects/wii-ipl-workers` (`$W` below). A new
|
||||
orchestrator thread picks up from there.
|
||||
|
||||
Tools in `$W/_restore0928-tools/`:
|
||||
|
||||
| File | Purpose |
|
||||
|------|---------|
|
||||
| `gate.py <unit...> [--base origin/main] [--quick]` | the acceptance gate; `--quick` only skips the clean `rm -rf build/43U` |
|
||||
| `land.sh <name> <worktree> merge-base <unit...> <title>` | gate a worker's diff on a fresh branch, push, open and squash-merge the PR |
|
||||
| `luna.sh <worktree> <name> <prompt> <effort> [session]` | start (or resume) one Codex worker; run with `MODEL=gpt-6.1-sol CODEX_BIN=$W/_codex159/bin/codex` |
|
||||
| `reviewd.sh` | review daemon: queues every open PR whose head changed |
|
||||
| `revq.sh`, `automerge.py` | the daemon's gate runner and merge decision |
|
||||
| `checklist.py` | regenerates `$W/CHECKLIST.md` from a report |
|
||||
| `chatter.py <run-prefix>` | counts worker text messages for the silent-mode audit |
|
||||
| `baseline-<sha8>.json` | objdiff reports of past `origin/main` commits, used for regressions |
|
||||
|
||||
State:
|
||||
|
||||
- `$W/_luna-runs/prompts/`: worker prompts. `common.md` is shared; each
|
||||
task is `<name>.task.md`, and the launched prompt is `<name>.md` = task +
|
||||
common.
|
||||
- `$W/_luna-runs/<name>.<time>.jsonl` and `.last.md`: worker transcript and
|
||||
final report.
|
||||
- `$W/_luna-runs/effort-policy.txt`: the policy log. Records escalations,
|
||||
parked functions, and every orchestrator attempt with what was tried.
|
||||
- `$W/CHECKLIST.md`: units with non-exact code, worst first.
|
||||
- Worktrees: `verify-fix` is the only verification and landing tree;
|
||||
`sol-low`, `sol-med`, `sol-high` and `w0929-fix-board` are the four worker
|
||||
slots; `orch` is orchestrator scratch.
|
||||
- Logs: `/tmp/reviewd.log`, `/tmp/vfq.log` (current review batch) and
|
||||
`/tmp/automerge.log` (merge decisions). These are lost on reboot, which
|
||||
only means open PRs get reviewed again.
|
||||
- `/tmp/wii-git.lock`: every `git fetch` or checkout in a shared worktree
|
||||
runs under `flock` on this file, because worktrees share refs.
|
||||
|
||||
To pick up the loop:
|
||||
|
||||
1. Make sure no other orchestrator session is running.
|
||||
2. Check `pgrep -af "reviewd.sh|luna.sh|land.sh"` and restart the review
|
||||
daemon if it isn't running.
|
||||
3. Read the newest `.last.md` for each slot. Land gains, then relaunch the
|
||||
slot per the effort scale.
|
||||
4. Handle every `NEEDS REVIEW` line in `/tmp/automerge.log`.
|
||||
|
||||
## Goal completion contract
|
||||
|
||||
The decompilation loop does not stop after a successful wave, a convenient
|
||||
|
||||
@@ -53,9 +53,9 @@ Progress
|
||||
<!-- progress:start -->
|
||||
| Decompiled | Matched | Linked | Data |
|
||||
|:---:|:---:|:---:|:---:|
|
||||
| 99.38% | 88.09% | 62.52% | 92.12% |
|
||||
| 99.46% | 88.57% | 62.98% | 97.20% |
|
||||
|
||||
units 921/1027 complete, functions 12232/12563 matched.
|
||||
units 925/1027 complete, functions 12264/12563 matched.
|
||||
|
||||
decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data
|
||||
<!-- progress:end -->
|
||||
|
||||
@@ -869,11 +869,12 @@ src/scene/setting/iplUSBAP.cpp:
|
||||
.bss start:0x810BC148 end:0x810BD498
|
||||
.text start:0x813FC520 end:0x813FC8FC
|
||||
.data start:0x81657B08 end:0x81657B18
|
||||
.sbss start:0x81698C08 end:0x81698C28
|
||||
.sbss start:0x81698C08 end:0x81698C20
|
||||
|
||||
src/scene/setting/iplUSBAPThread.cpp:
|
||||
.text start:0x813FC8FC end:0x813FCA0C
|
||||
.data start:0x81657B18 end:0x81657B60
|
||||
.sbss start:0x81698C20 end:0x81698C28
|
||||
|
||||
src/scene/setting/iplAOSSThread.cpp:
|
||||
.bss start:0x810BD498 end:0x810BD4A8
|
||||
|
||||
@@ -8,9 +8,12 @@ _database__7LibTVRC = .bss:0x81089760; // type:object size:0x20 data:4byte
|
||||
_alarm__7LibTVRC = .bss:0x81089780; // type:object size:0x30
|
||||
_tickWait__7LibTVRC = .bss:0x810897B0; // type:object size:0x10 data:4byte
|
||||
mArg__Q33ipl7utility8Graphics = .bss:0x810897C0; // type:object size:0x84
|
||||
unk__Q23ipl3snd = .bss:0x81089848; // type:object size:0xC
|
||||
_seBlk__Q23ipl3snd = .bss:0x81089854; // type:object size:0xD8 data:4byte
|
||||
sSystem__Q23ipl3snd = .bss:0x8108992C; // type:object size:0x63C data:4byte
|
||||
@15968 = .bss:0x81089848; // type:object size:0xC scope:local
|
||||
_seBlk__Q23ipl3snd = .bss:0x81089854; // type:object size:0xC0 data:4byte
|
||||
@15969 = .bss:0x81089914; // type:object size:0xC scope:local
|
||||
@15970 = .bss:0x81089920; // type:object size:0xC scope:local
|
||||
sSystem__Q23ipl3snd = .bss:0x8108992C; // type:object size:0x62C data:4byte
|
||||
@15971 = .bss:0x81089F58; // type:object size:0xC scope:local
|
||||
sBannerSoundPlayer__Q23ipl3snd = .bss:0x81089F68; // type:object size:0x518 data:byte
|
||||
runSliceMutex___Q37ext_ead3www13BrowserThread = .bss:0x8108A480; // type:object size:0x18
|
||||
cap__Q23www9trasition = .bss:0x8108A498; // type:object size:0x20 scope:local data:4byte
|
||||
@@ -41,7 +44,7 @@ UpdateDiskID = .bss:0x810ADF60; // type:object size:0x20 align:32 data:4byte
|
||||
TicketViewsBuf = .bss:0x810ADF80; // type:object size:0x3600 scope:local align:32
|
||||
Flags0 = .bss:0x810B1580; // type:object size:0x800 scope:local
|
||||
Flags1 = .bss:0x810B1D80; // type:object size:0x800 scope:local
|
||||
Thread = .bss:0x810B2580; // type:object size:0x1320 scope:local
|
||||
Thread = .bss:0x810B2580; // type:object size:0x1318 scope:local
|
||||
UpdateHeader0 = .bss:0x810B38A0; // type:object size:0x20 scope:local
|
||||
UpdateHeader1 = .bss:0x810B38C0; // type:object size:0x20 scope:local
|
||||
viewsBuf = .bss:0x810B38E0; // type:object size:0x3600 scope:local
|
||||
@@ -81,21 +84,21 @@ usbapStack = .bss:0x810BC460; // type:object size:0x1000
|
||||
usbapMessageQ = .bss:0x810BD460; // type:object size:0x20
|
||||
usbapNickname = .bss:0x810BD480; // type:object size:0x18
|
||||
m_allocator__Q23ipl5scene = .bss:0x810BD498; // type:object size:0x10
|
||||
AOSSi_NcdIfConfig = .bss:0x810BD4A8; // type:object size:0x160 data:byte
|
||||
AOSSi_NcdIpConfig = .bss:0x810BD608; // type:object size:0x7C8 data:4byte
|
||||
AOSSi_NcdIfConfig = .bss:0x810BD4A8; // type:object size:0x15E data:byte
|
||||
AOSSi_NcdIpConfig = .bss:0x810BD608; // type:object size:0x7C4 data:4byte
|
||||
sRakuAllocator = .bss:0x810BDDD0; // type:object size:0x10
|
||||
sRakuStatus = .bss:0x810BDDE0; // type:object size:0xF4 data:4byte
|
||||
sRakuMsgQueue = .bss:0x810BDED4; // type:object size:0x24
|
||||
sRakuMsgQueue = .bss:0x810BDED4; // type:object size:0x20
|
||||
AOSS_810BDEF8 = .bss:0x810BDEF8; // type:object size:0x20 data:4byte
|
||||
AOSS_810BDF18 = .bss:0x810BDF18; // type:object size:0x6A0
|
||||
AOSS_810BE5B8 = .bss:0x810BE5B8; // type:object size:0x280
|
||||
AOSS_810BE838 = .bss:0x810BE838; // type:object size:0x68
|
||||
AOSS_810BE8A0 = .bss:0x810BE8A0; // type:object size:0x400
|
||||
ATERM_810BECA0 = .bss:0x810BECA0; // type:object size:0x924 data:4byte
|
||||
ATERM_810BF5C4 = .bss:0x810BF5C4; // type:object size:0x24
|
||||
ATERM_810BF5E8 = .bss:0x810BF5E8; // type:object size:0x258
|
||||
ATERM_810BF840 = .bss:0x810BF840; // type:object size:0x900
|
||||
ATERM_810C0140 = .bss:0x810C0140; // type:object size:0x818 data:2byte
|
||||
gNetworkSettings = .bss:0x810BECA0; // type:object size:0x924 data:4byte
|
||||
gAccessPointName = .bss:0x810BF5C4; // type:object size:0x24
|
||||
gScanSettings = .bss:0x810BF5E8; // type:object size:0x258
|
||||
gAtermConfigurationResult = .bss:0x810BF840; // type:object size:0x900
|
||||
gAtermResponseBuffer = .bss:0x810C0140; // type:object size:0x818 data:2byte
|
||||
AtermThread = .bss:0x810C0958; // type:object size:0x318 scope:local align:32
|
||||
Voices = .bss:0x810C0C80; // type:object size:0x1800 data:4byte
|
||||
sZeroMem = .bss:0x810C2480; // type:object size:0x100 data:byte
|
||||
@@ -12683,7 +12686,7 @@ pdm_bpb_CalcBPBFields = .text:0x815C743C; // type:function size:0xE8
|
||||
pdm_bpb_InitVolumeWithBootSector = .text:0x815C7524; // type:function size:0x31C
|
||||
pdm_bpb_InitVolumeWithFSINFOSector = .text:0x815C7840; // type:function size:0xE8
|
||||
pdm_disk_convert_sector_into_block = .text:0x815C7928; // type:function size:0xB0
|
||||
pdm_disk_convert_block_into_sector` = .text:0x815C79D8; // type:function size:0xB0
|
||||
pdm_disk_convert_block_into_sector = .text:0x815C79D8; // type:function size:0xB0
|
||||
pdm_disk_init_disk_manager = .text:0x815C7A88; // type:function size:0x34
|
||||
pdm_disk_add_disk = .text:0x815C7ABC; // type:function size:0x124
|
||||
pdm_disk_del_disk = .text:0x815C7BE0; // type:function size:0x50
|
||||
@@ -13271,7 +13274,7 @@ __nupSetAuditState__FUc = .text:0x815F0444; // type:function size:0x7C scope:loc
|
||||
__nupBase64Encode__FPUcPUcUl = .text:0x815F04C0; // type:function size:0xFC scope:local
|
||||
__nupGetAuditData__FP14NUPContextInfoPPc = .text:0x815F05BC; // type:function size:0x3D0 scope:local
|
||||
__nupGetTmdView__FUxPP9ESTmdView = .text:0x815F098C; // type:function size:0xB4 scope:local
|
||||
__nupGetBootVersion__FP14ESTitleVersion = .text:0x815F0A40; // type:function size:0x28C scope:local
|
||||
__nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion = .text:0x815F0A40; // type:function size:0x28C scope:local
|
||||
__nupGetTicket__FP12NUPTitleInfoPc = .text:0x815F0CCC; // type:function size:0x164 scope:local
|
||||
__nupGetTmd__FP12NUPTitleInfoPc = .text:0x815F0E30; // type:function size:0x1E4 scope:local
|
||||
__nupGetTitleSize__FP12NUPTitleInfo = .text:0x815F1014; // type:function size:0x22C scope:local
|
||||
@@ -14200,7 +14203,7 @@ ms_ppki = .rodata:0x8162E1F8; // type:object size:0x240 noreloc
|
||||
@1272 = .rodata:0x8162E438; // type:object size:0x278 scope:local data:4byte
|
||||
pf_valid_fn_char = .rodata:0x8162E6B0; // type:object size:0x60 noreloc
|
||||
fat_special_values = .rodata:0x8162E710; // type:object size:0x3C
|
||||
cp932_to_unicode = .rodata:0x8162E750; // type:object size:0x4272 data:2byte
|
||||
cp932_to_unicode = .rodata:0x8162E750; // type:object size:0x4272 data:2byte noreloc
|
||||
fa_nand_func = .rodata:0x816329C8; // type:object size:0x20
|
||||
pfd_sddrv_func = .rodata:0x816329E8; // type:object size:0x20
|
||||
sddrv_size_depend_tbl = .rodata:0x81632A08; // type:object size:0x150 data:4byte
|
||||
@@ -16958,9 +16961,9 @@ lbl_816567FD = .data:0x816567FD; // type:object size:0xF data:string
|
||||
lbl_8165680C = .data:0x8165680C; // type:object size:0x18
|
||||
lbl_81656824 = .data:0x81656824; // type:object size:0x18
|
||||
lbl_8165683C = .data:0x8165683C; // type:object size:0xAC
|
||||
lbl_816568E8 = .data:0x816568E8; // type:object size:0x10
|
||||
lbl_816568F8 = .data:0x816568F8; // type:object size:0x18
|
||||
lbl_81656910 = .data:0x81656910; // type:object size:0x18 data:4byte
|
||||
sSettingAPButtonNames__Q23ipl5scene = .data:0x816568E8; // type:object size:0x10
|
||||
sSettingAPTextNames__Q23ipl5scene = .data:0x816568F8; // type:object size:0x18
|
||||
sSettingAPNumberNames__Q23ipl5scene = .data:0x81656910; // type:object size:0x18 data:4byte
|
||||
lbl_81656928 = .data:0x81656928; // type:object size:0xD data:string
|
||||
lbl_81656935 = .data:0x81656935; // type:object size:0xC data:string
|
||||
lbl_81656941 = .data:0x81656941; // type:object size:0x9 data:string
|
||||
@@ -17090,7 +17093,7 @@ jumptable_81657D5C = .data:0x81657D5C; // type:object size:0x58 scope:local
|
||||
jumptable_81657DB8 = .data:0x81657DB8; // type:object size:0x28 scope:local
|
||||
jumptable_81657DE0 = .data:0x81657DE0; // type:object size:0x84 scope:local
|
||||
jumptable_81657E64 = .data:0x81657E64; // type:object size:0x2C scope:local
|
||||
lbl_81657E90 = .data:0x81657E90; // type:object size:0x40
|
||||
gAtermDigestFill = .data:0x81657E90; // type:object size:0x40
|
||||
@10010 = .data:0x81657ED0; // type:object size:0xC scope:local data:string
|
||||
@10021 = .data:0x81657EDC; // type:object size:0x13 scope:local data:string
|
||||
__vt__Q33ipl5scene9SettingBg = .data:0x81657EF0; // type:object size:0x4C
|
||||
@@ -17878,8 +17881,8 @@ __vt__Q49textinput6extend4memo13EditMemoState = .data:0x81667F48; // type:object
|
||||
__vt__Q49textinput6extend4memo15AppearMemoState = .data:0x81667FA0; // type:object size:0x58
|
||||
__vt__Q49textinput6extend4memo13DispMemoState = .data:0x81667FF8; // type:object size:0x58
|
||||
__vt__Q49textinput6extend4memo5State = .data:0x81668050; // type:object size:0x58
|
||||
__vt__Q49textinput6extend4memo7Manager = .data:0x816680A8; // type:object size:0xCC
|
||||
lbl_81668174 = .data:0x81668174; // type:object size:0x9C
|
||||
__vt__Q49textinput6extend4memo7Manager = .data:0x816680A8; // type:object size:0x140
|
||||
lbl_816681E8 = .data:0x816681E8; // type:object size:0x28
|
||||
lbl_81668210 = .data:0x81668210; // type:object size:0x9 data:string
|
||||
lbl_8166821C = .data:0x8166821C; // type:object size:0x9 data:string
|
||||
lbl_81668228 = .data:0x81668228; // type:object size:0x9 data:string
|
||||
@@ -18919,7 +18922,7 @@ Ucs9D = .data:0x8167F428; // type:object size:0x200 scope:local noreloc
|
||||
Ucs9E = .data:0x8167F628; // type:object size:0x200 scope:local noreloc
|
||||
Ucs9F = .data:0x8167F828; // type:object size:0x200 scope:local noreloc
|
||||
UcsFF = .data:0x8167FA28; // type:object size:0x200 scope:local noreloc
|
||||
UcsSjisTable = .data:0x8167FC28; // type:object size:0x400 scope:local noreloc
|
||||
UcsSjisTable = .data:0x8167FC28; // type:object size:0x400 scope:local data:4byte
|
||||
@746 = .data:0x81680028; // type:object size:0x13 scope:local data:string
|
||||
@747 = .data:0x8168003C; // type:object size:0x13 scope:local data:string
|
||||
@751 = .data:0x81680050; // type:object size:0xC scope:local data:string
|
||||
@@ -20579,8 +20582,8 @@ lbl_81694C60 = .sdata2:0x81694C60; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694C64 = .sdata2:0x81694C64; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694C68 = .sdata2:0x81694C68; // type:object size:0x4 align:4 data:float
|
||||
lbl_81694C70 = .sdata2:0x81694C70; // type:object size:0x8 align:8 data:double
|
||||
lbl_81694C78 = .sdata2:0x81694C78; // type:object size:0x2 data:2byte
|
||||
lbl_81694C7A = .sdata2:0x81694C7A; // type:object size:0x6 data:2byte
|
||||
aossDefaultConnection = .sdata2:0x81694C78; // type:object size:0x2 data:2byte
|
||||
aossDefaultOptions = .sdata2:0x81694C7A; // type:object size:0x6 data:2byte
|
||||
lbl_81694C80 = .sdata2:0x81694C80; // type:object size:0x1 data:byte
|
||||
lbl_81694C81 = .sdata2:0x81694C81; // type:object size:0x1 data:byte
|
||||
lbl_81694C82 = .sdata2:0x81694C82; // type:object size:0x1 data:byte
|
||||
@@ -22210,23 +22213,23 @@ lbl_816971D4 = .sdata:0x816971D4; // type:object size:0x8 data:wstring
|
||||
@12299 = .sdata:0x816971E0; // type:object size:0x5 scope:local data:string
|
||||
@12302 = .sdata:0x816971E5; // type:object size:0x5 scope:local data:string
|
||||
lbl_816971F0 = .sdata:0x816971F0; // type:object size:0x4 data:string
|
||||
lbl_816971F8 = .sdata:0x816971F8; // type:object size:0x4 data:4byte
|
||||
lbl_81697200 = .sdata:0x81697200; // type:object size:0x4 data:4byte
|
||||
lbl_81697204 = .sdata:0x81697204; // type:object size:0x6 data:string
|
||||
displayState__Q23ipl5scene = .sdata:0x816971F8; // type:object size:0x4 data:4byte
|
||||
s_socket = .sdata:0x81697200; // type:object size:0x4 data:4byte
|
||||
s_manufacturer = .sdata:0x81697204; // type:object size:0x6 data:string
|
||||
lbl_8169720C = .sdata:0x8169720C; // type:object size:0x4 data:4byte
|
||||
lbl_81697210 = .sdata:0x81697210; // type:object size:0x8
|
||||
lbl_81697218 = .sdata:0x81697218; // type:object size:0x4 data:4byte
|
||||
lbl_8169721C = .sdata:0x8169721C; // type:object size:0x4 data:4byte
|
||||
lbl_81697220 = .sdata:0x81697220; // type:object size:0x4 data:4byte
|
||||
lbl_81697224 = .sdata:0x81697224; // type:object size:0x4
|
||||
lbl_81697228 = .sdata:0x81697228; // type:object size:0x4
|
||||
lbl_8169722C = .sdata:0x8169722C; // type:object size:0x4
|
||||
lbl_81697230 = .sdata:0x81697230; // type:object size:0x4
|
||||
lbl_81697234 = .sdata:0x81697234; // type:object size:0x4
|
||||
lbl_81697238 = .sdata:0x81697238; // type:object size:0x7 data:string
|
||||
lbl_81697240 = .sdata:0x81697240; // type:object size:0x4 data:4byte
|
||||
lbl_81697244 = .sdata:0x81697244; // type:object size:0x4 data:4byte
|
||||
lbl_81697248 = .sdata:0x81697248; // type:object size:0x5 data:string
|
||||
gAtermDeadline = .sdata:0x81697218; // type:object size:0x4 data:4byte
|
||||
gAtermScanLimit = .sdata:0x8169721C; // type:object size:0x4 data:4byte
|
||||
gAtermScanBufferSize = .sdata:0x81697220; // type:object size:0x4 data:4byte
|
||||
gDefaultIpAddress = .sdata:0x81697224; // type:object size:0x4
|
||||
gDefaultSubnetMask = .sdata:0x81697228; // type:object size:0x4
|
||||
gDefaultGateway = .sdata:0x8169722C; // type:object size:0x4
|
||||
gDefaultPrimaryDns = .sdata:0x81697230; // type:object size:0x4
|
||||
gDefaultSecondaryDns = .sdata:0x81697234; // type:object size:0x4
|
||||
gAtermAossSsid = .sdata:0x81697238; // type:object size:0x7 data:string
|
||||
gAtermRequestOptions = .sdata:0x81697240; // type:object size:0x4 data:4byte
|
||||
gAtermUseSharedAddress = .sdata:0x81697244; // type:object size:0x4 data:4byte
|
||||
gAtermProductName = .sdata:0x81697248; // type:object size:0x5 data:string
|
||||
@10020 = .sdata:0x81697250; // type:object size:0x4 scope:local data:string
|
||||
scBtnSoundType__Q23ipl5scene = .sdata:0x81697258; // type:object size:0x8 scope:local
|
||||
@10722 = .sdata:0x81697260; // type:object size:0x4 scope:local data:string
|
||||
@@ -23409,10 +23412,10 @@ pFlags = .sbss:0x81698B00; // type:object size:0x4 scope:local data:4byte
|
||||
MemAllocator = .sbss:0x81698B04; // type:object size:0x4 scope:local data:4byte
|
||||
State = .sbss:0x81698B08; // type:object size:0x4 data:4byte
|
||||
CurrentEntry = .sbss:0x81698B0C; // type:object size:0x4 data:4byte
|
||||
lbl_81698B10 = .sbss:0x81698B10; // type:object size:0x4 scope:local data:4byte
|
||||
lbl_81698B14 = .sbss:0x81698B14; // type:object size:0x4 scope:local data:4byte
|
||||
lbl_81698B18 = .sbss:0x81698B18; // type:object size:0x4 scope:local data:4byte
|
||||
lbl_81698B1C = .sbss:0x81698B1C; // type:object size:0x4 scope:local data:4byte
|
||||
RebootRequired = .sbss:0x81698B10; // type:object size:0x4 scope:local data:4byte
|
||||
ContainsSeatTitles = .sbss:0x81698B14; // type:object size:0x4 scope:local data:4byte
|
||||
UpdateImportState = .sbss:0x81698B18; // type:object size:0x4 scope:local data:4byte
|
||||
UpdateImportResult = .sbss:0x81698B1C; // type:object size:0x4 scope:local data:4byte
|
||||
StartUpdate = .sbss:0x81698B20; // type:object size:0x4 data:4byte
|
||||
CancelUpdate = .sbss:0x81698B24; // type:object size:0x4 data:4byte
|
||||
UpdateProgress = .sbss:0x81698B28; // type:object size:0x4 scope:local data:4byte
|
||||
@@ -23455,7 +23458,7 @@ sHeapBuf__Q33ipl5scene8NetSetup = .sbss:0x81698BD8; // type:object size:0x4 data
|
||||
sHeap__Q33ipl5scene8NetSetup = .sbss:0x81698BDC; // type:object size:0x4 data:4byte
|
||||
mem1Buffer___Q33ipl5scene7Setting = .sbss:0x81698BE0; // type:object size:0x4 data:4byte
|
||||
mem2Buffer___Q33ipl5scene7Setting = .sbss:0x81698BE4; // type:object size:0x4 data:4byte
|
||||
lbl_81698BE8 = .sbss:0x81698BE8; // type:object size:0x4 data:4byte
|
||||
browserScrollDirection__Q23ipl5scene = .sbss:0x81698BE8; // type:object size:0x4 data:4byte
|
||||
mID__Q33ipl3ncd10NCDSetting = .sbss:0x81698BF0; // type:object size:0x2 data:2byte
|
||||
mMacNum__Q33ipl3ncd10NCDSetting = .sbss:0x81698BF4; // type:object size:0x4 data:4byte
|
||||
mStackPass__Q33ipl8parental8Parental = .sbss:0x81698BF8; // type:object size:0x4
|
||||
@@ -23472,43 +23475,43 @@ lbl_81698C28 = .sbss:0x81698C28; // type:object size:0x4 data:4byte
|
||||
lbl_81698C2C = .sbss:0x81698C2C; // type:object size:0x4 data:4byte
|
||||
lbl_81698C30 = .sbss:0x81698C30; // type:object size:0x4 data:4byte
|
||||
AOSSi_cancel_flag = .sbss:0x81698C38; // type:object size:0x4 data:4byte
|
||||
lbl_81698C3C = .sbss:0x81698C3C; // type:object size:0x4
|
||||
lbl_81698C40 = .sbss:0x81698C40; // type:object size:0x4
|
||||
lbl_81698C44 = .sbss:0x81698C44; // type:object size:0x4
|
||||
lbl_81698C48 = .sbss:0x81698C48; // type:object size:0x4
|
||||
lbl_81698C4C = .sbss:0x81698C4C; // type:object size:0x4
|
||||
lbl_81698C50 = .sbss:0x81698C50; // type:object size:0x4 data:4byte
|
||||
lbl_81698C54 = .sbss:0x81698C54; // type:object size:0x4 data:4byte
|
||||
lbl_81698C58 = .sbss:0x81698C58; // type:object size:0x4 data:4byte
|
||||
lbl_81698C60 = .sbss:0x81698C60; // type:object size:0x4 data:4byte
|
||||
lbl_81698C64 = .sbss:0x81698C64; // type:object size:0x4 data:4byte
|
||||
lbl_81698C68 = .sbss:0x81698C68; // type:object size:0x1 data:byte
|
||||
lbl_81698C6C = .sbss:0x81698C6C; // type:object size:0x4
|
||||
lbl_81698C70 = .sbss:0x81698C70; // type:object size:0x4 data:4byte
|
||||
lbl_81698C74 = .sbss:0x81698C74; // type:object size:0x4 data:4byte
|
||||
lbl_81698C78 = .sbss:0x81698C78; // type:object size:0x8 data:byte
|
||||
lbl_81698C80 = .sbss:0x81698C80; // type:object size:0x4 data:4byte
|
||||
lbl_81698C84 = .sbss:0x81698C84; // type:object size:0x4 data:4byte
|
||||
lbl_81698C88 = .sbss:0x81698C88; // type:object size:0x4 data:4byte
|
||||
lbl_81698C8C = .sbss:0x81698C8C; // type:object size:0x4 data:4byte
|
||||
lbl_81698C90 = .sbss:0x81698C90; // type:object size:0x4 data:4byte
|
||||
lbl_81698C94 = .sbss:0x81698C94; // type:object size:0x4 data:4byte
|
||||
lbl_81698C98 = .sbss:0x81698C98; // type:object size:0x4 data:4byte
|
||||
lbl_81698C9C = .sbss:0x81698C9C; // type:object size:0x4 data:4byte
|
||||
lbl_81698CA0 = .sbss:0x81698CA0; // type:object size:0x4 data:4byte
|
||||
lbl_81698CA4 = .sbss:0x81698CA4; // type:object size:0x4 data:4byte
|
||||
lbl_81698CA8 = .sbss:0x81698CA8; // type:object size:0x4 data:4byte
|
||||
lbl_81698CAC = .sbss:0x81698CAC; // type:object size:0x4 data:4byte
|
||||
lbl_81698CB0 = .sbss:0x81698CB0; // type:object size:0x4 data:4byte
|
||||
lbl_81698CB4 = .sbss:0x81698CB4; // type:object size:0x4 data:4byte
|
||||
lbl_81698CB8 = .sbss:0x81698CB8; // type:object size:0x4 data:4byte
|
||||
lbl_81698CBC = .sbss:0x81698CBC; // type:object size:0x4 data:4byte
|
||||
lbl_81698CC0 = .sbss:0x81698CC0; // type:object size:0x1 data:byte
|
||||
lbl_81698CC4 = .sbss:0x81698CC4; // type:object size:0x4 data:4byte
|
||||
lbl_81698CC8 = .sbss:0x81698CC8; // type:object size:0x8
|
||||
lbl_81698CD0 = .sbss:0x81698CD0; // type:object size:0x4 data:4byte
|
||||
lbl_81698CD4 = .sbss:0x81698CD4; // type:object size:0x8 data:byte
|
||||
lbl_81698CDC = .sbss:0x81698CDC; // type:object size:0x4 data:4byte
|
||||
ipAddress = .sbss:0x81698C3C; // type:object size:0x4
|
||||
ipNetmask = .sbss:0x81698C40; // type:object size:0x4
|
||||
ipGateway = .sbss:0x81698C44; // type:object size:0x4
|
||||
primaryDns = .sbss:0x81698C48; // type:object size:0x4
|
||||
secondaryDns = .sbss:0x81698C4C; // type:object size:0x4
|
||||
allocateMemory = .sbss:0x81698C50; // type:object size:0x4 data:4byte
|
||||
releaseMemory = .sbss:0x81698C54; // type:object size:0x4 data:4byte
|
||||
statusCallback = .sbss:0x81698C58; // type:object size:0x4 data:4byte
|
||||
startTimeHigh__Q23ipl5scene = .sbss:0x81698C60; // type:object size:0x4 data:4byte
|
||||
startTimeLow__Q23ipl5scene = .sbss:0x81698C64; // type:object size:0x4 data:4byte
|
||||
active__Q23ipl5scene = .sbss:0x81698C68; // type:object size:0x1 data:byte
|
||||
messageSlot__Q23ipl5scene = .sbss:0x81698C6C; // type:object size:0x4
|
||||
s_accessPointList = .sbss:0x81698C70; // type:object size:0x4 data:4byte
|
||||
s_accessPointConfig = .sbss:0x81698C74; // type:object size:0x4 data:4byte
|
||||
s_accessPointName = .sbss:0x81698C78; // type:object size:0x8 data:byte
|
||||
s_connectionState = .sbss:0x81698C80; // type:object size:0x4 data:4byte
|
||||
s_errorCode = .sbss:0x81698C84; // type:object size:0x4 data:4byte
|
||||
s_socketStarted = .sbss:0x81698C88; // type:object size:0x4 data:4byte
|
||||
s_responseBuffer = .sbss:0x81698C8C; // type:object size:0x4 data:4byte
|
||||
gAtermState = .sbss:0x81698C90; // type:object size:0x4 data:4byte
|
||||
gAtermResult = .sbss:0x81698C94; // type:object size:0x4 data:4byte
|
||||
gAtermProgressCallback = .sbss:0x81698C98; // type:object size:0x4 data:4byte
|
||||
gAtermAllocate = .sbss:0x81698C9C; // type:object size:0x4 data:4byte
|
||||
gAtermRelease = .sbss:0x81698CA0; // type:object size:0x4 data:4byte
|
||||
gAtermAllocation = .sbss:0x81698CA4; // type:object size:0x4 data:4byte
|
||||
gAtermThreadStarted = .sbss:0x81698CA8; // type:object size:0x4 data:4byte
|
||||
gAtermSelectedRecordIndex = .sbss:0x81698CAC; // type:object size:0x4 data:4byte
|
||||
gAtermSocketReady = .sbss:0x81698CB0; // type:object size:0x4 data:4byte
|
||||
gAtermSocketStarted = .sbss:0x81698CB4; // type:object size:0x4 data:4byte
|
||||
gAtermMessageLength = .sbss:0x81698CB8; // type:object size:0x4 data:4byte
|
||||
gAtermReplyLength = .sbss:0x81698CBC; // type:object size:0x4 data:4byte
|
||||
gAtermMode = .sbss:0x81698CC0; // type:object size:0x1 data:byte
|
||||
gAtermResponseMode = .sbss:0x81698CC4; // type:object size:0x4 data:4byte
|
||||
gAtermAddressBuffer = .sbss:0x81698CC8; // type:object size:0x8
|
||||
gAtermProtocolState = .sbss:0x81698CD0; // type:object size:0x4 data:4byte
|
||||
gAtermSelectedBssid = .sbss:0x81698CD4; // type:object size:0x8 data:byte
|
||||
gAtermCancelRequested = .sbss:0x81698CDC; // type:object size:0x4 data:4byte
|
||||
zeroBuffer = .sbss:0x81698CE0; // type:object size:0x4 data:4byte
|
||||
sSysInit__19AxAdpcmSimplePlayer = .sbss:0x81698CE4; // type:object size:0x1 data:byte
|
||||
sSysPauseFlag__19AxAdpcmSimplePlayer = .sbss:0x81698CE5; // type:object size:0x1 data:byte
|
||||
|
||||
10
configure.py
10
configure.py
@@ -689,7 +689,7 @@ config.libs = [
|
||||
]
|
||||
),
|
||||
IPLSection("sound", [
|
||||
Object(NonMatching, "sound/iplSound.cpp"),
|
||||
Object(Matching, "sound/iplSound.cpp"),
|
||||
]
|
||||
),
|
||||
IPLSection("iplwww", [
|
||||
@@ -869,11 +869,11 @@ config.libs = [
|
||||
),
|
||||
IPLSection("setting", [
|
||||
Object(NonMatching, "scene/setting/iplSetting.cpp"),
|
||||
Object(NonMatching, "scene/setting/iplSensitivity.cpp"),
|
||||
Object(Matching, "scene/setting/iplSensitivity.cpp"),
|
||||
Object(Matching, "scene/setting/iplNCDSetting.cpp"),
|
||||
Object(Matching, "scene/setting/iplParental.cpp"),
|
||||
Object(Matching, "scene/setting/iplAPScanThread.cpp"),
|
||||
Object(NonMatching, "scene/setting/iplUSBAP.cpp"),
|
||||
Object(Matching, "scene/setting/iplUSBAP.cpp"),
|
||||
Object(NonMatching, "scene/setting/iplUSBAPThread.cpp"),
|
||||
Object(Matching, "scene/setting/iplAOSSThread.cpp"),
|
||||
Object(NonMatching, "scene/setting/AOSSLink.c"),
|
||||
@@ -933,7 +933,7 @@ config.libs = [
|
||||
Object(Matching, "keyboard/MyTiBg.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(Matching, "keyboard/tiDebug.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(Matching, "keyboard/tiGUIManager.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(NonMatching, "keyboard/tiHKBManager.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(Matching, "keyboard/tiHKBManager.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(Matching, "keyboard/tiHwKeyboard.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(Matching, "keyboard/tiLayout.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(Matching, "keyboard/tiLayoutGather.cpp", extra_cflags=["-O4,p"]),
|
||||
@@ -1869,7 +1869,7 @@ config.libs = [
|
||||
),
|
||||
RVLSDKLib("nup", [
|
||||
Object(NonMatching, "nup/nup.cpp"),
|
||||
Object(NonMatching, "nup/nup_nhttp.cpp"),
|
||||
Object(Matching, "nup/nup_nhttp.cpp"),
|
||||
Object(Matching, "nup/nup_mem.cpp"),
|
||||
]
|
||||
),
|
||||
|
||||
@@ -38,7 +38,11 @@ namespace ipl {
|
||||
u8 unk_0x07; // 0x07
|
||||
u8 iconFmt[8]; // 0x08
|
||||
u16 anmFrameBits; // 0x10
|
||||
#ifdef IPL_MEMORY_CARD_MANAGER_CPP
|
||||
volatile s16 anmMax;
|
||||
#else
|
||||
s16 anmMax; // 0x12
|
||||
#endif
|
||||
u32 bannerOffset; // 0x14
|
||||
u32 bannerTlutOffset; // 0x18
|
||||
u32 iconOffset[8]; // 0x1C
|
||||
|
||||
@@ -92,7 +92,11 @@ namespace textinput {
|
||||
virtual void setSaveData(savedata::MemoSetting memoSetting) {
|
||||
mMemoSetting = memoSetting;
|
||||
}
|
||||
#ifdef IPL_KEYBOARD_MEMO_GET_SAVE_DATA
|
||||
virtual savedata::MemoSetting getSaveData();
|
||||
#else
|
||||
virtual savedata::MemoSetting getSaveData() { return mMemoSetting; }
|
||||
#endif
|
||||
|
||||
virtual void changeState(StateTimeLine stateTimeLine);
|
||||
virtual State* getState() { return mpCurrentState; }
|
||||
|
||||
@@ -20,6 +20,8 @@ namespace textinput {
|
||||
public:
|
||||
void NotifyEvent(u8 down, u8 code);
|
||||
void Update();
|
||||
bool HasCurrentKey(u32 slot) const { return (current & (1 << slot)) != 0; }
|
||||
bool HadPreviousKey(u32 slot) const { return (previous & (1 << slot)) != 0; }
|
||||
void UpdateModState_();
|
||||
void Clear() {
|
||||
held = 0;
|
||||
@@ -107,10 +109,23 @@ namespace textinput {
|
||||
HKBManager* manager;
|
||||
};
|
||||
HKBManager() __attribute__((never_inline));
|
||||
~HKBManager();
|
||||
static HKBManager& getInstance() { return sInstance; }
|
||||
void Initialize();
|
||||
void ClearState();
|
||||
u32 FilterCharacter(u32 code) const {
|
||||
if (allowedCharacters == 0) return code;
|
||||
u32 count = allowedCharacterCount;
|
||||
if (count == 0) return code;
|
||||
for (u32 index = 0; index < count; index++) {
|
||||
if (static_cast<u16>(code) == allowedCharacters[index]) return code;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
void DetachDevice(KBDDevEvent* event) {
|
||||
u8 device = event->device;
|
||||
attached[device] = 0;
|
||||
states[device].Clear();
|
||||
}
|
||||
u32 GetModifierState() const;
|
||||
void SetCountry(u8 country);
|
||||
void SetModifierState(u32 state, u32 mask);
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace textinput {
|
||||
#endif
|
||||
public:
|
||||
HWKeyboard(Manager *);
|
||||
#ifdef TIMANAGER_IMPLEMENTATION
|
||||
#if defined(TIMANAGER_IMPLEMENTATION) || defined(TIHWKEYBOARD_IMPLEMENTATION)
|
||||
inline ~HWKeyboard();
|
||||
#else
|
||||
~HWKeyboard();
|
||||
@@ -29,7 +29,7 @@ namespace textinput {
|
||||
wchar_t convertWCCode(wchar_t code) const;
|
||||
#endif
|
||||
|
||||
#if defined(MYTIMANAGER_IMPLEMENTATION) || defined(TIMANAGER_IMPLEMENTATION)
|
||||
#if defined(MYTIMANAGER_IMPLEMENTATION) || defined(TIMANAGER_IMPLEMENTATION) || defined(TIHWKEYBOARD_IMPLEMENTATION)
|
||||
void updateInput(int chan, f32 x, f32 y, u32 trig, u32 hold, u32 release, void* data);
|
||||
#else
|
||||
virtual void updateInput(int chan, f32 x, f32 y, u32 trig, u32 hold, u32 release, void* data);
|
||||
@@ -46,9 +46,10 @@ namespace textinput {
|
||||
bool updateTappingShift_(input::HKBManager&);
|
||||
#endif
|
||||
void updateShift(input::HKBManager& hkbManager);
|
||||
void controlKeyTriggeredHandler(input::HKBManager);
|
||||
bool controlKeyTriggeredHandler(input::HKBManager&);
|
||||
|
||||
Manager *mgr() { return mpManager; }
|
||||
const Manager *mgr() const { return mpManager; }
|
||||
|
||||
Manager* mpManager; // 0x10
|
||||
u8 field_0x14; // 0x14
|
||||
|
||||
@@ -113,6 +113,8 @@ namespace textinput {
|
||||
#ifdef TIMANAGER_IMPLEMENTATION
|
||||
virtual void setTitleText(wchar_t* titleText);
|
||||
void initAspect();
|
||||
#elif defined(MYTIMANAGER_IMPLEMENTATION)
|
||||
virtual void setTitleText(wchar_t* titleText);
|
||||
#else
|
||||
virtual void setTitleText(const wchar_t* titleText);
|
||||
#endif
|
||||
|
||||
@@ -7,6 +7,10 @@
|
||||
|
||||
#include "utility/iplFrameController.h"
|
||||
|
||||
#ifdef IPL_GC_WINDOW_CPP
|
||||
#include "math/iplMathTypes.h"
|
||||
#endif
|
||||
|
||||
#ifdef IPL_GCW_INTP_CTOR_OUT_OF_LINE
|
||||
#include "global/decomp/utils.h"
|
||||
#endif
|
||||
@@ -38,6 +42,33 @@ namespace ipl {
|
||||
T mEnd;
|
||||
};
|
||||
|
||||
#ifdef IPL_GC_WINDOW_CPP
|
||||
template <>
|
||||
class Interporation<VEC3> : public utility::FrameController {
|
||||
public:
|
||||
virtual ~Interporation();
|
||||
|
||||
void init(int playback, f32 maxFrame, f32 minFrame, const VEC3& start,
|
||||
const VEC3& end, f32 speed = 1.0f) {
|
||||
mStart = start;
|
||||
mEnd = end;
|
||||
utility::FrameController::init(playback, maxFrame, minFrame, speed);
|
||||
}
|
||||
|
||||
const VEC3& getStart() { return mStart; }
|
||||
const VEC3& getEnd() { return mEnd; }
|
||||
|
||||
void playBackwards() {
|
||||
mAnmType = ANIM_TYPE_BACKWARD;
|
||||
mState = ANIM_STATE_PLAY;
|
||||
}
|
||||
|
||||
protected:
|
||||
VEC3 mStart;
|
||||
VEC3 mEnd;
|
||||
};
|
||||
#endif
|
||||
|
||||
template <typename T>
|
||||
class LinearIntp : public Interporation<T> {
|
||||
public:
|
||||
@@ -61,6 +92,16 @@ namespace ipl {
|
||||
T get2() const { return (((mStart * (mMaxFrame - mFrame)) + (mEnd * mFrame)) / mMaxFrame); }
|
||||
};
|
||||
|
||||
#ifdef IPL_GC_WINDOW_CPP
|
||||
template <>
|
||||
class LinearIntp<VEC3> : public Interporation<VEC3> {
|
||||
public:
|
||||
LinearIntp() {}
|
||||
virtual ~LinearIntp();
|
||||
VEC3 get() const;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef IPL_CHANNEL_TITLE_NOVTABLE
|
||||
template <typename T>
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace ipl {
|
||||
int stopBGM(int unk = 0);
|
||||
#endif
|
||||
int stopBGM(nw4r::snd::SoundHandle* handle, int unk = 0);
|
||||
int stopSE(nw4r::snd::SoundHandle* handle, int unk = 0);
|
||||
void stopSE(nw4r::snd::SoundHandle* handle, int unk = 0);
|
||||
void stopAllSound(int unk = 0);
|
||||
|
||||
int resetAllSound();
|
||||
@@ -99,7 +99,7 @@ namespace ipl {
|
||||
long clipGELT_S32(long value, long lo, long hi);
|
||||
|
||||
private:
|
||||
u32 unk_0x620[0x18];
|
||||
u32 unk_0x620[3];
|
||||
};
|
||||
|
||||
// use getSystem() and getBannerPlayer() instead
|
||||
|
||||
@@ -157,8 +157,20 @@ void AXFXChorusExpCallback(AXFX_BUFFERUPDATE* update, AXFX_CHORUS_EXP* fx) {
|
||||
if (fx->delay.outPos >= fx->delay.sizeFP) fx->delay.outPos = 0;
|
||||
}
|
||||
}
|
||||
static inline void chorus_gradient(AXFX_CHORUS_EXP_LFO* lfo, f32 depth, f32 step) {
|
||||
depth /= step;
|
||||
lfo->gradFactor = 65536.0f * depth;
|
||||
}
|
||||
static BOOL __InitParams(AXFX_CHORUS_EXP* fx) {
|
||||
f32 delay, depth, step;
|
||||
f32 delay;
|
||||
f32 depth;
|
||||
f32 step;
|
||||
u32 channel;
|
||||
u32 sample;
|
||||
s32 stepSamp;
|
||||
s32 phaseAdd;
|
||||
s32 depthSamp;
|
||||
|
||||
if (fx->delayTime < 0.1f || fx->delayTime > 50.0f) return FALSE;
|
||||
if (fx->depth < 0.0f || fx->depth > 1.0f) return FALSE;
|
||||
if (fx->rate < 0.1f || fx->rate > 2.0f) return FALSE;
|
||||
@@ -168,61 +180,60 @@ static BOOL __InitParams(AXFX_CHORUS_EXP* fx) {
|
||||
fx->lfo.table = __AXFXGetLfoSinTable();
|
||||
delay = 32.0f * fx->delayTime;
|
||||
depth = delay * fx->depth;
|
||||
if (delay <= depth) {
|
||||
if (depth >= delay) {
|
||||
depth -= 1.0f;
|
||||
if (depth < 0.0f) depth = 0.0f;
|
||||
}
|
||||
fx->lfo.depthSamp = 65536.0f * depth;
|
||||
fx->lfo.phaseAdd = 65536.0f * (256.0f * fx->rate / 32000.0f);
|
||||
step = (32000.0f / fx->rate) * (1.0f / 256.0f);
|
||||
fx->lfo.stepSamp = 65536.0f * step;
|
||||
fx->lfo.gradFactor = 65536.0f * (depth / step);
|
||||
fx->lfo.lastNum = -1;
|
||||
fx->lfo.phase = 0;
|
||||
fx->lfo.sign = 0;
|
||||
fx->lfo.lastValue = 0;
|
||||
fx->lfo.grad = 0;
|
||||
fx->history[0][0] = 0.0f;
|
||||
fx->history[0][1] = 0.0f;
|
||||
fx->history[0][2] = 0.0f;
|
||||
fx->history[0][3] = 0.0f;
|
||||
fx->history[1][0] = 0.0f;
|
||||
fx->history[1][1] = 0.0f;
|
||||
fx->history[1][2] = 0.0f;
|
||||
fx->history[1][3] = 0.0f;
|
||||
fx->history[2][0] = 0.0f;
|
||||
fx->history[2][1] = 0.0f;
|
||||
fx->history[2][2] = 0.0f;
|
||||
fx->history[2][3] = 0.0f;
|
||||
depthSamp = 65536.0f * depth;
|
||||
phaseAdd = 65536.0f * (256.0f * fx->rate / 32000.0f);
|
||||
step = (32000.0f / fx->rate) / 256.0f;
|
||||
stepSamp = 65536.0f * step;
|
||||
fx->lfo.depthSamp = depthSamp;
|
||||
fx->lfo.phaseAdd = phaseAdd;
|
||||
fx->lfo.stepSamp = stepSamp;
|
||||
chorus_gradient(&fx->lfo, depth, step);
|
||||
for (channel = 0; channel < 3; channel++) {
|
||||
for (sample = 0; sample < 4; sample++) {
|
||||
fx->history[channel][sample] = 0.0f;
|
||||
}
|
||||
}
|
||||
fx->histIndex = 0;
|
||||
return TRUE;
|
||||
}
|
||||
static void __CalcLFO(s32* output, AXFX_CHORUS_EXP_LFO* lfo) {
|
||||
u32 remaining = 96;
|
||||
do {
|
||||
s32 value;
|
||||
u32 phase = lfo->phase & 0xFFFF0000;
|
||||
s32 start;
|
||||
s64 value;
|
||||
s32 difference;
|
||||
s64 gradient;
|
||||
u32 phase;
|
||||
u32 sample;
|
||||
for (sample = 0; sample < 96; sample++) {
|
||||
phase = lfo->phase & 0xFFFF0000;
|
||||
if (phase != lfo->lastNum) {
|
||||
s32 start, difference;
|
||||
s64 product;
|
||||
lfo->lastNum = phase;
|
||||
phase >>= 16;
|
||||
start = lfo->table[phase];
|
||||
difference = lfo->table[(phase + 1) & 0x7F] - start;
|
||||
product = (s64)start * lfo->depthSamp;
|
||||
value = ((u32)(product >> 32) << 8) | ((u32)product >> 24);
|
||||
product = (s64)difference * lfo->gradFactor;
|
||||
lfo->grad = ((u32)(product >> 32) << 8) | ((u32)product >> 24);
|
||||
gradient = difference;
|
||||
gradient *= lfo->gradFactor;
|
||||
lfo->grad = gradient >> 24;
|
||||
value = (s64)start * lfo->depthSamp;
|
||||
value >>= 24;
|
||||
} else {
|
||||
value = lfo->lastValue + lfo->grad;
|
||||
}
|
||||
else value = lfo->lastValue + lfo->grad;
|
||||
lfo->lastValue = value;
|
||||
if (lfo->sign != 0) value = -value;
|
||||
if (lfo->sign >= 1) value = -value;
|
||||
lfo->phase += lfo->phaseAdd;
|
||||
if (lfo->phase & 0xFF800000) {
|
||||
lfo->phase &= 0x7FFFFF;
|
||||
lfo->sign ^= 1;
|
||||
}
|
||||
*output++ = value;
|
||||
remaining--;
|
||||
} while (remaining != 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ typedef struct PFD_SDDRV_INFO {
|
||||
u32 media_inserted;
|
||||
u32 media_ejected;
|
||||
s8 drive;
|
||||
} PFD_SDDRV_INFO;
|
||||
} ATTRIBUTE_ALIGN(8) PFD_SDDRV_INFO;
|
||||
|
||||
typedef union PFD_SDDEV_STORAGE {
|
||||
SDDev device;
|
||||
|
||||
@@ -141,7 +141,7 @@ pf_s32 pdm_part_get_start_sector(PDM_PARTITION* p_part) {
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
pf_u32 pdm_part_chg_ltop(PDM_PARTITION* p_part, pf_u32 sector, pf_u32 bps) {
|
||||
static inline pf_u32 partition_physical_sector(PDM_PARTITION* p_part, pf_u32 sector, pf_u32 bps) {
|
||||
pf_u16 media_bps;
|
||||
pf_u32 ratio;
|
||||
pf_u32 start;
|
||||
@@ -158,6 +158,9 @@ pf_u32 pdm_part_chg_ltop(PDM_PARTITION* p_part, pf_u32 sector, pf_u32 bps) {
|
||||
else if (ratio == 8) { start >>= 3; }
|
||||
return sector + start;
|
||||
}
|
||||
pf_u32 pdm_part_chg_ltop(PDM_PARTITION* p_part, pf_u32 sector, pf_u32 bps) NO_INLINE {
|
||||
return partition_physical_sector(p_part, sector, bps);
|
||||
}
|
||||
pf_s32 pdm_part_get_partition(PDM_DISK* p_disk, pf_u32 id, PDM_PARTITION** pp_part) {
|
||||
pf_s32 err;
|
||||
pf_u16 index;
|
||||
|
||||
@@ -784,6 +784,21 @@ s32 PFFAT_WriteClusterWithBuf(PFFAT_FFD* file, u32 cluster, u32 chainIndex,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static s32 PFFAT_WriteFATCopies(PF_VOLUME* volume, PF_CACHE_PAGE* page) {
|
||||
u16 fatIndex;
|
||||
u32 sector;
|
||||
s32 firstError;
|
||||
|
||||
sector = page->sector;
|
||||
firstError = 0;
|
||||
for (fatIndex = 0; fatIndex < volume->bpb.num_active_FATs; fatIndex++) {
|
||||
s32 error = PFSEC_WriteFAT(volume, page->p_buf, sector, 0, volume->bpb.bytes_per_sector);
|
||||
if (error != 0 && firstError == 0) firstError = error;
|
||||
sector += volume->bpb.sectors_per_FAT;
|
||||
}
|
||||
return firstError;
|
||||
}
|
||||
|
||||
s32 PFFAT_DoAllocateChain(PFFAT_FFD* file, u32 chainLength, u32 chainIndex,
|
||||
u32* firstAllocatedCluster,
|
||||
u32* lastAllocatedCluster, s32 resetClusters)
|
||||
@@ -793,13 +808,10 @@ s32 PFFAT_DoAllocateChain(PFFAT_FFD* file, u32 chainLength, u32 chainIndex,
|
||||
u32 firstFreeCluster;
|
||||
u32 lastFreeCluster;
|
||||
u32 cluster;
|
||||
u32 currentSector;
|
||||
PF_CACHE_PAGE* flushPage;
|
||||
u32 firstFlushError;
|
||||
s32 alreadyAllocated;
|
||||
s32 error;
|
||||
PF_CACHE_PAGE* page;
|
||||
u16 completedFATs;
|
||||
|
||||
volume = file->p_vol;
|
||||
eoc2 = fat_special_values[volume->bpb.fat_type].eoc2;
|
||||
@@ -873,18 +885,7 @@ s32 PFFAT_DoAllocateChain(PFFAT_FFD* file, u32 chainLength, u32 chainIndex,
|
||||
file->last_cluster.max_chain_index = chainIndex;
|
||||
*lastAllocatedCluster = lastFreeCluster;
|
||||
|
||||
firstFlushError = 0;
|
||||
currentSector = page->sector;
|
||||
flushPage = page;
|
||||
for (completedFATs = 0; completedFATs < volume->bpb.num_active_FATs;
|
||||
completedFATs++) {
|
||||
error = PFSEC_WriteFAT(volume, flushPage->p_buf, currentSector, 0,
|
||||
volume->bpb.bytes_per_sector);
|
||||
if (error != 0 && firstFlushError == 0) {
|
||||
firstFlushError = error;
|
||||
}
|
||||
currentSector += volume->bpb.sectors_per_FAT;
|
||||
}
|
||||
firstFlushError = PFFAT_WriteFATCopies(volume, page);
|
||||
if (firstFlushError != 0) {
|
||||
PFCACHE_FreeDataPage(volume, page);
|
||||
return firstFlushError;
|
||||
@@ -1231,8 +1232,6 @@ s32 PFFAT_GetSector(PFFAT_FFD* file, u32 fileSectorIndex, u32 mode,
|
||||
u32 fatType;
|
||||
u32 chainIndex;
|
||||
u32 cluster;
|
||||
u32 numRemainder;
|
||||
u32 numDivide;
|
||||
u32 numClusters;
|
||||
u32 numSectors;
|
||||
s32 error;
|
||||
@@ -1248,12 +1247,10 @@ s32 PFFAT_GetSector(PFFAT_FFD* file, u32 fileSectorIndex, u32 mode,
|
||||
}
|
||||
chainIndex = fileSectorIndex >> volume->bpb.log2_sectors_per_cluster;
|
||||
if (mode == 2) {
|
||||
numSectors = (size / volume->bpb.bytes_per_sector) +
|
||||
((size % volume->bpb.bytes_per_sector) != 0);
|
||||
numDivide = numSectors / volume->bpb.sectors_per_cluster;
|
||||
numRemainder =
|
||||
(numSectors % volume->bpb.sectors_per_cluster) != 0;
|
||||
numClusters = numRemainder + numDivide;
|
||||
numClusters = size / volume->bpb.bytes_per_sector;
|
||||
numSectors = numClusters + (size % volume->bpb.bytes_per_sector != 0);
|
||||
numClusters = numSectors / volume->bpb.sectors_per_cluster;
|
||||
numClusters = numClusters + (numSectors % volume->bpb.sectors_per_cluster != 0);
|
||||
error = PFFAT_GetClusterAllocated(file, chainIndex, numClusters,
|
||||
&cluster);
|
||||
if (error != 0) {
|
||||
@@ -1875,11 +1872,12 @@ s32 PFFAT_RefreshFSINFO(PF_VOLUME* volume)
|
||||
error = 17;
|
||||
}
|
||||
if (error == 0) {
|
||||
if (((u32)&((PFFAT_FSINFO*)page->p_buf)
|
||||
->num_free_clusters.word &
|
||||
3) != 0) {
|
||||
((PFFAT_FSINFO*)page->p_buf)->num_free_clusters.bytes[0] =
|
||||
(u8)volume->num_free_clusters;
|
||||
PFFAT_FSINFO* info;
|
||||
u8* freeClusterBytes;
|
||||
info = (PFFAT_FSINFO*)page->p_buf;
|
||||
freeClusterBytes = info->num_free_clusters.bytes;
|
||||
if (((u32)freeClusterBytes & 3) != 0) {
|
||||
freeClusterBytes[0] = (u8)volume->num_free_clusters;
|
||||
((PFFAT_FSINFO*)page->p_buf)->num_free_clusters.bytes[1] =
|
||||
(u8)(volume->num_free_clusters >> 8);
|
||||
((PFFAT_FSINFO*)page->p_buf)->num_free_clusters.bytes[2] =
|
||||
@@ -1888,11 +1886,9 @@ s32 PFFAT_RefreshFSINFO(PF_VOLUME* volume)
|
||||
(u8)(volume->num_free_clusters >> 24);
|
||||
} else {
|
||||
u32 freeClusters = volume->num_free_clusters;
|
||||
|
||||
((PFFAT_FSINFO*)page->p_buf)->num_free_clusters.word =
|
||||
(freeClusters << 24) |
|
||||
((freeClusters & 0xFF00) << 8) |
|
||||
((freeClusters >> 8) & 0xFF00) | (freeClusters >> 24);
|
||||
u32 upperBytes = (freeClusters << 24) | ((freeClusters << 8) & 0x00FF0000);
|
||||
u32 lowerBytes = (freeClusters >> 24) | ((freeClusters >> 8) & 0xFF00);
|
||||
info->num_free_clusters.word = upperBytes | lowerBytes;
|
||||
}
|
||||
error = PFSEC_WriteData(
|
||||
volume, page->p_buf, volume->bpb.fs_info_sector, 0,
|
||||
|
||||
@@ -360,17 +360,16 @@ pf_bool PFPATH_MatchFileNameWithPattern(const pf_s8* file_name, PF_STR* p_patter
|
||||
pf_s32 PFPATH_cmpNameImpl(const pf_s8* name, const pf_s8* pattern, pf_u32* matched_end) {
|
||||
pf_u32 read_char;
|
||||
pf_s32 recursive_error;
|
||||
pf_u16 name_char;
|
||||
pf_s32 name_width;
|
||||
pf_u16 pattern_char;
|
||||
pf_u16 converted_pattern;
|
||||
pf_u16 converted_name;
|
||||
pf_s32 name_width;
|
||||
pf_u16 name_char;
|
||||
pf_s32 pattern_width;
|
||||
PF_PATH_VOLUME_SET* volume = &pf_vol_set;
|
||||
|
||||
while (*pattern != 0) {
|
||||
pattern_width = volume->codeset.oem_char_width(pattern);
|
||||
name_width = volume->codeset.oem_char_width(name);
|
||||
pattern_width = pf_vol_set.codeset.oem_char_width(pattern);
|
||||
name_width = pf_vol_set.codeset.oem_char_width(name);
|
||||
if (pattern_width == 1) {
|
||||
read_char = pf_toupper(*pattern);
|
||||
} else {
|
||||
@@ -399,18 +398,18 @@ pf_s32 PFPATH_cmpNameImpl(const pf_s8* name, const pf_s8* pattern, pf_u32* match
|
||||
}
|
||||
case '*': {
|
||||
do {
|
||||
pattern_width = volume->codeset.oem_char_width(pattern);
|
||||
if (pattern_width != 1) {
|
||||
read_char = (pf_u16)PF_GET_LE_U16((const pf_u8*)pattern);
|
||||
} else {
|
||||
pattern_width = pf_vol_set.codeset.oem_char_width(pattern);
|
||||
if (pattern_width == 1) {
|
||||
read_char = pf_toupper(*pattern);
|
||||
} else {
|
||||
read_char = (pf_u16)PF_GET_LE_U16((const pf_u8*)pattern);
|
||||
}
|
||||
pattern_char = (pf_u16)read_char;
|
||||
pattern += pattern_width;
|
||||
if (pattern_char == '?') {
|
||||
if (name_char == 0) { return 1; }
|
||||
name += name_width;
|
||||
name_width = volume->codeset.oem_char_width(name);
|
||||
name_width = pf_vol_set.codeset.oem_char_width(name);
|
||||
if (name_width == 1) { read_char = pf_toupper(*name); }
|
||||
else { read_char = (pf_u16)PF_GET_LE_U16((const pf_u8*)name); }
|
||||
name_char = (pf_u16)read_char;
|
||||
@@ -428,7 +427,7 @@ pf_s32 PFPATH_cmpNameImpl(const pf_s8* name, const pf_s8* pattern, pf_u32* match
|
||||
}
|
||||
if (*matched_end != 0) { return recursive_error; }
|
||||
}
|
||||
name_width = volume->codeset.oem_char_width(name);
|
||||
name_width = pf_vol_set.codeset.oem_char_width(name);
|
||||
if (name_width == 1) {
|
||||
read_char = pf_toupper(*name);
|
||||
} else {
|
||||
|
||||
@@ -50,12 +50,16 @@ int NHTTPGetHeaderAll(void*, char**);
|
||||
void NHTTPCancelRequestAsync(int);
|
||||
void NHTTPDestroyResponse(void*);
|
||||
|
||||
static inline unsigned long NhttpBufferSize(unsigned long requested) {
|
||||
if (requested != 0 && requested < 0x8000) return requested;
|
||||
return 0x8000;
|
||||
}
|
||||
static u8* __nupNhttpBufFull(u8** buffer, unsigned long* length, unsigned long requested, void*, void*, HttpState* state) {
|
||||
u8* next = NULL;
|
||||
if (state->progress != NULL && *length != 0) {
|
||||
state->progress(state->progressContext, *length);
|
||||
}
|
||||
if ((state->received + *length) < state->received) {
|
||||
if ((u32)(state->received + *length) < (u32)state->received) {
|
||||
if (state->error == 0) state->error = -5012;
|
||||
}
|
||||
state->received += *length;
|
||||
@@ -69,22 +73,26 @@ static u8* __nupNhttpBufFull(u8** buffer, unsigned long* length, unsigned long r
|
||||
if (state->error != 0) goto done;
|
||||
}
|
||||
next = *buffer;
|
||||
if (next == NULL) {
|
||||
if (requested != 0 && requested < 0x8000) {} else requested = 0x8000;
|
||||
switch ((u32)next) {
|
||||
case 0: {
|
||||
requested = NhttpBufferSize(requested);
|
||||
next = (u8*)nup::__nupMalloc(requested);
|
||||
if (next == NULL) {
|
||||
state->error = -5000;
|
||||
goto done;
|
||||
}
|
||||
*length = requested;
|
||||
break;
|
||||
}
|
||||
default: break;
|
||||
}
|
||||
if (*length != 0) state->lastActivity = OSGetTime();
|
||||
}
|
||||
}
|
||||
done:
|
||||
if (state->error != 0) {
|
||||
next = NULL;
|
||||
*length = 0;
|
||||
next = NULL;
|
||||
}
|
||||
return next;
|
||||
}
|
||||
@@ -101,12 +109,17 @@ static void __nupNhttpReqDone(int result, void* response, HttpState* state) {
|
||||
}
|
||||
|
||||
static int __nupNhttpOp(char* url, NHTTPReqMethod method, char* headers, u8* body, unsigned long bodyLength, unsigned long limit, ProgressCallback progress, void* progressContext, FlushCallback flush, void* flushContext) {
|
||||
unsigned long transferred, expected;
|
||||
int length;
|
||||
char* responseHeaders = NULL;
|
||||
u8* responseBody = NULL;
|
||||
HttpState state;
|
||||
int result = 0;
|
||||
char* headerCopy = NULL;
|
||||
void* request;
|
||||
int requestId;
|
||||
int status;
|
||||
u8* responseBody = NULL;
|
||||
char* responseHeaders = NULL;
|
||||
int length;
|
||||
unsigned long expected;
|
||||
unsigned long transferred;
|
||||
HttpState state;
|
||||
state.error = 0;
|
||||
state.limit = limit;
|
||||
state.received = 0;
|
||||
@@ -118,10 +131,7 @@ static int __nupNhttpOp(char* url, NHTTPReqMethod method, char* headers, u8* bod
|
||||
state.done = 0;
|
||||
state.result = 0;
|
||||
state.lastActivity = 0;
|
||||
int result = 0;
|
||||
int requestId = 0;
|
||||
char* headerCopy = NULL;
|
||||
void* request = NHTTPCreateRequestEx(url, method, NULL, 0, __nupNhttpReqDone, &state, __nupNhttpBufFull, __nupNhttpBufFree);
|
||||
request = NHTTPCreateRequestEx(url, method, NULL, 0, __nupNhttpReqDone, &state, __nupNhttpBufFull, __nupNhttpBufFree);
|
||||
if (request == NULL) { result = -7000 - NHTTPGetError(); goto cleanup; }
|
||||
if (NHTTPSetSocketBufferSize(request, 0x8000) != 0) { result = -7000 - NHTTPGetError(); goto cleanup; }
|
||||
if (headers != NULL) {
|
||||
@@ -130,16 +140,15 @@ static int __nupNhttpOp(char* url, NHTTPReqMethod method, char* headers, u8* bod
|
||||
if (headerCopy == NULL) { result = -5000; goto cleanup; }
|
||||
memcpy(headerCopy, headers, size);
|
||||
char* field = headerCopy;
|
||||
while (*field != 0) {
|
||||
char* colon = strchr(field, ':');
|
||||
if (colon == NULL) break;
|
||||
char* end = strstr(colon, "\r\n");
|
||||
if (end == NULL) break;
|
||||
char* colon;
|
||||
char* end;
|
||||
while (*field != 0 && (colon = strchr(field, ':')) != NULL && (end = strstr(colon, "\r\n")) != NULL) {
|
||||
*colon = 0;
|
||||
*end = 0;
|
||||
while (*field && isspace(*field)) field++;
|
||||
do { colon++; } while (*colon && isspace(*colon));
|
||||
if (NHTTPAddHeaderField(request, field, colon) != 0) { result = -7000 - NHTTPGetError(); goto cleanup; }
|
||||
char* value = colon + 1;
|
||||
while (*value && isspace(*value)) ++value;
|
||||
if (NHTTPAddHeaderField(request, field, value) != 0) { result = -7000 - NHTTPGetError(); goto cleanup; }
|
||||
field = end + 2;
|
||||
}
|
||||
}
|
||||
@@ -153,40 +162,39 @@ static int __nupNhttpOp(char* url, NHTTPReqMethod method, char* headers, u8* bod
|
||||
if (method == NHTTP_POST && body != NULL && bodyLength != 0 && NHTTPAddPostDataRaw(request, body, bodyLength) != 0) { result = -7000 - NHTTPGetError(); goto cleanup; }
|
||||
requestId = NHTTPSendRequestAsync(request);
|
||||
if (requestId < 0) {
|
||||
int error = NHTTPGetError();
|
||||
result = -7000 - NHTTPGetError();
|
||||
NHTTPDeleteRequest(request);
|
||||
result = -7000 - error;
|
||||
goto cleanup;
|
||||
}
|
||||
state.lastActivity = OSGetTime();
|
||||
for (;;) {
|
||||
if (NHTTPGetProgress(&expected, &transferred) != 0 && state.done != 0) {
|
||||
if (state.result != 0) { result = -7000 - state.result; goto cleanup; }
|
||||
if (state.response != NULL) {
|
||||
length = NHTTPGetBodyAll(state.response, &responseBody);
|
||||
if (length < 0) { result = -5007; goto cleanup; }
|
||||
__nupNhttpBufFull(&responseBody, (unsigned long*)&length, 0, NULL, NULL, &state);
|
||||
while (NHTTPGetProgress(&expected, &transferred) == 0 || state.done == 0) {
|
||||
if (OSGetTime() - state.lastActivity >= OSMillisecondsToTicks((OSTime)90000)) {
|
||||
if (requestId >= 0) {
|
||||
NHTTPCancelRequestAsync(requestId);
|
||||
NCDSleep(OSMillisecondsToTicks(100));
|
||||
}
|
||||
result = state.error;
|
||||
if (result != 0 || state.response == NULL) goto cleanup;
|
||||
length = NHTTPGetHeaderAll(state.response, &responseHeaders);
|
||||
if (length < 0) { result = -5007; goto cleanup; }
|
||||
char* protocol = strstr(responseHeaders, "HTTP/");
|
||||
if (protocol != NULL && sscanf(protocol, "HTTP/%*d.%*d %d", &status) == 1) {
|
||||
if (status != 200 && status != 202) result = -5000 - status;
|
||||
goto cleanup;
|
||||
}
|
||||
result = -5007;
|
||||
result = -5009;
|
||||
goto cleanup;
|
||||
}
|
||||
if (OSGetTime() - state.lastActivity >= OSMillisecondsToTicks(90000)) break;
|
||||
NCDSleep(OSMillisecondsToTicks(100));
|
||||
}
|
||||
if (requestId >= 0) {
|
||||
NHTTPCancelRequestAsync(requestId);
|
||||
NCDSleep(OSMillisecondsToTicks(100));
|
||||
if (state.result != 0) { result = -7000 - state.result; goto cleanup; }
|
||||
if (state.response != NULL) {
|
||||
length = NHTTPGetBodyAll(state.response, &responseBody);
|
||||
if (length < 0) { result = -5007; goto cleanup; }
|
||||
__nupNhttpBufFull(&responseBody, (unsigned long*)&length, 0, NULL, NULL, &state);
|
||||
}
|
||||
result = -5009;
|
||||
if (state.error != 0) { result = state.error; goto cleanup; }
|
||||
if (state.response == NULL) goto cleanup;
|
||||
length = NHTTPGetHeaderAll(state.response, &responseHeaders);
|
||||
if (length < 0) { result = -5007; goto cleanup; }
|
||||
char* protocol = strstr(responseHeaders, "HTTP/");
|
||||
if (protocol == NULL || sscanf(protocol, "HTTP/%*d.%*d %d", &status) != 1) {
|
||||
result = -5007;
|
||||
goto cleanup;
|
||||
}
|
||||
if (status != 200 && status != 202) result = -5000 - status;
|
||||
goto cleanup;
|
||||
cleanup:
|
||||
if (state.response != NULL || result == -5009) NHTTPDestroyResponse(state.response);
|
||||
if (headerCopy != NULL) nup::__nupFree(headerCopy);
|
||||
@@ -194,18 +202,21 @@ cleanup:
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
static long __nupHttpStringFlush(u8* data, unsigned long length, unsigned long requested, void* context) {
|
||||
HttpString* text = (HttpString*)context;
|
||||
static inline unsigned long HttpStringGrowthSize(HttpString* text, unsigned long total, unsigned long requested) {
|
||||
if (requested >= total) return requested;
|
||||
requested = text->growth + total;
|
||||
text->growth <<= 1;
|
||||
if (text->growth >= text->maximumGrowth) text->growth = text->maximumGrowth;
|
||||
return requested;
|
||||
}
|
||||
static inline long AppendHttpString(unsigned long length, u8* data, unsigned long requested, HttpString* text) {
|
||||
u8* next;
|
||||
unsigned long total;
|
||||
total = length + text->length;
|
||||
total = text->length + length;
|
||||
long result = 0;
|
||||
if (total > text->capacity) {
|
||||
if (requested >= total) {} else {
|
||||
requested = text->growth + total;
|
||||
text->growth <<= 1;
|
||||
if (text->growth < text->maximumGrowth) {} else text->growth = text->maximumGrowth;
|
||||
}
|
||||
u8* next = (u8*)nup::__nupMalloc(requested);
|
||||
requested = HttpStringGrowthSize(text, total, requested);
|
||||
next = (u8*)nup::__nupMalloc(requested);
|
||||
if (next == NULL) { result = -5000; goto done; }
|
||||
if (text->buffer != NULL) {
|
||||
memcpy(next, text->buffer, text->length);
|
||||
@@ -218,6 +229,9 @@ static long __nupHttpStringFlush(u8* data, unsigned long length, unsigned long r
|
||||
done:
|
||||
return result;
|
||||
}
|
||||
static long __nupHttpStringFlush(u8* data, unsigned long length, unsigned long requested, void* context) {
|
||||
return AppendHttpString(length, data, requested, (HttpString*)context);
|
||||
}
|
||||
}
|
||||
static int __nupNhttpOpString(u8** output, unsigned long* outputLength, char* url, NHTTPReqMethod method, char* headers, u8* body, unsigned long bodyLength, unsigned long limit, ProgressCallback progress, void* context) NO_INLINE;
|
||||
static int __nupNhttpOpString(u8** output, unsigned long* outputLength, char* url, NHTTPReqMethod method, char* headers, u8* body, unsigned long bodyLength, unsigned long limit, ProgressCallback progress, void* context) {
|
||||
|
||||
@@ -97,7 +97,7 @@ typedef struct NHTTPResponseInfo
|
||||
s32 isSuccess;
|
||||
s32 isHeaderParse;
|
||||
s32 httpStatus;
|
||||
u32 recvBufLen;
|
||||
volatile u32 recvBufLen;
|
||||
char* allHeader_p;
|
||||
char* foundHeader_p;
|
||||
char* recvBuf_p;
|
||||
|
||||
@@ -87,6 +87,10 @@ typedef struct WD_Info_ {
|
||||
u8 unk_0x60[0x30]; // 0x60 (is it padding???)
|
||||
} PACKED WD_Info;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
s32 WDCheckEnableChannel(u16* enableChannel);
|
||||
s32 WDScanOnce(u8* scanBuffer, u32 scanBufferLen, WDScanParam* param);
|
||||
s32 WDGetPrivacyMode(WDBssDesc* bssDesc);
|
||||
@@ -94,4 +98,8 @@ s32 WDGetPrivacyMode(WDBssDesc* bssDesc);
|
||||
BOOL WDFindInformationElement(WDInfoElement** outIE, u32* outIELength, WDBssDesc* bssDesc, int id);
|
||||
BOOL WDiFindVendorSpecificIE(WDVendorInfoElement** outIE, u32* outIELength, WDBssDesc* bssDesc, int id, u8* data, u8 mode);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // REVOLUTION_WD_H
|
||||
|
||||
@@ -455,7 +455,7 @@ CDBErr CDBRecordGetId(CDBRecord* record, CDBId* id) {
|
||||
} else {
|
||||
CDBLock();
|
||||
if (record->file == NULL) {
|
||||
CDBReportError("can't get CDBId of the record ; the record is closed\n");
|
||||
CDBReportError("can't get maker code of the record ; the record is closed\n");
|
||||
err = CDB_ERROR_27;
|
||||
} else {
|
||||
CDBLock();
|
||||
@@ -933,7 +933,7 @@ CDBErr CDBRecordDecrypt(CDBRecord* record, void* buffer, u32 size, u32* dataSize
|
||||
if (CDBRecordKeyCompareByDate(&comparisonKey, &record->key) != 0) {
|
||||
if (CDBIsPrintDebugMessage(3)) {
|
||||
CDBReport_(3);
|
||||
OSReport("CDBRecordPrivateChangeOwner\n");
|
||||
OSReport("ファイル名の改竄を検出\n");
|
||||
}
|
||||
return CDB_ERROR_32;
|
||||
}
|
||||
|
||||
@@ -234,30 +234,39 @@ void AESiDecryptBlock(AESContext* context, u32* output, const u32* input) {
|
||||
}
|
||||
|
||||
BOOL NETAESCreateEx(AESContext* context, const void* key, u32 keyLength, const void* iv, const AESBlockMode* mode) {
|
||||
BOOL result=FALSE;
|
||||
u32 words,index,value;
|
||||
u32* schedule;
|
||||
u32 words;
|
||||
u32 index;
|
||||
u32 value;
|
||||
BOOL result = FALSE;
|
||||
if (keyLength != 16 && keyLength != 24 && keyLength != 32) {
|
||||
OSReport("NETAESCreateEx() failed! (key-length is allowed only 16, 20, 24 BYTEs)");
|
||||
} else {
|
||||
context->rounds=keyLength/4+6;
|
||||
context->needsTransform=1;
|
||||
context->mode=mode;
|
||||
context->needsTransform = 1;
|
||||
context->rounds = (keyLength * 8) / 32 + 6;
|
||||
context->mode = mode;
|
||||
memcpy(context->chain, iv, 16);
|
||||
schedule=context->keys;
|
||||
words=keyLength/4;
|
||||
memcpy(schedule,key,keyLength);
|
||||
value=schedule[words-1];
|
||||
for(index=words; index<(context->rounds+1)*4; ++index) {
|
||||
if (index%words == 0) {
|
||||
value=SUBSTITUTE_XOR(AESiSubShiftTable,value<<8,value<<8,value<<8,value>>24) ^ ((u32)AESiRoundKeyRcon0[index/words-1]<<24);
|
||||
} else if(words>6 && index%words==4) {
|
||||
value=SUBSTITUTE_XOR(AESiSubShiftTable,value,value,value,value);
|
||||
schedule = context->keys;
|
||||
words = keyLength / 4;
|
||||
memcpy(schedule, key, keyLength);
|
||||
value = schedule[words - 1];
|
||||
for (index = words; index < (context->rounds + 1) * 4; ++index) {
|
||||
if (index % words == 0) {
|
||||
u32 high = (u32)AESiSubShiftTable[(value >> 16) & 255] << 24;
|
||||
u32 low = AESiSubShiftTable[value >> 24];
|
||||
u32 lower = (u32)AESiSubShiftTable[value & 255] << 8;
|
||||
u32 upper = (u32)AESiSubShiftTable[(value >> 8) & 255] << 16;
|
||||
value = (low ^ high) ^ (lower ^ upper);
|
||||
value ^= (u32)AESiRoundKeyRcon0[index / words - 1] << 24;
|
||||
} else if (words > 6 && index % words == 4) {
|
||||
value = ((u32)AESiSubShiftTable[value >> 24] << 24) ^
|
||||
(((u32)AESiSubShiftTable[(value >> 16) & 255] << 16) ^
|
||||
(AESiSubShiftTable[value & 255] ^ ((u32)AESiSubShiftTable[(value >> 8) & 255] << 8)));
|
||||
}
|
||||
value ^= schedule[index-words];
|
||||
schedule[index]=value;
|
||||
value ^= schedule[index - words];
|
||||
schedule[index] = value;
|
||||
}
|
||||
result=TRUE;
|
||||
result = TRUE;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ static void FindHeaderBlock(const NHTTPResponseInfo* response, s32 position, NHT
|
||||
}
|
||||
}
|
||||
|
||||
static s8 ReadHeaderChar(const NHTTPResponseInfo* response, NHTTPi_HDRBUFLIST** block, s32* offset) {
|
||||
static int ReadHeaderChar(const NHTTPResponseInfo* response, NHTTPi_HDRBUFLIST** block, s32* offset) {
|
||||
if(!*block) {
|
||||
if(*offset<1024) return (s8)response->hdrBufFirst[(*offset)++];
|
||||
*block=response->hdrBufBlock_p;
|
||||
@@ -30,30 +30,31 @@ static int LowerCase(int character) {
|
||||
s32 NHTTPi_findNextLineHdrRecvBuf(const NHTTPResponseInfo* response, s32 position, s32 limit, s32* colon, s32* newlineLength) {
|
||||
NHTTPi_HDRBUFLIST* block;
|
||||
s32 offset;
|
||||
s32 next=-1;
|
||||
BOOL carriage=FALSE;
|
||||
if(colon) *colon=-1;
|
||||
if(position>=limit) return -1;
|
||||
FindHeaderBlock(response,position,&block,&offset);
|
||||
for(; position<limit; ++position) {
|
||||
s8 character=ReadHeaderChar(response,&block,&offset);
|
||||
if(character==':' && colon && *colon<0) *colon=position;
|
||||
if(carriage) {
|
||||
if(character=='\n') {
|
||||
next=position==limit-1 ? 0 : position+1;
|
||||
if(newlineLength) *newlineLength=2;
|
||||
if (position < limit) {
|
||||
s32 next=-1;
|
||||
BOOL carriage=FALSE;
|
||||
FindHeaderBlock(response,position,&block,&offset);
|
||||
for(; position<limit; ++position) {
|
||||
int character=ReadHeaderChar(response,&block,&offset);
|
||||
if((s8)character==':' && colon && *colon<0) *colon=position;
|
||||
if(carriage) {
|
||||
if((s8)character=='\n') {
|
||||
next=position==limit-1 ? 0 : position+1;
|
||||
if(newlineLength) *newlineLength=2;
|
||||
}
|
||||
return next;
|
||||
}
|
||||
if((s8)character=='\r') {
|
||||
next=position==limit-1 ? 0 : position+1;
|
||||
carriage=TRUE;
|
||||
if(newlineLength) *newlineLength=1;
|
||||
}
|
||||
if((s8)character=='\n') {
|
||||
next=position==limit-1 ? 0 : position+1;
|
||||
if(newlineLength) *newlineLength=1;
|
||||
return next;
|
||||
}
|
||||
return next;
|
||||
}
|
||||
if(character=='\r') {
|
||||
next=position==limit-1 ? 0 : position+1;
|
||||
carriage=TRUE;
|
||||
if(newlineLength) *newlineLength=1;
|
||||
}
|
||||
if(character=='\n') {
|
||||
next=position==limit-1 ? 0 : position+1;
|
||||
if(newlineLength) *newlineLength=1;
|
||||
return next;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
@@ -62,11 +63,12 @@ s32 NHTTPi_findNextLineHdrRecvBuf(const NHTTPResponseInfo* response, s32 positio
|
||||
s32 NHTTPi_skipSpaceHdrRecvBuf(const NHTTPResponseInfo* response, s32 position, s32 limit) {
|
||||
NHTTPi_HDRBUFLIST* block;
|
||||
s32 offset;
|
||||
if(position>=limit) return -1;
|
||||
FindHeaderBlock(response,position,&block,&offset);
|
||||
for(; position<limit; ++position) {
|
||||
s8 character=ReadHeaderChar(response,&block,&offset);
|
||||
if(character!=' ') return position;
|
||||
if (position < limit) {
|
||||
FindHeaderBlock(response,position,&block,&offset);
|
||||
for(; position<limit; ++position) {
|
||||
s8 character=ReadHeaderChar(response,&block,&offset);
|
||||
if(character!=' ') return position;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
@@ -91,32 +93,35 @@ s32 NHTTPi_loadFromHdrRecvBuf(NHTTPResponseInfo* response, char* destination, s3
|
||||
|
||||
s32 amount;
|
||||
NHTTPi_HDRBUFLIST* block;
|
||||
if(position+length>response->headerLen) return FALSE;
|
||||
if(length) {
|
||||
if(position<1024) {
|
||||
amount=length;
|
||||
if(length>1024-position) amount=1024-position;
|
||||
NHTTPi_memcpy(destination,response->hdrBufFirst+position,amount);
|
||||
position+=amount; length-=amount; destination+=amount;
|
||||
}
|
||||
if (position + length <= response->headerLen) {
|
||||
if(length) {
|
||||
s32 blocks;
|
||||
position-=1024;
|
||||
block=response->hdrBufBlock_p;
|
||||
blocks=position>>9;
|
||||
position&=511;
|
||||
while(blocks--) block=block->next_p;
|
||||
while(length) {
|
||||
if(position<1024) {
|
||||
amount=length;
|
||||
if(length>512-position) amount=512-position;
|
||||
NHTTPi_memcpy(destination,block->block+position,amount);
|
||||
position=(position+amount)&511;
|
||||
block=block->next_p;
|
||||
length-=amount; destination+=amount;
|
||||
if(length>1024-position) amount=1024-position;
|
||||
NHTTPi_memcpy(destination,response->hdrBufFirst+position,amount);
|
||||
position+=amount; length-=amount; destination+=amount;
|
||||
}
|
||||
if(length) {
|
||||
s32 blocks;
|
||||
position-=1024;
|
||||
block=response->hdrBufBlock_p;
|
||||
blocks=position>>9;
|
||||
position&=511;
|
||||
while(blocks--) block=block->next_p;
|
||||
while(length) {
|
||||
amount=length;
|
||||
if(length>512-position) amount=512-position;
|
||||
NHTTPi_memcpy(destination,block->block+position,amount);
|
||||
position+=amount;
|
||||
position&=511;
|
||||
block=block->next_p;
|
||||
length-=amount; destination+=amount;
|
||||
}
|
||||
}
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
return TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL NHTTPi_isRecvBufFull(NHTTPResponseInfo* response, u32 length) { return length>=response->recvBufLen; }
|
||||
@@ -127,10 +132,14 @@ s32 NHTTPi_RecvBuf(void* mutex, NHTTPRequestInfo* request, s32 socket, u32 offse
|
||||
}
|
||||
|
||||
s32 NHTTPi_RecvBufN(void* mutex, NHTTPRequestInfo* request, s32 socket, u32 offset, s32 length, s32 flags) {
|
||||
NHTTPResponseInfo* response=request->response;
|
||||
s32 available;
|
||||
NHTTPResponseInfo* response=request->response;
|
||||
void* buf;
|
||||
if(response->recvBufLen<=offset) return -1003;
|
||||
available=response->recvBufLen-offset;
|
||||
available=response->recvBufLen;
|
||||
buf=response->recvBuf_p;
|
||||
available=available-offset;
|
||||
buf=(u8*)buf+offset;
|
||||
if(length>available) length=available;
|
||||
return NHTTPi_SocRecv(mutex,request,socket,response->recvBuf_p+offset,length,flags);
|
||||
return NHTTPi_SocRecv(mutex,request,socket,buf,length,flags);
|
||||
}
|
||||
|
||||
@@ -67,10 +67,11 @@ s32 NHTTPi_strToHex(const char* string, s32 length) {
|
||||
s32 value;
|
||||
BOOL started;
|
||||
if(length>8) return -1;
|
||||
if((length==8) & (*string>='7')) return -1;
|
||||
if((length==8) & (*string>'7')) return -1;
|
||||
value=0; started=FALSE;
|
||||
for(; length>0; --length,++string) {
|
||||
s8 character=LowerCase(*string);
|
||||
u8 rawCharacter = *(const u8*)string;
|
||||
s8 character = LowerCase((s8)rawCharacter);
|
||||
if(character>='0' && character<='9') { value=(value<<4)+character-'0'; started=TRUE; }
|
||||
else if(character>='a' && character<='f') { value=(value<<4)+character-'a'+10; started=TRUE; }
|
||||
else {
|
||||
@@ -103,9 +104,9 @@ s32 NHTTPi_strToInt(const char* string, s32 length) {
|
||||
|
||||
s32 NHTTPi_intToStr(char* destination, u32 value) {
|
||||
u32 scales[9]={1000000000,100000000,10000000,1000000,100000,10000,1000,100,10};
|
||||
BOOL started;
|
||||
int digit;
|
||||
char* output;
|
||||
int digit;
|
||||
BOOL started;
|
||||
s32 length;
|
||||
output = destination;
|
||||
length = 0;
|
||||
@@ -135,18 +136,22 @@ s32 NHTTPi_compareToken(const char* left, const char* right) {
|
||||
}
|
||||
|
||||
s32 NHTTPi_strtonum(const char* string, u32 length) {
|
||||
int digits=0;
|
||||
s32 value=0;
|
||||
while(length--) {
|
||||
int character=*string++;
|
||||
if(character==' ') continue;
|
||||
if((character>='0') & (character<='9')) {
|
||||
value=value*10+character-'0';
|
||||
int character;
|
||||
s32 value;
|
||||
int digits;
|
||||
digits = 0;
|
||||
value = 0;
|
||||
for (; length != 0; --length, ++string) {
|
||||
u8 rawCharacter = *(const u8*)string;
|
||||
character = (s8)rawCharacter;
|
||||
if (character == ' ') continue;
|
||||
if ((character >= '0') & (character <= '9')) {
|
||||
value = value * 10 + character - '0';
|
||||
++digits;
|
||||
if(digits>9) return -1;
|
||||
if (digits > 9) return -1;
|
||||
}
|
||||
}
|
||||
if(digits==0) return -1;
|
||||
if (digits == 0) return -1;
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
@@ -30,14 +30,23 @@ typedef struct InetRequest {
|
||||
union { struct { int family; u8 address[16]; } reply; u8 replyBlock[32]; };
|
||||
char text[1];
|
||||
} InetRequest;
|
||||
typedef struct RecvRequest {
|
||||
IOSIoVector vectors[4];
|
||||
typedef struct RecvPayload {
|
||||
union { struct { int socket; int flags; } command; u8 commandBlock[32]; };
|
||||
SOSockAddr address;
|
||||
} RecvPayload;
|
||||
typedef struct RecvRequest {
|
||||
IOSIoVector vectors[4];
|
||||
RecvPayload payload;
|
||||
} RecvRequest;
|
||||
typedef struct SendCommand {
|
||||
int socket;
|
||||
int flags;
|
||||
int hasAddress;
|
||||
SOSockAddr address;
|
||||
} SendCommand;
|
||||
typedef struct SendRequest {
|
||||
IOSIoVector vectors[4];
|
||||
struct { int socket; int flags; int hasAddress; SOSockAddr address; } command;
|
||||
SendCommand command;
|
||||
} SendRequest;
|
||||
|
||||
static int RecvFrom(const char*, int, void*, int, int, SOSockAddr*);
|
||||
@@ -295,11 +304,14 @@ u32 SOHtoNl(u32 value) { return value; }
|
||||
u16 SOHtoNs(u16 value) { return value; }
|
||||
|
||||
static inline int DirectBuffer(const void* data, int length) {
|
||||
BOOL direct=FALSE;
|
||||
BOOL aligned=FALSE;
|
||||
BOOL accessible;
|
||||
BOOL direct;
|
||||
BOOL aligned;
|
||||
direct=FALSE;
|
||||
aligned=FALSE;
|
||||
if(((u32)data&31)==0 && length%32==0) aligned=TRUE;
|
||||
if(aligned) {
|
||||
BOOL accessible=TRUE;
|
||||
accessible=TRUE;
|
||||
if(SOiIsBufferAddrCheck()) {
|
||||
BOOL inMemory=FALSE;
|
||||
if(((u32)data&0x1fffffff)>=0x10000000 && ((u32)data&0x1fffffff)<0x18000000) inMemory=TRUE;
|
||||
@@ -312,10 +324,12 @@ static inline int DirectBuffer(const void* data, int length) {
|
||||
|
||||
static int RecvFrom(const char* name, int socket, void* data, int length, int flags, SOSockAddr* address) {
|
||||
s32 rm;
|
||||
int result,size;
|
||||
void* buffer;
|
||||
int size;
|
||||
BOOL direct;
|
||||
RecvRequest* request;
|
||||
void* buffer;
|
||||
RecvPayload* payload;
|
||||
int result;
|
||||
SOSockAddr* reply;
|
||||
if(length>32768) length=32768;
|
||||
if((result=SOiPrepare(name,&rm))==0) {
|
||||
@@ -324,15 +338,16 @@ static int RecvFrom(const char* name, int socket, void* data, int length, int fl
|
||||
else {
|
||||
direct=TRUE;
|
||||
if(length && !DirectBuffer(data,length)) direct=FALSE;
|
||||
size=((address ? address->len : 0)+95)&~31;
|
||||
size=((address == NULL ? 0 : address->len)+95)&~31;
|
||||
request=SOiAlloc(12,size);
|
||||
if(!direct) buffer=SOiAlloc(13,(length+31)&~31);
|
||||
if(direct == FALSE) buffer=SOiAlloc(13,(length+31)&~31);
|
||||
else buffer=data;
|
||||
if(!request || !buffer) result=-49;
|
||||
else {
|
||||
request->command.socket=socket; request->command.flags=flags;
|
||||
reply=&request->address;
|
||||
request->vectors[0].base=(u8*)&request->command; request->vectors[0].length=8;
|
||||
payload=&request->payload;
|
||||
payload->command.socket=socket; payload->command.flags=flags;
|
||||
reply=&payload->address;
|
||||
request->vectors[0].base=(u8*)payload; request->vectors[0].length=8;
|
||||
request->vectors[1].base=buffer; request->vectors[1].length=length;
|
||||
if(!address) {
|
||||
request->vectors[2].base=NULL; request->vectors[2].length=0;
|
||||
@@ -342,14 +357,12 @@ static int RecvFrom(const char* name, int socket, void* data, int length, int fl
|
||||
request->vectors[2].base=(u8*)reply; request->vectors[2].length=address->len;
|
||||
result=IOS_Ioctlv(rm,12,1,2,request->vectors);
|
||||
if(result>=0) {
|
||||
u32 bytes=address->len;
|
||||
if(bytes>reply->len) bytes=reply->len;
|
||||
memcpy(address,reply,bytes);
|
||||
memcpy(address,reply,address->len > reply->len ? reply->len : address->len);
|
||||
}
|
||||
}
|
||||
if(result>=0 && !direct) memcpy(data,buffer,length);
|
||||
if(result>=0 && direct == FALSE) memcpy(data,buffer,length);
|
||||
}
|
||||
if(!direct) SOiFree(13,buffer,(length+31)&~31);
|
||||
if(direct == FALSE) SOiFree(13,buffer,(length+31)&~31);
|
||||
SOiFree(12,request,size);
|
||||
}
|
||||
result=SOiConclude(name,result);
|
||||
@@ -358,11 +371,12 @@ static int RecvFrom(const char* name, int socket, void* data, int length, int fl
|
||||
}
|
||||
|
||||
static int SendTo(const char* name, int socket, const void* data, int length, int flags, const SOSockAddr* address) {
|
||||
BOOL direct;
|
||||
void* buffer;
|
||||
int result;
|
||||
s32 rm;
|
||||
void* buffer;
|
||||
BOOL direct;
|
||||
SendRequest* request;
|
||||
SendCommand* command;
|
||||
if((result=SOiPrepare(name,&rm))==0) {
|
||||
if(address && (address->len>8 || address->len<8)) result=-28;
|
||||
else if(length<0 || (length>0 && !data)) result=-28;
|
||||
@@ -370,22 +384,23 @@ static int SendTo(const char* name, int socket, const void* data, int length, in
|
||||
direct=TRUE;
|
||||
if(length && !DirectBuffer(data,length)) direct=FALSE;
|
||||
request=SOiAlloc(12,96);
|
||||
if(!direct) buffer=SOiAlloc(14,(length+31)&~31);
|
||||
if(direct == FALSE) buffer=SOiAlloc(14,(length+31)&~31);
|
||||
else buffer=(void*)data;
|
||||
if(!request || !buffer) result=-49;
|
||||
else {
|
||||
request->command.socket=socket; request->command.flags=flags;
|
||||
if(!address) request->command.hasAddress=0;
|
||||
command = &request->command;
|
||||
command->socket=socket; command->flags=flags;
|
||||
if(!address) command->hasAddress=0;
|
||||
else {
|
||||
request->command.hasAddress=1;
|
||||
memcpy(&request->command.address,address,address->len);
|
||||
command->hasAddress=1;
|
||||
memcpy(&command->address,address,address->len);
|
||||
}
|
||||
if(!direct) memcpy(buffer,data,length);
|
||||
if(direct == FALSE) memcpy(buffer,data,length);
|
||||
request->vectors[0].base=buffer; request->vectors[0].length=length;
|
||||
request->vectors[1].base=(u8*)&request->command; request->vectors[1].length=40;
|
||||
request->vectors[1].base=(u8*)command; request->vectors[1].length=40;
|
||||
result=IOS_Ioctlv(rm,13,2,0,request->vectors);
|
||||
}
|
||||
if(!direct) SOiFree(14,buffer,(length+31)&~31);
|
||||
if(direct == FALSE) SOiFree(14,buffer,(length+31)&~31);
|
||||
SOiFree(12,request,96);
|
||||
}
|
||||
result=SOiConclude(name,result);
|
||||
|
||||
@@ -14,11 +14,11 @@ typedef struct UpdateThreadData {
|
||||
u8 stack[4096];
|
||||
} UpdateThreadData;
|
||||
|
||||
static u32 Flags0[BS2_UPDATE_ENTRY_COUNT];
|
||||
static u32 Flags1[BS2_UPDATE_ENTRY_COUNT];
|
||||
static UpdateThreadData Thread;
|
||||
static BS2UpdateHeader UpdateHeader0 ALIGN32;
|
||||
static BS2UpdateHeader UpdateHeader1 ALIGN32;
|
||||
static u32 Flags0[BS2_UPDATE_ENTRY_COUNT] = {0};
|
||||
static u32 Flags1[BS2_UPDATE_ENTRY_COUNT] = {0};
|
||||
static UpdateThreadData Thread = {0};
|
||||
static BS2UpdateHeader UpdateHeader0 ALIGN32 = {0};
|
||||
static BS2UpdateHeader UpdateHeader1 ALIGN32 = {0};
|
||||
|
||||
#define UPDATE_DISC_ENTRIES ((BS2UpdateEntry*)0x80480000)
|
||||
|
||||
@@ -26,25 +26,25 @@ s32 WADCheckImport(u64 titleId, u16 titleVersion);
|
||||
s32 WADImportDVDForBS(const char* path, void* buffer, u32 length);
|
||||
s32 WADImportDVDExForBS(const char* path, void* buffer, u32 length);
|
||||
|
||||
static BS2UpdateEntry* pEntries;
|
||||
static u32 EntriesCount;
|
||||
static u32* pFlags;
|
||||
static void* MemAllocator;
|
||||
int State;
|
||||
BS2UpdateEntry* CurrentEntry;
|
||||
static u32 RebootRequired;
|
||||
static BOOL ContainsSeatTitles;
|
||||
static u32 UpdateImportState;
|
||||
static u32 UpdateImportResult;
|
||||
u32 StartUpdate;
|
||||
u32 CancelUpdate;
|
||||
static u32 UpdateProgress;
|
||||
static s32 rc;
|
||||
static u64 VersionIOS;
|
||||
static u32 VersionMEM2;
|
||||
static u32 VersionES;
|
||||
static u32 ConsoleType;
|
||||
static void* FatalFunc;
|
||||
static BS2UpdateEntry* pEntries = NULL;
|
||||
static u32 EntriesCount = 0;
|
||||
static u32* pFlags = NULL;
|
||||
static void* MemAllocator = NULL;
|
||||
int State = 0;
|
||||
BS2UpdateEntry* CurrentEntry = 0;
|
||||
static u32 RebootRequired = 0;
|
||||
static BOOL ContainsSeatTitles = 0;
|
||||
static u32 UpdateImportState = 0;
|
||||
static u32 UpdateImportResult = 0;
|
||||
u32 StartUpdate = 0;
|
||||
u32 CancelUpdate = 0;
|
||||
static u32 UpdateProgress = 0;
|
||||
static s32 rc = 0;
|
||||
static u64 VersionIOS = 0;
|
||||
static u32 VersionMEM2 = 0;
|
||||
static u32 VersionES = 0;
|
||||
static u32 ConsoleType = 0;
|
||||
static void* FatalFunc = NULL;
|
||||
|
||||
#pragma force_active on
|
||||
char* getSuffix(const char* path) {
|
||||
@@ -174,7 +174,7 @@ product_region_checked:
|
||||
goto selection_done;
|
||||
}
|
||||
strcpy(scratch.updatePath, "__update.inf");
|
||||
strcat(scratch.updatePath, "-");
|
||||
strcat(scratch.updatePath, ".");
|
||||
strcat(scratch.updatePath, scratch.productArea);
|
||||
if (DVDConvertPathToEntrynum(scratch.updatePath) < 0) {
|
||||
switch (SCGetProductArea()) {
|
||||
@@ -271,7 +271,7 @@ product_region_checked:
|
||||
}
|
||||
}
|
||||
strcpy(scratch.seatPath, "__seatholder.inf");
|
||||
strcat(scratch.seatPath, "-");
|
||||
strcat(scratch.seatPath, ".");
|
||||
strcat(scratch.seatPath, scratch.productArea);
|
||||
if (DVDConvertPathToEntrynum(scratch.seatPath) < 0) {
|
||||
switch (SCGetProductArea()) {
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace memo {
|
||||
class EventHandler : public inputform::EventHandler {
|
||||
public:
|
||||
EventHandler(InputForm* form) : inputform::EventHandler(form), mpMemoForm(form) {}
|
||||
virtual ~EventHandler() {}
|
||||
virtual ~EventHandler();
|
||||
virtual void onTiEvent(gui::PaneComponent*, u32, Input*);
|
||||
private:
|
||||
InputForm* mpMemoForm;
|
||||
@@ -48,14 +48,14 @@ protected:
|
||||
class WholePane : public AnmPane {
|
||||
public:
|
||||
WholePane(nw4r::lyt::Pane* pane, nw4rmanager::AnmObserver* observer) : AnmPane(pane, observer) { meKeyType = 0; }
|
||||
virtual ~WholePane() {}
|
||||
virtual ~WholePane();
|
||||
virtual void onAnmEvent(AnmPaneEvent event);
|
||||
};
|
||||
|
||||
class NigaoePane : public AnmPane {
|
||||
public:
|
||||
NigaoePane(nw4r::lyt::Pane* pane, nw4rmanager::AnmObserver* observer) : AnmPane(pane, observer) { meKeyType = 1; }
|
||||
virtual ~NigaoePane() {}
|
||||
virtual ~NigaoePane();
|
||||
virtual void onAnmEvent(AnmPaneEvent event);
|
||||
};
|
||||
|
||||
@@ -81,7 +81,7 @@ private:
|
||||
class SimpleAnmPane : public nw4rmanager::AnmPane {
|
||||
public:
|
||||
SimpleAnmPane(nw4r::lyt::Pane* pane, nw4rmanager::AnmObserver* observer) : nw4rmanager::AnmPane(pane, observer) {}
|
||||
virtual ~SimpleAnmPane() {}
|
||||
virtual ~SimpleAnmPane();
|
||||
virtual void init();
|
||||
virtual void changeAnimation(u32 id);
|
||||
};
|
||||
@@ -792,8 +792,12 @@ void AnmPane::changeAnimation(u32 id) {
|
||||
}
|
||||
u32 AnmPane::getKeyType() const { return meKeyType; }
|
||||
void AnmPane::init() { meState = 0; }
|
||||
NigaoePane::~NigaoePane() {}
|
||||
void NigaoePane::onAnmEvent(AnmPaneEvent) {}
|
||||
WholePane::~WholePane() {}
|
||||
bool InputForm::isInScroll() { return mExScrollAnm.isActive(); }
|
||||
EventHandler::~EventHandler() {}
|
||||
SimpleAnmPane::~SimpleAnmPane() {}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,9 +78,7 @@ void HKBManager::KBDListenerOwn::OnAttach(KBDDevEvent* event) {
|
||||
void HKBManager::KBDListenerOwn::OnDetach(KBDDevEvent* event) {
|
||||
u8 device = event->device;
|
||||
if (device >= 2) return;
|
||||
HKBManager* owner = manager;
|
||||
owner->attached[device] = 0;
|
||||
owner->states[device].Clear();
|
||||
manager->DetachDevice(event);
|
||||
}
|
||||
|
||||
void HKBManager::KBDListenerOwn::OnKeyEvent(KBDKeyEvent* event) {
|
||||
@@ -338,8 +336,8 @@ void HKBManager::KeyState_::Update() {
|
||||
held = heldKeys;
|
||||
for (index = 0; index < 8; index++) {
|
||||
bit = 1 << index;
|
||||
if ((current & bit) != 0) {
|
||||
if ((previous & bit) == 0 || previousKeys[index] != currentKeys[index]) {
|
||||
if (HasCurrentKey(index)) {
|
||||
if (!HadPreviousKey(index) || previousKeys[index] != currentKeys[index]) {
|
||||
triggered |= bit;
|
||||
}
|
||||
}
|
||||
@@ -347,8 +345,8 @@ void HKBManager::KeyState_::Update() {
|
||||
released = 0;
|
||||
for (index = 0; index < 8; index++) {
|
||||
bit = 1 << index;
|
||||
if ((previous & bit) != 0) {
|
||||
if ((current & bit) == 0 || previousKeys[index] != currentKeys[index]) {
|
||||
if (HadPreviousKey(index)) {
|
||||
if (!HasCurrentKey(index) || previousKeys[index] != currentKeys[index]) {
|
||||
released |= bit;
|
||||
}
|
||||
}
|
||||
@@ -356,7 +354,7 @@ void HKBManager::KeyState_::Update() {
|
||||
repeated = 0;
|
||||
for (index = 0; index < 8; index++) {
|
||||
bit = 1 << index;
|
||||
if ((current & bit) != 0) {
|
||||
if (HasCurrentKey(index)) {
|
||||
if ((triggered & bit) != 0) {
|
||||
repeatDelay[index] = 30;
|
||||
repeated |= bit;
|
||||
@@ -371,17 +369,14 @@ void HKBManager::KeyState_::Update() {
|
||||
}
|
||||
|
||||
void HKBManager::KeyState_::UpdateModState_() {
|
||||
u32 oldModifiers;
|
||||
u32 index;
|
||||
u32 oldModifiers = modifiers;
|
||||
oldModifiers = modifiers;
|
||||
modifiers = oldModifiers & 0xffffffd0;
|
||||
index = 0;
|
||||
for (; index < 8; index++) {
|
||||
u32 keySet;
|
||||
u8 slot;
|
||||
keySet = current;
|
||||
slot = index;
|
||||
if ((keySet & (1 << slot)) != 0) {
|
||||
u8 code = currentKeys[slot];
|
||||
if (HasCurrentKey(static_cast<u8>(index))) {
|
||||
u8 code = currentKeys[static_cast<u8>(index)];
|
||||
if (code == 0xe5 || code == 0xe1) {
|
||||
modifiers |= 2;
|
||||
} else if (code == 0xe4 || code == 0xe0) {
|
||||
@@ -453,15 +448,7 @@ u32 HKBManager::KeySet::GetWChar() const {
|
||||
} else if ((static_cast<u32>(code) & 0xffff) < 0x20) {
|
||||
code = 0;
|
||||
}
|
||||
u32 index = 0;
|
||||
const HKBManager* owner = manager;
|
||||
if (owner->allowedCharacters == 0) return code;
|
||||
u32 count = owner->allowedCharacterCount;
|
||||
if (count == 0) return code;
|
||||
for (; index < count; index++) {
|
||||
if ((static_cast<u32>(code) & 0xffff) == owner->allowedCharacters[index]) return code;
|
||||
}
|
||||
return 0;
|
||||
return manager->FilterCharacter(code);
|
||||
}
|
||||
|
||||
u32 HKBManager::KeySet::GetVCode() const {
|
||||
@@ -500,7 +487,23 @@ u32 HKBManager::KeySet::GetVCode() const {
|
||||
}
|
||||
|
||||
u32 HKBManager::KeySet::IsValid() const {
|
||||
return CheckValidity();
|
||||
s8 keyIndex;
|
||||
u32 keyDevice;
|
||||
const HKBManager* owner;
|
||||
|
||||
owner = manager;
|
||||
if (!owner) return false;
|
||||
keyIndex = index;
|
||||
if (keyIndex < 0 || keyIndex >= 8) return false;
|
||||
keyDevice = device;
|
||||
if (keyDevice >= 2) return false;
|
||||
switch (type) {
|
||||
case 0: return (owner->states[keyDevice].held & (1 << keyIndex)) != 0;
|
||||
case 1: return (owner->states[keyDevice].triggered & (1 << keyIndex)) != 0;
|
||||
case 2: return (owner->states[keyDevice].released & (1 << keyIndex)) != 0;
|
||||
case 3: return (owner->states[keyDevice].repeated & (1 << keyIndex)) != 0;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
HKBManager::KeySet HKBManager::KeySet::GetNext() const {
|
||||
@@ -528,7 +531,6 @@ HKBManager::KeySet HKBManager::KeySet::GetNext() const {
|
||||
}
|
||||
|
||||
|
||||
HKBManager::~HKBManager() {}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,110 +5,13 @@
|
||||
#include "keyboard/tiHKBManager.h"
|
||||
#include "keyboard/tiLayoutGather.h"
|
||||
|
||||
extern "C" void convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw();
|
||||
extern "C" bool updateInput__Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager();
|
||||
extern "C" void __dt__Q49textinput8keyboard5hwkey10HWKeyboardFv();
|
||||
extern "C" void create__Q29textinput4BaseFP12MEMAllocator();
|
||||
extern "C" void init__Q49textinput8keyboard5hwkey10HWKeyboardFv();
|
||||
extern "C" void setCommandReceiver__Q29textinput13CommandSenderFPQ29textinput15CommandReceiver();
|
||||
extern "C" void sendCommand__Q29textinput13CommandSenderFUlPv();
|
||||
extern "C" void updateFromReceiver__Q29textinput13CommandSenderFUlPv();
|
||||
|
||||
#pragma push
|
||||
#pragma section const_type ".data"
|
||||
typedef void (*KeyboardDataFunction)();
|
||||
extern "C" KeyboardDataFunction const scHwKeyboardConvertWCCodeJumpTable[0x3f] = {
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000158),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001d8),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001c0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000170),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x0000017c),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000134),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001a0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000140),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000188),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000194),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000148),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000150),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000164),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001b8),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001ac)
|
||||
};
|
||||
extern "C" KeyboardDataFunction const __vt__Q49textinput8keyboard5hwkey10HWKeyboard[9] = {
|
||||
NULL,
|
||||
NULL,
|
||||
__dt__Q49textinput8keyboard5hwkey10HWKeyboardFv,
|
||||
create__Q29textinput4BaseFP12MEMAllocator,
|
||||
init__Q49textinput8keyboard5hwkey10HWKeyboardFv,
|
||||
setCommandReceiver__Q29textinput13CommandSenderFPQ29textinput15CommandReceiver,
|
||||
sendCommand__Q29textinput13CommandSenderFUlPv,
|
||||
updateFromReceiver__Q29textinput13CommandSenderFUlPv,
|
||||
reinterpret_cast<KeyboardDataFunction>(updateInput__Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager)
|
||||
};
|
||||
#pragma pop
|
||||
|
||||
namespace textinput {
|
||||
|
||||
namespace keyboard {
|
||||
|
||||
namespace hwkey {
|
||||
extern "C" void GetTriggeredKeySet__Q39textinput5input10HKBManagerCFv();
|
||||
extern "C" void IsValid__Q49textinput5input10HKBManager6KeySetCFv();
|
||||
extern "C" void GetKey__Q49textinput5input10HKBManager6KeySetCFv();
|
||||
extern "C" void GetNext__Q49textinput5input10HKBManager6KeySetCFv();
|
||||
extern "C" void GetModifierState__Q39textinput5input10HKBManagerCFv();
|
||||
extern "C" bool updateRepeatKey___Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager();
|
||||
extern "C" bool updateTriggerKey___Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager();
|
||||
extern "C" bool updateTappingShift___Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager();
|
||||
extern "C" void updateShift__Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager();
|
||||
HWKeyboard::HWKeyboard(Manager* manager) : mpManager(manager), field_0x14(0), field_0x15(0), field_0x16(0) {
|
||||
}
|
||||
|
||||
@@ -158,139 +61,41 @@ extern const u8 controlKeys[];
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" asm bool updateInput__Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager() {
|
||||
nofralloc
|
||||
stwu r1, -0x40(r1)
|
||||
mflr r0
|
||||
stw r0, 0x44(r1)
|
||||
stw r31, 0x3c(r1)
|
||||
mr r31, r4
|
||||
stw r30, 0x38(r1)
|
||||
mr r30, r3
|
||||
lwz r3, 0x10(r3)
|
||||
lwz r12, 0(r3)
|
||||
lwz r12, 0x84(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
lwz r12, 0(r3)
|
||||
lwz r12, 0xdc(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
cmpwi r3, 0
|
||||
bne updateInput_HWKeyboard_L1
|
||||
mr r3, r31
|
||||
bl GetModifierState__Q39textinput5input10HKBManagerCFv
|
||||
rlwinm. r0, r3, 0, 0x1d, 0x1d
|
||||
bne updateInput_HWKeyboard_L2
|
||||
li r0, 0
|
||||
b updateInput_HWKeyboard_L3
|
||||
updateInput_HWKeyboard_L2:
|
||||
li r5, 0
|
||||
li r0, -1
|
||||
stw r5, 8(r1)
|
||||
mr r4, r31
|
||||
addi r3, r1, 0x14
|
||||
stb r5, 0xc(r1)
|
||||
stb r0, 0xd(r1)
|
||||
stb r5, 0xe(r1)
|
||||
sth r5, 0x10(r1)
|
||||
bl GetTriggeredKeySet__Q39textinput5input10HKBManagerCFv
|
||||
lwz r6, 0x14(r1)
|
||||
lbz r5, 0x18(r1)
|
||||
lbz r4, 0x19(r1)
|
||||
lbz r3, 0x1a(r1)
|
||||
lhz r0, 0x1c(r1)
|
||||
stw r6, 8(r1)
|
||||
stb r5, 0xc(r1)
|
||||
stb r4, 0xd(r1)
|
||||
stb r3, 0xe(r1)
|
||||
sth r0, 0x10(r1)
|
||||
b updateInput_HWKeyboard_L4
|
||||
updateInput_HWKeyboard_L5:
|
||||
addi r3, r1, 8
|
||||
bl GetKey__Q49textinput5input10HKBManager6KeySetCFv
|
||||
clrlwi r0, r3, 0x18
|
||||
cmpwi r0, 0x2b
|
||||
bge updateInput_HWKeyboard_L6
|
||||
cmpwi r0, 0x28
|
||||
beq updateInput_HWKeyboard_L7
|
||||
bge updateInput_HWKeyboard_L8
|
||||
b updateInput_HWKeyboard_L9
|
||||
updateInput_HWKeyboard_L6:
|
||||
cmpwi r0, 0x58
|
||||
beq updateInput_HWKeyboard_L7
|
||||
b updateInput_HWKeyboard_L9
|
||||
updateInput_HWKeyboard_L7:
|
||||
lwz r3, 0x10(r30)
|
||||
lwz r12, 0(r3)
|
||||
lwz r12, 0x94(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
lwz r12, 0(r3)
|
||||
lwz r12, 0xa0(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
li r0, 1
|
||||
b updateInput_HWKeyboard_L3
|
||||
updateInput_HWKeyboard_L8:
|
||||
lwz r3, 0x10(r30)
|
||||
lwz r12, 0(r3)
|
||||
lwz r12, 0x94(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
lwz r12, 0(r3)
|
||||
lwz r12, 0xa4(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
li r0, 1
|
||||
b updateInput_HWKeyboard_L3
|
||||
updateInput_HWKeyboard_L9:
|
||||
addi r3, r1, 0x20
|
||||
addi r4, r1, 8
|
||||
bl GetNext__Q49textinput5input10HKBManager6KeySetCFv
|
||||
lwz r6, 0x20(r1)
|
||||
lbz r5, 0x24(r1)
|
||||
lbz r4, 0x25(r1)
|
||||
lbz r3, 0x26(r1)
|
||||
lhz r0, 0x28(r1)
|
||||
stw r6, 8(r1)
|
||||
stb r5, 0xc(r1)
|
||||
stb r4, 0xd(r1)
|
||||
stb r3, 0xe(r1)
|
||||
sth r0, 0x10(r1)
|
||||
updateInput_HWKeyboard_L4:
|
||||
addi r3, r1, 8
|
||||
bl IsValid__Q49textinput5input10HKBManager6KeySetCFv
|
||||
cmpwi r3, 0
|
||||
bne updateInput_HWKeyboard_L5
|
||||
li r0, 0
|
||||
updateInput_HWKeyboard_L3:
|
||||
cmpwi r0, 0
|
||||
bne updateInput_HWKeyboard_L1
|
||||
mr r3, r30
|
||||
mr r4, r31
|
||||
bl updateRepeatKey___Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager
|
||||
cmpwi r3, 0
|
||||
bne updateInput_HWKeyboard_L1
|
||||
mr r3, r30
|
||||
mr r4, r31
|
||||
bl updateTriggerKey___Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager
|
||||
cmpwi r3, 0
|
||||
bne updateInput_HWKeyboard_L1
|
||||
mr r3, r30
|
||||
mr r4, r31
|
||||
bl updateTappingShift___Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager
|
||||
updateInput_HWKeyboard_L1:
|
||||
mr r3, r30
|
||||
mr r4, r31
|
||||
bl updateShift__Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager
|
||||
lwz r31, 0x3c(r1)
|
||||
li r3, 0
|
||||
lwz r30, 0x38(r1)
|
||||
lwz r0, 0x44(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x40
|
||||
blr
|
||||
inline bool HWKeyboard::controlKeyTriggeredHandler(input::HKBManager& hkbManager) {
|
||||
if ((hkbManager.GetModifierState() & 4) == 0) {
|
||||
return false;
|
||||
}
|
||||
input::HKBManager::KeySet currentKeySet;
|
||||
currentKeySet = hkbManager.GetTriggeredKeySet();
|
||||
while (currentKeySet.IsValid()) {
|
||||
switch (currentKeySet.GetKey()) {
|
||||
case 0x28:
|
||||
case 0x58: {
|
||||
mgr()->getToolBar()->onOK();
|
||||
return true;
|
||||
}
|
||||
case 0x29:
|
||||
case 0x2A: {
|
||||
mgr()->getToolBar()->onCancel();
|
||||
return true;
|
||||
}
|
||||
default: {
|
||||
currentKeySet = currentKeySet.GetNext();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool HWKeyboard::updateInput(input::HKBManager& hkbManager) {
|
||||
if (!static_cast<signwindow::LayoutByNW4R*>(mgr()->getSignKeyboard())->isActive() &&
|
||||
!controlKeyTriggeredHandler(hkbManager) &&
|
||||
!updateRepeatKey_(hkbManager) && !updateTriggerKey_(hkbManager)) {
|
||||
updateTappingShift_(hkbManager);
|
||||
}
|
||||
updateShift(hkbManager);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool HWKeyboard::updateRepeatKey_(input::HKBManager& hkbManager) {
|
||||
@@ -635,166 +440,41 @@ const u8 controlKeys[] = {
|
||||
0x06, 0x05, 0x07, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
};
|
||||
|
||||
extern "C" asm void convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw() {
|
||||
nofralloc
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
mr r31, r4
|
||||
stw r30, 8(r1)
|
||||
mr r30, r3
|
||||
lwz r3, 0x10(r3)
|
||||
lwz r12, 0(r3)
|
||||
lwz r12, 0x98(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
lwz r12, 0(r3)
|
||||
lwz r12, 0x10(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
cmpwi r3, 0
|
||||
beq convertWCCode_HWKeyboard_L1
|
||||
lwz r3, 0x10(r30)
|
||||
lwz r12, 0(r3)
|
||||
lwz r12, 0x78(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
lwz r12, 0(r3)
|
||||
lwz r12, 0x58(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
cmpwi r3, 0
|
||||
beq convertWCCode_HWKeyboard_L1
|
||||
lwz r3, 0x10(r30)
|
||||
lwz r12, 0(r3)
|
||||
lwz r12, 0x34(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
cmpwi r3, 0
|
||||
bne convertWCCode_HWKeyboard_L2
|
||||
cmpwi r31, 0x5b
|
||||
beq convertWCCode_HWKeyboard_L3
|
||||
bge convertWCCode_HWKeyboard_L4
|
||||
cmpwi r31, 0x2d
|
||||
beq convertWCCode_HWKeyboard_L5
|
||||
bge convertWCCode_HWKeyboard_L6
|
||||
cmpwi r31, 0x2c
|
||||
bge convertWCCode_HWKeyboard_L7
|
||||
b convertWCCode_HWKeyboard_L1
|
||||
convertWCCode_HWKeyboard_L6:
|
||||
cmpwi r31, 0x2f
|
||||
bge convertWCCode_HWKeyboard_L1
|
||||
b convertWCCode_HWKeyboard_L8
|
||||
convertWCCode_HWKeyboard_L4:
|
||||
cmpwi r31, 0x5d
|
||||
beq convertWCCode_HWKeyboard_L9
|
||||
b convertWCCode_HWKeyboard_L1
|
||||
convertWCCode_HWKeyboard_L7:
|
||||
li r3, 0x3001
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L8:
|
||||
li r3, 0x3002
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L5:
|
||||
li r3, 0x30fc
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L3:
|
||||
li r3, 0x300c
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L9:
|
||||
li r3, 0x300d
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L2:
|
||||
lwz r3, 0x10(r30)
|
||||
lwz r12, 0(r3)
|
||||
lwz r12, 0x34(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
cmpwi r3, 8
|
||||
bne convertWCCode_HWKeyboard_L1
|
||||
addi r0, r31, -0x21
|
||||
cmplwi r0, 0x3e
|
||||
bgt convertWCCode_HWKeyboard_L1
|
||||
lis r3, scHwKeyboardConvertWCCodeJumpTable@ha
|
||||
slwi r0, r0, 2
|
||||
addi r3, r3, scHwKeyboardConvertWCCodeJumpTable@l
|
||||
lwzx r3, r3, r0
|
||||
mtctr r3
|
||||
bctr
|
||||
convertWCCode_HWKeyboard_L11:
|
||||
lis r3, 1
|
||||
addi r3, r3, -0xf4
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L12:
|
||||
li r3, 0x3002
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L13:
|
||||
li r3, 0x300a
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L14:
|
||||
li r3, 0x300b
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L15:
|
||||
lis r3, 1
|
||||
addi r3, r3, -0xff
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L16:
|
||||
lis r3, 1
|
||||
addi r3, r3, -0xe1
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L17:
|
||||
lis r3, 1
|
||||
addi r3, r3, -0xf8
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L18:
|
||||
lis r3, 1
|
||||
addi r3, r3, -0xf7
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L19:
|
||||
lis r3, 1
|
||||
addi r3, r3, -0xe6
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L20:
|
||||
lis r3, 1
|
||||
addi r3, r3, -0xe5
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L21:
|
||||
lis r3, 1
|
||||
addi r3, r3, -0xf3
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L22:
|
||||
lis r3, 1
|
||||
addi r3, r3, -0xc1
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L23:
|
||||
li r3, 0x3001
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L24:
|
||||
lbz r3, 0x15(r30)
|
||||
neg r0, r3
|
||||
or r0, r0, r3
|
||||
srwi r3, r0, 0x1f
|
||||
addi r3, r3, 0x2018
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L25:
|
||||
lbz r3, 0x16(r30)
|
||||
neg r0, r3
|
||||
or r0, r0, r3
|
||||
srwi r3, r0, 0x1f
|
||||
addi r3, r3, 0x201c
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L1:
|
||||
mr r3, r31
|
||||
convertWCCode_HWKeyboard_L10:
|
||||
lwz r0, 0x14(r1)
|
||||
lwz r31, 0xc(r1)
|
||||
lwz r30, 8(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
wchar_t HWKeyboard::convertWCCode(wchar_t code) const {
|
||||
if (mgr()->getToolBar()->isQwerty() && mgr()->getPCKeyboard()->getTranslateMode()) {
|
||||
if (mgr()->getLanguage() == JP) {
|
||||
switch (code) {
|
||||
case 0x2C: { return 0x3001; }
|
||||
case 0x2E: { return 0x3002; }
|
||||
case 0x2D: { return 0x30FC; }
|
||||
case 0x5B: { return 0x300C; }
|
||||
case 0x5D: { return 0x300D; }
|
||||
}
|
||||
} else if (mgr()->getLanguage() == CN) {
|
||||
switch (code) {
|
||||
case 0x2C: { return 0xFF0C; }
|
||||
case 0x2E: { return 0x3002; }
|
||||
case 0x3C: { return 0x300A; }
|
||||
case 0x3E: { return 0x300B; }
|
||||
case 0x21: { return 0xFF01; }
|
||||
case 0x3F: { return 0xFF1F; }
|
||||
case 0x28: { return 0xFF08; }
|
||||
case 0x29: { return 0xFF09; }
|
||||
case 0x3A: { return 0xFF1A; }
|
||||
case 0x3B: { return 0xFF1B; }
|
||||
case 0x2D: { return 0xFF0D; }
|
||||
case 0x5F: { return 0xFF3F; }
|
||||
case 0x5C: { return 0x3001; }
|
||||
case 0x27: { if (field_0x15) { return 0x2019; } return 0x2018; }
|
||||
case 0x22: { if (field_0x16) { return 0x201D; } return 0x201C; }
|
||||
}
|
||||
}
|
||||
}
|
||||
return code;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void HWKeyboard::setLanguage(Destination destination, Language language) {
|
||||
if (destination == DST_EU) {
|
||||
input::HKBManager::getInstance().SetCountry(scCountryMap_EU[language]);
|
||||
|
||||
@@ -2114,7 +2114,12 @@ namespace textinput {
|
||||
void LayoutByNW4R::onPressedShift(bool sound) {
|
||||
u32 flags = mKeyState.getABCFlag();
|
||||
flags |= 128;
|
||||
mKeyState.setABCFlag(flags);
|
||||
if ((mKeyState.abcFlags & ~15) != flags) {
|
||||
Base* keyboard = mKeyState.owner;
|
||||
mKeyState.abcFlags = (mKeyState.abcFlags & 15) | (flags & ~15);
|
||||
if (keyboard != NULL)
|
||||
keyboard->refreshState();
|
||||
}
|
||||
mShiftButton.SetState(true, 5);
|
||||
if (sound)
|
||||
mpEventObserver->onSE(static_cast<sound::SE>(13));
|
||||
@@ -2123,7 +2128,13 @@ namespace textinput {
|
||||
void LayoutByNW4R::onReleasedShift() {
|
||||
u32 flags = mKeyState.getABCFlag();
|
||||
flags &= ~128;
|
||||
mKeyState.setABCFlag(flags);
|
||||
u32 currentFlags = mKeyState.abcFlags;
|
||||
if ((currentFlags & ~15) != flags) {
|
||||
Base* keyboard = mKeyState.owner;
|
||||
mKeyState.abcFlags = (currentFlags & 15) | (flags & ~15);
|
||||
if (keyboard != NULL)
|
||||
keyboard->refreshState();
|
||||
}
|
||||
if (mShiftButton.mbOn) {
|
||||
mShiftButton.mbOn = false;
|
||||
mShiftButton.mpAnimation->onAnmEvent(static_cast<AnmPane::AnmPaneEvent>(5));
|
||||
@@ -2513,8 +2524,24 @@ namespace textinput {
|
||||
} else {
|
||||
gather.setPressedShiftB(false);
|
||||
input::HKBManager::getInstance().SetForceModifierState(0, 0);
|
||||
if (wasShift && !gather.isHoldingShift())
|
||||
onReleasedShift();
|
||||
if (wasShift && !gather.isHoldingShift()) {
|
||||
u32 flags;
|
||||
u32 currentFlags;
|
||||
Base* keyboard;
|
||||
flags = mKeyState.getABCFlag();
|
||||
flags &= ~128;
|
||||
currentFlags = mKeyState.abcFlags;
|
||||
if ((currentFlags & ~15) != flags) {
|
||||
keyboard = mKeyState.owner;
|
||||
mKeyState.abcFlags = (currentFlags & 15) | (flags & ~15);
|
||||
if (keyboard != NULL)
|
||||
keyboard->refreshState();
|
||||
}
|
||||
if (mShiftButton.mbOn) {
|
||||
mShiftButton.mbOn = false;
|
||||
mShiftButton.mpAnimation->onAnmEvent(static_cast<AnmPane::AnmPaneEvent>(5));
|
||||
}
|
||||
}
|
||||
}
|
||||
return handled;
|
||||
}
|
||||
|
||||
@@ -2298,7 +2298,7 @@ void ipl::scene::AddressEdit::start_trig_event(
|
||||
pane->initFrame();
|
||||
pane->restart();
|
||||
mSelectedButton = buttonNo;
|
||||
ipl::snd::getSystem()->startSE("WIPL_SE_BT_TARGETTING");
|
||||
ipl::snd::getSystem()->startSE("WIPL_SE_DECIDE");
|
||||
mState = 1;
|
||||
break;
|
||||
}
|
||||
@@ -2317,7 +2317,7 @@ void ipl::scene::AddressEdit::start_trig_event(
|
||||
pane->initFrame();
|
||||
pane->restart();
|
||||
mSelectedButton = buttonNo;
|
||||
ipl::snd::getSystem()->startSE("WIPL_SE_BT_TARGETTING");
|
||||
ipl::snd::getSystem()->startSE("WIPL_SE_DECIDE");
|
||||
mState = 1;
|
||||
break;
|
||||
}
|
||||
@@ -2343,7 +2343,7 @@ void ipl::scene::AddressEdit::start_trig_event(
|
||||
pane->initFrame();
|
||||
pane->restart();
|
||||
mSelectedButton = buttonNo;
|
||||
ipl::snd::getSystem()->startSE("WIPL_SE_BT_TARGETTING");
|
||||
ipl::snd::getSystem()->startSE("WIPL_SE_DECIDE");
|
||||
mState = 0x24;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1734,11 +1734,13 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" char scSE_WSD_SELECT[] = "WSD_SELECT";
|
||||
|
||||
void ChannelSelect::preparePageScrolling(int nextState) {
|
||||
mbModuleSceneChange = true;
|
||||
mState = nextState;
|
||||
unk_0x185 = false;
|
||||
snd::getSystem()->startSE("WSD_SELECT");
|
||||
snd::getSystem()->startSE(scSE_WSD_SELECT);
|
||||
}
|
||||
|
||||
void ChannelSelect::startPageScroll(int nextState) {
|
||||
@@ -2087,7 +2089,6 @@ namespace ipl {
|
||||
mpMoveLytDrop->getAnim()->initAnmFrame();
|
||||
}
|
||||
|
||||
extern "C" char scSE_WSD_SELECT[] = "WSD_SELECT";
|
||||
extern "C" char scSE_WIPL_SE_CH_TARGETTING[] = "WIPL_SE_CH_TARGETTING";
|
||||
extern "C" char scSE_WIPL_SE_CH_HOLD[] = "WIPL_SE_CH_HOLD";
|
||||
extern "C" char scSE_WIPL_SE_CH_SET[] = "WIPL_SE_CH_SET";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#define IPL_MEMORY_CARD_MANAGER_CPP
|
||||
#include "scene/memoryCard/iplMemoryCardManager.h"
|
||||
#include "utility/iplCharacterCode.h"
|
||||
#include <revolution/sc.h>
|
||||
@@ -252,7 +253,9 @@ void MemoryCardManager::update_icon_anm() {
|
||||
u32 file = mFile[slot][index].fileNo;
|
||||
if (file < 0x7f && dirs[slot][file].fileNo != 0) {
|
||||
memorycard::IconState* icon = icons[slot] + file;
|
||||
s32 frame = mFileCell[slot][file].iconAnmCounter + icon->anmDelta;
|
||||
s8 delta = icon->anmDelta;
|
||||
s16 currentFrame = mFileCell[slot][file].iconAnmCounter;
|
||||
s32 frame = currentFrame + delta;
|
||||
mFileCell[slot][file].iconAnmCounter = frame;
|
||||
if ((s16)frame >= icons[slot][file].anmMax) {
|
||||
if (icon->anmType == 4) {
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace ipl {
|
||||
"A", "B", "B_BtnA",
|
||||
};
|
||||
|
||||
static const char* sTitlePaneNames[] = {"A", "B", "B_BtnA", "C", "D"};
|
||||
static const char* sTitlePaneNames[] = {"A", "B", "C", "D", "B_BtnA"};
|
||||
static const char* sAdditionalTitlePaneNames[] = {"B_00", "C_00", "D_00", "B_BtnA"};
|
||||
static const char* sDialogPaneNames[] = {"B_ArwR", "B_ArwL", "B_CalExit", "B_CalExit_00"};
|
||||
|
||||
|
||||
@@ -225,8 +225,7 @@ void SDChannelTitle::create() {
|
||||
comment->SetString(System::getMessage(0xad));
|
||||
iplSDChannelTitle_rebuildBannerLayout(this);
|
||||
mpFade = new math::HermiteIntp<f32>();
|
||||
static f32 fadeRange[2] = {0.0f, 255.0f};
|
||||
mpFade->init(fadeRange[0], fadeRange[1], 28.0f, 0.0f, 0.0f);
|
||||
mpFade->init(0.0f, 255.0f, 28.0f, 0.0f, 0.0f);
|
||||
mpFade->setAnmType(ANIM_TYPE_FORWARD);
|
||||
mpScreenCapture = new (System::getTreasureHeap(), 32) utility::Capture(System::getTreasureHeap(), 0, 0,
|
||||
System::getRenderModeObj()->fbWidth, System::getRenderModeObj()->efbHeight, GX_TF_RGB565);
|
||||
@@ -1016,8 +1015,7 @@ extern "C" void iplSDChannelTitle_preparePageRestart(SDChannelTitle* scene) {
|
||||
if (!scene->mScriptEnabled || scene->mScriptState == 4) {
|
||||
if (scene->mpChannelSelect->prepareRestarting(scene->mPage)) {
|
||||
scene->mpChannelSelect->startPageTransition(scene->mPage, scene->mIndex);
|
||||
static f32 fadeRange[2] = {0.0f, 255.0f};
|
||||
scene->mpFade->init(fadeRange[0], fadeRange[1], 28.0f, 0.0f, 0.0f);
|
||||
scene->mpFade->init(0.0f, 255.0f, 28.0f, 0.0f, 0.0f);
|
||||
scene->mpFade->setAnmType(ANIM_TYPE_BACKWARD);
|
||||
scene->mpFade->play();
|
||||
scene->mState = 6;
|
||||
|
||||
@@ -268,7 +268,10 @@ static char s_manufacturer[] = "MELCO";
|
||||
static s32 s_operationState = -1;
|
||||
static const u8 s_messageId[8] = { 9, 8, 0, 0, 0, 0, 0, 0 };
|
||||
static u8 s_responseTypeByState[8] = { 9, 8, 0, 0, 0, 0, 0, 0 };
|
||||
static const u16 s_defaultOptions[4] = { 0xffff, 0xffff, 0, 0 };
|
||||
__declspec(section ".sdata2") u16 s_defaultConnection = 0xffff;
|
||||
__declspec(section ".sdata2") u16 s_defaultOptions = 0xffff;
|
||||
const u16 s_defaultResponseA = 0;
|
||||
const u16 s_defaultResponseB = 0;
|
||||
|
||||
static void* s_responseBuffer;
|
||||
static s32 s_socketStarted;
|
||||
@@ -438,8 +441,8 @@ int AOSS_Init_old(AOSSInitInput* input)
|
||||
u32 networkAddresses[5];
|
||||
AOSSPollDescriptor pollArguments[2];
|
||||
|
||||
defaultConnection = s_defaultOptions[0];
|
||||
defaultResponse = s_defaultOptions[1];
|
||||
defaultConnection = s_defaultConnection;
|
||||
defaultResponse = s_defaultOptions;
|
||||
waitIntervals.defaults.connection = defaultConnection;
|
||||
waitIntervals.defaults.response = defaultResponse;
|
||||
waitSettings.value = 0;
|
||||
@@ -1028,10 +1031,12 @@ request_socket_cleanup_complete:
|
||||
if (0 < requestResult) goto process_received_packet;
|
||||
receivedPackets = receivedPackets + 1;
|
||||
if (receivedPackets > attemptCount) {
|
||||
switch (protocolState) {
|
||||
case 0: s_errorCode = 0xf; break;
|
||||
case 1: s_errorCode = 0x10; break;
|
||||
default: s_errorCode = 0x11; break;
|
||||
if (protocolState == 0) {
|
||||
s_errorCode = 0xf;
|
||||
} else if (protocolState == 1) {
|
||||
s_errorCode = 0x10;
|
||||
} else {
|
||||
s_errorCode = 0x11;
|
||||
}
|
||||
protocolResult = -1;
|
||||
goto close_protocol_socket;
|
||||
@@ -1299,10 +1304,12 @@ wait_for_packet:
|
||||
}
|
||||
protocolState = requestResult;
|
||||
if (receivedPackets > waitSettings.halfwords.high) {
|
||||
switch (requestResult) {
|
||||
case 0: s_errorCode = 0xf; break;
|
||||
case 1: s_errorCode = 0x10; break;
|
||||
default: s_errorCode = 0x11; break;
|
||||
if (requestResult == 0) {
|
||||
s_errorCode = 0xf;
|
||||
} else if (requestResult == 1) {
|
||||
s_errorCode = 0x10;
|
||||
} else {
|
||||
s_errorCode = 0x11;
|
||||
}
|
||||
protocolResult = -1;
|
||||
goto close_protocol_socket;
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
#include <private/wd.h>
|
||||
#include <string.h>
|
||||
|
||||
s32 AOSSi_cancel_flag;
|
||||
static u8 ipAddress[4];
|
||||
static u8 ipNetmask[4];
|
||||
static u8 ipGateway[4];
|
||||
static u8 primaryDns[4];
|
||||
static u8 secondaryDns[4];
|
||||
static void* (*allocateMemory)(u32, s32);
|
||||
static void (*releaseMemory)(u32, void*, s32);
|
||||
static void (*statusCallback)(void);
|
||||
s32 AOSSi_cancel_flag = 0;
|
||||
static u8 ipAddress[4] = {0};
|
||||
static u8 ipNetmask[4] = {0};
|
||||
static u8 ipGateway[4] = {0};
|
||||
static u8 primaryDns[4] = {0};
|
||||
static u8 secondaryDns[4] = {0};
|
||||
static void* (*allocateMemory)(u32, s32) = NULL;
|
||||
static void (*releaseMemory)(u32, void*, s32) = NULL;
|
||||
static void (*statusCallback)(void) = NULL;
|
||||
static NCDIfConfig AOSSi_NcdIfConfig;
|
||||
static NCDIpConfig AOSSi_NcdIpConfig;
|
||||
|
||||
@@ -34,7 +34,7 @@ struct AOSSAccessPoint {
|
||||
u8 bssid[6];
|
||||
u16 capabilities;
|
||||
u32 rateCount;
|
||||
u8 rates[12];
|
||||
u8 rates[16];
|
||||
u32 beaconPeriod;
|
||||
u32 mode;
|
||||
};
|
||||
@@ -84,7 +84,7 @@ void* AOSSi_Alloc(u32 size) {
|
||||
}
|
||||
|
||||
void AOSSi_Free(void* block) {
|
||||
if (releaseMemory != NULL) {
|
||||
if (releaseMemory) {
|
||||
releaseMemory(0, block, 0);
|
||||
}
|
||||
}
|
||||
@@ -128,16 +128,17 @@ int AOSSi_EndLocal(void) {
|
||||
|
||||
int AOSSi_WLANGetBSSList(struct AOSSAccessPointList** output) {
|
||||
int result = -1;
|
||||
int startupRetries = 0;
|
||||
int scanRetries = 0;
|
||||
int cleanupRetries = 0;
|
||||
int unlockRetries = 0;
|
||||
int driver;
|
||||
u8* buffer;
|
||||
WD_Info info ATTRIBUTE_ALIGN(32);
|
||||
WDScanParam scan;
|
||||
u8 macAddress[6];
|
||||
if (allocateMemory == NULL || releaseMemory == NULL) {
|
||||
WDScanParam scan ATTRIBUTE_ALIGN(32);
|
||||
WD_Info info ATTRIBUTE_ALIGN(32);
|
||||
int startupRetries = 0;
|
||||
int unlockRetries = 0;
|
||||
int cleanupRetries = 0;
|
||||
int scanRetries = 0;
|
||||
|
||||
if (!allocateMemory || !releaseMemory) {
|
||||
return -1;
|
||||
}
|
||||
driver = NCDLockWirelessDriver();
|
||||
@@ -157,7 +158,7 @@ startup:
|
||||
memcpy(macAddress, info.MAC, 6);
|
||||
}
|
||||
buffer = AOSSi_Alloc(0x3200);
|
||||
if (buffer != NULL) {
|
||||
if (buffer) {
|
||||
memset(buffer, 0, 0x3200);
|
||||
scan.channelBit = info.enableChannel;
|
||||
scan.maxChannelTime = 40;
|
||||
@@ -167,48 +168,47 @@ startup:
|
||||
memset(scan.ssid, 0, 32);
|
||||
memset(scan.ssidMask, 255, 32);
|
||||
while (1) {
|
||||
int scanResult = WD_Scan(&scan, buffer, 0x3200);
|
||||
int count;
|
||||
int count = WD_Scan(&scan, buffer, 0x3200);
|
||||
struct AOSSAccessPointList* list;
|
||||
WDBssDesc* descriptor;
|
||||
int index;
|
||||
if (scanResult != 0 && scanResult != WD_INTERNAL_ERR_4) {
|
||||
if (count != 0 && count != WD_INTERNAL_ERR_4) {
|
||||
break;
|
||||
}
|
||||
count = *(u16*)buffer;
|
||||
if (count != 0) {
|
||||
list = AOSSi_Alloc(sizeof(*list) + (count - 1) * sizeof(struct AOSSAccessPoint));
|
||||
if (list == NULL) {
|
||||
if (!list) {
|
||||
result = -1;
|
||||
break;
|
||||
}
|
||||
list->count = count;
|
||||
descriptor = (WDBssDesc*)&buffer[2];
|
||||
for (index = 0; index < count; ++index) {
|
||||
struct AOSSAccessPoint* accessPoint = &list->accessPoints[index];
|
||||
int rate;
|
||||
int rateCount = 0;
|
||||
accessPoint->ssidLength = descriptor->ssidLength;
|
||||
memcpy(accessPoint->ssid, descriptor->ssid, 32);
|
||||
accessPoint->channel = descriptor->channel;
|
||||
memcpy(accessPoint->bssid, descriptor->bssid, 6);
|
||||
int rateCount;
|
||||
list->accessPoints[index].ssidLength = descriptor->ssidLength;
|
||||
memcpy(list->accessPoints[index].ssid, descriptor->ssid, 32);
|
||||
list->accessPoints[index].channel = descriptor->channel;
|
||||
memcpy(list->accessPoints[index].bssid, descriptor->bssid, 6);
|
||||
rateCount = 0;
|
||||
for (rate = 0; rate < 12; ++rate) {
|
||||
if (descriptor->rateSet.support & supportedRates[rate].mask) {
|
||||
accessPoint->rates[rateCount] = supportedRates[rate].value;
|
||||
list->accessPoints[index].rates[rateCount] = supportedRates[rate].value;
|
||||
if (descriptor->rateSet.basic & supportedRates[rate].mask) {
|
||||
accessPoint->rates[rateCount] |= 128;
|
||||
list->accessPoints[index].rates[rateCount] |= 128;
|
||||
}
|
||||
++rateCount;
|
||||
}
|
||||
}
|
||||
accessPoint->rateCount = rateCount;
|
||||
accessPoint->beaconPeriod = descriptor->beaconPeriod;
|
||||
list->accessPoints[index].rateCount = rateCount;
|
||||
list->accessPoints[index].beaconPeriod = descriptor->beaconPeriod;
|
||||
if ((descriptor->capabilities & 3) == 1) {
|
||||
accessPoint->mode = 1;
|
||||
list->accessPoints[index].mode = 1;
|
||||
} else if ((descriptor->capabilities & 3) == 2) {
|
||||
accessPoint->mode = 2;
|
||||
list->accessPoints[index].mode = 2;
|
||||
} else {
|
||||
accessPoint->mode = 0;
|
||||
list->accessPoints[index].mode = 0;
|
||||
}
|
||||
descriptor = (WDBssDesc*)((u16*)descriptor + descriptor->length);
|
||||
}
|
||||
@@ -222,7 +222,7 @@ startup:
|
||||
}
|
||||
if (++scanRetries > 10) {
|
||||
list = AOSSi_Alloc(sizeof(*list));
|
||||
if (list == NULL) {
|
||||
if (!list) {
|
||||
result = -1;
|
||||
break;
|
||||
}
|
||||
@@ -235,31 +235,27 @@ startup:
|
||||
}
|
||||
AOSSi_Free(buffer);
|
||||
}
|
||||
cleanup:
|
||||
if (WD_Cleanup() != 0) {
|
||||
while (WD_Cleanup() != 0) {
|
||||
if (cleanupRetries > 10) {
|
||||
result = -1;
|
||||
goto unlock;
|
||||
}
|
||||
++cleanupRetries;
|
||||
AOSSi_SleepMs(10);
|
||||
goto cleanup;
|
||||
}
|
||||
unlock:
|
||||
if (NCDUnlockWirelessDriver(driver) != 0) {
|
||||
while (NCDUnlockWirelessDriver(driver) != 0) {
|
||||
if (unlockRetries > 10) {
|
||||
result = -1;
|
||||
return -1;
|
||||
}
|
||||
++unlockRetries;
|
||||
AOSSi_SleepMs(10);
|
||||
goto unlock;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
int AOSSi_WLANConnect(struct AOSSConnection* connection, struct AOSSConnectionStatus* status) {
|
||||
int retries = 0;
|
||||
int result = 0;
|
||||
WD_Info info ATTRIBUTE_ALIGN(32);
|
||||
NCDIfConfig* interfaceConfig = &AOSSi_NcdIfConfig;
|
||||
@@ -307,6 +303,7 @@ int AOSSi_WLANConnect(struct AOSSConnection* connection, struct AOSSConnectionSt
|
||||
result = -1;
|
||||
}
|
||||
if (result == 0) {
|
||||
int retries = 0;
|
||||
while (!NCDIsInterfaceDecided()) {
|
||||
if (AOSSi_cancel_flag == 1) {
|
||||
result = -1;
|
||||
@@ -325,9 +322,11 @@ int AOSSi_WLANConnect(struct AOSSConnection* connection, struct AOSSConnectionSt
|
||||
if (WD_GetInfo(&info) == 0) {
|
||||
status->channel = info.channel;
|
||||
}
|
||||
status->ssidLength = interfaceConfig->netif.wireless.config.manual.ssidLength;
|
||||
memcpy(status->ssid, interfaceConfig->netif.wireless.config.manual.ssid,
|
||||
interfaceConfig->netif.wireless.config.manual.ssidLength);
|
||||
{
|
||||
u16 ssidLength = interfaceConfig->netif.wireless.config.manual.ssidLength;
|
||||
status->ssidLength = ssidLength;
|
||||
memcpy(status->ssid, interfaceConfig->netif.wireless.config.manual.ssid, ssidLength);
|
||||
}
|
||||
} else {
|
||||
status->connected = 0;
|
||||
}
|
||||
|
||||
@@ -505,11 +505,13 @@ typedef void* (*AtermAllocateCallback)(u32);
|
||||
typedef void (*AtermFreeCallback)(void*);
|
||||
|
||||
AtermNetworkSettings gNetworkSettings;
|
||||
AtermThreadBuffer gAtermResponseBuffer;
|
||||
static OSThread AtermThread;
|
||||
char gAccessPointName[0x24];
|
||||
AtermScanSettings gScanSettings;
|
||||
AtermConfigurationResult gAtermConfigurationResult;
|
||||
AtermThreadBuffer gAtermResponseBuffer;
|
||||
static OSThread sAtermThread;
|
||||
|
||||
u8* gAtermRequestOptions = gAtermResponseBuffer.data;
|
||||
u32 gAtermDeadline = 0xFFFFFFFF;
|
||||
u32 gAtermScanLimit = 0x40;
|
||||
u32 gAtermScanBufferSize = 0x800;
|
||||
@@ -522,7 +524,7 @@ char gAtermAossSsid[7] = "******";
|
||||
extern u32 gAtermUseSharedAddress;
|
||||
extern char gAtermProductName[5];
|
||||
u32 gAtermCancelRequested;
|
||||
u8 gAtermSelectedBssid[6];
|
||||
u8 gAtermSelectedBssid[8];
|
||||
u32 gAtermProtocolState;
|
||||
u8 gAtermAddressBuffer[8];
|
||||
u32 gAtermResponseMode;
|
||||
@@ -537,6 +539,40 @@ void* gAtermAllocation;
|
||||
AtermFreeCallback gAtermRelease;
|
||||
AtermAllocateCallback gAtermAllocate;
|
||||
AtermProgressCallback gAtermProgressCallback;
|
||||
|
||||
typedef struct {
|
||||
u8 challenge[8];
|
||||
u8 digest[16];
|
||||
} AtermAuthenticationData;
|
||||
|
||||
typedef struct {
|
||||
union {
|
||||
u8 payload[0x800];
|
||||
AtermDecodedPayload decoded;
|
||||
};
|
||||
union {
|
||||
AtermAuthenticationData data;
|
||||
u8 keyMaterial[24];
|
||||
};
|
||||
} AtermAuthentication;
|
||||
|
||||
typedef struct {
|
||||
char ssid[32];
|
||||
u32 setupMode;
|
||||
u32 securityMode;
|
||||
u8 reserved028[0x80];
|
||||
u8 keyMaterial[0x40];
|
||||
u8 connectionPrefix[0x10];
|
||||
u8 packetBuffer[0x800];
|
||||
AtermAuthentication authentication;
|
||||
} AtermGlobalsConfiguration;
|
||||
|
||||
typedef struct {
|
||||
AtermNetworkSettings networkSettings;
|
||||
char accessPointName[0x24];
|
||||
AtermScanSettings scanSettings;
|
||||
AtermGlobalsConfiguration configuration;
|
||||
} AtermGlobals;
|
||||
u32 gAtermResult;
|
||||
s32 gAtermState;
|
||||
|
||||
@@ -1439,8 +1475,10 @@ s32 ATERMRunConfigProtocol(void) {
|
||||
OSAlarm waitAlarm;
|
||||
AtermSocketAddress socketBindAddress;
|
||||
AtermSocketAddress peerAddress;
|
||||
AtermThreadBuffer* response = (AtermThreadBuffer*)&gAtermConfigurationResult.responseLength;
|
||||
void* sessionKey = gAtermResponseBuffer.session.keyMaterial;
|
||||
AtermGlobals* globals = (AtermGlobals*)&gNetworkSettings;
|
||||
void* sessionKey = globals->configuration.authentication.keyMaterial;
|
||||
AtermAuthenticationData* authData = &globals->configuration.authentication.data;
|
||||
u32 messageLength;
|
||||
AtermMd5Context digestContext;
|
||||
u8 digestLength[8];
|
||||
s32 socket = 0;
|
||||
@@ -1525,11 +1563,11 @@ s32 ATERMRunConfigProtocol(void) {
|
||||
break;
|
||||
}
|
||||
peerAddress.length = 8;
|
||||
ATERMBuildAssociationRequest((AtermAssociationRequest*)gAtermConfigurationResult.connectionPrefix);
|
||||
receivedLength = SORecvFrom(socket, gAtermConfigurationResult.packetBuffer,
|
||||
sizeof(gAtermConfigurationResult.packetBuffer), 4, &peerAddress);
|
||||
ATERMBuildAssociationRequest((AtermAssociationRequest*)globals->configuration.connectionPrefix);
|
||||
receivedLength = SORecvFrom(socket, globals->configuration.packetBuffer,
|
||||
sizeof(globals->configuration.packetBuffer), 4, &peerAddress);
|
||||
if (receivedLength > 0 &&
|
||||
ATERMParsePacket((AtermPacket*)gAtermConfigurationResult.packetBuffer, &gAtermResponseMode)) {
|
||||
ATERMParsePacket((AtermPacket*)globals->configuration.packetBuffer, &gAtermResponseMode)) {
|
||||
AtermProgress progress;
|
||||
gAtermDeadline = (u32)(OSGetTime() / (__mulhwu(reciprocal, OS_BUS_CLOCK >> 2) >> 6)) + 30000;
|
||||
gAtermProtocolState = 5;
|
||||
@@ -1546,30 +1584,29 @@ s32 ATERMRunConfigProtocol(void) {
|
||||
break;
|
||||
case 5:
|
||||
{
|
||||
u8 optionIds[7] = {6, 0, 1, 2, 3, 4, 5};
|
||||
u8 optionIds[7] = "\006\000\001\002\003\004\005";
|
||||
AtermRequestOption8* shortOption = (AtermRequestOption8*)gAtermRequestOptions;
|
||||
AtermRequestOption16* longOption;
|
||||
u16 enabled = SOHtoNs(1);
|
||||
AtermSocketAddress sendAddress;
|
||||
u8* optionEnd;
|
||||
memset(shortOption, 0, 4);
|
||||
shortOption->type = SOHtoNs(1);
|
||||
shortOption->length = SOHtoNs(2);
|
||||
memset(shortOption->value, 0, sizeof(shortOption->value));
|
||||
memcpy(shortOption->value, &enabled, sizeof(enabled));
|
||||
shortOption++;
|
||||
memset(shortOption, 0, 4);
|
||||
shortOption->type = SOHtoNs(2);
|
||||
shortOption->length = SOHtoNs(2);
|
||||
memset(shortOption->value, 0, sizeof(shortOption->value));
|
||||
memcpy(shortOption->value, &enabled, sizeof(enabled));
|
||||
memset(&shortOption[0], 0, 4);
|
||||
shortOption[0].type = SOHtoNs(1);
|
||||
shortOption[0].length = SOHtoNs(2);
|
||||
memset(shortOption[0].value, 0, sizeof(shortOption[0].value));
|
||||
memcpy(shortOption[0].value, &enabled, sizeof(enabled));
|
||||
memset(&shortOption[1], 0, 4);
|
||||
shortOption[1].type = SOHtoNs(2);
|
||||
shortOption[1].length = SOHtoNs(2);
|
||||
memset(shortOption[1].value, 0, sizeof(shortOption[1].value));
|
||||
memcpy(shortOption[1].value, &enabled, sizeof(enabled));
|
||||
shortOption++;
|
||||
if (gAtermResponseMode != 0) {
|
||||
memset(shortOption, 0, 4);
|
||||
shortOption->type = SOHtoNs(5);
|
||||
shortOption->length = SOHtoNs(2);
|
||||
memset(shortOption->value, 0, sizeof(shortOption->value));
|
||||
memcpy(shortOption->value, &enabled, sizeof(enabled));
|
||||
memset(&shortOption[1], 0, 4);
|
||||
shortOption[1].type = SOHtoNs(5);
|
||||
shortOption[1].length = SOHtoNs(2);
|
||||
memset(shortOption[1].value, 0, sizeof(shortOption[1].value));
|
||||
memcpy(shortOption[1].value, &enabled, sizeof(enabled));
|
||||
shortOption++;
|
||||
}
|
||||
longOption = (AtermRequestOption16*)shortOption;
|
||||
@@ -1588,13 +1625,14 @@ s32 ATERMRunConfigProtocol(void) {
|
||||
longOption++;
|
||||
}
|
||||
optionEnd = (u8*)longOption;
|
||||
gAtermMessageLength = ATERMBuildEncryptedMessage((u16*)gAtermConfigurationResult.packetBuffer, 2,
|
||||
(u16*)response->data, optionEnd - gAtermRequestOptions + 8, NULL);
|
||||
messageLength = ATERMBuildEncryptedMessage((u16*)globals->configuration.packetBuffer, 2,
|
||||
(u16*)globals->configuration.authentication.decoded.options, optionEnd - gAtermRequestOptions + 8, NULL);
|
||||
sendAddress.length = 8;
|
||||
sendAddress.family = 2;
|
||||
sendAddress.address = 0xFFFFFFFF;
|
||||
sendAddress.port = SOHtoNs(0xE601);
|
||||
SOSendTo(socket, gAtermConfigurationResult.packetBuffer, gAtermMessageLength, 0, &sendAddress);
|
||||
gAtermMessageLength = messageLength;
|
||||
SOSendTo(socket, globals->configuration.packetBuffer, messageLength, 0, &sendAddress);
|
||||
lastSendTime = (u32)(OSGetTime() / (__mulhwu(reciprocal, OS_BUS_CLOCK >> 2) >> 6));
|
||||
gAtermProtocolState = 6;
|
||||
break;
|
||||
@@ -1607,14 +1645,14 @@ s32 ATERMRunConfigProtocol(void) {
|
||||
failed = 1;
|
||||
break;
|
||||
}
|
||||
receivedLength = SORecvFrom(socket, gAtermConfigurationResult.packetBuffer,
|
||||
sizeof(gAtermConfigurationResult.packetBuffer), 4, &peerAddress);
|
||||
receivedLength = SORecvFrom(socket, globals->configuration.packetBuffer,
|
||||
sizeof(globals->configuration.packetBuffer), 4, &peerAddress);
|
||||
if (receivedLength > 0) {
|
||||
AtermPacket* packet = (AtermPacket*)gAtermConfigurationResult.packetBuffer;
|
||||
AtermPacket* packet = (AtermPacket*)globals->configuration.packetBuffer;
|
||||
s32 sequence = SONtoHs(packet->sequence);
|
||||
s32 payloadLength = SONtoHs(packet->length);
|
||||
u32 checksum = 0;
|
||||
u8* cursor = gAtermConfigurationResult.packetBuffer;
|
||||
u8* cursor = globals->configuration.packetBuffer;
|
||||
u8* packetEnd = packet->payload + payloadLength;
|
||||
u8* payload = packet->payload;
|
||||
for (; cursor < packetEnd; cursor++) {
|
||||
@@ -1627,16 +1665,16 @@ s32 ATERMRunConfigProtocol(void) {
|
||||
payloadLength = 0;
|
||||
} else if (sequence != 3) {
|
||||
payloadLength = 0;
|
||||
} else if (gAtermConfigurationResult.connectionPrefix != NULL) {
|
||||
ATERMAesKeyUnwrap((u16*)response->authentication.payload, (u16*)payload,
|
||||
payloadLength, gAtermConfigurationResult.connectionPrefix, 16);
|
||||
} else if (globals->configuration.connectionPrefix != NULL) {
|
||||
ATERMAesKeyUnwrap((u16*)globals->configuration.authentication.payload, (u16*)payload,
|
||||
payloadLength, globals->configuration.connectionPrefix, 16);
|
||||
payloadLength -= 8;
|
||||
} else {
|
||||
memcpy(response->authentication.payload, payload, payloadLength);
|
||||
memcpy(globals->configuration.authentication.payload, payload, payloadLength);
|
||||
}
|
||||
if (payloadLength != 0) {
|
||||
AtermPacketOption* option = (AtermPacketOption*)response->authentication.decoded.options;
|
||||
u8* optionEnd = (u8*)option + SONtoHs(response->authentication.decoded.length);
|
||||
AtermPacketOption* option = (AtermPacketOption*)globals->configuration.authentication.decoded.options;
|
||||
u8* optionEnd = (u8*)option + SONtoHs(globals->configuration.authentication.decoded.length);
|
||||
s32 optionType;
|
||||
u8* optionValue;
|
||||
if ((u8*)option >= optionEnd) {
|
||||
@@ -1652,7 +1690,7 @@ s32 ATERMRunConfigProtocol(void) {
|
||||
(__mulhwu(reciprocal, OS_BUS_CLOCK >> 2) >> 6));
|
||||
u32 index;
|
||||
u32 digestBytes;
|
||||
memcpy(response->authentication.challenge,
|
||||
memcpy(authData->challenge,
|
||||
optionValue, 8);
|
||||
digestContext.bitCountHigh = 0;
|
||||
digestContext.bitCountLow = 0;
|
||||
@@ -1673,22 +1711,29 @@ s32 ATERMRunConfigProtocol(void) {
|
||||
ATERMMd5Update(&digestContext, gAtermDigestFill,
|
||||
digestBytes < 56 ? 56 - digestBytes : 120 - digestBytes);
|
||||
ATERMMd5Update(&digestContext, digestLength, sizeof(digestLength));
|
||||
response->authentication.digest[0] = digestContext.state[0];
|
||||
response->authentication.digest[1] = digestContext.state[0] >> 8;
|
||||
response->authentication.digest[2] = digestContext.state[0] >> 16;
|
||||
response->authentication.digest[3] = digestContext.state[0] >> 24;
|
||||
response->authentication.digest[4] = digestContext.state[1];
|
||||
response->authentication.digest[5] = digestContext.state[1] >> 8;
|
||||
response->authentication.digest[6] = digestContext.state[1] >> 16;
|
||||
response->authentication.digest[7] = digestContext.state[1] >> 24;
|
||||
response->authentication.digest[8] = digestContext.state[2];
|
||||
response->authentication.digest[9] = digestContext.state[2] >> 8;
|
||||
response->authentication.digest[10] = digestContext.state[2] >> 16;
|
||||
response->authentication.digest[11] = digestContext.state[2] >> 24;
|
||||
response->authentication.digest[12] = digestContext.state[3];
|
||||
response->authentication.digest[13] = digestContext.state[3] >> 8;
|
||||
response->authentication.digest[14] = digestContext.state[3] >> 16;
|
||||
response->authentication.digest[15] = digestContext.state[3] >> 24;
|
||||
{
|
||||
u8* digest = authData->digest;
|
||||
u32 state = digestContext.state[0];
|
||||
digest[0] = state;
|
||||
digest[1] = state >> 8;
|
||||
digest[2] = state >> 16;
|
||||
digest[3] = state >> 24;
|
||||
state = digestContext.state[1];
|
||||
digest[4] = state;
|
||||
digest[5] = state >> 8;
|
||||
digest[6] = state >> 16;
|
||||
digest[7] = state >> 24;
|
||||
state = digestContext.state[2];
|
||||
digest[8] = state;
|
||||
digest[9] = state >> 8;
|
||||
digest[10] = state >> 16;
|
||||
digest[11] = state >> 24;
|
||||
state = digestContext.state[3];
|
||||
digest[12] = state;
|
||||
digest[13] = state >> 8;
|
||||
digest[14] = state >> 16;
|
||||
digest[15] = state >> 24;
|
||||
}
|
||||
{
|
||||
u8* contextByte = (u8*)&digestContext;
|
||||
for (index = 0; index < sizeof(digestContext); index++) {
|
||||
@@ -1714,37 +1759,38 @@ s32 ATERMRunConfigProtocol(void) {
|
||||
break;
|
||||
case 7:
|
||||
{
|
||||
AtermRequestOption16* option = (AtermRequestOption16*)response->authentication.decoded.options;
|
||||
AtermRequestOption16* option = (AtermRequestOption16*)globals->configuration.authentication.decoded.options;
|
||||
AtermSocketAddress sendAddress;
|
||||
memset(response->data, 0, 8);
|
||||
memset(&globals->configuration.authentication, 0, 8);
|
||||
memset(option, 0, 4);
|
||||
option->type = SOHtoNs(0x102);
|
||||
option->length = SOHtoNs(8);
|
||||
memset(option->value, 0, sizeof(option->value));
|
||||
memcpy(option->value, response->authentication.digest, 8);
|
||||
gAtermReplyLength = (u8*)(option + 1) - response->data;
|
||||
response->authentication.decoded.length = gAtermReplyLength - 8;
|
||||
gAtermMessageLength = ATERMBuildEncryptedMessage((u16*)gAtermConfigurationResult.packetBuffer, 4,
|
||||
(u16*)response->data, gAtermReplyLength, gAtermConfigurationResult.connectionPrefix);
|
||||
memcpy(option->value, authData->digest, 8);
|
||||
gAtermReplyLength = (u8*)(option + 1) - globals->configuration.authentication.decoded.options;
|
||||
globals->configuration.authentication.decoded.length = gAtermReplyLength - 8;
|
||||
messageLength = ATERMBuildEncryptedMessage((u16*)globals->configuration.packetBuffer, 4,
|
||||
(u16*)globals->configuration.authentication.decoded.options, gAtermReplyLength, globals->configuration.connectionPrefix);
|
||||
sendAddress.length = 8;
|
||||
sendAddress.family = 2;
|
||||
sendAddress.address = 0xFFFFFFFF;
|
||||
sendAddress.port = SOHtoNs(0xE601);
|
||||
SOSendTo(socket, gAtermConfigurationResult.packetBuffer, gAtermMessageLength, 0, &sendAddress);
|
||||
gAtermMessageLength = messageLength;
|
||||
SOSendTo(socket, globals->configuration.packetBuffer, messageLength, 0, &sendAddress);
|
||||
lastSendTime = (u32)(OSGetTime() / (__mulhwu(reciprocal, OS_BUS_CLOCK >> 2) >> 6));
|
||||
memset(&gScanSettings, 0, 0x254);
|
||||
memset(&globals->scanSettings, 0, 0x254);
|
||||
gAtermProtocolState = 8;
|
||||
break;
|
||||
}
|
||||
case 8:
|
||||
receivedLength = SORecvFrom(socket, gAtermConfigurationResult.packetBuffer,
|
||||
sizeof(gAtermConfigurationResult.packetBuffer), 4, &peerAddress);
|
||||
receivedLength = SORecvFrom(socket, globals->configuration.packetBuffer,
|
||||
sizeof(globals->configuration.packetBuffer), 4, &peerAddress);
|
||||
if (receivedLength > 0) {
|
||||
AtermPacket* packet = (AtermPacket*)gAtermConfigurationResult.packetBuffer;
|
||||
AtermPacket* packet = (AtermPacket*)globals->configuration.packetBuffer;
|
||||
s32 sequence = SONtoHs(packet->sequence);
|
||||
s32 payloadLength = SONtoHs(packet->length);
|
||||
u32 checksum = 0;
|
||||
u8* cursor = gAtermConfigurationResult.packetBuffer;
|
||||
u8* cursor = globals->configuration.packetBuffer;
|
||||
u8* packetEnd = packet->payload + payloadLength;
|
||||
u8* payload = packet->payload;
|
||||
for (; cursor < packetEnd; cursor++) {
|
||||
@@ -1758,17 +1804,17 @@ s32 ATERMRunConfigProtocol(void) {
|
||||
} else if (sequence != 5) {
|
||||
payloadLength = 0;
|
||||
} else if (sessionKey != NULL) {
|
||||
ATERMAesKeyUnwrap((u16*)response->authentication.payload, (u16*)payload,
|
||||
ATERMAesKeyUnwrap((u16*)globals->configuration.authentication.payload, (u16*)payload,
|
||||
payloadLength, sessionKey, 16);
|
||||
payloadLength -= 8;
|
||||
} else {
|
||||
memcpy(response->authentication.payload, payload, payloadLength);
|
||||
memcpy(globals->configuration.authentication.payload, payload, payloadLength);
|
||||
}
|
||||
gAtermReplyLength = payloadLength;
|
||||
if (payloadLength != 0 && ATERMParseAssociationResponse((u16*)response->data)) {
|
||||
if (payloadLength != 0 && ATERMParseAssociationResponse((u16*)globals->configuration.authentication.decoded.options)) {
|
||||
gAtermProtocolState = 9;
|
||||
retries = 0;
|
||||
gAtermMode = gScanSettings.ssid[0] != 0;
|
||||
gAtermMode = globals->scanSettings.ssid[0] != 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -1785,18 +1831,18 @@ s32 ATERMRunConfigProtocol(void) {
|
||||
break;
|
||||
case 9:
|
||||
{
|
||||
AtermRequestOption8* option = (AtermRequestOption8*)response->authentication.decoded.options;
|
||||
AtermRequestOption8* option = (AtermRequestOption8*)globals->configuration.authentication.decoded.options;
|
||||
AtermSocketAddress sendAddress;
|
||||
memset(response->data, 0, 8);
|
||||
memset(&globals->configuration.authentication, 0, 8);
|
||||
memset(option, 0, 4);
|
||||
option->type = SOHtoNs(0x301);
|
||||
option->length = SOHtoNs(1);
|
||||
memset(option->value, 0, sizeof(option->value));
|
||||
memcpy(option->value, &gAtermMode, 1);
|
||||
gAtermReplyLength = (u8*)(option + 1) - response->data;
|
||||
response->authentication.decoded.length = gAtermReplyLength - 8;
|
||||
gAtermMessageLength = ATERMBuildEncryptedMessage((u16*)gAtermConfigurationResult.packetBuffer, 6,
|
||||
(u16*)response->data, gAtermReplyLength, sessionKey);
|
||||
gAtermReplyLength = (u8*)(option + 1) - globals->configuration.authentication.decoded.options;
|
||||
globals->configuration.authentication.decoded.length = gAtermReplyLength - 8;
|
||||
messageLength = ATERMBuildEncryptedMessage((u16*)globals->configuration.packetBuffer, 6,
|
||||
(u16*)globals->configuration.authentication.decoded.options, gAtermReplyLength, sessionKey);
|
||||
if (NCDGetLinkStatus() != 5) {
|
||||
lastSendTime = (u32)(OSGetTime() / (__mulhwu(reciprocal, OS_BUS_CLOCK >> 2) >> 6)) + 1000;
|
||||
retries = 10;
|
||||
@@ -1807,7 +1853,8 @@ s32 ATERMRunConfigProtocol(void) {
|
||||
sendAddress.family = 2;
|
||||
sendAddress.address = 0xFFFFFFFF;
|
||||
sendAddress.port = SOHtoNs(0xE601);
|
||||
SOSendTo(socket, gAtermConfigurationResult.packetBuffer, gAtermMessageLength, 0, &sendAddress);
|
||||
gAtermMessageLength = messageLength;
|
||||
SOSendTo(socket, globals->configuration.packetBuffer, messageLength, 0, &sendAddress);
|
||||
lastSendTime = (u32)(OSGetTime() / (__mulhwu(reciprocal, OS_BUS_CLOCK >> 2) >> 6));
|
||||
gAtermProtocolState = 10;
|
||||
break;
|
||||
@@ -2479,7 +2526,7 @@ int ATERMi_ApConfigStart(OSPriority priority, u32 scanLimit,
|
||||
return -1;
|
||||
}
|
||||
|
||||
OSCreateThread(&sAtermThread, (void* (*)(void*))ATERMi_AutoConfigThread, NULL,
|
||||
OSCreateThread(&AtermThread, (void* (*)(void*))ATERMi_AutoConfigThread, NULL,
|
||||
(u8*)gAtermAllocation + (gAtermScanBufferSize & ~7), gAtermScanBufferSize, priority, 1);
|
||||
gAtermState = 1;
|
||||
{
|
||||
@@ -2499,7 +2546,7 @@ int ATERMi_ApConfigStart(OSPriority priority, u32 scanLimit,
|
||||
}
|
||||
progress.result = gAtermResult;
|
||||
gAtermProgressCallback(&progress);
|
||||
OSResumeThread(&sAtermThread);
|
||||
OSResumeThread(&AtermThread);
|
||||
gAtermThreadStarted = 1;
|
||||
return 1;
|
||||
}
|
||||
@@ -2536,8 +2583,8 @@ int ATERMi_ApConfigEnd(void) {
|
||||
OSMillisecondsToTicks(500),
|
||||
ATERMAlarmWakeQueue);
|
||||
OSReceiveMessage(&joinQueue, &joinMessage, 1);
|
||||
while (OSIsThreadTerminated(&sAtermThread) == 0) {
|
||||
OSJoinThread(&sAtermThread, NULL);
|
||||
while (OSIsThreadTerminated(&AtermThread) == 0) {
|
||||
OSJoinThread(&AtermThread, NULL);
|
||||
}
|
||||
|
||||
if (gAtermAllocation != NULL) {
|
||||
@@ -2584,7 +2631,6 @@ int ATERMi_ApConfigGetVersion(void) {
|
||||
return 0x106;
|
||||
}
|
||||
|
||||
u8* gAtermRequestOptions = gAtermResponseBuffer.data;
|
||||
|
||||
u32 gAtermUseSharedAddress = 1;
|
||||
char gAtermProductName[5] = "WARP";
|
||||
|
||||
@@ -38,9 +38,18 @@ extern "C" RakuStatus sRakuStatus;
|
||||
RakuStatus sRakuStatus;
|
||||
extern "C" OSMessageQueue sRakuMsgQueue;
|
||||
OSMessageQueue sRakuMsgQueue;
|
||||
static OSTime startTime;
|
||||
static bool active;
|
||||
static OSMessage messageSlot;
|
||||
|
||||
extern "C" void syncRakuProgress__Q33ipl5scene14RakuRakuThreadFv();
|
||||
|
||||
struct RakuThreadGlobals {
|
||||
MEMAllocator allocator[1];
|
||||
RakuStatus status[1];
|
||||
OSMessageQueue queue;
|
||||
};
|
||||
static u32 startTimeHigh = 0;
|
||||
static u32 startTimeLow = 0;
|
||||
static bool active = false;
|
||||
static OSMessage messageSlot = NULL;
|
||||
static int displayState = 1;
|
||||
|
||||
extern "C" {
|
||||
@@ -81,7 +90,9 @@ private:
|
||||
void RakuRakuThread::syncRakuProgress() {
|
||||
BOOL interrupts = OSDisableInterrupts();
|
||||
sRakuStatus.progress = *(RakuProgress*)this;
|
||||
startTime = OSGetTime();
|
||||
OSTime time = OSGetTime();
|
||||
startTimeHigh = time >> 32;
|
||||
startTimeLow = time;
|
||||
OSRestoreInterrupts(interrupts);
|
||||
}
|
||||
|
||||
@@ -133,24 +144,27 @@ void RakuRakuThread::destroy() {
|
||||
}
|
||||
|
||||
int RakuRakuThread::start() {
|
||||
RakuThreadGlobals* shared = (RakuThreadGlobals*)&sRakuAllocator;
|
||||
if (active || mHeapBuffer == NULL) {
|
||||
return 0;
|
||||
}
|
||||
BOOL interrupts = OSDisableInterrupts();
|
||||
startTime = OSGetTime();
|
||||
OSTime time = OSGetTime();
|
||||
startTimeLow = (u32)time;
|
||||
startTimeHigh = (u32)(time >> 32);
|
||||
mHeap = MEMCreateExpHeapEx(mHeapBuffer, 0x40000, 2);
|
||||
MEMInitAllocatorForExpHeap(&sRakuAllocator, mHeap, 32);
|
||||
MEMInitAllocatorForExpHeap(&shared->allocator[0], mHeap, 32);
|
||||
mPriority = OSGetThreadPriority(OSGetCurrentThread()) - 1;
|
||||
active = true;
|
||||
mFinished = 0;
|
||||
memset(&sRakuStatus.configuration, 0, sizeof(RakuConfiguration));
|
||||
memset(&sRakuStatus.progress, 0, sizeof(RakuProgress));
|
||||
memset(&shared->status[0].configuration, 0, sizeof(RakuConfiguration));
|
||||
memset(&shared->status[0].progress, 0, sizeof(RakuProgress));
|
||||
SOLibraryConfig socketConfig;
|
||||
socketConfig.alloc = RakuSocketAlloc;
|
||||
socketConfig.free = RakuSocketFree;
|
||||
SOInit(&socketConfig);
|
||||
ATERMi_ApConfigStart(mPriority, 200,
|
||||
progressCallback,
|
||||
(void (*)(RakuProgress*))&syncRakuProgress__Q33ipl5scene14RakuRakuThreadFv,
|
||||
RakuAtermAlloc, RakuAtermFree, 4096);
|
||||
if (!mRunning) {
|
||||
mRunning = 1;
|
||||
@@ -213,7 +227,7 @@ int RakuRakuThread::getState() {
|
||||
default: displayState = 1; break;
|
||||
}
|
||||
if (displayState != 6 && displayState != 7 &&
|
||||
((u32)OSGetTime() - (u32)startTime) / (OS_TIMER_CLOCK / 1000) >= 90000) {
|
||||
((u32)OSGetTime() - startTimeLow) / (OS_TIMER_CLOCK / 1000) >= 90000) {
|
||||
OSSendMessage(&sRakuMsgQueue, (OSMessage)1, 0);
|
||||
}
|
||||
OSRestoreInterrupts(interrupts);
|
||||
@@ -225,41 +239,44 @@ int RakuRakuThread::cancel() {
|
||||
}
|
||||
|
||||
int RakuRakuThread::finish(NCDApConfig* config, int* result) {
|
||||
RakuThreadGlobals* shared = (RakuThreadGlobals*)&sRakuAllocator;
|
||||
if (!active) {
|
||||
if (result != NULL) {
|
||||
*result = -99;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
s32 state = sRakuStatus.progress.state;
|
||||
if ((u32)(state - 6) > 1) {
|
||||
return 0;
|
||||
}
|
||||
if (!mFinished) {
|
||||
if (state == 6) {
|
||||
ATERMi_ApConfigGetResult(&sRakuStatus.configuration);
|
||||
printInfo();
|
||||
s32 state = shared->status[0].progress.state;
|
||||
if ((u32)(state - 6) <= 1) {
|
||||
if (!mFinished) {
|
||||
if (state == 6) {
|
||||
ATERMi_ApConfigGetResult(&shared->status[0].configuration);
|
||||
printInfo();
|
||||
}
|
||||
OSSendMessage(&shared->queue, (OSMessage)1, 0);
|
||||
return 0;
|
||||
}
|
||||
OSSendMessage(&sRakuMsgQueue, (OSMessage)1, 0);
|
||||
SOFinish();
|
||||
active = false;
|
||||
destroy();
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
SOFinish();
|
||||
active = false;
|
||||
destroy();
|
||||
if (config != NULL) {
|
||||
RakuConfiguration* settings = &sRakuStatus.configuration;
|
||||
memcpy(config->ssid, settings->ssid, 32);
|
||||
config->ssidLength = strlen(settings->ssid);
|
||||
memcpy(config->ssid, shared->status[0].configuration.ssid, 32);
|
||||
config->ssidLength = strlen(shared->status[0].configuration.ssid);
|
||||
RakuConfiguration* settings = &shared->status[0].configuration;
|
||||
int index;
|
||||
if (settings->security == 1) {
|
||||
config->privacy.mode = 1;
|
||||
config->privacy.wep40.keyId = settings->keyId;
|
||||
for (int index = 0; index < 4; ++index) {
|
||||
for (index = 0; index < 4; ++index) {
|
||||
memcpy(config->privacy.wep40.key[index], settings->wepKeys[index], 5);
|
||||
}
|
||||
} else if (settings->security == 2) {
|
||||
config->privacy.mode = 2;
|
||||
config->privacy.wep104.keyId = settings->keyId;
|
||||
for (int index = 0; index < 4; ++index) {
|
||||
for (index = 0; index < 4; ++index) {
|
||||
memcpy(config->privacy.wep104.key[index], settings->wepKeys[index], 13);
|
||||
}
|
||||
} else if (settings->security == 4) {
|
||||
@@ -273,7 +290,7 @@ int RakuRakuThread::finish(NCDApConfig* config, int* result) {
|
||||
}
|
||||
}
|
||||
if (result != NULL) {
|
||||
*result = sRakuStatus.progress.result;
|
||||
*result = shared->status[0].progress.result;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -17,8 +17,16 @@ namespace ipl {
|
||||
class SensitivityDrawing {
|
||||
public:
|
||||
static void draw(nand::File* texture);
|
||||
private:
|
||||
static void verticalScale(f32 height, f32& scale);
|
||||
static f32 horizontalScale(f32 width);
|
||||
static f32 projectY(s32 y, f32 scale);
|
||||
};
|
||||
|
||||
void SensitivityDrawing::verticalScale(f32 height, f32& scale) { scale = 0.5f * height / 768.0f; }
|
||||
f32 SensitivityDrawing::horizontalScale(f32 width) { return 0.5f * width / 1024.0f; }
|
||||
f32 SensitivityDrawing::projectY(s32 y, f32 scale) { return (y - 384) * scale; }
|
||||
|
||||
void SensitivityDrawing::draw(nand::File* texture) {
|
||||
GXRenderModeObj renderMode = *System::getRenderModeObj();
|
||||
nw4r::ut::Rect projection;
|
||||
@@ -47,8 +55,9 @@ void SensitivityDrawing::draw(nand::File* texture) {
|
||||
GXInitTexObjWrapMode(&image, GX_MIRROR, GX_MIRROR);
|
||||
f32 width = projection.GetWidth();
|
||||
f32 height = projection.GetHeight();
|
||||
f32 horizontalScale = (0.5f * width) / 1024.0f;
|
||||
f32 verticalScale = (0.5f * height) / 768.0f;
|
||||
f32 horizontalScale = SensitivityDrawing::horizontalScale(width);
|
||||
f32 verticalScale;
|
||||
SensitivityDrawing::verticalScale(height, verticalScale);
|
||||
int sample = WPADGetLatestIndexInBuf(controller->getChannel());
|
||||
DPDObject* object;
|
||||
DPDObject* first;
|
||||
@@ -76,7 +85,7 @@ void SensitivityDrawing::draw(nand::File* texture) {
|
||||
if (object->size != 0) {
|
||||
f32 radius = 0.15f * (object->size + 25);
|
||||
f32 x = (object->x - 512) * horizontalScale;
|
||||
f32 y = (object->y - 384) * verticalScale;
|
||||
f32 y = projectY(object->y, verticalScale);
|
||||
GXColor foreground = {255, 255, 255, 255};
|
||||
nw4r::ut::Rect rectangle(x - radius, -y + radius - -45.0f,
|
||||
x + radius, -y - radius - -45.0f);
|
||||
|
||||
@@ -36,12 +36,6 @@ extern "C" int abs(int value);
|
||||
|
||||
extern "C" void __VISetAdjustingValues(s32 horizontal, s32 vertical);
|
||||
|
||||
namespace ipl {
|
||||
namespace scene {
|
||||
static s32 browserScrollDirection;
|
||||
}
|
||||
}
|
||||
|
||||
namespace ipl {
|
||||
class SensitivityDrawing {
|
||||
public:
|
||||
@@ -149,6 +143,7 @@ namespace ipl {
|
||||
|
||||
void* Setting::mem1Buffer_;
|
||||
void* Setting::mem2Buffer_;
|
||||
static s32 browserScrollDirection;
|
||||
|
||||
Setting::Setting(EGG::Heap* heap, int arg) : FaderSceneBase(heap) {
|
||||
unk_0x5C = 0;
|
||||
@@ -417,7 +412,7 @@ namespace ipl {
|
||||
"Setup/ScreenSave.html", "Setup/ScreenSave.html",
|
||||
"Setup/ScreenSave.html", "Setup/ScreenSave.html",
|
||||
"Setup/ScreenSave.html", "Setup/ScreenSave.html",
|
||||
"Setup/ScreenSave.html", "Calendar"};
|
||||
"Setup/ScreenSave.html", "Setup/ScreenSave.html"};
|
||||
|
||||
char basePath[100];
|
||||
char browserPath[100];
|
||||
@@ -443,8 +438,8 @@ namespace ipl {
|
||||
snprintf(browserPath, sizeof(browserPath), basePath, regionCodes[regionIndex],
|
||||
languageCodes[System::getLanguage()], regionPages[regionIndex]);
|
||||
} else if (mInitialArgument == ARG_UNK_6) {
|
||||
const char* pageNames[] = {"Display", "Sound", "Parental_Control", "Internet",
|
||||
"Wiiconnect24", "Update", "Update"};
|
||||
const char* pageNames[] = {"Calendar", "Display", "Sound", "Parental_Control", "Internet",
|
||||
"Wiiconnect24", "Update"};
|
||||
int directPage;
|
||||
for (directPage = 0; directPage < 7; directPage++) {
|
||||
if (strstr(mpStringBuffer->netSettingArg, pageNames[directPage]) != NULL) {
|
||||
@@ -467,7 +462,6 @@ namespace ipl {
|
||||
directPagePath = "index03.html";
|
||||
break;
|
||||
case 7:
|
||||
default:
|
||||
directPagePath = "index01.html";
|
||||
break;
|
||||
}
|
||||
@@ -1375,7 +1369,7 @@ namespace ipl {
|
||||
if (!mBrowserCreated) {
|
||||
utility::Graphics::setOrtho(0);
|
||||
nw4r::ut::Rect background(-1000.0f, -1000.0f, 1000.0f, 1000.0f);
|
||||
GXColor color = {0, 0, 0, 0xFF};
|
||||
static const GXColor color = {0, 0, 0, 0xFF};
|
||||
utility::Graphics::drawPolygon(background, color);
|
||||
return;
|
||||
}
|
||||
@@ -1395,7 +1389,7 @@ namespace ipl {
|
||||
|
||||
ext_ead::www::BrowserWindow* browserWindow =
|
||||
static_cast<ext_ead::www::BrowserWindow*>(browser->mpBrowserWindows[0]);
|
||||
if ((browserWindow != NULL ? browserWindow->unk_0x2C4[3] : 0) != 0) {
|
||||
if ((browserWindow == NULL ? 0 : browserWindow->unk_0x2C4[3]) != 0) {
|
||||
unk_0x91C[2] = 1;
|
||||
mState = 0;
|
||||
browserWindow = static_cast<ext_ead::www::BrowserWindow*>(browser->mpBrowserWindows[0]);
|
||||
@@ -1403,9 +1397,13 @@ namespace ipl {
|
||||
browserWindow->unk_0x2C4[3] = 0;
|
||||
}
|
||||
www::trasition::ScrollState scrollState = www::trasition::GetScrollState();
|
||||
browserScrollDirection = scrollState == www::trasition::SCROLL_LEFT
|
||||
? 1
|
||||
: (scrollState == www::trasition::SCROLL_RIGHT ? -1 : 0);
|
||||
if (scrollState == www::trasition::SCROLL_LEFT) {
|
||||
browserScrollDirection = 1;
|
||||
} else if (scrollState == www::trasition::SCROLL_RIGHT) {
|
||||
browserScrollDirection = -1;
|
||||
} else {
|
||||
browserScrollDirection = 0;
|
||||
}
|
||||
www::trasition::ResetScrollState();
|
||||
void* changedWideBuffer = browser->GetTextureBuffer(1, NULL);
|
||||
void* changedStandardBuffer = browser->GetTextureBuffer(0, NULL);
|
||||
@@ -1413,16 +1411,16 @@ namespace ipl {
|
||||
ext_ead::www::Heap::reportLeaHeap();
|
||||
}
|
||||
|
||||
if (!mpSecondAnimation->isPlaying() && !mpFirstAnimation->isPlaying()) {
|
||||
if (!(mpSecondAnimation->isPlaying() || mpFirstAnimation->isPlaying())) {
|
||||
mpChangeLayout->FindPaneByName("N_Tra0")->SetVisible(false);
|
||||
} else {
|
||||
mpChangeLayout->FindPaneByName("N_Tra0")->SetVisible(true);
|
||||
}
|
||||
|
||||
WWWRect* standardRect;
|
||||
WWWRect* wideRect;
|
||||
void* wideBuffer = browser->GetTextureBuffer(1, &wideRect);
|
||||
WWWRect* standardRect;
|
||||
void* standardBuffer = browser->GetTextureBuffer(0, &standardRect);
|
||||
void* wideBuffer = browser->GetTextureBuffer(1, &wideRect);
|
||||
nw4r::ut::Rect projection4x3;
|
||||
System::getProjectionRect4x3(&projection4x3);
|
||||
int screenWidth = abs(static_cast<int>(projection4x3.GetWidth()));
|
||||
@@ -1448,14 +1446,15 @@ namespace ipl {
|
||||
System::getProjectionRect16x9(&projection16x9);
|
||||
int wideWidth = abs(static_cast<int>(projection16x9.GetWidth()));
|
||||
int wideHeight = abs(static_cast<int>(projection16x9.GetHeight()));
|
||||
f32 wideLeft = -wideWidth / 2;
|
||||
f32 wideTop = wideHeight / 2;
|
||||
f32 wideRight = wideWidth / 2;
|
||||
nw4r::ut::Rect leftSide(wideLeft, wideTop,
|
||||
wideLeft + sideDescriptor->textureHeader->width,
|
||||
wideTop - sideDescriptor->textureHeader->height);
|
||||
nw4r::ut::Rect rightSide(wideRight - sideDescriptor->textureHeader->width,
|
||||
wideTop, wideRight, wideTop - sideDescriptor->textureHeader->height);
|
||||
f32 negHalfWideWidth = -wideWidth / 2;
|
||||
f32 posHalfWideWidth = wideWidth / 2;
|
||||
f32 posHalfWideHeight = wideHeight / 2;
|
||||
nw4r::ut::Rect leftSide(negHalfWideWidth, posHalfWideHeight,
|
||||
negHalfWideWidth + sideDescriptor->textureHeader->width,
|
||||
posHalfWideHeight - sideDescriptor->textureHeader->height);
|
||||
nw4r::ut::Rect rightSide(posHalfWideWidth - sideDescriptor->textureHeader->width,
|
||||
posHalfWideHeight, posHalfWideWidth,
|
||||
posHalfWideHeight - sideDescriptor->textureHeader->height);
|
||||
|
||||
if (browserScrollDirection != 0) {
|
||||
nw4r::lyt::Material* wideMaterial =
|
||||
@@ -1515,7 +1514,8 @@ namespace ipl {
|
||||
}
|
||||
|
||||
if (mpWiiSettingFlag->smthMsgData >= 2 && mpWiiSettingFlag->smthMsgData <= 7) {
|
||||
GXRenderModeObj renderMode = *System::getRenderModeObj();
|
||||
GXRenderModeObj renderMode;
|
||||
renderMode = *System::getRenderModeObj();
|
||||
u32 left;
|
||||
u32 top;
|
||||
u32 width;
|
||||
@@ -1611,10 +1611,10 @@ namespace ipl {
|
||||
OSReport("initKeyboard formId:%d\n", mpWiiSettingData->data[0x11]);
|
||||
memset(unk_0x938, 0, sizeof(unk_0x938));
|
||||
|
||||
int invalidInput = 0;
|
||||
int stringLimit;
|
||||
keyboard::Manager::KeyboardType keyboardType = keyboard::Manager::LETTER;
|
||||
int rowLimit = 0;
|
||||
int stringLimit = 0;
|
||||
int rowLimit;
|
||||
int invalidInput = 0;
|
||||
int productArea = static_cast<s8>(SCGetProductArea());
|
||||
|
||||
switch (mpWiiSettingData->data[0x11]) {
|
||||
@@ -1716,14 +1716,16 @@ namespace ipl {
|
||||
}
|
||||
|
||||
if (productArea == 11) {
|
||||
System::getKeyboard()->memoFrm()->setZiDictionary(System::getKeyboard()->getZiOemDic(), System::getKeyboard()->getZiSystemDic());
|
||||
void* sysDic = System::getKeyboard()->getZiSystemDic();
|
||||
void* oemDic = System::getKeyboard()->getZiOemDic();
|
||||
System::getKeyboard()->memoFrm()->setZiDictionary(oemDic, sysDic);
|
||||
}
|
||||
|
||||
keyboard::Manager::KeyboardSetting setting;
|
||||
setting.type = keyboardType;
|
||||
setting.rowLimit = rowLimit;
|
||||
setting.wcString = reinterpret_cast<const wchar_t*>(unk_0x938);
|
||||
setting.stringLimit = stringLimit;
|
||||
setting.rowLimit = rowLimit;
|
||||
setting.type = keyboardType;
|
||||
System::getKeyboard()->start(0, setting);
|
||||
|
||||
if (invalidInput != 0) {
|
||||
@@ -1743,7 +1745,6 @@ namespace ipl {
|
||||
if (mKeyboardState.pressOK) {
|
||||
onTextInputOK();
|
||||
u8 formId = mpWiiSettingData->data[0x11];
|
||||
formText = NULL;
|
||||
switch (formId) {
|
||||
case 1:
|
||||
formText = mpStringBuffer->nickname;
|
||||
@@ -1814,7 +1815,8 @@ namespace ipl {
|
||||
memcpy(mpStringBuffer->asterisks, mpStringBuffer->securityKey, sizeof(mpStringBuffer->securityKey));
|
||||
mpStringBuffer->asterisks[0x41] = 0;
|
||||
while (mpStringBuffer->asterisks[index] != 0) {
|
||||
mpStringBuffer->asterisks[index++] = '*';
|
||||
mpStringBuffer->asterisks[index] = '*';
|
||||
index++;
|
||||
}
|
||||
if (index > 0x20) {
|
||||
mpStringBuffer->asterisks[0x20] = '\n';
|
||||
@@ -1826,7 +1828,6 @@ namespace ipl {
|
||||
}
|
||||
} else {
|
||||
u8 formId = mpWiiSettingData->data[0x11];
|
||||
formText = NULL;
|
||||
switch (formId) {
|
||||
case 1:
|
||||
formText = mpStringBuffer->nickname;
|
||||
@@ -2167,8 +2168,8 @@ namespace ipl {
|
||||
const char* versionSuffix[12] = {"J", "U", "E", "", "", "J", "K", "", "", "", "", "C"};
|
||||
u32 versionData[24] = {
|
||||
0x00010008, 0x48414B4A, 0x00010008, 0x48414B45, 0x00010008, 0x48414B50,
|
||||
0, 0, 0, 0, 0, 0, 0x00010008, 0x48414B4A, 0x00010008, 0x48414B4B,
|
||||
0, 0, 0, 0, 0, 0, 0x00010008, 0x48414B43,
|
||||
0, 0, 0, 0, 0x00010008, 0x48414B4A, 0x00010008, 0x48414B4B,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0x00010008, 0x48414B43,
|
||||
};
|
||||
u32 region = System::getRegion();
|
||||
sprintf(mpStringBuffer->version, "Ver. %d.%d%s", 4, 3, versionSuffix[region]);
|
||||
@@ -2721,34 +2722,34 @@ namespace ipl {
|
||||
case 6: {
|
||||
int animationIndex = unk_0x918;
|
||||
unk_0xB9C = 1;
|
||||
if (!mpMainLayout->getAnim(animationIndex)->isPlaying()) {
|
||||
unk_0x78 = 5;
|
||||
setAPDraw();
|
||||
if (unk_0x91C[0] != 0) {
|
||||
mpMainLayout->getAnim(0xa)->initAnmFrame();
|
||||
} else {
|
||||
mpMainLayout->getAnim(0xb)->initAnmFrame();
|
||||
}
|
||||
if (unk_0x914 == 0) {
|
||||
mpMainLayout->FindPaneByName("N_AP1")->SetVisible(false);
|
||||
} else if (unk_0x914 == 1) {
|
||||
mpMainLayout->FindPaneByName("N_AP1")->SetVisible(true);
|
||||
}
|
||||
if (mAPScanList.count == unk_0x914 + 4) {
|
||||
mpMainLayout->FindPaneByName("N_AP6")->SetVisible(false);
|
||||
} else if (mAPScanList.count == unk_0x914 + 5) {
|
||||
mpMainLayout->FindPaneByName("N_AP6")->SetVisible(true);
|
||||
}
|
||||
mpMainLayout->FindPaneByName("N_AP0")->SetVisible(true);
|
||||
mpMainLayout->FindPaneByName("N_AP7")->SetVisible(true);
|
||||
if (!(mpMainLayout->getAnim(animationIndex)->isPlaying() & 0x07FFFFFF)) {
|
||||
unk_0x78 = 5;
|
||||
setAPDraw();
|
||||
if (unk_0x91C[0] != 0) {
|
||||
mpMainLayout->getAnim(0xa)->initAnmFrame();
|
||||
} else {
|
||||
mpMainLayout->getAnim(0xb)->initAnmFrame();
|
||||
}
|
||||
if (unk_0x914 == 0) {
|
||||
mpMainLayout->FindPaneByName("N_AP1")->SetVisible(false);
|
||||
} else if (unk_0x914 == 1) {
|
||||
mpMainLayout->FindPaneByName("N_AP1")->SetVisible(true);
|
||||
}
|
||||
if (mAPScanList.count == unk_0x914 + 4) {
|
||||
mpMainLayout->FindPaneByName("N_AP6")->SetVisible(false);
|
||||
} else if (mAPScanList.count == unk_0x914 + 5) {
|
||||
mpMainLayout->FindPaneByName("N_AP6")->SetVisible(true);
|
||||
}
|
||||
mpMainLayout->FindPaneByName("N_AP0")->SetVisible(true);
|
||||
mpMainLayout->FindPaneByName("N_AP7")->SetVisible(true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 7:
|
||||
unk_0xB9C = 1;
|
||||
if (!mpMainLayout->getAnim(unk_0x918)->isPlaying()) {
|
||||
updateScroll();
|
||||
unk_0x78 = 6;
|
||||
if (!(mpMainLayout->getAnim(unk_0x918)->isPlaying() & 0x07FFFFFF)) {
|
||||
updateScroll();
|
||||
unk_0x78 = 6;
|
||||
}
|
||||
break;
|
||||
case 8:
|
||||
@@ -2756,13 +2757,13 @@ namespace ipl {
|
||||
unk_0x91C[2] = 0;
|
||||
break;
|
||||
case 9:
|
||||
if (!mpMainLayout->getAnim(unk_0x918)->isPlaying()) {
|
||||
resetFuncMsgQ();
|
||||
unk_0x78 = 1;
|
||||
unk_0x918 = -1;
|
||||
mpPaneManager->init();
|
||||
mpMainLayout->getAnim(0x14)->initFrame();
|
||||
mpMainLayout->calc();
|
||||
if (!(mpMainLayout->getAnim(unk_0x918)->isPlaying() & 0x07FFFFFF)) {
|
||||
resetFuncMsgQ();
|
||||
unk_0x78 = 1;
|
||||
unk_0x918 = -1;
|
||||
mpPaneManager->init();
|
||||
mpMainLayout->getAnim(0x14)->initFrame();
|
||||
mpMainLayout->calc();
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -3582,15 +3583,17 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
if (HasUSBAPResult(&unk_0x91C[1])) {
|
||||
www::wiisetting::setFuncResult(unk_0x91C[1]);
|
||||
case 2: {
|
||||
volatile u8* result = &unk_0x91C[1];
|
||||
if (*result != 0) {
|
||||
www::wiisetting::setFuncResult(*result);
|
||||
unk_0x84 = 1;
|
||||
unk_0x91C[1] = 0;
|
||||
*result = 0;
|
||||
resetFuncMsgQ();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Setting::cancelUSBAP() {
|
||||
@@ -3745,13 +3748,13 @@ namespace ipl {
|
||||
layout::Animator* animation = mpWaitLayout->getAnim(0);
|
||||
animation->initFrame();
|
||||
animation->restart();
|
||||
mpWaitLayout->FindPaneByName("G_Wait")->SetVisible(true);
|
||||
mpWaitLayout->FindPaneByName("N_Wait")->SetVisible(true);
|
||||
snd::getSystem()->startSE("WIPL_SE_COPYING");
|
||||
}
|
||||
|
||||
void Setting::waitFinish() {
|
||||
mpWaitLayout->getAnim(0)->stop();
|
||||
mpWaitLayout->FindPaneByName("G_Wait")->SetVisible(false);
|
||||
mpWaitLayout->FindPaneByName("N_Wait")->SetVisible(false);
|
||||
snd::getSystem()->startSE("WIPL_SE_COPY_FINISH");
|
||||
}
|
||||
|
||||
@@ -3849,5 +3852,12 @@ namespace ipl {
|
||||
return mIsResetAcceptable;
|
||||
}
|
||||
|
||||
extern const wchar_t scNumber[10] = {
|
||||
L'0', L'1', L'2', L'3', L'4', L'5', L'6', L'7', L'8', L'9'
|
||||
};
|
||||
extern const wchar_t scNumber2[10] = {
|
||||
L'0', L'1', L'2', L'3', L'4', L'5', L'6', L'7', L'8', L'9'
|
||||
};
|
||||
|
||||
} // namespace scene
|
||||
} // namespace ipl
|
||||
|
||||
@@ -5,17 +5,22 @@
|
||||
static OSThread usbapThread;
|
||||
static u8 usbapStack[4096];
|
||||
static OSMessageQueue usbapMessageQ;
|
||||
static wchar_t usbapNickname[11];
|
||||
static wchar_t usbapNickname[12];
|
||||
static OSMessage registrationMessage;
|
||||
static void (*registrationCallback)(int);
|
||||
static s32 registrationMode;
|
||||
static u16 enabledChannels;
|
||||
static u8* scanBuffer;
|
||||
struct RegisteredAccessPoints {
|
||||
u8 count;
|
||||
u8 addresses[20][6];
|
||||
};
|
||||
static RegisteredAccessPoints* registeredAccessPoints;
|
||||
// Registration buffer: a count byte followed by twenty MAC addresses.
|
||||
static u8* registeredAccessPoints;
|
||||
|
||||
static inline int FindRegisteredAddress(const u8* registered, const u8* address) {
|
||||
int index;
|
||||
for (index = 0; index < 20; ++index) {
|
||||
if (memcmp(address, ®istered[index * WD_BSSID_LENGTH + 1], WD_BSSID_LENGTH) == 0) break;
|
||||
}
|
||||
return index;
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
static void* DoRegistration(void*);
|
||||
@@ -26,7 +31,7 @@ extern "C" BOOL USBAPStartRegistration(void*, void*, u32 priority, u32 mode,
|
||||
u16* buffer, u8* accessPoints) {
|
||||
BOOL interrupts = OSDisableInterrupts();
|
||||
scanBuffer = (u8*)buffer;
|
||||
registeredAccessPoints = (RegisteredAccessPoints*)accessPoints;
|
||||
registeredAccessPoints = accessPoints;
|
||||
if (usbapThread.state != 0 && !OSIsThreadTerminated(&usbapThread)) {
|
||||
OSRestoreInterrupts(interrupts);
|
||||
return FALSE;
|
||||
@@ -78,8 +83,13 @@ struct USBAPScan {
|
||||
};
|
||||
|
||||
static void* DoRegistration(void*) {
|
||||
BOOL success;
|
||||
int failed, found, index;
|
||||
s32 count;
|
||||
WDBssDesc* accessPoint;
|
||||
int result;
|
||||
int address;
|
||||
const u8* registered;
|
||||
BOOL success;
|
||||
if (WDCheckEnableChannel(&enabledChannels) != 0) {
|
||||
success = FALSE;
|
||||
if (registrationCallback != NULL) {
|
||||
@@ -116,25 +126,20 @@ static void* DoRegistration(void*) {
|
||||
memset(scan.ssidMask, 0, 8);
|
||||
memset(&scan.ssidMask[8], 255, 24);
|
||||
if (WDScanOnce(scanBuffer, 2048, (WDScanParam*)&scan) == 0) {
|
||||
u16 count = *(u16*)scanBuffer;
|
||||
WDBssDesc* accessPoint = (WDBssDesc*)&scanBuffer[2];
|
||||
int found = 0;
|
||||
int failed = 0;
|
||||
for (int index = 0; index < count; ++index) {
|
||||
count = *(u16*)scanBuffer;
|
||||
accessPoint = (WDBssDesc*)&scanBuffer[2];
|
||||
found = 0;
|
||||
failed = 0;
|
||||
for (index = 0; index < count; ++index) {
|
||||
if (accessPoint->ssidLength == 32 && strncmp((char*)accessPoint->ssid, "NWCUSBAP", 8) == 0) {
|
||||
RegisteredAccessPoints* registered = registeredAccessPoints;
|
||||
int address;
|
||||
for (address = 0; address < 20; ++address) {
|
||||
if (memcmp(accessPoint->bssid, registered->addresses[address], 6) == 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
registered = registeredAccessPoints;
|
||||
address = FindRegisteredAddress(registered, accessPoint->bssid);
|
||||
if (address == 20) {
|
||||
USBAPSSID* response = (USBAPSSID*)accessPoint->ssid;
|
||||
if (response->flags == 1) {
|
||||
memcpy(registeredAccessPoints->addresses[registeredAccessPoints->count], accessPoint->bssid, 6);
|
||||
memcpy(®isteredAccessPoints[registeredAccessPoints[0] * WD_BSSID_LENGTH + 1], accessPoint->bssid, WD_BSSID_LENGTH);
|
||||
found = 1;
|
||||
++registeredAccessPoints->count;
|
||||
++registeredAccessPoints[0];
|
||||
} else if (response->flags == 0) {
|
||||
failed = 1;
|
||||
}
|
||||
|
||||
@@ -10,13 +10,6 @@
|
||||
#undef IPL_SOUND_RECT_OUT_OF_LINE
|
||||
#undef AutoLock
|
||||
|
||||
extern "C" void __ct__Q23EGG20SimpleAudioMgrWithFxFv();
|
||||
extern "C" void __dt__Q34nw4r3snd11SoundHandleFv();
|
||||
extern "C" void __dl__FPv();
|
||||
extern "C" {
|
||||
void __destroy_arr();
|
||||
void __dt__Q33ipl3snd10tagSSeInfoFv();
|
||||
}
|
||||
extern "C" void _seBlk__Q23ipl3snd();
|
||||
extern "C" nw4r::snd::SoundHandle* _mainBGMHandle__Q23ipl3snd;
|
||||
extern "C" const f32 scSoundZeroF;
|
||||
@@ -24,19 +17,9 @@ extern "C" const f32 scSoundOneF;
|
||||
extern "C" const f32 scSoundTwoF;
|
||||
extern "C" const f32 scSoundThirtyF;
|
||||
extern "C" const f32 scSoundSixtyF;
|
||||
extern "C" {
|
||||
void _savegpr_29();
|
||||
void pauseOffSE__Q33ipl3snd6SystemFv();
|
||||
void pauseOnSE__Q33ipl3snd6SystemFv();
|
||||
}
|
||||
extern "C" void _restgpr_29();
|
||||
extern "C" void _savegpr_24();
|
||||
extern "C" void _restgpr_24();
|
||||
extern "C" void _savegpr_26();
|
||||
extern "C" void _restgpr_26();
|
||||
extern "C" void sBannerSoundPlayer__Q23ipl3snd();
|
||||
extern "C" void pause__17BannerSoundPlayerFb();
|
||||
extern "C" void initFx__Q33ipl3snd6SystemFv();
|
||||
extern "C" void GetInstance__Q44nw4r3snd6detail9AxManagerFv();
|
||||
extern "C" void ClearEffect__Q44nw4r3snd6detail9AxManagerFQ34nw4r3snd6AuxBusi();
|
||||
extern "C" void stop__17BannerSoundPlayerFUl();
|
||||
@@ -45,9 +28,8 @@ extern "C" void SetMasterVolume__Q44nw4r3snd6detail9AxManagerFfi();
|
||||
|
||||
namespace ipl {
|
||||
namespace snd {
|
||||
extern "C" void __vt__Q33ipl3snd6System();
|
||||
|
||||
System::System() {
|
||||
inline System::System() {
|
||||
}
|
||||
|
||||
struct tagSSeInfo {
|
||||
@@ -59,39 +41,30 @@ namespace ipl {
|
||||
u32 id;
|
||||
};
|
||||
|
||||
tagSSeInfo::tagSSeInfo() {
|
||||
inline tagSSeInfo::tagSSeInfo() {
|
||||
}
|
||||
|
||||
BOOL m_isLocked;
|
||||
struct tagSBgmInfo {
|
||||
nw4r::snd::SoundHandle handle;
|
||||
tagSBgmInfo();
|
||||
~tagSBgmInfo();
|
||||
};
|
||||
|
||||
tagSBgmInfo::tagSBgmInfo() {
|
||||
inline tagSBgmInfo::tagSBgmInfo() {
|
||||
}
|
||||
|
||||
tagSSeInfo::~tagSSeInfo() {
|
||||
inline tagSSeInfo::~tagSSeInfo() {
|
||||
}
|
||||
|
||||
tagSBgmInfo::~tagSBgmInfo() {
|
||||
inline tagSBgmInfo::~tagSBgmInfo() {
|
||||
}
|
||||
|
||||
extern nw4r::snd::SoundHandle _bgmBlk;
|
||||
extern tagSSeInfo _seBlk[16];
|
||||
extern nw4r::snd::SoundHandle* _mainBGMHandle;
|
||||
|
||||
extern "C" asm void __dt__Q33ipl3snd6UnkClsFv() {
|
||||
nofralloc
|
||||
lis r3, _seBlk__Q23ipl3snd@ha
|
||||
lis r4, __dt__Q33ipl3snd10tagSSeInfoFv@ha
|
||||
addi r3, r3, _seBlk__Q23ipl3snd@l
|
||||
li r5, 0xc
|
||||
addi r4, r4, __dt__Q33ipl3snd10tagSSeInfoFv@l
|
||||
li r6, 0x10
|
||||
b __destroy_arr
|
||||
}
|
||||
tagSSeInfo _seBlk[16];
|
||||
tagSBgmInfo _bgmBlk;
|
||||
System sSystem;
|
||||
BannerSoundPlayer sBannerSoundPlayer;
|
||||
nw4r::snd::SoundHandle* _mainBGMHandle;
|
||||
BOOL m_isLocked;
|
||||
|
||||
static const nw4r::snd::FxReverbHi::ReverbHiParam reverbHiParam = {
|
||||
0.0f,
|
||||
@@ -102,183 +75,6 @@ namespace ipl {
|
||||
1.0f,
|
||||
};
|
||||
|
||||
void System::stopBGM(int frames) {
|
||||
if (_mainBGMHandle && _mainBGMHandle->IsAttachedSound()) {
|
||||
_mainBGMHandle->Stop(frames);
|
||||
}
|
||||
}
|
||||
|
||||
void System::muteOnBGM(int frames) {
|
||||
nw4r::snd::SoundHandle* handle = _mainBGMHandle;
|
||||
if (handle && handle->IsAttachedSound()) handle->SetVolume(0.0f, frames);
|
||||
}
|
||||
|
||||
void System::muteOffBGM(int frames) {
|
||||
nw4r::snd::SoundHandle* handle = _mainBGMHandle;
|
||||
if (handle && handle->IsAttachedSound()) handle->SetVolume(1.0f, frames);
|
||||
}
|
||||
|
||||
void System::pauseOnSE() {
|
||||
for (int index = 0; index < 16; ++index) {
|
||||
if (_seBlk[index].handle.IsAttachedSound()) {
|
||||
_seBlk[index].handle.Pause(true, 5);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void System::pauseOffSE() {
|
||||
for (int index = 0; index < 16; ++index) {
|
||||
if (_seBlk[index].handle.IsAttachedSound()) {
|
||||
_seBlk[index].handle.Pause(false, 5);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void System::pauseOnBGM() {
|
||||
if (_mainBGMHandle) {
|
||||
if (_mainBGMHandle->IsAttachedSound()) _mainBGMHandle->Pause(true, 5);
|
||||
pauseOnSE();
|
||||
sBannerSoundPlayer.pause(true);
|
||||
nw4r::snd::detail::AxManager::GetInstance().ClearEffect(nw4r::snd::AUX_A, 250);
|
||||
nw4r::snd::detail::AxManager::GetInstance().ClearEffect(nw4r::snd::AUX_B, 250);
|
||||
nw4r::snd::detail::AxManager::GetInstance().ClearEffect(nw4r::snd::AUX_C, 250);
|
||||
}
|
||||
}
|
||||
|
||||
void System::pauseOffBGM() {
|
||||
if (_mainBGMHandle) {
|
||||
initFx();
|
||||
if (_mainBGMHandle->IsAttachedSound()) _mainBGMHandle->Pause(false, 5);
|
||||
pauseOffSE();
|
||||
sBannerSoundPlayer.pause(false);
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" asm void stopSE__Q33ipl3snd6SystemFPQ34nw4r3snd11SoundHandlei() {
|
||||
nofralloc
|
||||
stwu r1, -0x30(r1)
|
||||
mflr r0
|
||||
stw r0, 0x34(r1)
|
||||
addi r11, r1, 0x30
|
||||
bl _savegpr_24
|
||||
cmpwi r4, 0
|
||||
mr r24, r4
|
||||
mr r25, r5
|
||||
beq stopSE_done
|
||||
lwz r0, 0(r4)
|
||||
cmpwi r0, 0
|
||||
beq stopSE_done
|
||||
li r26, 0
|
||||
lis r3, 1
|
||||
lis r28, _seBlk__Q23ipl3snd@ha
|
||||
li r31, 0
|
||||
mr r29, r26
|
||||
subi r30, r3, 1
|
||||
addi r28, r28, _seBlk__Q23ipl3snd@l
|
||||
stopSE_loop:
|
||||
add r27, r28, r31
|
||||
cmplw r24, r27
|
||||
bne stopSE_next
|
||||
lwz r3, 0(r27)
|
||||
cmpwi r3, 0
|
||||
beq stopSE_clear
|
||||
lwz r12, 0(r3)
|
||||
mr r4, r25
|
||||
lwz r12, 0x18(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
stopSE_clear:
|
||||
stw r29, 0x4(r27)
|
||||
stw r30, 0x8(r27)
|
||||
stopSE_next:
|
||||
addi r26, r26, 1
|
||||
addi r31, r31, 0xc
|
||||
cmpwi r26, 0x10
|
||||
blt stopSE_loop
|
||||
stopSE_done:
|
||||
addi r11, r1, 0x30
|
||||
bl _restgpr_24
|
||||
lwz r0, 0x34(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x30
|
||||
blr
|
||||
}
|
||||
|
||||
extern "C" asm void resetAllSound__Q33ipl3snd6SystemFv() {
|
||||
nofralloc
|
||||
stwu r1, -0x20(r1)
|
||||
mflr r0
|
||||
stw r0, 0x24(r1)
|
||||
addi r11, r1, 0x20
|
||||
bl _savegpr_26
|
||||
li r26, 0
|
||||
lis r28, _seBlk__Q23ipl3snd@ha
|
||||
lis r3, 1
|
||||
li r31, 0
|
||||
mr r29, r26
|
||||
addi r28, r28, _seBlk__Q23ipl3snd@l
|
||||
subi r30, r3, 1
|
||||
resetAllSound_loop:
|
||||
lwzx r3, r28, r31
|
||||
add r27, r28, r31
|
||||
cmpwi r3, 0
|
||||
beq resetAllSound_clear
|
||||
lwz r12, 0(r3)
|
||||
li r4, 0
|
||||
lwz r12, 0x18(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
resetAllSound_clear:
|
||||
stw r29, 0x4(r27)
|
||||
addi r26, r26, 1
|
||||
cmpwi r26, 0x10
|
||||
addi r31, r31, 0xc
|
||||
stw r30, 0x8(r27)
|
||||
blt resetAllSound_loop
|
||||
lwz r3, _mainBGMHandle__Q23ipl3snd
|
||||
cmpwi r3, 0
|
||||
beq resetAllSound_banner
|
||||
lwz r0, 0(r3)
|
||||
cmpwi r0, 0
|
||||
beq resetAllSound_banner
|
||||
lwz r3, 0(r3)
|
||||
li r4, 0
|
||||
lwz r12, 0(r3)
|
||||
lwz r12, 0x18(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
resetAllSound_banner:
|
||||
lis r31, sBannerSoundPlayer__Q23ipl3snd@ha
|
||||
li r4, 0
|
||||
addi r3, r31, sBannerSoundPlayer__Q23ipl3snd@l
|
||||
bl stop__17BannerSoundPlayerFUl
|
||||
bl GetInstance__Q44nw4r3snd6detail9AxManagerFv
|
||||
li r4, 0
|
||||
li r5, 0
|
||||
bl ClearEffect__Q44nw4r3snd6detail9AxManagerFQ34nw4r3snd6AuxBusi
|
||||
bl GetInstance__Q44nw4r3snd6detail9AxManagerFv
|
||||
li r4, 1
|
||||
li r5, 0
|
||||
bl ClearEffect__Q44nw4r3snd6detail9AxManagerFQ34nw4r3snd6AuxBusi
|
||||
bl GetInstance__Q44nw4r3snd6detail9AxManagerFv
|
||||
li r4, 2
|
||||
li r5, 0
|
||||
bl ClearEffect__Q44nw4r3snd6detail9AxManagerFQ34nw4r3snd6AuxBusi
|
||||
bl GetInstance__Q44nw4r3snd6detail9AxManagerFv
|
||||
lfs f1, scSoundZeroF
|
||||
li r4, 0
|
||||
bl SetMasterVolume__Q44nw4r3snd6detail9AxManagerFfi
|
||||
lfs f1, scSoundZeroF
|
||||
addi r3, r31, sBannerSoundPlayer__Q23ipl3snd@l
|
||||
bl setMasterVolume__17BannerSoundPlayerFf
|
||||
addi r11, r1, 0x20
|
||||
bl _restgpr_26
|
||||
lwz r0, 0x24(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x20
|
||||
blr
|
||||
}
|
||||
|
||||
void System::shutup(BOOL shutUpDMA) {
|
||||
if (m_isLocked == shutUpDMA) {
|
||||
return;
|
||||
@@ -315,32 +111,10 @@ namespace ipl {
|
||||
sBannerSoundPlayer.setMasterVolume(0.9f);
|
||||
}
|
||||
|
||||
extern "C" const f32 scSoundZeroF = 0.0f;
|
||||
|
||||
void System::stopBannerSound(int unk) {
|
||||
sBannerSoundPlayer.stop(unk);
|
||||
}
|
||||
|
||||
BOOL System::checkTmpSoundFile(void* data, u32 size) {
|
||||
return sBannerSoundPlayer.checkData(data, size, false);
|
||||
}
|
||||
|
||||
void System::initFx() {
|
||||
setFxReverbHi(nw4r::snd::AUX_A, &reverbHiParam);
|
||||
}
|
||||
|
||||
#pragma force_active on
|
||||
|
||||
}
|
||||
}
|
||||
namespace nw4r {
|
||||
namespace snd {
|
||||
SoundHandle::SoundHandle() : mSound(NULL) {}
|
||||
}
|
||||
}
|
||||
namespace ipl {
|
||||
namespace snd {
|
||||
|
||||
void System::calc() {
|
||||
EGG::SimpleAudioMgr::calc();
|
||||
sBannerSoundPlayer.calc();
|
||||
@@ -351,9 +125,9 @@ namespace snd {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
EGG::ArcPlayer::startSound(&_bgmBlk, bgmName);
|
||||
_mainBGMHandle = &_bgmBlk;
|
||||
return &_bgmBlk;
|
||||
EGG::ArcPlayer::startSound(&_bgmBlk.handle, bgmName);
|
||||
_mainBGMHandle = &_bgmBlk.handle;
|
||||
return &_bgmBlk.handle;
|
||||
}
|
||||
|
||||
nw4r::snd::SoundHandle* System::startSE(const char* sndName) {
|
||||
@@ -422,7 +196,7 @@ namespace snd {
|
||||
}
|
||||
|
||||
block->handle.Stop(0);
|
||||
mSoundArchivePlayer.StartSound(&block->handle, sndIndex);
|
||||
EGG::ArcPlayer::startSound(&block->handle, sndIndex);
|
||||
block->id = sndIndex;
|
||||
return (int)block;
|
||||
}
|
||||
@@ -520,6 +294,27 @@ namespace snd {
|
||||
return (int)block;
|
||||
}
|
||||
|
||||
void System::stopBGM(int frames) {
|
||||
if (_mainBGMHandle && _mainBGMHandle->IsAttachedSound()) {
|
||||
_mainBGMHandle->Stop(frames);
|
||||
}
|
||||
}
|
||||
|
||||
void System::stopSE(nw4r::snd::SoundHandle* handle, int frames) {
|
||||
tagSSeInfo* block;
|
||||
int i;
|
||||
if (handle != NULL && handle->IsAttachedSound()) {
|
||||
for (i = 0; i < 16; i++) {
|
||||
block = &_seBlk[i];
|
||||
if (handle == &block->handle) {
|
||||
block->handle.Stop(frames);
|
||||
block->name = NULL;
|
||||
block->id = 0xFFFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void System::stopAllSound(int unk) {
|
||||
int frame;
|
||||
tagSSeInfo* block;
|
||||
@@ -543,6 +338,137 @@ namespace snd {
|
||||
nw4r::snd::detail::AxManager::GetInstance().ClearEffect(nw4r::snd::AUX_C, frame);
|
||||
}
|
||||
|
||||
extern "C" asm void resetAllSound__Q33ipl3snd6SystemFv() {
|
||||
nofralloc
|
||||
stwu r1, -0x20(r1)
|
||||
mflr r0
|
||||
stw r0, 0x24(r1)
|
||||
addi r11, r1, 0x20
|
||||
bl _savegpr_26
|
||||
li r26, 0
|
||||
lis r28, _seBlk__Q23ipl3snd@ha
|
||||
lis r3, 1
|
||||
li r31, 0
|
||||
mr r29, r26
|
||||
addi r28, r28, _seBlk__Q23ipl3snd@l
|
||||
subi r30, r3, 1
|
||||
resetAllSound_loop:
|
||||
lwzx r3, r28, r31
|
||||
add r27, r28, r31
|
||||
cmpwi r3, 0
|
||||
beq resetAllSound_clear
|
||||
lwz r12, 0(r3)
|
||||
li r4, 0
|
||||
lwz r12, 0x18(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
resetAllSound_clear:
|
||||
stw r29, 0x4(r27)
|
||||
addi r26, r26, 1
|
||||
cmpwi r26, 0x10
|
||||
addi r31, r31, 0xc
|
||||
stw r30, 0x8(r27)
|
||||
blt resetAllSound_loop
|
||||
lwz r3, _mainBGMHandle__Q23ipl3snd
|
||||
cmpwi r3, 0
|
||||
beq resetAllSound_banner
|
||||
lwz r0, 0(r3)
|
||||
cmpwi r0, 0
|
||||
beq resetAllSound_banner
|
||||
lwz r3, 0(r3)
|
||||
li r4, 0
|
||||
lwz r12, 0(r3)
|
||||
lwz r12, 0x18(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
resetAllSound_banner:
|
||||
lis r31, sBannerSoundPlayer__Q23ipl3snd@ha
|
||||
li r4, 0
|
||||
addi r3, r31, sBannerSoundPlayer__Q23ipl3snd@l
|
||||
bl stop__17BannerSoundPlayerFUl
|
||||
bl GetInstance__Q44nw4r3snd6detail9AxManagerFv
|
||||
li r4, 0
|
||||
li r5, 0
|
||||
bl ClearEffect__Q44nw4r3snd6detail9AxManagerFQ34nw4r3snd6AuxBusi
|
||||
bl GetInstance__Q44nw4r3snd6detail9AxManagerFv
|
||||
li r4, 1
|
||||
li r5, 0
|
||||
bl ClearEffect__Q44nw4r3snd6detail9AxManagerFQ34nw4r3snd6AuxBusi
|
||||
bl GetInstance__Q44nw4r3snd6detail9AxManagerFv
|
||||
li r4, 2
|
||||
li r5, 0
|
||||
bl ClearEffect__Q44nw4r3snd6detail9AxManagerFQ34nw4r3snd6AuxBusi
|
||||
bl GetInstance__Q44nw4r3snd6detail9AxManagerFv
|
||||
lfs f1, scSoundZeroF
|
||||
li r4, 0
|
||||
bl SetMasterVolume__Q44nw4r3snd6detail9AxManagerFfi
|
||||
lfs f1, scSoundZeroF
|
||||
addi r3, r31, sBannerSoundPlayer__Q23ipl3snd@l
|
||||
bl setMasterVolume__17BannerSoundPlayerFf
|
||||
addi r11, r1, 0x20
|
||||
bl _restgpr_26
|
||||
lwz r0, 0x24(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x20
|
||||
blr
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
namespace nw4r {
|
||||
namespace snd {
|
||||
inline SoundHandle::SoundHandle() : mSound(NULL) {}
|
||||
}
|
||||
}
|
||||
namespace ipl {
|
||||
namespace snd {
|
||||
|
||||
void System::muteOnBGM(int frames) {
|
||||
nw4r::snd::SoundHandle* handle = _mainBGMHandle;
|
||||
if (handle && handle->IsAttachedSound()) handle->SetVolume(scSoundZeroF, frames);
|
||||
}
|
||||
|
||||
void System::muteOffBGM(int frames) {
|
||||
nw4r::snd::SoundHandle* handle = _mainBGMHandle;
|
||||
if (handle && handle->IsAttachedSound()) handle->SetVolume(scSoundOneF, frames);
|
||||
}
|
||||
|
||||
void System::pauseOnBGM() {
|
||||
if (_mainBGMHandle) {
|
||||
if (_mainBGMHandle->IsAttachedSound()) _mainBGMHandle->Pause(true, 5);
|
||||
pauseOnSE();
|
||||
sBannerSoundPlayer.pause(true);
|
||||
nw4r::snd::detail::AxManager::GetInstance().ClearEffect(nw4r::snd::AUX_A, 250);
|
||||
nw4r::snd::detail::AxManager::GetInstance().ClearEffect(nw4r::snd::AUX_B, 250);
|
||||
nw4r::snd::detail::AxManager::GetInstance().ClearEffect(nw4r::snd::AUX_C, 250);
|
||||
}
|
||||
}
|
||||
|
||||
void System::pauseOffBGM() {
|
||||
if (_mainBGMHandle) {
|
||||
initFx();
|
||||
if (_mainBGMHandle->IsAttachedSound()) _mainBGMHandle->Pause(false, 5);
|
||||
pauseOffSE();
|
||||
sBannerSoundPlayer.pause(false);
|
||||
}
|
||||
}
|
||||
|
||||
void System::pauseOnSE() {
|
||||
for (int index = 0; index < 16; ++index) {
|
||||
if (_seBlk[index].handle.IsAttachedSound()) {
|
||||
_seBlk[index].handle.Pause(true, 5);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void System::pauseOffSE() {
|
||||
for (int index = 0; index < 16; ++index) {
|
||||
if (_seBlk[index].handle.IsAttachedSound()) {
|
||||
_seBlk[index].handle.Pause(false, 5);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void System::setOutputMode(EAudioOutputMode mode) {
|
||||
nw4r::snd::OutputMode outputMode;
|
||||
|
||||
@@ -624,6 +550,14 @@ namespace snd {
|
||||
return sBannerSoundPlayer.start(data, size);
|
||||
}
|
||||
|
||||
void System::stopBannerSound(int unk) {
|
||||
sBannerSoundPlayer.stop(unk);
|
||||
}
|
||||
|
||||
BOOL System::checkTmpSoundFile(void* data, u32 size) {
|
||||
return sBannerSoundPlayer.checkData(data, size, false);
|
||||
}
|
||||
|
||||
long System::clipGELT_S32(long value, long lo, long hi) {
|
||||
long range = hi - lo;
|
||||
|
||||
@@ -642,5 +576,10 @@ namespace snd {
|
||||
|
||||
return value;
|
||||
}
|
||||
extern "C" const f32 scSoundZeroF = 0.0f;
|
||||
extern "C" const f32 scSoundTwoF = 2.0f;
|
||||
extern "C" const f32 scSoundOneF = 1.0f;
|
||||
extern "C" const f32 scSoundThirtyF = 30.0f;
|
||||
extern "C" const f32 scSoundSixtyF = 60.0f;
|
||||
} // namespace snd
|
||||
} // namespace ipl
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#define IPL_KEYBOARD_MEMO_GET_SAVE_DATA
|
||||
#define IPL_SOUND_RECT_OUT_OF_LINE
|
||||
#include "system/iplKeyboard.h"
|
||||
|
||||
@@ -218,9 +219,7 @@ namespace ipl {
|
||||
u8* usedSystemDict = System::getZiDicData(i);
|
||||
u8* usedOemDict = System::getZiDicData(oemIndex);
|
||||
|
||||
if (usedSystemDict == NULL) {
|
||||
usedSystemDict = systemDict;
|
||||
}
|
||||
usedSystemDict = usedSystemDict != NULL ? usedSystemDict : systemDict;
|
||||
if (usedOemDict == NULL) {
|
||||
usedOemDict = oemDict;
|
||||
}
|
||||
@@ -745,3 +744,7 @@ namespace ipl {
|
||||
}
|
||||
} // namespace keyboard
|
||||
} // namespace ipl
|
||||
|
||||
textinput::extend::savedata::MemoSetting textinput::extend::memo::Manager::getSaveData() {
|
||||
return mMemoSetting;
|
||||
}
|
||||
|
||||
@@ -196,45 +196,12 @@ namespace ipl {
|
||||
smArg.mbFontResLoaded = true;
|
||||
}
|
||||
|
||||
#ifdef __MWERKS__
|
||||
asm void System::constructSND_(register void* work) {
|
||||
nofralloc
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
li r4, 0x20
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
lis r31, smArg__Q23ipl6System@ha
|
||||
addi r31, r31, smArg__Q23ipl6System@l
|
||||
stw r30, 0x8(r1)
|
||||
lwz r3, 0x14(r31)
|
||||
lwz r5, 0xf4(r31)
|
||||
lwz r12, 0(r3)
|
||||
lwz r30, 0xa0(r5)
|
||||
lwz r12, 0x24(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
lwz r5, 0x14(r31)
|
||||
lis r7, sSystem__Q23ipl3snd@ha
|
||||
mr r6, r3
|
||||
mr r4, r30
|
||||
addi r3, r7, sSystem__Q23ipl3snd@l
|
||||
bl initOnMemory__Q33ipl3snd6SystemFPCvPQ23EGG4HeapUl
|
||||
li r0, 1
|
||||
stb r0, 0x2b7(r31)
|
||||
lwz r0, 0x14(r1)
|
||||
lwz r31, 0xc(r1)
|
||||
lwz r30, 0x8(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
}
|
||||
#else
|
||||
void System::constructSND_(void* work) {
|
||||
snd::getSystem()->initOnMemory(smArg.mResources.file[Arg::SOUND]->getBuffer(), getSoundHeap(), getSoundHeap()->getAllocatableSize(32));
|
||||
const void* buffer = smArg.mResources.file[Arg::SOUND]->getBuffer();
|
||||
u32 size = getSoundHeap()->getAllocatableSize(32);
|
||||
snd::getSystem()->initOnMemory(buffer, getSoundHeap(), size);
|
||||
smArg.mbSndResLoaded = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
void* System::loadZiDIC_(void* arcData, const char* fileName) {
|
||||
void* buffer = NULL;
|
||||
|
||||
98
tools/decomp-assist/data-d1.attempts.md
Normal file
98
tools/decomp-assist/data-d1.attempts.md
Normal file
@@ -0,0 +1,98 @@
|
||||
# Data lane d1
|
||||
|
||||
Base eecf16f0, fetched origin before inspection. Owned sources agree with origin/main. Initial full quick gate PASS, SHA1 26116613f624061ba99c8d1a299aaa6efa85670d, zero regressions.
|
||||
|
||||
| Unit | Initial matched data / total | Initial exact functions | Initial matched code |
|
||||
|---|---|---|---|
|
||||
| OSUtf | 0 / 48704 | 4 / 4 | 568 / 568 |
|
||||
| iplKeyboard | 8 / 1184 | 30 / 32 | 4680 / 6024 |
|
||||
| iplController | 80 / 696 | 84 / 84 | 5708 / 5708 |
|
||||
| d_nhttp | 16 / 720 | 22 / 22 | 3180 / 3180 |
|
||||
|
||||
All four pool_diff checks identical. Inspected both ELF symbol tables, all owned non-text section bytes, and relocation records with pyelftools.
|
||||
|
||||
## OSUtf
|
||||
|
||||
The 93 typed u16 lookup pages exactly match. The only 372 differing bytes are the 93 non-null pointers in UcsSjisTable. Original extraction retained absolute DOL addresses without relocation records because symbols.txt marks the pointer table noreloc. Built C table has 93 R_PPC_ADDR32 relocations to the correct UcsXX pages. First original values at offsets 0xba40, 0xba4c, 0xba50 are 0x81674228, 0x81674428, 0x81674628, precisely Ucs00, Ucs03, Ucs04 in symbols.txt. Remove noreloc only from the pointer table and describe data:4byte. Keep the u16 pages noreloc. No symbol address, size, section boundary, source object, or total byte count changes. Regenerated extraction now reports .data 100%, matched_data 48704/48704.
|
||||
|
||||
## iplController
|
||||
|
||||
All 616 original .data bytes and all 133 relocation records match built prefix exactly. All other sections match. Built .data is 752 bytes: Base vtable is 140 bytes instead of original extraction's 144, followed by a 140-byte weak Interface vtable at 0x264. Original trailing four bytes are zero without relocations, not a virtual slot. Existing original vtables and member-pointer objects have identical typed source and relocations. Extra weak abstract-base vtable is linker discarded in the already Matching unit, and current DOL hash proves linked data. No dummy padding, forced placement, or removing real virtual functions is justified.
|
||||
|
||||
## d_nhttp
|
||||
|
||||
Built .data 701 bytes is identical to original 704-byte prefix; last three extraction bytes are zero linker alignment. Built .sdata 6 bytes is identical to original 8-byte prefix; last two bytes zero alignment, and this section already scores 100%. The only relocation is __NHTTPVersion to first version string at offset zero on both sides. .sbss 8 bytes exact. No missing table or object. Changing array counts or adding padding would violate task policy. Already Matching DOL proves these linked bytes.
|
||||
|
||||
## iplKeyboard
|
||||
|
||||
Built .data 1161 bytes is byte-identical to original 1168-byte prefix. Last seven extraction bytes are zero alignment. Built .sdata 6 bytes is identical to original 8-byte prefix, with two zero alignment bytes. .sdata2 exact. All 85 .data relocation offsets and target names match; twelve create switch-table addends differ by exactly four bytes because create has 317 versus 318 instructions. Other data discrepancy is coarse original string symbols versus individual compiler literals. Do not shrink symbols or alter ownership to hide that. Investigate create source variations for switch-table instruction addresses.
|
||||
|
||||
Clean full four-unit gate PASS after OSUtf metadata correction; zero regressions, exact counts 4/30/84/22 unchanged, global matched data 93.05085 -> 95.70837. DOL hash correct.
|
||||
|
||||
Keyboard create attempt 1: separate ArcResourceLink declaration/assignment and omit value-initialization parentheses. Output unchanged, 317/318 instructions, objdiff 94.18239%. Reverted.
|
||||
|
||||
Keyboard create attempt 2: obtain the archive buffer directly at ArcResourceLink::Set instead of extending its lifetime across allocation. 317/318 instructions, 93.03459% objdiff, exact counts unchanged. Reverted.
|
||||
|
||||
Keyboard create attempt 3: separate allocator declaration/assignment and declare OEM dictionary before system dictionary. 317/318 instructions, 94.22956% objdiff, exact counts unchanged. Changed loop register assignment but did not recover the missing instruction or switch-table addends. Reverted; fuzzy gain alone is not accepted. Remaining create is 94.18239%, with allocation register lifetimes, loop registers, and one-instruction size discrepancy. Three distinct source attempts complete.
|
||||
|
||||
Keyboard getSaveData attempt 1: under a macro defined only by iplKeyboard.cpp, declare the existing virtual getter out of line, then implement the real member as `return mMemoSetting`. This emits the real function already present in the original object, without forcing references or changing any vtable slot. ctxdiff 18/18 instructions, diffs 0; exact-name objdiff 100%. Unit exact functions 30 -> 31 and matched code 4680 -> 4752. No new assembly. Other header consumers retain their existing inline definition. Stop iteration on this function because it is exact.
|
||||
|
||||
Final upstream check: origin/main advanced to 9eb08c48 while this leaf was running. None of the four owned units or the guarded getter header changed between eecf16f0 and current origin/main. No rebase or cross-worktree operations performed.
|
||||
|
||||
Data-lane audit: OSUtf has no unresolved section; all functions exact. Controller has no unresolved function, no byte or relocation difference in original section ranges, and only the linker-discarded weak Interface table beyond them. NHTTP has no unresolved function and only final zero alignment bytes in .data. Keyboard has exactly one open function, create, with three distinct source attempts above; getter is now exact. No additional non-text sections, missing statics, initializer differences, or pointer-table differences were found in these four original objects. Section ownership and symbol sizes remain unchanged throughout.
|
||||
|
||||
## Final verification
|
||||
|
||||
Clean non-quick four-unit gate PASS. Full build ok; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d; regressions 0; forbidden patterns 0; readability warnings 0. Fresh pool_diff checks all identical. Fresh getter ctxdiff 18/18 instructions, diffs 0. Final exact counts OSUtf 4/4, keyboard 31/32, controller 84/84, NHTTP 22/22. Final matched data OSUtf 48704/48704, keyboard 8/1184, controller 80/696, NHTTP 16/720. Final matched code OSUtf 568/568, keyboard 4752/6024, controller 5708/5708, NHTTP 3180/3180. The gate passes but the all-data-100% objective is not met for the latter three units; no claim of completion for those sections. All remaining genuine unmatched functions have three distinct attempts recorded. Final full gate output is /tmp/data-d1.final-gate.txt.
|
||||
|
||||
# Round 2, after #730
|
||||
|
||||
Fresh leaf HEAD bcb2ac0e equals fetched origin/main at start. Initial quick three-unit gate PASS, DOL SHA1 correct, zero regressions. Keyboard data 8/1184, exact 31/32, code 4752/6024; controller data 80/696, exact 84/84, code 5708/5708; NHTTP data 16/720, exact 22/22, code 3180/3180. All three pool_diff checks identical. Rechecked ELF bytes, nm, objdump symbol tables and relocations. Prior round's byte/relocation findings remain reproducible.
|
||||
|
||||
Inspect the installed objdiff 3.4.5 data comparison algorithm to distinguish relocation mismatches from legal linker tail alignment; do not alter comparison settings or tool code to hide mismatches. Investigate source changes and extraction metadata only when supported by byte/relocation evidence.
|
||||
|
||||
Round 2 keyboard create attempt 1: replace the second loop's parallel OEM induction variable with the meaningful expression `i + EZTX_LANG_MAX`. Objdiff create 94.50944%, 313/318 instructions, no exact function loss. Compiler strength-reduces both indices into one byte offset and removes five instructions instead of recovering the target's independently maintained OEM index. Not accepted.
|
||||
|
||||
Objdiff 3.4.5 diff_data_section compares bytes up to maximum data symbol extent and only uses raw byte match percentage when every original relocation matches. This explains keyboard .data's 25% despite identical bytes: create jump-table relocations fail. The final keyboard data string ends at 1161 on both sides, so those seven section tail bytes do not obstruct .data matching. NHTTP original last coarse blob includes tail alignment and extends to 704 while built last literal ends at 701, so its 99.786476% score is the byte ratio 2*701/(704+701). Controller's extra weak Interface table extends built symbol extent to 752 against original 616. These are specific measured causes, not guessed missing objects. Do not change symbol sizes or suppress the real extra source vtable to fake matching.
|
||||
|
||||
Round 2 keyboard create attempt 2: express both OEM indices as `i + EZTX_LANG_MAX`, removing parallel induction variables. 309/318 instructions, create 92.28616%, no exact function loss. Both loops strength-reduce OEM addressing to the system byte offset plus 40, unlike target's separate index addition and shift. Reverted.
|
||||
|
||||
Round 2 keyboard create attempt 4, memo_declaration_order: src 0x4f4 base 0x4f8 insns 317/318; create 94.157234%; code 4752, data 8, exact-name functions 31.
|
||||
|
||||
Round 2 keyboard create attempt 5, memo_copy_initialization: src 0x4b8 base 0x4f8 insns 302/318; create 87.8522%; code 4752, data 8, exact-name functions 31.
|
||||
|
||||
Round 2 keyboard create attempt 6, dictionary_fallback_order: src 0x4f4 base 0x4f8 insns 317/318; create 93.83648%; code 4752, data 8, exact-name functions 31.
|
||||
|
||||
Round 2 keyboard create attempt 7, dictionary_ternary_fallback: src 0x4fc base 0x4f8 insns 319/318; create 93.93082%; code 4752, data 8, exact-name functions 31.
|
||||
|
||||
Round 2 keyboard create attempt 8, oem_load_after_system_fallback: src 0x4f4 base 0x4f8 insns 317/318; create 94.57861%; code 4752, data 8, exact-name functions 31.
|
||||
|
||||
Round 2 keyboard create attempt 9, signed_counter_unsigned_oem: src 0x4f4 base 0x4f8 insns 317/318; create 94.18239%; code 4752, data 8, exact-name functions 31.
|
||||
|
||||
Round 2 keyboard create attempt 3: use unsigned loop induction variables for both dictionaries, retaining parallel OEM indices. Output unchanged at 317/318 instructions and 94.18239%; exact functions remain 31. Reverted.
|
||||
|
||||
Round 2 controller vtable attempt 1: make the abstract Interface destructor an inline non-pure destructor under a source-only header guard. Abstractness remains enforced by decide and setForceInvalid; this tests whether the pure destructor caused unwanted table emission. All 84 original functions remain 100%, but extra Interface table remains and .data stays 92.03601%. Reverted both source and header; no justification for changing destructor semantics without a match.
|
||||
|
||||
Round 2 keyboard create attempt 10, system_ternary_fallback: src 0x4f8 base 0x4f8 insns 318/318; create 94.00944% ; code 4752, data 1176, exact-name functions 31.
|
||||
|
||||
Round 2 keyboard create attempt 11, oem_ternary_fallback: src 0x4f8 base 0x4f8 insns 318/318; create 94.00944% ; code 4752, data 1176, exact-name functions 31.
|
||||
|
||||
Round 2 keyboard create attempt 12, system_inverted_ternary: src 0x4f4 base 0x4f8 insns 317/318; create 94.35535% ; code 4752, data 8, exact-name functions 31.
|
||||
|
||||
Round 2 keyboard create attempt 13, oem_inverted_ternary: src 0x4f4 base 0x4f8 insns 317/318; create 94.35535% ; code 4752, data 8, exact-name functions 31.
|
||||
|
||||
Round 2 candidate: retain attempt 10's ordinary system dictionary fallback selection `usedSystemDict != NULL ? usedSystemDict : systemDict`. OEM selection remains unchanged. The resulting create has 318 instructions, and all twelve destination switch-table relocation addends now exactly match the original object. Both .data byte extents are 1161, and every one of the 85 original .data relocation records matches; objdiff .data is 100%, raising matched_data from 8 to 1176 of 1184. No string, symbol, section ownership, source object, or data byte is altered; no padding or assembly is introduced. This is a genuine relocation-data match from a readable conditional expression, even though create remains instruction-nonexact at 94.00944%. Instruction-exact count remains 31/32. Attempts 11 through 13 are not retained. The data-lane task permits improvements with unchanged exact counts; the generic worker count-growth criterion is not met.
|
||||
|
||||
Candidate quick three-unit gate PASS, zero regressions, zero forbidden patterns, zero readability warnings, correct DOL SHA1. Keyboard .data 100%; .sdata remains 85.71429%, .sdata2 100%. Controller .data 92.03601%; other data sections 100%. NHTTP .data 99.786476%; .sdata and .sbss 100%. No original extab/extabindex, .bss, or additional small-data sections are present in the owned objects.
|
||||
|
||||
Remaining keyboard .sdata contains `arc\0` at offset 0, followed by empty 16-bit wchar string at offset 4. Source literal is 2 bytes, extraction labels it as a 4-byte object including two alignment zeros. All instructions using it still match exactly. Changing L"" to an artificially longer null literal or enlarging its symbol would fabricate storage; neither is accepted. NHTTP and controller residual section differences remain exactly the extraction alignment/weak-vtable findings above. They contain no unmatched functions. All failed experimental source and header changes were restored before the candidate gate.
|
||||
|
||||
Attempts 4-9 detail: 4 reverses the two MemoSetting declarations; 5 uses direct initialization for the loaded setting and copied setting; 6 reverses system/OEM fallback statement order; 7 expresses both fallback selections as ternaries; 8 postpones the OEM pointer load until after system fallback selection; 9 moves OEM induction initialization outside the first loop and uses an unsigned system index. Each was independently compiled, measured, and reverted. Attempts 10/12 use respectively non-null/null-first system ternaries; 11/13 use respectively non-null/null-first OEM ternaries. Only 10 is retained. The single remaining unmatched function, keyboard create, has thirteen distinct source-level experiments in this round, in addition to the three original attempts. Controller and NHTTP have zero remaining unmatched original functions.
|
||||
|
||||
Final fetch during verification reached f6fd2780; owned three sources do not differ between this branch's base and fetched origin/main. The worktree remains on its assigned leaf branch.
|
||||
|
||||
## Round 2 final clean gate
|
||||
|
||||
Final non-quick gate over all three units PASS. Full 43U build succeeds and DOL SHA1 is 26116613f624061ba99c8d1a299aaa6efa85670d. Regressions 0; forbidden additions 0; readability warnings 0; all pools identical. Keyboard exact functions 31 -> 31, matched code 4752 -> 4752, matched data 8 -> 1176 of 1184; .data 100%. Controller exact 84 -> 84, code 5708 -> 5708, data 80 -> 80 of 696. NHTTP exact 22 -> 22, code 3180 -> 3180, data 16 -> 16 of 720. No instruction-exact function count dropped. Fresh relocation comparison confirms every original keyboard .data relocation matches. Final gate output /tmp/data-d1-r2.final-gate.txt.
|
||||
|
||||
Incomplete data sections: keyboard .sdata 85.71429% from extracted empty-string extent; controller .data 92.03601% from linker-discarded weak Interface vtable and unit-boundary alignment; NHTTP .data 99.786476% from last extraction blob covering three tail alignment zeros. No symbol size or section boundary has been changed to improve the score. The all-data-100% goal remains incomplete. Remaining function create is 94.00944%, 318/318 instructions with 210 instruction differences; register allocation, dictionary-loop instruction scheduling, and MemoSetting temporary stack placement still differ. Every remaining function has at least three distinct logged attempts; all thirteen are retained as evidence, with only the data-exact candidate in the source diff.
|
||||
71
tools/decomp-assist/data-d2.attempts.md
Normal file
71
tools/decomp-assist/data-d2.attempts.md
Normal file
@@ -0,0 +1,71 @@
|
||||
# Data lane d2
|
||||
|
||||
Base HEAD and origin/main: eecf16f0. All four initial pool checks pass.
|
||||
Initial data: BS2Update 1328/10488; iplSound 188/3316; AOSSLink 48/2432; RakuRakuThread 144/456.
|
||||
Initial instruction-exact: BS2Update 8/10; iplSound 56/57; AOSSLink 12/14; RakuRakuThread 12/14.
|
||||
Scope is data matching. Existing nonexact code is retained unless a data correction fixes it; no code-only compiler experiments are required for this lane.
|
||||
|
||||
## Initial evidence
|
||||
|
||||
- BS2Update: Flags0/Flags1/Thread/header source allocation differs from target. Thread source size 0x1318, target label covers 0x1320 with alignment gap. Static sbss allocation is reversed by compiler optimization, unlike declaration order. Target short literal at 0x81696598 is `.` whereas source is `-`.
|
||||
- iplSound: .bss bytes and overall size already equal, but extracted `_seBlk` size 0xd8 includes two 12-byte runtime destructor registration records at offsets 0xcc and 0xd8. `sSystem` size 0x63c includes destructor record at offset 0x710 plus alignment. Target startup registers records via r5 = bss base + 0, +0xcc, +0xd8, +0x710 before `__register_global_object`; generated source has separate unnamed compiler records at those exact offsets. No dummy objects or size changes to conceal this discrepancy will be added.
|
||||
- AOSSLink: source has all real objects. NCDIfConfig sizeof 0x15e versus extracted symbol extent 0x160; NCDIpConfig sizeof 0x7c4 versus extent 0x7c8. These include linker alignment, not missing fields. Source small-data statics are reverse allocated.
|
||||
- RakuRakuThread: target OSMessageQueue symbol extends 0x24 but actual SDK type is 0x20; trailing four bytes are alignment. Target clock halves have separate symbols, source OSTime has one 8-byte symbol. Store sequence in syncRakuProgress is stw r3 at 0x81698c60 and stw r4 at 0x81698c64, proving one 64-bit clock value. No fabricated queue fields will be added.
|
||||
|
||||
## BS2Update attempts
|
||||
|
||||
1. Explicit zero initialization allocates static globals in definition order. Flags0 now offset 0, Flags1 offset 0x800, Thread offset 0x1000, headers 0x2320/0x2340. Nonexact init still uses separate symbol references instead of target common bss anchor. No exact function dropped.
|
||||
2. Initialize public small-data globals too. This restores State 0x10, CurrentEntry 0x14, StartUpdate 0x28, CancelUpdate 0x2c. Replacing the two filename separators with the target `.` makes .sdata 100% and adds 24 matched bytes.
|
||||
3. Explicit Thread/header zero initialization and a 32-byte aligned Thread type did not improve instruction codegen. Reverted the type alignment because the object-size gap is not enough evidence to change the real type's alignment. Thread is already the correct real OSThread plus 4096-byte stack. Remaining target extent includes eight bytes before the aligned header.
|
||||
4. Named four anonymous small-data flags by target relocations: 0x81698b10 is set on reboot attributes and tested for State 4 versus State 3; 0x81698b14 is the seat-title flag returned by BS2ContainsSeatTitles; 0x81698b18/1c are cleared by the final UpdateThread block in the source's matching order. Renames preserve all addresses, sizes, split ranges, and total bytes.
|
||||
|
||||
## AOSSLink attempts
|
||||
|
||||
1. Before starting: fetched origin/main, source still unchanged from base. All pool checks are identical. Explicit zero initialization for cancel flag, IPv4 octets and callback pointers restores the declared target order.
|
||||
2. Named original anonymous IPv4 and callback symbols using .text relocations: SetNCDIPAddr passes 0x81698c3c/40/44/48/4c to StoreIpv4Octets in address/netmask/gateway/dns1/dns2 order; Alloc and Free load pointers at 0x81698c50/54; Status calls pointer at 0x81698c58. All original addresses and sizes retained.
|
||||
|
||||
## RakuRakuThread attempts
|
||||
|
||||
1. Fresh origin fetch showed no owned-source changes since HEAD. Split the original 64-bit clock into two real u32 globals, assigned from one local OSTime. `syncRakuProgress` remains 27/27 instructions, diffs 0. The original has separate word relocation targets and getState only reads the low word. This models those real words without label-pinning or raw offset casts.
|
||||
2. Explicit zero initializers preserve small-data definition order. Named clock words, active flag, message slot, and display state using their direct .text relocations. .sbss now 100%; matched_data 144 -> 160. Original display state is initialized to one and switch stores are identical.
|
||||
|
||||
## Proven extraction metadata ownership
|
||||
|
||||
Before changing any inferred data extent, checked the target's actual code uses, actual SDK type, generated symbol boundaries and split ranges. These are data-ownership corrections, not removing mismatched payload or changing any function size. Every split range and total section byte count stays unchanged. Alignment bytes remain in the original sections and cannot be represented by fake C++ fields.
|
||||
|
||||
- BS2 Thread: OSCreateThread at 0x8137f334 receives object at bss+0x1000, stack top at bss+0x1318+0x1000, size 0x1000. Thus actual Thread payload ends at +0x2318; +0x2318..2320 is alignment before UpdateHeader0. Real SDK OSThread size is 0x318 and stack is 0x1000.
|
||||
- AOSS interface: memset at 0x813fd76c explicitly receives 0x15e bytes for relocated AOSSi_NcdIfConfig. IP memset at 0x813fd83c explicitly receives 0x7c4 bytes for relocated AOSSi_NcdIpConfig. The 2 and 4 trailing bytes are alignment, not fields.
|
||||
- Raku queue: constructor passes relocated sRakuMsgQueue to OSInitMessageQueue. Its target implementation initializes two 8-byte queues plus fields at 0x10/14/18/1c, exactly 0x20 bytes. The original extent incorrectly absorbs four bytes of end-of-unit alignment.
|
||||
- Sound: __sinit at 0x8136c588 loads one bss anchor. Four calls of __register_global_object pass r5 = anchor+0, +0xcc, +0xd8, +0x710. Runtime's real DestructorChain has three pointers, size 0xc. _seBlk starts at +0xc, has 16 elements of 0xc (explicit __construct_array r6=0xc,r7=16), ends at +0xcc. System starts at +0xe4 and the generated real class ends at +0x710. Thus previously inferred `_seBlk` and `sSystem` extents overlap distinct destructor registration objects. Separate those real records in metadata. No source objects, forced sections, force-active entries, assembly, or fabricated padding are added.
|
||||
|
||||
Checkpoint quick full gate: GATE PASS, regressions 0, forbidden 0, readability 0, DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Data BS2Update 1432, AOSSLink 88, RakuRakuThread 160, Sound 188. Instruction-exact counts unchanged 8/56/12/12.
|
||||
|
||||
Ownership corrections result: BS2Update data 10488/10488; AOSSLink data 2432/2432; RakuRakuThread 456/456, every non-text section 100%. Original section totals unchanged. Sound .bss rises to 99.615875%; the remaining 12 bytes are the first real compiler-generated destructor record, originally mislabeled `unk__Q23ipl3snd`. Rename it to its generated local symbol @15968, with the same address and size. The other three record names @15969/70/71 follow generated object metadata and the exact target registration order.
|
||||
|
||||
Sound was fetched and checked against origin/main again before this change; no owned-source changes. No source experiment is appropriate because target and generated .bss contain the same real objects at the same offsets, and every code function has objdiff 100%. Existing `UnkCls` destructor name represents the compiler array destructor; instruction-only matching by its old inferred name reports 56/57, while objdiff reports 57/57. No function is deleted or renamed here.
|
||||
|
||||
Second quick full gate: GATE PASS, regressions 0, forbidden 0, readability 0, target DOL hash retained. All four matched_data equal their unchanged initial total_data. Every emitted non-text section is 100% in objdiff, including ctors. No extab/extabindex sections exist in these units. Instruction-exact counts remain BS2Update 8/10, Sound 56/57, AOSSLink 12/14, RakuRakuThread 12/14.
|
||||
|
||||
Scope audit: no remaining non-text mismatches, so no open data objects require further attempts. Existing code-only mismatches are outside the explicitly assigned DATA LANE and were not tuned. No configure.py or splits.txt changes, no shared headers or other translation units changed, no push or PR.
|
||||
|
||||
## Final clean gate
|
||||
|
||||
```text
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/BS2/BS2Update] objdiff: code 112/4052 data 10488/10488 functions 8/10 fuzzy 91.6604 linked code 0
|
||||
[src/BS2/BS2Update] instruction-exact functions: 8/10
|
||||
[src/sound/iplSound] objdiff: code 5576/5576 data 3316/3316 functions 57/57 fuzzy 100.0000 linked code 5576
|
||||
[src/sound/iplSound] instruction-exact functions: 56/57
|
||||
[src/scene/setting/AOSSLink] objdiff: code 668/2196 data 2432/2432 functions 12/14 fuzzy 91.1111 linked code 0
|
||||
[src/scene/setting/AOSSLink] instruction-exact functions: 12/14
|
||||
[src/scene/setting/iplRakuRakuThread] objdiff: code 1252/2168 data 456/456 functions 12/14 fuzzy 94.6900 linked code 0
|
||||
[src/scene/setting/iplRakuRakuThread] instruction-exact functions: 12/14
|
||||
regressions vs baseline: 0
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
Final raw section check: every owned data payload equals original bytes; source section-end omissions are zero linker alignment only. All original split ranges and total_data remain unchanged. nm/objdump symbol and relocation evidence was saved in /tmp/data-d2-<unit>-<obj|src>.*. Source vtable entries match the original by relocation target and offset; relocation list ordering is irrelevant. No deduplicated weak-data exemption needed.
|
||||
|
||||
Local source checkpoint 44a7b170; ownership checkpoint 078753b9. These data-symbol corrections require parent review of the evidence above. Remaining code-only nonexact functions were already nonexact at baseline and are outside this data task.
|
||||
299
tools/decomp-assist/data-d3.attempts.md
Normal file
299
tools/decomp-assist/data-d3.attempts.md
Normal file
@@ -0,0 +1,299 @@
|
||||
# data-d3 attempts
|
||||
|
||||
Scope: data only. Applied unslop to the log and final report. No instruction-count gain is required for a data-only improvement; instruction-exact counts must not decrease.
|
||||
Base: eecf16f0, identical to fetched origin/main.
|
||||
|
||||
iplSetting: initial instruction-exact 105/112. Initial pool identical.
|
||||
iplUSBAP: initial instruction-exact 4/4. Initial pool identical.
|
||||
AOSS: initial instruction-exact 15/21. Initial pool identical.
|
||||
ATERM: initial instruction-exact 14/26. Initial pool identical.
|
||||
|
||||
## Relocation identity evidence
|
||||
|
||||
AOSS
|
||||
lbl_81698C74 => s_accessPointConfig via AOSSi_Init+0xa4,AOSSi_Init+0xb8,AOSSi_Init+0xf8
|
||||
lbl_81698C70 => s_accessPointList via AOSSi_Init+0xbc,AOSSi_Init+0xd0,AOSSi_Init+0x110
|
||||
lbl_81698C8C => s_responseBuffer via AOSSi_Init+0xe8,AOSSi_Init+0x13c,AOSSSendDiscoveryRequest+0x14
|
||||
lbl_81697200 => s_socket via AOSSi_Init+0x174
|
||||
lbl_81698C88 => s_socketStarted via AOSSi_Init+0x184,AOSSi_Init+0x194,AOSSConnectAndAwaitHost+0x44
|
||||
lbl_81697204 => s_manufacturer via AOSSHandleDiscoverReply+0x40,AOSSHandleDiscoverReply+0x54,AOSSHandleAuthReply+0x4c
|
||||
lbl_81698C84 => s_errorCode via AOSSHandleDiscoverReply+0x110,AOSSHandleDiscoverReply+0x134,AOSSHandleDiscoverReply+0x184
|
||||
lbl_81698C80 => s_connectionState via AOSSHandleDiscoverReply+0x1b8
|
||||
lbl_81698C78 => s_accessPointName via AOSSCheckAccessPointName+0x8,AOSSCheckAccessPointName+0x1c,AOSSCheckAccessPointName+0x98
|
||||
ATERM
|
||||
lbl_81698CDC => gAtermCancelRequested via ATERMScanAccessPoints+0x148,ATERMi_ApConfigStart+0xe8,ATERMi_ApConfigEnd+0x30
|
||||
lbl_81698C90 => gAtermState via ATERMi_ApConfigStart+0x18,ATERMi_ApConfigStart+0x44,ATERMi_ApConfigStart+0xb0
|
||||
lbl_8169721C => gAtermScanLimit via ATERMi_ApConfigStart+0x40
|
||||
lbl_81698C98 => gAtermProgressCallback via ATERMi_ApConfigStart+0x48,ATERMi_ApConfigStart+0x15c,ATERMi_ApConfigEnd+0x1d0
|
||||
lbl_81698C9C => gAtermAllocate via ATERMi_ApConfigStart+0x4c
|
||||
lbl_81698CA0 => gAtermRelease via ATERMi_ApConfigStart+0x50,ATERMi_ApConfigEnd+0x14c
|
||||
lbl_81697220 => gAtermScanBufferSize via ATERMi_ApConfigStart+0x54,ATERMi_ApConfigStart+0x80
|
||||
lbl_81698CA4 => gAtermAllocation via ATERMi_ApConfigStart+0x64,ATERMi_ApConfigEnd+0x140,ATERMi_ApConfigEnd+0x15c
|
||||
lbl_81698C94 => gAtermResult via ATERMi_ApConfigStart+0x78,ATERMi_ApConfigStart+0x154,ATERMi_ApConfigEnd+0x1c8
|
||||
lbl_81697218 => gAtermDeadline via ATERMi_ApConfigStart+0xf4,ATERMi_ApConfigStart+0x104,ATERMi_ApConfigStart+0x148
|
||||
lbl_81698CA8 => gAtermThreadStarted via ATERMi_ApConfigStart+0x180,ATERMi_ApConfigEnd+0x1c,ATERMi_ApConfigEnd+0x168
|
||||
iplSetting
|
||||
lbl_816970E9 => @25504 via prepare__Q33ipl5scene7SettingFv+0xe8,prepare__Q33ipl5scene7SettingFv+0x118,prepare__Q33ipl5scene7SettingFv+0x148
|
||||
lbl_816970ED => @25507 via prepare__Q33ipl5scene7SettingFv+0x178
|
||||
lbl_816970F1 => @25617 via create__Q33ipl5scene7SettingFv+0x60
|
||||
lbl_816970F6 => @25619 via create__Q33ipl5scene7SettingFv+0xc8,create__Q33ipl5scene7SettingFv+0x11c,create__Q33ipl5scene7SettingFv+0x1b4
|
||||
lbl_816970FA => @25626 via create__Q33ipl5scene7SettingFv+0x1c4
|
||||
lbl_81697101 => @25627 via create__Q33ipl5scene7SettingFv+0x1e0
|
||||
lbl_81697010 => sSettingArrowNames__Q23ipl5scene via create__Q33ipl5scene7SettingFv+0x48c,initScroll__Q33ipl5scene7SettingFv+0x26c,initScroll__Q33ipl5scene7SettingFv+0x2f8
|
||||
lbl_81694C1C => @25796 via updateController___Q33ipl5scene7SettingFv+0x64,updateController___Q33ipl5scene7SettingFv+0x1a8
|
||||
lbl_8169716E => @26352 via calcFadeout__Q33ipl5scene7SettingFv+0x1d0
|
||||
lbl_8169718C => @26851 via initProxy__Q33ipl5scene7SettingFv+0x5c,initMTU__Q33ipl5scene7SettingFv+0x34
|
||||
lbl_816971B1 => @27556 via initScroll__Q33ipl5scene7SettingFv+0x28,initScroll__Q33ipl5scene7SettingFv+0x144
|
||||
lbl_816971B7 => @27557 via initScroll__Q33ipl5scene7SettingFv+0x50,initScroll__Q33ipl5scene7SettingFv+0x16c
|
||||
lbl_816971BD => @27558 via initScroll__Q33ipl5scene7SettingFv+0x78,initScroll__Q33ipl5scene7SettingFv+0x194
|
||||
lbl_816971C3 => @27559 via initScroll__Q33ipl5scene7SettingFv+0xa0,initScroll__Q33ipl5scene7SettingFv+0x1bc
|
||||
lbl_8169719F => @27405 via initScroll__Q33ipl5scene7SettingFv+0xc8,initScroll__Q33ipl5scene7SettingFv+0x1e4
|
||||
lbl_816971AB => @27407 via initScroll__Q33ipl5scene7SettingFv+0xf0,initScroll__Q33ipl5scene7SettingFv+0x20c,start_trig_event__Q33ipl5scene7SettingFPCc+0x200
|
||||
lbl_816971C9 => @27560 via initScroll__Q33ipl5scene7SettingFv+0x2d0,initScroll__Q33ipl5scene7SettingFv+0x374
|
||||
lbl_816971A5 => @27406 via start_trig_event__Q33ipl5scene7SettingFPCc+0x1b4
|
||||
lbl_816971D0 => @27862 via validateEULA___Q33ipl5scene7SettingFv+0xa0,validateEULA___Q33ipl5scene7SettingFv+0x104
|
||||
lbl_816971D4 => @28152 via makeErrorMessage__Q33ipl5scene7SettingFv+0x78,makeSupportCode__Q33ipl5scene7SettingFv+0x54
|
||||
lbl_81694C38 => @28153 via makeErrorMessage__Q33ipl5scene7SettingFv+0x150,makeErrorMessage__Q33ipl5scene7SettingFv+0x1b8
|
||||
lbl_81697101 => @25626 via waitStart__Q33ipl5scene7SettingFv+0x34,waitFinish__Q33ipl5scene7SettingFv+0x28
|
||||
|
||||
|
||||
## Initial data audit
|
||||
|
||||
- iplSetting: .data raw bytes identical, but extracted symbols combine unrelated literals and pointer arrays, and the retail Setting vtable's 252-byte symbol includes deduplicated weak vtables. Source has 104-byte Setting, 92-byte PaneManager, 24-byte EventHandler and 32-byte Interface vtables. No size edits to mask this. .rodata has one real title-ID initializer mismatch and two missing 20-byte digit tables. Other small sections differ only in trailing linker alignment or symbol identity.
|
||||
- iplUSBAP: all bytes in the common section extents agree. usbapNickname source is 22 bytes versus the extracted 24-byte extent. The target copies 20 nickname bytes, so the two extra target bytes may be linker alignment; do not enlarge the buffer without further evidence.
|
||||
- AOSS: all raw data bytes agree. .sbss identities are proven by relocations in instruction-exact functions. Source symbol enumeration differs from target enumeration; objdiff pairs unrelated anonymous globals. Rename only proven target symbols, preserving every byte and size.
|
||||
- ATERM: all raw bytes agree, including the digest initializer at .data+0xd8. .data consists of compiler-generated switch tables and that initializer; differences are relocation destinations from nonexact functions. .sbss pairs anonymous globals by the wrong enumeration order. gAtermSelectedBssid is six bytes in an eight-byte extracted extent; no unsupported enlargement.
|
||||
|
||||
## AOSS accepted candidate
|
||||
|
||||
Renamed nine anonymous target data symbols using exact-function relocation identity. No addresses, sizes, splits or section bytes changed. .sbss increased from 42.857143% to 100%; matched_data 3896 -> 3928. Every non-text section is 100%. Existing five code mismatches remain outside this data assignment.
|
||||
|
||||
## iplSetting title IDs, attempt 1
|
||||
|
||||
Corrected the initializer's region 5 and 6 entries from slots 6 and 7 to slots 5 and 6, matching the 96 retail bytes. Source instructions unchanged. Data score unchanged because symbol pairing excludes this initializer. This is a real runtime correction, not an objdiff score trick.
|
||||
|
||||
## ATERM relocation identities, attempt 1
|
||||
|
||||
Named proven globals without altering any address or size. Exact ATERMi_ApConfigStart/End relocations prove state, result, allocation, callbacks and thread-started identities. ATERMi_AutoConfigThread proves socket-started at .sbss+0x24 and socket-ready at +0x20. ATERMBuildAssociationRequest relocations prove address buffer at +0x38. RunConfigProtocol target uses state at +0x40 throughout, response mode at +0x34 in receive calls, message length at +0x28, reply length at +0x2c and byte mode at +0x30, matching the same roles and source definitions. MD5Update calls reference the 64-byte .data+0xd8 initializer starting with 0x80, proving gAtermDigestFill. Target relocations at .text+0x1f8a/0x1fae correspond to source +0x1f96/0x1fc6. Bytes and total size unchanged.
|
||||
|
||||
## iplUSBAP nickname, attempt 1
|
||||
|
||||
Restored the UTF16 nickname object's 24-byte target extent as wchar_t[12]. The prior wchar_t[11] was 22 bytes. Target symbol usbapNickname has a distinct 24-byte allocation; only the first 20 bytes are copied by registration. This changes no instruction or following object offset and adds no dummy object.
|
||||
|
||||
## ATERM selected address, attempt 2
|
||||
|
||||
Restored the selected-BSSID storage's eight-byte target allocation as u8[8], retaining all six-byte MAC copies. Named it using ATERMDiscoverAccessPoints and BuildAssociationRequest relocations. No subsequent offsets change. .sbss is now 100%, matched_data 18504 -> 18584; instruction-exact remains 14/26. The full quick gate passed with zero regressions and the correct DOL hash.
|
||||
|
||||
## iplSetting digit tables, attempts 1 and 2
|
||||
|
||||
1. Added the two real ten-element UTF16 digit tables from retail .rodata+0x258 and +0x26c as static const wchar_t. MWCC removed both unreferenced internal tables; output remained 600 bytes.
|
||||
2. Gave the same typed const objects external linkage so MWCC emits their proven data without forced sections or force-active entries. Target symbol names are scNumber and scNumber2 in namespace ipl::scene.
|
||||
|
||||
## iplSetting table identity and definition order, attempt 3
|
||||
|
||||
Named the three genuine pointer arrays at .data+0, +0x10 and +0x28 using create/initAP/redrawAP relocations and each table's pointed-to text. Their element counts and target sizes agree, with no size changes. Target relocations +0x6f76/+0x6f7e and source +0x701a/+0x7022 reference the four AP-button names; +0x6c5e/+0x6c6a and source +0x6cfa/+0x6d06 reference the six AP-text names; +0x67b6/+0x67ba and source +0x6846/+0x684a reference the six AP-number names. Reordered browserScrollDirection after the two existing Setting buffer definitions so the actual .sbss symbol offsets become 0, 4, 8 in target order. Named its target using updateScroll's load/store roles. All target addresses, sizes and totals remain unchanged.
|
||||
|
||||
Digit tables with external linkage emit at the exact target offsets 0x258 and 0x26c. The complete 640 .rodata bytes now agree, including the corrected title IDs. Score is 38.50412%, so the remaining cause is symbol/relocation partitioning rather than missing bytes.
|
||||
|
||||
## Required source-level rounds on all remaining functions
|
||||
|
||||
Each trial is compiled independently after the pool check. Only an exact-function gain with no lost instruction-exact functions or matched data can be retained. Three distinct declaration/control-expression trials per remaining function; failed candidates are restored.
|
||||
createBrowser__Q33ipl5scene7SettingFv attempt 1: readonly mem1 allocation size; source 019fbd2fcb18; objdiff 98.8505%; instructions 299/301, diffs 114; unit exact 105; data 1040/5696.
|
||||
createBrowser__Q33ipl5scene7SettingFv attempt 2: readonly mem2 allocation size; source 4b07d3801ad0; objdiff 98.8505%; instructions 299/301, diffs 114; unit exact 105; data 1040/5696.
|
||||
createBrowser__Q33ipl5scene7SettingFv attempt 3: readonly mem1 heap pointer; source b2b32e5fe6d8; objdiff 98.8505%; instructions 299/301, diffs 114; unit exact 105; data 1040/5696.
|
||||
draw__Q33ipl5scene7SettingFv attempt 1: reverse independent declarations u32 left;,u32 top;,u32 width;; source 52a11cf5440e; objdiff 91.52215%; instructions 595/632, diffs 570; unit exact 105; data 1040/5696.
|
||||
draw__Q33ipl5scene7SettingFv attempt 2: rotate independent declarations u32 left;,u32 top;,u32 width;; source c3c6cea18781; objdiff 91.52057%; instructions 595/632, diffs 570; unit exact 105; data 1040/5696.
|
||||
draw__Q33ipl5scene7SettingFv attempt 3: swap first independent declarations u32 left;,u32 top;,u32 width;; source 6848b182e5f8; objdiff 91.523735%; instructions 595/632, diffs 570; unit exact 105; data 1040/5696.
|
||||
initKeyboard__Q33ipl5scene7SettingFPCc attempt 1: swap independent row/string limits; source f522f2f506e7; objdiff 98.07981%; instructions 215/213, diffs 195; unit exact 105; data 1040/5696.
|
||||
initKeyboard__Q33ipl5scene7SettingFPCc attempt 2: readonly product area; source ba8ec44cca9c; objdiff 98.38498%; instructions 215/213, diffs 195; unit exact 105; data 1040/5696.
|
||||
initKeyboard__Q33ipl5scene7SettingFPCc attempt 3: move invalid input declaration after limits; source 85624a719bc3; objdiff 97.99531%; instructions 215/213, diffs 195; unit exact 105; data 1040/5696.
|
||||
calcKeyboard__Q33ipl5scene7SettingFv attempt 1: initialize selected form text; source 9e80dfbbf396; objdiff 98.0%; instructions 292/290, diffs 258; unit exact 105; data 1040/5696.
|
||||
calcKeyboard__Q33ipl5scene7SettingFv attempt 2: readonly form identifiers; source 61ea4d9a22ca; objdiff 98.0%; instructions 292/290, diffs 258; unit exact 105; data 1040/5696.
|
||||
calcKeyboard__Q33ipl5scene7SettingFv attempt 3: explicit pressOK comparison; source 118553a6ca4d; objdiff 98.0%; instructions 292/290, diffs 258; unit exact 105; data 1040/5696.
|
||||
convertRevIP__Q33ipl5scene7SettingFPUcPCc attempt 1: reverse independent declarations char ascii[20];,int count = 0;,int index;; source a756d29859a8; objdiff 98.15069%; instructions 73/73, diffs 21; unit exact 105; data 1040/5696.
|
||||
convertRevIP__Q33ipl5scene7SettingFPUcPCc attempt 2: rotate independent declarations char ascii[20];,int count = 0;,int index;; source 6bdcf9862666; objdiff 98.69863%; instructions 73/73, diffs 16; unit exact 105; data 1040/5696.
|
||||
convertRevIP__Q33ipl5scene7SettingFPUcPCc attempt 3: swap first independent declarations char ascii[20];,int count = 0;,int index;; source 358ff4860b8a; objdiff 98.69863%; instructions 73/73, diffs 16; unit exact 105; data 1040/5696.
|
||||
scanAP__Q33ipl5scene7SettingFv attempt 1: readonly animation index; source dee07bb51a23; objdiff 95.39338%; instructions 266/272, diffs 160; unit exact 105; data 1040/5696.
|
||||
scanAP__Q33ipl5scene7SettingFv attempt 2: implicit count test; source 8accc6a48be9; objdiff 95.39338%; instructions 266/272, diffs 160; unit exact 105; data 1040/5696.
|
||||
scanAP__Q33ipl5scene7SettingFv attempt 3: negated zero offset test; source 2580f28a59e6; objdiff 95.39338%; instructions 266/272, diffs 160; unit exact 105; data 1040/5696.
|
||||
AOSS_Init_old attempt 1: reverse independent declarations s16 initialWait;,u64 tickRemainder;,AOSSReceiveBuffer* packetBuffer;; source 5c30692bda4a; objdiff 93.78725%; instructions 1575/1584, diffs 1524; unit exact 15; data 3928/3928.
|
||||
AOSS_Init_old attempt 2: rotate independent declarations s16 initialWait;,u64 tickRemainder;,AOSSReceiveBuffer* packetBuffer;; source 7351eb86a582; objdiff 93.78725%; instructions 1575/1584, diffs 1524; unit exact 15; data 3928/3928.
|
||||
AOSS_Init_old attempt 3: swap first independent declarations s16 initialWait;,u64 tickRemainder;,AOSSReceiveBuffer* packetBuffer;; source 706a211f5578; objdiff 93.78725%; instructions 1575/1584, diffs 1524; unit exact 15; data 3928/3928.
|
||||
AOSSDecryptMessage attempt 1: reverse independent declarations u8* decryptedData;,u32 controlFlags;,u32 dataLength;; source f7b3ac943a8c; objdiff 97.3676%; instructions 321/321, diffs 113; unit exact 15; data 3928/3928.
|
||||
AOSSDecryptMessage attempt 2: rotate independent declarations u8* decryptedData;,u32 controlFlags;,u32 dataLength;; source 7ffd1478855d; objdiff 97.3676%; instructions 321/321, diffs 113; unit exact 15; data 3928/3928.
|
||||
AOSSDecryptMessage attempt 3: swap first independent declarations u8* decryptedData;,u32 controlFlags;,u32 dataLength;; source fec2235f89c3; objdiff 97.74143%; instructions 321/321, diffs 89; unit exact 15; data 3928/3928.
|
||||
AOSSApplyAuthOptions attempt 1: reverse independent declarations AOSSConfigRecord* configRecord;,AOSSStoredConfig* wep40Config;,AOSSStoredConfig* wep104Config;; source 95a9300215fa; objdiff 98.59649%; instructions 114/114, diffs 26; unit exact 15; data 3928/3928.
|
||||
AOSSApplyAuthOptions attempt 2: rotate independent declarations AOSSConfigRecord* configRecord;,AOSSStoredConfig* wep40Config;,AOSSStoredConfig* wep104Config;; source bf6d81c0ba25; objdiff 98.77193%; instructions 114/114, diffs 22; unit exact 15; data 3928/3928.
|
||||
AOSSApplyAuthOptions attempt 3: swap first independent declarations AOSSConfigRecord* configRecord;,AOSSStoredConfig* wep40Config;,AOSSStoredConfig* wep104Config;; source f1a515f52069; objdiff 98.77193%; instructions 114/114, diffs 22; unit exact 15; data 3928/3928.
|
||||
AOSSSendHelloRequest attempt 1: reverse independent declarations u32 checksum;,u16 nonce;,u32 stateLength;; source d059ca65aa5d; objdiff 92.190475%; instructions 271/273, diffs 254; unit exact 15; data 3928/3928.
|
||||
AOSSSendHelloRequest attempt 2: rotate independent declarations u32 checksum;,u16 nonce;,u32 stateLength;; source a7659e25e005; objdiff 92.190475%; instructions 271/273, diffs 254; unit exact 15; data 3928/3928.
|
||||
AOSSSendHelloRequest attempt 3: swap first independent declarations u32 checksum;,u16 nonce;,u32 stateLength;; source 844865b1bcd2; objdiff 92.190475%; instructions 271/273, diffs 254; unit exact 15; data 3928/3928.
|
||||
AOSSXorBufferWithKey attempt 1: reverse independent declarations u8* packetHalf;,s32 round;,u8* keyMask;; source f82af7feda7f; objdiff 98.29932%; instructions 147/147, diffs 44; unit exact 15; data 3928/3928.
|
||||
AOSSXorBufferWithKey attempt 2: rotate independent declarations u8* packetHalf;,s32 round;,u8* keyMask;; source 41287dd9e01e; objdiff 98.061226%; instructions 147/147, diffs 50; unit exact 15; data 3928/3928.
|
||||
AOSSXorBufferWithKey attempt 3: swap first independent declarations u8* packetHalf;,s32 round;,u8* keyMask;; source e19bed9fdc58; objdiff 98.23129%; instructions 147/147, diffs 45; unit exact 15; data 3928/3928.
|
||||
ATERMStartNetworkStack attempt 1: reverse independent declarations int status;,int waitCount = 0;,u32 convertedHost;; source 23d42a536d39; objdiff 97.91558%; instructions 154/154, diffs 51; unit exact 14; data 18584/18864.
|
||||
ATERMStartNetworkStack attempt 2: rotate independent declarations int status;,int waitCount = 0;,u32 convertedHost;; source 347ce0ac1c10; objdiff 97.91558%; instructions 154/154, diffs 51; unit exact 14; data 18584/18864.
|
||||
ATERMStartNetworkStack attempt 3: swap first independent declarations int status;,int waitCount = 0;,u32 convertedHost;; source ba2fac154a72; objdiff 97.91558%; instructions 154/154, diffs 51; unit exact 14; data 18584/18864.
|
||||
ATERMFindChangedApRecord attempt 1: reverse independent declarations u32 previousIndex;,u32 currentIndex = 0;,int found = 0;; source 6206e4449cb5; objdiff 99.02299%; instructions 174/174, diffs 31; unit exact 14; data 18584/18864.
|
||||
ATERMFindChangedApRecord attempt 2: rotate independent declarations u32 previousIndex;,u32 currentIndex = 0;,int found = 0;; source 4d6f8c454685; objdiff 99.56896%; instructions 174/174, diffs 15; unit exact 14; data 18584/18864.
|
||||
ATERMFindChangedApRecord attempt 3: swap first independent declarations u32 previousIndex;,u32 currentIndex = 0;,int found = 0;; source 479cf7027f9d; objdiff 99.56896%; instructions 174/174, diffs 15; unit exact 14; data 18584/18864.
|
||||
ATERMDiscoverAccessPoints attempt 1: reverse independent declarations s32 result = -1;,u32 scanBufferBytes;,u32 recordIndex;; source 38bdcd667907; objdiff 95.304184%; instructions 261/263, diffs 221; unit exact 14; data 18584/18864.
|
||||
ATERMDiscoverAccessPoints attempt 2: rotate independent declarations s32 result = -1;,u32 scanBufferBytes;,u32 recordIndex;; source cf149ff96201; objdiff 95.304184%; instructions 261/263, diffs 221; unit exact 14; data 18584/18864.
|
||||
ATERMDiscoverAccessPoints attempt 3: swap first independent declarations s32 result = -1;,u32 scanBufferBytes;,u32 recordIndex;; source fa4d3117c7a2; objdiff 95.304184%; instructions 261/263, diffs 221; unit exact 14; data 18584/18864.
|
||||
ATERMBuildEncryptedMessage attempt 1: reverse independent declarations u8* end;,u8* cursor;,u32 checksum = 0;; source 9d1d353a8172; objdiff 98.072914%; instructions 96/96, diffs 28; unit exact 14; data 18584/18864.
|
||||
ATERMBuildEncryptedMessage attempt 2: rotate independent declarations u8* end;,u8* cursor;,u32 checksum = 0;; source c8cbce624a1a; objdiff 98.072914%; instructions 96/96, diffs 28; unit exact 14; data 18584/18864.
|
||||
ATERMBuildEncryptedMessage attempt 3: swap first independent declarations u8* end;,u8* cursor;,u32 checksum = 0;; source f0f6bbeb6b04; objdiff 99.791664%; instructions 96/96, diffs 4; unit exact 14; data 18584/18864.
|
||||
ATERMBuildAssociationRequest attempt 1: reverse independent declarations u8 scanAddress[8];,u8 interfaceMacAddress[8];,char interfaceMacText[32];; source f5a4706f525e; objdiff 93.3609%; instructions 133/133, diffs 79; unit exact 14; data 18584/18864.
|
||||
ATERMBuildAssociationRequest attempt 2: rotate independent declarations u8 scanAddress[8];,u8 interfaceMacAddress[8];,char interfaceMacText[32];; source ab3c0949359b; objdiff 93.3609%; instructions 133/133, diffs 79; unit exact 14; data 18584/18864.
|
||||
ATERMBuildAssociationRequest attempt 3: swap first independent declarations u8 scanAddress[8];,u8 interfaceMacAddress[8];,char interfaceMacText[32];; source 4ba94c960472; objdiff 93.3609%; instructions 133/133, diffs 79; unit exact 14; data 18584/18864.
|
||||
ATERMParseAssociationResponse attempt 1: reverse independent declarations u8* optionValue;,u16* responseEnd;,u32 optionType;; source ce08a2035d61; objdiff 98.9781%; instructions 137/137, diffs 26; unit exact 14; data 18584/18864.
|
||||
ATERMParseAssociationResponse attempt 2: rotate independent declarations u8* optionValue;,u16* responseEnd;,u32 optionType;; source 504def96220c; objdiff 98.90511%; instructions 137/137, diffs 28; unit exact 14; data 18584/18864.
|
||||
ATERMParseAssociationResponse attempt 3: swap first independent declarations u8* optionValue;,u16* responseEnd;,u32 optionType;; source e8f37744718f; objdiff 99.014595%; instructions 137/137, diffs 25; unit exact 14; data 18584/18864.
|
||||
ATERMRunConfigProtocol attempt 1: reverse independent declarations u8 digestLength[8];,s32 socket = 0;,s32 result = -5;; source 79f186c37484; objdiff 87.43323%; instructions 972/951, diffs 946; unit exact 14; data 18584/18864.
|
||||
ATERMRunConfigProtocol attempt 2: rotate independent declarations u8 digestLength[8];,s32 socket = 0;,s32 result = -5;; source 89e99ad28a12; objdiff 87.43323%; instructions 972/951, diffs 946; unit exact 14; data 18584/18864.
|
||||
ATERMRunConfigProtocol attempt 3: swap first independent declarations u8 digestLength[8];,s32 socket = 0;,s32 result = -5;; source e938c8fda52f; objdiff 87.43323%; instructions 972/951, diffs 946; unit exact 14; data 18584/18864.
|
||||
ATERMi_AutoConfigThread attempt 1: swap independent final-state declarations; source 2765e2a67e64; objdiff 94.75%; instructions 40/40, diffs 3; unit exact 14; data 18584/18864.
|
||||
ATERMi_AutoConfigThread attempt 2: readonly protocol return; source 16e2c983b7db; objdiff 94.75%; instructions 40/40, diffs 3; unit exact 14; data 18584/18864.
|
||||
ATERMi_AutoConfigThread attempt 3: implicit socket-started test; source 841ec1376692; objdiff 94.75%; instructions 40/40, diffs 3; unit exact 14; data 18584/18864.
|
||||
ATERMAesKeyWrap attempt 1: reverse independent declarations u32 initialValue[2];,u8* outputBlock;,s32 blockOffset;; source 85b71a968e5f; objdiff 99.0%; instructions 117/117, diffs 20; unit exact 14; data 18584/18864.
|
||||
ATERMAesKeyWrap attempt 2: rotate independent declarations u32 initialValue[2];,u8* outputBlock;,s32 blockOffset;; source 1b43fa7e9bd2; objdiff 99.0%; instructions 117/117, diffs 20; unit exact 14; data 18584/18864.
|
||||
ATERMAesKeyWrap attempt 3: swap first independent declarations u32 initialValue[2];,u8* outputBlock;,s32 blockOffset;; source ed2e22983183; objdiff 99.0%; instructions 117/117, diffs 20; unit exact 14; data 18584/18864.
|
||||
ATERMAesExpandEncryptKey attempt 1: reverse independent declarations u32 keyWord;,u32 fourthWord;,u32 firstWord;; source 61b1be054e4c; objdiff 98.94403%; instructions 268/268, diffs 49; unit exact 14; data 18584/18864.
|
||||
ATERMAesExpandEncryptKey attempt 2: rotate independent declarations u32 keyWord;,u32 fourthWord;,u32 firstWord;; source 4cf5bc24589b; objdiff 98.94403%; instructions 268/268, diffs 49; unit exact 14; data 18584/18864.
|
||||
ATERMAesExpandEncryptKey attempt 3: swap first independent declarations u32 keyWord;,u32 fourthWord;,u32 firstWord;; source 6615e5cd1f74; objdiff 98.94403%; instructions 268/268, diffs 49; unit exact 14; data 18584/18864.
|
||||
ATERMMd5Update attempt 1: reverse independent declarations u32 bytesToFill;,u32 copiedBytes;,u32 index;; source fd011eb98c20; objdiff 91.263885%; instructions 139/144, diffs 115; unit exact 14; data 18584/18864.
|
||||
ATERMMd5Update attempt 2: rotate independent declarations u32 bytesToFill;,u32 copiedBytes;,u32 index;; source 35afeb8baa9e; objdiff 91.263885%; instructions 139/144, diffs 115; unit exact 14; data 18584/18864.
|
||||
ATERMMd5Update attempt 3: swap first independent declarations u32 bytesToFill;,u32 copiedBytes;,u32 index;; source 56d167f0051a; objdiff 91.263885%; instructions 139/144, diffs 115; unit exact 14; data 18584/18864.
|
||||
|
||||
## Final open-function coverage
|
||||
|
||||
createBrowser__Q33ipl5scene7SettingFv: 98.8505% remains after 3 distinct compiled source trials. No partial trial retained.
|
||||
draw__Q33ipl5scene7SettingFv: 91.525314% remains after 3 distinct compiled source trials. No partial trial retained.
|
||||
initKeyboard__Q33ipl5scene7SettingFPCc: 98.38498% remains after 3 distinct compiled source trials. No partial trial retained.
|
||||
calcKeyboard__Q33ipl5scene7SettingFv: 98.0% remains after 3 distinct compiled source trials. No partial trial retained.
|
||||
convertRevIP__Q33ipl5scene7SettingFPUcPCc: 98.69863% remains after 3 distinct compiled source trials. No partial trial retained.
|
||||
scanAP__Q33ipl5scene7SettingFv: 95.39338% remains after 3 distinct compiled source trials. No partial trial retained.
|
||||
AOSS_Init_old: 93.78725% remains after 3 distinct compiled source trials. No partial trial retained.
|
||||
AOSSDecryptMessage: 97.74143% remains after 3 distinct compiled source trials. No partial trial retained.
|
||||
AOSSApplyAuthOptions: 98.77193% remains after 3 distinct compiled source trials. No partial trial retained.
|
||||
AOSSSendHelloRequest: 92.190475% remains after 3 distinct compiled source trials. No partial trial retained.
|
||||
AOSSXorBufferWithKey: 98.605446% remains after 3 distinct compiled source trials. No partial trial retained.
|
||||
ATERMStartNetworkStack: 97.91558% remains after 3 distinct compiled source trials. No partial trial retained.
|
||||
ATERMFindChangedApRecord: 99.56896% remains after 3 distinct compiled source trials. No partial trial retained.
|
||||
ATERMDiscoverAccessPoints: 95.304184% remains after 3 distinct compiled source trials. No partial trial retained.
|
||||
ATERMBuildEncryptedMessage: 99.791664% remains after 3 distinct compiled source trials. No partial trial retained.
|
||||
ATERMBuildAssociationRequest: 93.44361% remains after 3 distinct compiled source trials. No partial trial retained.
|
||||
ATERMParseAssociationResponse: 99.56204% remains after 3 distinct compiled source trials. No partial trial retained.
|
||||
ATERMRunConfigProtocol: 87.43323% remains after 3 distinct compiled source trials. No partial trial retained.
|
||||
ATERMi_AutoConfigThread: 94.75% remains after 3 distinct compiled source trials. No partial trial retained.
|
||||
ATERMAesKeyWrap: 99.0% remains after 3 distinct compiled source trials. No partial trial retained.
|
||||
ATERMAesExpandEncryptKey: 98.94403% remains after 3 distinct compiled source trials. No partial trial retained.
|
||||
ATERMMd5Update: 91.263885% remains after 3 distinct compiled source trials. No partial trial retained.
|
||||
Every remaining nonexact function has three compiled trials. Both completed data units remain complete; unresolved data needs the evidence review below.
|
||||
|
||||
## iplSetting browser page initializers, attempt 4
|
||||
|
||||
A normalized relocation audit found seven real .rodata pointer mismatches that the raw-byte comparison missed. The final region-page entry at .rodata+0x188 must be Setup/ScreenSave.html. The seven direct-page names at +0x18c must be Calendar, Display, Sound, Parental_Control, Internet, Wiiconnect24, Update. Source incorrectly put Calendar in the region pages and duplicated Update in the direct pages. Corrected these ordinary literal initializers without changing either array's count or pool order. All 60 .rodata relocations now agree after resolving section-relative destinations. All 640 raw bytes agree. Objdiff .rodata is now 100%, matched_data 1040 -> 1680. Code scores and instruction-exact counts are unchanged.
|
||||
|
||||
This audit supersedes the earlier suggestion that symbol partitioning alone explained the .rodata score. Relocation destinations must be checked as well as raw bytes.
|
||||
|
||||
## Remaining data sections
|
||||
|
||||
- iplSetting .data: 4016 raw bytes agree, but 104 normalized relocation entries differ. Of these, 73 are switch-table destinations in nonexact initKeyboard, calcKeyboard and scanAP. The other 31 are emitted weak PaneManager/EventHandler/Interface vtable slots where the original DOL extraction has zero bytes and no relocations. Original Setting's 252-byte symbol covers its actual 104-byte vtable plus those 148 deduplicated weak bytes. No target symbol sizes were changed, no tables were replaced with assembly, and no dummy objects were added. The 31 weak slots are the allowed extraction exception; the 73 switch entries are genuine remaining differences. Each affecting function has three distinct compiled attempts above.
|
||||
- ATERM .data: 280 raw bytes agree, but all 11 entries of the RunConfigProtocol switch table at .data+0xac differ in function-relative destinations. The first 43 jump-table entries agree, and the real 64-byte digest initializer agrees. RunConfigProtocol is 972 instructions versus 951 target instructions. Three declaration-order trials did not reduce this mismatch. It needs code matching before this section can reach 100%.
|
||||
- iplUSBAP and AOSS: every reported non-text section is 100%, and matched_data equals total_data.
|
||||
- extab/extabindex: absent in both original and source for all four units. No unmatched exception tables are omitted from this audit.
|
||||
|
||||
No split boundaries or symbol sizes changed. Naming corrections only affect the four assigned units. All three-trial candidates were restored; no fuzzy code edits were retained. The data goal is not complete for iplSetting or ATERM.
|
||||
|
||||
## ATERM allocation audit and correction
|
||||
|
||||
The first full gate passed, but a fresh physical-layout audit found that u8[8] made MWCC align gAtermSelectedBssid to eight bytes. It moved the object from target .sbss+0x44 to +0x48, moved cancellation from +0x4c to +0x50 and grew .sbss from 80 to 84 bytes. Objdiff still reported .sbss 100% because it matched named objects independently of placement. That score was insufficient evidence; the eight-byte source allocation is reverted.
|
||||
|
||||
Three further compiled layout trials were rejected:
|
||||
1. A typed union with a six-byte address and two-word view still occupied +0x48 and grew the section to 84 bytes.
|
||||
2. u8[8] with ATTRIBUTE_ALIGN(4) still occupied +0x48 and grew the section to 84 bytes.
|
||||
3. u8[8] with prefix __declspec(align(4)) still occupied +0x48 and grew the section to 84 bytes.
|
||||
|
||||
The final source retains the original six-byte MAC object at +0x44 and cancellation at +0x4c. .sbss is exactly 80 zero bytes, and every physical object start agrees with the target. The target's eight-byte symbol extent appears to include two bytes of inter-object alignment. I did not shrink its symbol or add padding to force the score. Final .sbss score is 94.80519%, matched_data remains 18504, and ATERM's data goal remains incomplete. This supersedes the earlier claimed .sbss completion and 18584 matched_data result. No alignment attributes or union trial remain in the source.
|
||||
|
||||
## Final full gate
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/scene/setting/iplSetting] pool: IDENTICAL
|
||||
[src/scene/setting/iplSetting] objdiff: code 30760/37884 data 1680/5696 functions 106/112 fuzzy 99.1581 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 105/112
|
||||
[src/scene/setting/iplSetting] section .bss size 456 match 100.0
|
||||
[src/scene/setting/iplSetting] section .data size 4016 match 6.807248
|
||||
[src/scene/setting/iplSetting] section .rodata size 640 match 100.0
|
||||
[src/scene/setting/iplSetting] section .sbss size 16 match 100.0
|
||||
[src/scene/setting/iplSetting] section .sdata size 504 match 100.0
|
||||
[src/scene/setting/iplSetting] section .sdata2 size 64 match 100.0
|
||||
[src/scene/setting/iplSetting] section .text size 37884 match 99.15806
|
||||
[src/scene/setting/iplSetting] below 100: createBrowser__Q33ipl5scene7SettingFv 98.8505
|
||||
[src/scene/setting/iplSetting] below 100: draw__Q33ipl5scene7SettingFv 91.525314
|
||||
[src/scene/setting/iplSetting] below 100: initKeyboard__Q33ipl5scene7SettingFPCc 98.38498
|
||||
[src/scene/setting/iplSetting] below 100: calcKeyboard__Q33ipl5scene7SettingFv 98.0
|
||||
[src/scene/setting/iplSetting] below 100: convertRevIP__Q33ipl5scene7SettingFPUcPCc 98.69863
|
||||
[src/scene/setting/iplSetting] below 100: scanAP__Q33ipl5scene7SettingFv 95.39338
|
||||
[src/scene/setting/iplSetting] baseline: code 30760/37884 data 1040 functions 106 fuzzy 99.1581
|
||||
[src/scene/setting/iplUSBAP] pool: IDENTICAL
|
||||
[src/scene/setting/iplUSBAP] objdiff: code 988/988 data 4984/4984 functions 4/4 fuzzy 100.0000 linked code 988
|
||||
[src/scene/setting/iplUSBAP] instruction-exact functions: 4/4
|
||||
[src/scene/setting/iplUSBAP] section .bss size 4944 match 100.0
|
||||
[src/scene/setting/iplUSBAP] section .data size 16 match 100.0
|
||||
[src/scene/setting/iplUSBAP] section .sbss size 24 match 100.0
|
||||
[src/scene/setting/iplUSBAP] section .text size 988 match 100.0
|
||||
[src/scene/setting/iplUSBAP] baseline: code 988/988 data 40 functions 4 fuzzy 100.0000
|
||||
[src/scene/setting/ATERM] pool: IDENTICAL
|
||||
[src/scene/setting/ATERM] objdiff: code 9296/19204 data 18504/18864 functions 15/26 fuzzy 96.5836 linked code 0
|
||||
[src/scene/setting/ATERM] instruction-exact functions: 14/26
|
||||
[src/scene/setting/ATERM] section .bss size 8160 match 100.0
|
||||
[src/scene/setting/ATERM] section .data size 280 match 22.857143
|
||||
[src/scene/setting/ATERM] section .rodata size 10280 match 100.0
|
||||
[src/scene/setting/ATERM] section .sbss size 80 match 94.80519
|
||||
[src/scene/setting/ATERM] section .sdata size 56 match 100.0
|
||||
[src/scene/setting/ATERM] section .sdata2 size 8 match 100.0
|
||||
[src/scene/setting/ATERM] section .text size 19204 match 96.583626
|
||||
[src/scene/setting/ATERM] below 100: ATERMStartNetworkStack 97.91558
|
||||
[src/scene/setting/ATERM] below 100: ATERMFindChangedApRecord 99.56896
|
||||
[src/scene/setting/ATERM] below 100: ATERMDiscoverAccessPoints 95.304184
|
||||
[src/scene/setting/ATERM] below 100: ATERMBuildEncryptedMessage 99.791664
|
||||
[src/scene/setting/ATERM] below 100: ATERMBuildAssociationRequest 93.44361
|
||||
[src/scene/setting/ATERM] below 100: ATERMParseAssociationResponse 99.56204
|
||||
[src/scene/setting/ATERM] below 100: ATERMRunConfigProtocol 87.43323
|
||||
[src/scene/setting/ATERM] below 100: ATERMi_AutoConfigThread 94.75
|
||||
[src/scene/setting/ATERM] below 100: ATERMAesKeyWrap 99.0
|
||||
[src/scene/setting/ATERM] below 100: ATERMAesExpandEncryptKey 98.94403
|
||||
[src/scene/setting/ATERM] below 100: ATERMMd5Update 91.263885
|
||||
[src/scene/setting/ATERM] baseline: code 9296/19204 data 18504 functions 15 fuzzy 96.5836
|
||||
[src/scene/setting/AOSS] pool: IDENTICAL
|
||||
[src/scene/setting/AOSS] objdiff: code 6436/16192 data 3928/3928 functions 16/21 fuzzy 96.7779 linked code 0
|
||||
[src/scene/setting/AOSS] instruction-exact functions: 15/21
|
||||
[src/scene/setting/AOSS] section .bss size 3496 match 100.0
|
||||
[src/scene/setting/AOSS] section .data size 368 match 100.0
|
||||
[src/scene/setting/AOSS] section .sbss size 32 match 100.0
|
||||
[src/scene/setting/AOSS] section .sdata size 24 match 100.0
|
||||
[src/scene/setting/AOSS] section .sdata2 size 8 match 100.0
|
||||
[src/scene/setting/AOSS] section .text size 16192 match 96.777916
|
||||
[src/scene/setting/AOSS] below 100: AOSS_Init_old 93.78725
|
||||
[src/scene/setting/AOSS] below 100: AOSSDecryptMessage 97.74143
|
||||
[src/scene/setting/AOSS] below 100: AOSSApplyAuthOptions 98.77193
|
||||
[src/scene/setting/AOSS] below 100: AOSSSendHelloRequest 92.190475
|
||||
[src/scene/setting/AOSS] below 100: AOSSXorBufferWithKey 98.605446
|
||||
[src/scene/setting/AOSS] baseline: code 6436/16192 data 3896 functions 16 fuzzy 96.7779
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.52293 -> 88.52293
|
||||
global fuzzy_match_percent: 99.44739 -> 99.44739
|
||||
global complete_code_percent: 62.78043 -> 62.78043
|
||||
global matched_data_percent: 93.05085 -> 93.35729
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
Before -> after: iplSetting data 1040 -> 1680, instruction-exact 105 -> 105, code 30760 -> 30760; iplUSBAP data 40 -> 4984, instruction-exact 4 -> 4, code 988 -> 988; ATERM data 18504 -> 18504, instruction-exact 14 -> 14, code 9296 -> 9296; AOSS data 3896 -> 3928, instruction-exact 15 -> 15, code 6436 -> 6436.
|
||||
Net data gain 5616 bytes. All 22 remaining nonexact functions have three distinct compiled source trials. USBAP and AOSS data goals are complete. iplSetting .data and ATERM .data/.sbss remain open.
|
||||
73
tools/decomp-assist/data-d5.attempts.md
Normal file
73
tools/decomp-assist/data-d5.attempts.md
Normal file
@@ -0,0 +1,73 @@
|
||||
# data-d5 data lane
|
||||
|
||||
Baseline 2026-10-02: HEAD and origin/main eecf16f0. All four owned sources equal origin/main before changes. Fresh object build and objdiff report saved in /tmp/data-d5-before.json; instruction-exact baseline in /tmp/data-d5-exact-before.json.
|
||||
|
||||
| Unit | matched data | total data | instruction exact |
|
||||
| --- | ---: | ---: | ---: |
|
||||
| SDChannelSelect | 224 | 2960 | 117/129 |
|
||||
| ChannelSelect | 192 | 2336 | 101/102 |
|
||||
| GCWindow | 248 | 2032 | 47/48 |
|
||||
| SDMemory | 200 | 3344 | 63/66 |
|
||||
|
||||
Pool-first audit: SDChannelSelect 101/101, GCWindow 50/50 and SDMemory 90/90 strings identical. ChannelSelect first divergence index 91, offset 0x653, duplicates WSD_SELECT after its earlier ordinary literal at 0x524. Relocation audit found SDMemory title-pane table at .data+0xc targets A,B,C,D,B_BtnA; source instead uses A,B,B_BtnA,C,D. Correct the typed table initializer.
|
||||
|
||||
All raw shared .data bytes already equal for SDChannelSelect, GCWindow and SDMemory. Their unequal section scores also involve coarse extracted symbol boundaries and deduplicated weak data. A raw-byte comparison alone does not prove relocations match. No symbols or splits have been changed.
|
||||
|
||||
## SDMemory
|
||||
|
||||
Fetched origin before starting; no source changes on origin/main. Attempt 1: corrected the real five-entry title-pane table to A,B,C,D,B_BtnA. Target .data+0x14/+0x18/+0x1c relocations name the corresponding C,D,B_BtnA .sdata literals. Source and target now have identical literal bytes and table targets. Quick gate: data 200 -> 3344/3344, every data section 100%; instruction-exact 63/66 unchanged, objdiff-exact 64/66 unchanged, regressions 0, GATE PASS. No additional data objects or ownership edits needed.
|
||||
|
||||
## ChannelSelect
|
||||
|
||||
Fetched origin before starting; no source changes on origin/main. Attempt 1: moved the real scSE_WSD_SELECT definition before preparePageScrolling and referenced that object instead of producing another identical literal. Pool 99/98 -> 98/98 strings, identical; .data raw shared bytes now identical. .data objdiff 32.810795 -> 95.60976; instruction-exact 101/102 unchanged. Remaining semantic reloc differences are exclusively weak interpolation/gui vtables, not strings, arrays or live ChannelSelect/event-handler vtable entries. Source .data 2140 versus target 2144 is trailing linker alignment; source .sdata 73 versus target 80 and .sbss 4 versus 8 also contain only trailing zero alignment. No artificial objects added to fill these gaps.
|
||||
|
||||
Full clean gate over all four units: GATE PASS, full build ok, DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d, regressions 0, forbidden patterns 0, readability problems 0. SDMemory all non-text sections 100% and matched_data 3344/3344. Instruction-exact counts remain 117,101,47,63. Source review is three changed lines plus moving one existing definition.
|
||||
|
||||
## GCWindow
|
||||
|
||||
Fetched origin before starting; no source changes on origin/main. Target nm shows LinearIntp<VEC3> destructor and vtable undefined, while the source instantiated a weak LinearIntp vtable at .data+0x650 and Interporation vtable at +0x660, displacing the real MemCardEventHandler vtable from +0x650 to +0x670. These are explicit-specialization ownership differences rather than missing arrays. The existing LinearIntp constructor is instruction-exact, 4/4 instructions, diffs 0.
|
||||
|
||||
Attempt 1: declare the concrete LinearIntp<VEC3> specialization with an out-of-line destructor, preserving Interporation<VEC3> inheritance. First compilation exposed earlier include order, fixed by including math types under the same GCWindow-only macro. Real MemCardEventHandler vtable returned to +0x650; .data 16.997168 -> 99.55357. The remaining weak Interporation vtable moved to the end. All 47 baseline exact functions preserved.
|
||||
|
||||
Attempt 2: declare the corresponding concrete Interporation<VEC3> specialization with an out-of-line destructor, keeping its existing fields, initialization and accessors. Both interpolation vtables now have external ownership as the target's LinearIntp relocation proves; no fake zero tables, section attributes or forced references. .data 100%, data 248 -> 2032/2032; all other data sections remain 100%, instruction-exact 47/48 unchanged. Semantic relocations in .data, .rodata and .sdata now agree fully. Every shared-header change is under IPL_GC_WINDOW_CPP, defined only by the owned GCWindow.cpp.
|
||||
|
||||
## SDChannelSelect
|
||||
|
||||
Fetched origin before starting; no source changes on origin/main. Pool 101/101 identical. All raw shared bytes of .data, .rodata, .sdata and .sdata2 identical. All non-text semantic relocations before .data+0x960 identical, including every pane-name array, dialog page and compiler switch table. Live button/event/scene vtables start at target 0x980/0x99c/0x9b4 versus source 0x960/0x97c/0x994. Target .data+0x960..0x980 is all zero and has no relocation or symbol. Target trailing deduplicated GUI vtables have zero bytes and no relocations, while source emits real weak PaneManager/EventHandler/Interface vtables. No artificial gap object is permitted.
|
||||
|
||||
Attempt 1: HermiteIntp<VEC3> specialization inherited the existing Interporation<VEC3> and defined its destructor inline. Preserved all 117 exact functions but generated the two weak vtables at the end, not in the target's earlier anonymous 32-byte gap. .data stayed 35.06984, matched_data 224. Reverted.
|
||||
|
||||
Attempt 2: use the primary HermiteIntp template with a VEC3 member-init specialization declaration. Preserved 117 exact functions but instantiated init and weak vtables at the end. .data stayed 35.06984, matched_data 224. Reverted because ownership was less faithful to the target's undefined init symbol.
|
||||
|
||||
Attempt 3: retain concrete HermiteIntp<VEC3> destructor/init out of line but inherit Interporation<VEC3>. Preserved 117 exact functions; only the intermediate weak vtable was emitted at the end. .data stayed 35.06984, matched_data 224. Reverted.
|
||||
|
||||
Symbol investigation: renamed the two event-handler and scene vtable symbols without changing their extents, using their function-pointer relocations as evidence; .data reached 43.61462, no matched-data gain. Also experimentally split the BaseMask4/Picture_04/ClockPane2 literal-plus-array aggregates at their proven literal lengths and five-/three-pointer table boundaries, preserving section bytes, lengths and all relocations; .data reached 56.610638, no matched-data gain. Reverted all symbols changes. Do not confuse symbol-scoring improvements with exact bytes or acceptance. The anonymous zero gap's exact ownership is not proven, so it remains open rather than being filled with fabricated data.
|
||||
|
||||
## Data-lane completion audit
|
||||
|
||||
SDMemory and GCWindow have every non-text section at 100% and matched_data equal total_data. ChannelSelect has identical zero-extended raw non-text section bytes and identical live relocations; remaining .data score 95.60976 comes solely from linker-deduplicated weak interpolation/gui data. Per task step 4, record this extraction limitation instead of deleting correct weak tables or adding zeros. SDChannelSelect has three distinct typed-class attempts plus relocation-backed symbol experiments; its missing anonymous 32-byte zero range and shifted live vtable placement remain unresolved. The code-only non-matches are outside this data-lane assignment and have not been changed.
|
||||
|
||||
ChannelSelect attempt 2: preserved the Hermite primary template but inherited FrameController directly, with the existing start/end fields instead of the intermediate Interporation base. The intermediate weak vtable disappeared and shifted live event/scene vtables by 16 bytes; .data fell from 95.60976 to 32.810795 despite 101 instruction-exact functions remaining. Reverted.
|
||||
|
||||
ChannelSelect attempt 3: kept the VEC3 interpolation hierarchy and declared the concrete f32 Hermite specialization with its real fields/init/get and out-of-line destructor, matching the target's external f32 vtable ownership. .data rose to 96.36185, but compiler literal ordering changed .sdata2 to 88.63636 and instruction-exact functions fell 101 -> 100, objdiff code 24736 -> 24272, data 192 -> 104. Rejected and reverted immediately. No failing experiment was committed.
|
||||
|
||||
All three remaining-data source attempts are recorded for ChannelSelect and SDChannelSelect. GCWindow data is exact after two attempts; SDMemory data is exact after one initializer correction. No code decompilation was undertaken in this lane.
|
||||
|
||||
## Final clean gate
|
||||
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 27108/33828 data 224/2960 functions 117/129 fuzzy 99.5051 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 117/129
|
||||
[src/scene/channelSelect/iplChannelSelect] objdiff: code 24736/25668 data 192/2336 functions 101/102 fuzzy 99.7634 linked code 0
|
||||
[src/scene/channelSelect/iplChannelSelect] instruction-exact functions: 101/102
|
||||
[src/scene/memoryCard/iplGCWindow] objdiff: code 9172/9964 data 2032/2032 functions 47/48 fuzzy 99.8398 linked code 0
|
||||
[src/scene/memoryCard/iplGCWindow] instruction-exact functions: 47/48
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 14812/20872 data 3344/3344 functions 64/66 fuzzy 98.9810 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 63/66
|
||||
regressions vs baseline: 0
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
Fresh comparison confirms no baseline instruction-exact function disappeared. All four string pools identical. GCWindow and SDMemory semantic non-text relocations identical; GCWindow and SDMemory data are 100%. Extab/extabindex, .bss and .sbss are absent except ChannelSelect .sbss, which reports 100%. Config/splits/symbols unchanged in the final diff. Final clean gate log: /tmp/data-d5-final-gate.log. Symbol/relocation evidence: /tmp/data-d5-symbol-relocation-evidence.txt; final semantic relocation comparison: /tmp/data-d5-final-relocs.txt.
|
||||
162
tools/decomp-assist/data-d6.attempts.md
Normal file
162
tools/decomp-assist/data-d6.attempts.md
Normal file
@@ -0,0 +1,162 @@
|
||||
# data-d6 attempts
|
||||
|
||||
Applied unslop to this log and final report. Worker scope is the four assigned units; no orchestration or upstream actions.
|
||||
|
||||
Baseline HEAD and origin/main: eecf16f0. Fetch checked before each unit; owned source paths have no incoming changes.
|
||||
|
||||
Baseline instruction-exact / matched code / matched data:
|
||||
- CDBRecord: 27/29, 5464/7076, 144/2640.
|
||||
- sd_drv: 21/26, 8940/11760, 408/3592.
|
||||
- www_surface: 21/21, 1916/1916, 40/3536.
|
||||
- iplFocusObject: 88/89, 19772/20332, 408/2576.
|
||||
Initial full-build quick gate passes, zero regressions, retail DOL SHA1.
|
||||
|
||||
## sd_drv data
|
||||
|
||||
Pool identical, all 46 strings at identical offsets. nm -n, objdump -t and ELF symbols show target g_pfd_sddrv_info has size 32, source 28; the next object starts at 32 in both. Target .bss is 608 bytes aligned to 32. Source .bss is 608 bytes aligned to 8. Raw BSS bytes are identical. Existing fields occupy 25 bytes; the source type rounds to 28. Recovering eight-byte struct alignment rounds the real type to its original 32-byte extent without adding a field or object.
|
||||
|
||||
1. Restore ALIGN32 on SD globals and interrupt event. .sbss g_event moves from 8 to target 32 and section alignment becomes 32, but final size is 36 rather than extracted 40. No data score gain. Not retained.
|
||||
2. Give the information type 32-byte alignment, with aligned globals. BSS becomes 100%, but code falls from 21 to 17 exact functions. ctxdiff shows changed physical-read increment scheduling and an extra move in get_disk_info. Rejected and restored.
|
||||
3. Give only the information type eight-byte alignment. BSS becomes 100%; matched_data 408 -> 1016; code remains 8940 and 21 exact functions. No extra fields, padding objects, forced sections or symbol-size edits.
|
||||
|
||||
The .data raw bytes match for all 2574 source bytes; target is 2576 bytes, with two trailing zero bytes. All 46 pool strings and offsets match. No source table is missing. The remaining .data score 99.96117 reflects the extracted final section extent. No split correction is justified by relocations; no correction made. .sbss raw zero bytes match, but extracted target includes alignment before g_event and trailing alignment. Objdiff already scores it 100%; this is not proof of identical object layout.
|
||||
|
||||
## www_surface data
|
||||
|
||||
Pool identical, all 126 strings. .data target 3496/source 3495, every overlapping byte identical and target final byte zero. All export-table relocations resolve to the same exported functions and string offsets. Target .data has no relocations for the discarded message table at 0xc0c..0xc6b; source has a relocation at 0xc64 to IPL_WWW_SURFACE_ZERO. Real manager vtable relocation at 0xd98 matches its destructor. The weak TickTimer report string at 0xd9c is zero-filled in both extracted objects and source, with one final alignment byte only in target. Existing header includes a weak-zero workaround; no additional workaround is added. No table, vtable, or function is deleted to suppress weak relocations. The remaining score is 99.842384, matched_data 40/3536. Object extraction and deduplication explain these differences; no ownership correction has supporting relocation evidence.
|
||||
|
||||
## iplFocusObject data
|
||||
|
||||
Pool identical, all 80 strings. .data target 2168/source 2164; all overlapping raw bytes identical, final four extracted bytes zero. Relocations through the real event vtable at 0x7c8..0x7df agree. Original has no relocations after 0x7df. Source emits real weak PaneManager, gui::EventHandler and gui::Interface vtables at 0x7e0..0x873 with destructor/method relocations, whereas the extracted original contains zero-filled discarded weak data. No class declarations or virtual methods are deleted to remove required real tables. .rodata, .sdata and .sdata2 already score 100%. Remaining .data score 99.90767 reflects weak relocation metadata and final alignment. No split correction is justified.
|
||||
|
||||
## CDBRecord data
|
||||
|
||||
Pool first diverges at index 8, offset 0x1b0. Target diagnostic is file-size, source data-size. Target .data is 2496 bytes; source 925. The target retains 47 diagnostic strings, source 19. The absent diagnostics refer to file/data reduction, type getters/setters, maker-code, modification getters, keyword, key/calendar access, duplication and owner change. Target .text has only 29 live functions; these diagnostic-producing functions have no surviving instructions. Definitions cannot be recovered literally from the assigned extracted object. No string blobs, unused diagnostic objects or speculative public functions are added merely to obtain these bytes. Existing typed crypt buffers and AES key match, 144 bytes.
|
||||
|
||||
Existing CDBRecord.attempts.md records three distinct CDBCryptBuffer loop variants and at least four distinct CDBRecordEncrypt lifetime/alignment variants. Those are code-lane attempts, not a repair for absent data. Current run checks these functions independently below.
|
||||
|
||||
pfd_sddrv_get_total_sectors | one shift expression | objdiff 96.9875%, instructions 80/80, diffs 10; unit code 8940, data 1016, functions 21
|
||||
|
||||
pfd_sddrv_get_total_sectors | unsigned shift expression | objdiff 95.8625%, instructions 79/80, diffs different instruction counts; unit code 8940, data 1016, functions 21
|
||||
|
||||
pfd_sddrv_get_total_sectors | named shift count | objdiff 96.9875%, instructions 80/80, diffs 10; unit code 8940, data 1016, functions 21
|
||||
|
||||
pfd_sddrv_init | unsigned null comparison | objdiff 92.326385%, instructions 144/144, diffs 31; unit code 8940, data 1016, functions 21
|
||||
|
||||
pfd_sddrv_init | named null disk | objdiff 92.326385%, instructions 144/144, diffs 31; unit code 8940, data 1016, functions 21
|
||||
|
||||
pfd_sddrv_init | explicit device lifetime | objdiff 84.02778%, instructions 145/144, diffs different instruction counts; unit code 8940, data 1016, functions 21
|
||||
|
||||
pfd_sddrv_finalize | clear disk before media state | objdiff 92.61404%, instructions 57/57, diffs 5; unit code 8940, data 1016, functions 21
|
||||
|
||||
pfd_sddrv_finalize | named remaining flags | objdiff 92.63158%, instructions 57/57, diffs 4; unit code 8940, data 1016, functions 21
|
||||
|
||||
pfd_sddrv_finalize | clear drive before flags | objdiff 81.929825%, instructions 57/57, diffs 9; unit code 8940, data 1016, functions 21
|
||||
|
||||
pfd_sddrv_store_mbr_buf | name cylinder size | objdiff 99.75247%, instructions 202/202, diffs 9; unit code 8940, data 1016, functions 21
|
||||
|
||||
pfd_sddrv_store_mbr_buf | name first sector before CHS | objdiff 99.75247%, instructions 202/202, diffs 9; unit code 8940, data 1016, functions 21
|
||||
|
||||
pfd_sddrv_store_mbr_buf | calculate start head before cylinder | objdiff 99.75247%, instructions 202/202, diffs 9; unit code 8940, data 1016, functions 21
|
||||
|
||||
pfd_sddrv_build_fat32_mbr_bpb | named sector buffer | objdiff 89.572075%, instructions 230/222, diffs different instruction counts; unit code 8940, data 1016, functions 21
|
||||
|
||||
pfd_sddrv_build_fat32_mbr_bpb | reuse initialized format structure | objdiff 90.6982%, instructions 239/222, diffs different instruction counts; unit code 8940, data 1016, functions 21
|
||||
|
||||
Ran nm -n, objdump -t and objdump -r -j for every present owned non-text section of both objects. Full output is /tmp/data-d6.symbols-relocations.txt. None of the four objects has extab or extabindex. No splits or symbols were changed.
|
||||
|
||||
pfd_sddrv_build_fat32_mbr_bpb | remove unreachable null check from reserved-sector helper | objdiff 97.20721%, instructions 216/222, diffs different instruction counts; unit code 8472, data 1016, functions 20
|
||||
|
||||
cmn_calc__Q33ipl5scene12focus_objectFv | name scroller translation vector | objdiff 87.21429%, instructions 140/140, diffs 31; unit code 19772, data 408, functions 88
|
||||
|
||||
cmn_calc__Q33ipl5scene12focus_objectFv | name balloon position | objdiff 87.185715%, instructions 140/140, diffs 35; unit code 19772, data 408, functions 88
|
||||
|
||||
cmn_calc__Q33ipl5scene12focus_objectFv | separate scroller and fade translations | objdiff 87.185715%, instructions 140/140, diffs 35; unit code 19772, data 408, functions 88
|
||||
|
||||
CDBCryptBuffer | for-loop offset lifetime | objdiff 99.97479%, instructions 119/119, diffs 3; unit code 5464, data 144, functions 27
|
||||
|
||||
CDBCryptBuffer | remaining-size chunk comparison | objdiff 92.411766%, instructions 118/119, diffs different instruction counts; unit code 5464, data 144, functions 27
|
||||
|
||||
CDBCryptBuffer | named chunk pointer | objdiff 98.29412%, instructions 119/119, diffs 5; unit code 5464, data 144, functions 27
|
||||
|
||||
CDBRecordEncrypt | file-size and data-size declaration order | objdiff 97.211266%, instructions 283/284, diffs different instruction counts; unit code 5464, data 144, functions 27
|
||||
|
||||
CDBRecordEncrypt | signed pointer tests to pointer null tests | objdiff 96.62676%, instructions 284/284, diffs 246; unit code 5464, data 144, functions 27
|
||||
|
||||
CDBRecordEncrypt | signature before hash output | objdiff 97.19014%, instructions 283/284, diffs different instruction counts; unit code 5464, data 144, functions 27
|
||||
|
||||
## Open-function audit
|
||||
|
||||
Every still-open function received three distinct source experiments in this run, individually built and measured, then restored. No experimental code is retained.
|
||||
|
||||
- CDBCryptBuffer, 99.97479%, 119/119 instructions, exactly three diagnostic pool offsets differ. The absent pre-crypt diagnostics are the cause. Loop changes cannot repair them.
|
||||
- CDBRecordEncrypt, 97.19014%, 283/284 instructions, pool offsets plus stack positions and register allocation. Three fresh attempts and prior attempts remain non-exact.
|
||||
- pfd_sddrv_init, 92.326385%, 144/144 instructions, branch direction, allocation and store scheduling. Unsigned/null tests unchanged; moving the device assignment worsened the result.
|
||||
- pfd_sddrv_finalize, 92.63158%, 57/57 instructions, four register/scheduling differences. Named flags unchanged; clearing other fields first worsened the result.
|
||||
- pfd_sddrv_get_total_sectors, 99.5%, 80/80 instructions, six shift/register differences. One expression, unsigned shift and named shift lifetime failed.
|
||||
- pfd_sddrv_store_mbr_buf, 99.75247%, 202/202 instructions, nine CHS temporary-register differences. Named cylinder size, named first sector and swapped CHS statement order all unchanged.
|
||||
- pfd_sddrv_build_fat32_mbr_bpb, 94.75225%, 230/222 instructions, inlined reserved-sector null test and scheduling. Naming the buffer and initializing the structure failed. Removing the helper guard produced 216/222 instructions and regressed another exact function, so it was restored.
|
||||
- cmn_calc__Q33ipl5scene12focus_objectFv, 87.185715%, 140/140 instructions, stack temporary placement and floating-point ordering. Naming the translation reduces 35 differences to 31 but is not exact; naming balloon and fade positions is unchanged.
|
||||
|
||||
Data goal remains incomplete. No diagnostic strings, ghost functions, dummy tables, removed virtual methods, artificial padding or section-size edits were used. Type alignment is inferred from the original 32-byte information-object extent, not from a surviving retail type declaration. Weak discarded sections and linker tail alignment are reported as extraction limitations, not as 100% objdiff results.
|
||||
|
||||
## Final clean gate
|
||||
|
||||
Command: python3 /mnt/drive2/projects/wii-ipl-workers/_restore0928-tools/gate.py libs/RevoEX/src/cdb/CDBRecord libs/RVL_SDK/src/fa/driver/sd_drv src/iplwww/www_surface src/scene/board/iplFocusObject
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/cdb/CDBRecord] pool: DIVERGES at string 8 (mine=19 orig=47)
|
||||
[libs/RevoEX/src/cdb/CDBRecord] objdiff: code 5464/7076 data 144/2640 functions 27/29 fuzzy 99.5472 linked code 0
|
||||
[libs/RevoEX/src/cdb/CDBRecord] instruction-exact functions: 27/29
|
||||
[libs/RevoEX/src/cdb/CDBRecord] section .bss size 128 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBRecord] section .data size 2496 match 50.833576
|
||||
[libs/RevoEX/src/cdb/CDBRecord] section .rodata size 16 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBRecord] section .text size 7076 match 99.5472
|
||||
[libs/RevoEX/src/cdb/CDBRecord] below 100: CDBCryptBuffer 99.97479
|
||||
[libs/RevoEX/src/cdb/CDBRecord] below 100: CDBRecordEncrypt 97.19014
|
||||
[libs/RevoEX/src/cdb/CDBRecord] baseline: code 5464/7076 data 144 functions 27 fuzzy 99.5472
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] objdiff: code 8940/11760 data 1016/3592 functions 21/26 fuzzy 99.0544 linked code 0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] instruction-exact functions: 21/26
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .bss size 608 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .data size 2576 match 99.96117
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .rodata size 368 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .sbss size 40 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .text size 11760 match 99.05442
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_init 92.326385
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_finalize 92.63158
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_get_total_sectors 99.5
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_mbr_buf 99.75247
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_build_fat32_mbr_bpb 94.75225
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] baseline: code 8940/11760 data 408 functions 21 fuzzy 99.0544
|
||||
[src/iplwww/www_surface] pool: IDENTICAL
|
||||
[src/iplwww/www_surface] objdiff: code 1916/1916 data 40/3536 functions 21/21 fuzzy 100.0000 linked code 1916
|
||||
[src/iplwww/www_surface] instruction-exact functions: 21/21
|
||||
[src/iplwww/www_surface] section .data size 3496 match 99.842384
|
||||
[src/iplwww/www_surface] section .sbss size 32 match 100.0
|
||||
[src/iplwww/www_surface] section .sdata size 8 match 100.0
|
||||
[src/iplwww/www_surface] section .text size 1916 match 100.0
|
||||
[src/iplwww/www_surface] baseline: code 1916/1916 data 40 functions 21 fuzzy 100.0000
|
||||
[src/scene/board/iplFocusObject] pool: IDENTICAL
|
||||
[src/scene/board/iplFocusObject] objdiff: code 19772/20332 data 408/2576 functions 88/89 fuzzy 99.6471 linked code 0
|
||||
[src/scene/board/iplFocusObject] instruction-exact functions: 88/89
|
||||
[src/scene/board/iplFocusObject] section .data size 2168 match 99.90767
|
||||
[src/scene/board/iplFocusObject] section .rodata size 176 match 100.0
|
||||
[src/scene/board/iplFocusObject] section .sdata size 176 match 100.0
|
||||
[src/scene/board/iplFocusObject] section .sdata2 size 56 match 100.0
|
||||
[src/scene/board/iplFocusObject] section .text size 20332 match 99.64706
|
||||
[src/scene/board/iplFocusObject] below 100: cmn_calc__Q33ipl5scene12focus_objectFv 87.185715
|
||||
[src/scene/board/iplFocusObject] baseline: code 19772/20332 data 408 functions 88 fuzzy 99.6471
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.52293 -> 88.52293
|
||||
global fuzzy_match_percent: 99.44739 -> 99.44739
|
||||
global complete_code_percent: 62.78043 -> 62.78043
|
||||
global matched_data_percent: 93.05085 -> 93.08402
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
Only retained source edit is the information type alignment, committed as 1fe346a7. Exact counts and code bytes unchanged across every owned unit. Final DOL hash matches, no regression, no forbidden patterns, no readability warnings. All eight open functions have three fresh attempts. Four data sections remain below 100%; full data matching is not claimed.
|
||||
124
tools/decomp-assist/four-leaves-r9.attempts.md
Normal file
124
tools/decomp-assist/four-leaves-r9.attempts.md
Normal file
@@ -0,0 +1,124 @@
|
||||
Single worker; 43U only. Start full quick gate PASS, no regressions, DOL SHA1 correct. Previous logs retained.
|
||||
BEGIN __nupHttpStringFlush: origin=0b623f581bb359f058651f7ef858e0813200754d, fetch=0, source identical=True; Only open callback: frame 0x20 equal; growth branch missing one target join; total scratch operand order and argument-copy lifetimes precede allocation colors. Prior round helper recovered branch but left nine scratch diffs.
|
||||
POOL FIRST __nupHttpStringFlush: POOL IDENTICAL up to 6 (mine=6 base=6) |
|
||||
ATTEMPT __nupHttpStringFlush: append helper parameters length,data,requested,text; source fc9399010c81; structural/exact,lengths ((0, 6), 56, 56); POOL IDENTICAL up to 6 (mine=6 base=6)
|
||||
ATTEMPT __nupHttpStringFlush: append helper parameters text,length,requested,data; source cb3f239811e9; structural/exact,lengths ((0, 6), 56, 56); POOL IDENTICAL up to 6 (mine=6 base=6)
|
||||
ATTEMPT __nupHttpStringFlush: append helper parameters requested,length,data,text; source 58aa00e9f1f3; structural/exact,lengths ((0, 6), 56, 56); POOL IDENTICAL up to 6 (mine=6 base=6)
|
||||
ATTEMPT __nupHttpStringFlush: append helper parameters length,requested,text,data; source a39b1b40b1b4; structural/exact,lengths ((0, 6), 56, 56); POOL IDENTICAL up to 6 (mine=6 base=6)
|
||||
ATTEMPT __nupHttpStringFlush: append helper parameters data,text,length,requested; source 9d934b62d2aa; structural/exact,lengths ((0, 6), 56, 56); POOL IDENTICAL up to 6 (mine=6 base=6)
|
||||
ATTEMPT __nupHttpStringFlush: append helper parameters text,data,requested,length; source 76b4ea50b415; structural/exact,lengths ((0, 6), 56, 56); POOL IDENTICAL up to 6 (mine=6 base=6)
|
||||
ATTEMPT __nupHttpStringFlush: growth helper and pointer output total typed unsigned int; source 356677ffe7c9; structural/exact,lengths ((0, 9), 56, 56); POOL IDENTICAL up to 6 (mine=6 base=6)
|
||||
ATTEMPT __nupHttpStringFlush: growth helper and input count consumed before data copy; source 9a89af19a3c5; structural/exact,lengths ((0, 23), 56, 56); POOL IDENTICAL up to 6 (mine=6 base=6)
|
||||
ATTEMPT __nupHttpStringFlush: field before count in add; source c5315b825018; structural/exact,lengths ((0, 5), 56, 56); POOL IDENTICAL up to 6 (mine=6 base=6)
|
||||
ATTEMPT __nupHttpStringFlush: allocation result declared before total; source 48f3b36b92a9; structural/exact,lengths ((0, 0), 56, 56); POOL IDENTICAL up to 6 (mine=6 base=6)
|
||||
ACCEPT __nupHttpStringFlush: full gate PASS,9/9 instruction-exact,2588/2588 code,144/144 data;ctxdiff 0;regressions/forbidden/readability0. Commit recorded in git.
|
||||
BEGIN DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: origin=0b623f581bb359f058651f7ef858e0813200754d, fetch=0, source identical=True; Frame 0x260 aligned, target returns saved list status in r27; public void drops this. First pool divergence83: inline helper names verifySavedataZD,DeleteTicketsForce,InitSavedata precede diagnostics. Target ticket countsp20,titlecountsp24,pathsp28,aligned scratchsp80/file160. Helper boundaries and result lifetime first.
|
||||
POOL FIRST DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: FIRST DIVERGENCE at index 83 | 81 mine=0xcfe base=0xcfe | M '%s::%s: Could not read2 %s: %d\n' | B '%s::%s: Could not read2 %s: %d\n' | 82 mine=0xd1e base=0xd1e | M '%s::%s: Failed to delete %s: %d\n' | B '%s::%s: Failed to delete %s: %d\n' | * 83 mine=0xd3f base=0xd3f | M '%s::%s: Unable to allocate\n' | B 'verifySavedataZD' | * 84 mine=0xd5b base=0xd50 | M 'InitSavedata' | B 'DeleteTicketsForce' | * 85 mine=0xd68 base=0xd63 | M '/title/%08x/%08x/data/%s' | B 'InitSavedata' | * 86 mine=0xd81 base=0xd70 | M 'zeldaTp.dat' | B '%s::%s: Failed to ES_ListTitlesOnCard1: %d\n' | * 87 mine=0xd8d base=0xd9c | M '%s::%s: ChangeUid failed\n' | B '%s::%s: Unable to allocate\n' | | mine has 114 strings, base has 114 |
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: error-first InitSavedata and actual verifier/ticket helpers; caller owns aligned scratch and count; source 10d4b490fc52; structural/exact,lengths ((46, 408), 441, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: real path capacity NAND_MAX_PATH instead of literal; source 64b373c45750; structural/exact,lengths ((46, 408), 441, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: title list pointer advanced with loop index instead of local title reuse; source 89cf3f7a16b1; structural/exact,lengths ((46, 408), 441, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
|
||||
TEMP signature experiment: target explicitly saves both ES_ListTitles results through heap free and moves saved status into r3 at epilogue. Header declaration is guarded for this cpp only; inconclusive experiments will restore header.
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: retain InitSavedata status through public return as target epilogue proves; source 0bf69a62c2d8; structural/exact,lengths ((33, 432), 445, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: mask title high and low separately instead of 64-bit AND; source 9786062a94ad; structural/exact,lengths ((49, 434), 443, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: for-loop title loaded from dereferenced advancing typed pointer; source 5bd5afabf9a2; BUILD FAIL RGET_RVL -W nomissingreturn -ipa file -gccinc -fp_contract off -O4,s -enc SJIS -lang=c++ -MMD -c src/utility/iplESMisc.cpp -o build/43U/src/src/utility && "/usr/bin/python3" tools/transform_dep.py build/43U/src/src/utility/iplESMisc.d build/43U/src/src/utility/iplESMisc.d | ### mwcceppc.exe Compiler: | # In: include\utility\iplTree.h | # From: src\utility\iplESMisc.cpp | # ---------------------------------- | # 40: } | # Warning: ^ | # (10184) return value expected | # (included from: | # Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix- | # board\include\scene\iplSceneBase.h:6 | # Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix- | # board\include\scene\iplSceneManager.h:14 | # Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix- | # board\include\system\iplSystem.h:15 | # Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix- | # board\src\utility\iplESMisc.cpp:5) | ### mwcceppc.exe Compiler: | # File: src\utility\iplESMisc.cpp | # ---------------------------------- | # 664: titleId = *titleCursor; | # Error: ^^^^^^^^^^^ | # (10140) undefined identifier 'titleCursor' | # Too many errors printed, aborting program | | User break, cancelled... | ninja: build stopped: subcommand failed. |
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: list pointer initialization before count shares zero live range; source 93d28836cd1d; structural/exact,lengths ((32, 398), 444, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: inlined masked title predicate separates lifetime from switch; source e9e2eb75ff55; structural/exact,lengths ((33, 403), 446, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
|
||||
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: typed cursor advanced alongside title index after calls; source 1b0ee278f03e; structural/exact,lengths ((38, 391), 443, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
|
||||
DECLSEARCH DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: declaration block: | u8 ticketViews[0xe0] ALIGN32; | NANDFileInfo fileInfo ALIGN32; | u32 ticketViewCount; | ESTitleId* titleIds = NULL; | u32 titleCount = 0; | s32 ret = ES_ListTitlesOnCard(NULL, &titleCount); | start (32, 398) | best (32, 398) after 36 builds; source restored; best order was: | u8 ticketViews[0xe0] ALIGN32; | NANDFileInfo fileInfo ALIGN32; | u32 ticketViewCount; | ESTitleId* titleIds = NULL; | u32 titleCount = 0; | s32 ret = ES_ListTitlesOnCard(NULL, &titleCount); |
|
||||
END DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: no exact; full helpers fixed114 pools, return experiment445/449 then declaration search; no unsupported return/header change retained.
|
||||
BEGIN NHTTPi_strnicmp: origin=73f5b332e2d19fca6be39b74ab9498d03373f59e, fetch=0, source identical=True; Target and ours 51 instructions,0x10 frame; target loads A,Z,zero constants; ours A,zero,Z. All subsequent operands identical: initial constant scheduling tie; generic range/case helper and comparison loop boundary first, declaration search last.
|
||||
POOL FIRST NHTTPi_strnicmp: POOL IDENTICAL up to 1 (mine=1 base=1) |
|
||||
ATTEMPT NHTTPi_strnicmp: comparison inline boundary length,left,right; source 98ac9fa19a0b; structural/exact,lengths ((53, 51), 6, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_strnicmp: comparison inline boundary right,left,length; source 9ecf31d9e27d; structural/exact,lengths ((51, 51), 4, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_strnicmp: comparison inline boundary left,length,right; source f42a4e69a3e4; structural/exact,lengths ((51, 51), 4, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_strnicmp: generic case range helper parameters; source 48b793e35b54; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_strnicmp: loop-local last uppercase character before bool conversions; source b16774aef6e1; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_strnicmp: characters declared independently before loop and assigned left then right; source d49c532c4a3f; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_strnicmp: for comparison loop and count decremented at loop continuation; source 552c6556c73e; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_strnicmp: comparison inline boundary length,left,right; source 403b18b86a8c; structural/exact,lengths ((2, 18), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_strnicmp: comparison inline boundary right,left,length; source 8c55ccb460b7; structural/exact,lengths ((2, 18), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_strnicmp: comparison inline boundary left,length,right; source 5c0a84f1e292; structural/exact,lengths ((2, 18), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_strnicmp: generic case range helper parameters; source 472b71268115; BUILD FAIL rrors 1 -nosyspath -RTTI off -fp_contract on -str reuse -DSDK_IPL -D_REVOLUTION -DMEM_MANAGER_DIRECT -i include -i include/global -i libs/MetroTRK/include -i libs/Runtime/include -i libs/MSL/include -i libs/RVL_SDK/include -i libs/RevoEX/include -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL.c -o build/43U/src/libs/RevoEX/src/nhttp && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL.d build/43U/src/libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL.d | ### mwcceppc.exe Compiler: | # File: libs\RevoEX\src\nhttp\NHTTP_stdlib_RVL.c | # ------------------------------------------------- | # 18: static int FoldAsciiRange(int character, int first, int last) { | # Error: ^ | # (10333) object 'FoldAsciiRange(int, int, int)' redefined | # Too many errors printed, aborting program | | User break, cancelled... | ninja: build stopped: subcommand failed. |
|
||||
ATTEMPT NHTTPi_strnicmp: loop-local last uppercase character before bool conversions; source 48b793e35b54; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_strnicmp: characters declared independently before loop and assigned left then right; source 20f9b4b0869e; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_strnicmp: for comparison loop and count decremented at loop continuation; source 5426c5943c98; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
END NHTTPi_strnicmp: generic range and loop/inline boundary variations remain A,zero,Z instead of A,Z,zero;51/51 instr;2 initial scheduling diffs. No artificial constant objects. Baseline restored.
|
||||
BEGIN NHTTPi_intToStr: origin=73f5b332e2d19fca6be39b74ab9498d03373f59e, fetch=0, source identical=True; 95/95 instructions and frame0x50. Target output cursor r5 scratch, length25/started26/scale cursor28; ours cursor28 saved shifts array-init registers. Zero digit increments length before cursor in target. Structural/source scope before colors;rodata trailing zero is not justification for dummy array entry.
|
||||
POOL FIRST NHTTPi_intToStr: POOL IDENTICAL up to 1 (mine=1 base=1) |
|
||||
ATTEMPT NHTTPi_intToStr: full decimal helper u32 value, char* destination; source 5c5b41e7abe8; structural/exact,lengths ((0, 66), 95, 95); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_intToStr: full decimal helper char* destination, u32 value; source 86350fc21ef7; structural/exact,lengths ((0, 66), 95, 95); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_intToStr: one decimal place inline helper with count before cursor; source b5e826f9d786; structural/exact,lengths ((0, 50), 95, 95); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_intToStr: scale cursor derived each iteration instead of indexed array; source cfeaa1bcb5f4; BUILD FAIL ptions off -O4,p -inline auto -pragma "cats off" -pragma "warn_notinlined off" -maxerrors 1 -nosyspath -RTTI off -fp_contract on -str reuse -DSDK_IPL -D_REVOLUTION -DMEM_MANAGER_DIRECT -i include -i include/global -i libs/MetroTRK/include -i libs/Runtime/include -i libs/MSL/include -i libs/RVL_SDK/include -i libs/RevoEX/include -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL.c -o build/43U/src/libs/RevoEX/src/nhttp && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL.d build/43U/src/libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL.d | ### mwcceppc.exe Compiler: | # File: libs\RevoEX\src\nhttp\NHTTP_stdlib_RVL.c | # ------------------------------------------------- | # 117: u32 quotient=value/*scale; | # Error: ^^ | # (10431) unterminated comment | # Too many errors printed, aborting program | | User break, cancelled... | ninja: build stopped: subcommand failed. |
|
||||
ATTEMPT NHTTPi_intToStr: output pointer declared after state, initialized at declaration; source 0ae35f3c8ec0; structural/exact,lengths ((0, 68), 95, 95); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_intToStr: signed int digit count distinct from started bool; source 3babaa3bd2d3; structural/exact,lengths ((0, 50), 95, 95); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_intToStr: zero branch pointer follows incremented count via explicit assignment; source f26e2f589dd4; structural/exact,lengths ((3, 50), 95, 95); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
DECLSEARCH NHTTPi_intToStr: declaration block: | u32 scales[9]={1000000000,100000000,10000000,1000000,100000,10000,1000,100,10}; | char* output; | int digit; | BOOL started; | s32 length; | start (0, 50) | best (0, 50) after 23 builds; source restored; best order was: | u32 scales[9]={1000000000,100000000,10000000,1000000,100000,10000,1000,100,10}; | char* output; | int digit; | BOOL started; | s32 length; |
|
||||
ATTEMPT NHTTPi_intToStr: corrected explicit scale-pointer iteration with dereference grouping; source b268d634d4f3; structural/exact,lengths ((2, 51), 95, 95); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
END NHTTPi_intToStr:95/95,zero increment order correct;full helper and decimal-place helper did not recover scratch cursor r5 and array initializer colors. Declaration search23builds plateau0struct50exact;baseline retained.
|
||||
BEGIN NHTTPi_compareToken: origin=73f5b332e2d19fca6be39b74ab9498d03373f59e, fetch=0, source identical=True; Target45 instructions vs44,frame0x10 equal;target right fold ternary computes +32 before select,left fold conditional increment;loop starts at condition and checks raw left afterward. Separate fold forms and explicit match helper before register colors.
|
||||
POOL FIRST NHTTPi_compareToken: POOL IDENTICAL up to 1 (mine=1 base=1) |
|
||||
ATTEMPT NHTTPi_compareToken: right ternary, left conditional increment in condition; source 0cd4f863dad6; structural/exact,lengths ((7, 33), 44, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: both ternary fold with raw right byte; source 243ff16422f2; structural/exact,lengths ((2, 16), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: explicit right-before-left match helper; source 1647ce5d1ccb; structural/exact,lengths ((2, 16), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: right-before-left helper parameter lifetimes; source 1343a504f90d; structural/exact,lengths ((2, 16), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: explicit loop labels with right fold assigned first; source baf26353ddda; structural/exact,lengths ((2, 16), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: raw left byte used as termination value after comparisons; source d7804c698429; structural/exact,lengths ((2, 11), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: while condition using explicit raw signed left byte; source 97a4fc2060f5; structural/exact,lengths ((11, 44), 41, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: left fold in same scope as retained raw byte; source 745250e2f4e7; structural/exact,lengths ((2, 11), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: raw right byte split from right fold beside raw left; source e63dda4a2e60; structural/exact,lengths ((2, 11), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: signed raw left byte retained for body checks; source ce7c12f5d84e; structural/exact,lengths ((6, 30), 46, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_compareToken: right fold ternary directly in loop scope; source c0ba805c538a; structural/exact,lengths ((2, 11), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
DECLSEARCH NHTTPi_compareToken: declaration block: | u8 rawLeft; | int leftCharacter; | int rightCharacter; | start (2, 11) | best (2, 11) after 6 builds; source restored; best order was: | u8 rawLeft; | int leftCharacter; | int rightCharacter; |
|
||||
END NHTTPi_compareToken: ternary helper recovers45/45 instructions;constantZ/zero order and raw/folded-left colors remain;baseline retained unless exact.
|
||||
BEGIN NHTTPi_Base64Encode: origin=eecf16f01e322dc36702d4fdd7f6cda7a96af2dc, fetch=0, source identical=True; 119/119 instr,frame0x20;target signed padding compares; loads first,second,then third; addition trees table+masked fragment before shifted fragment;interleaving two unrolled quartets dominates. Separate source loads and semantic quartet helper before declaration order.
|
||||
POOL FIRST NHTTPi_Base64Encode: POOL IDENTICAL up to 1 (mine=1 base=1) |
|
||||
ATTEMPT NHTTPi_Base64Encode: three named bytes and alphabet pointer grouped with masked fragment; source f97491ede3bc; structural/exact,lengths ((69, 69), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_Base64Encode: quartet inline boundary source/output/table; source 5bba5317cbbb; structural/exact,lengths ((69, 69), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_Base64Encode: quartet inline boundary table/source/output; source 54495c0d5e7f; structural/exact,lengths ((69, 69), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_Base64Encode: named bytes loaded second then first then third; source 7fff37c1745c; structural/exact,lengths ((69, 67), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_Base64Encode: signed bytes with named shifted fragments before stores; source 149bbd1c468d; structural/exact,lengths ((78, 115), 123, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_Base64Encode: mask first two bytes while retaining signed shifts; source f3b10128aa59; structural/exact,lengths ((69, 69), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_Base64Encode: indexed alphabet reversed shifted-fragment addition order; source cfb666169fc4; structural/exact,lengths ((43, 57), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
ATTEMPT NHTTPi_Base64Encode: table pointer base before each masked index sum; source 57c3d743feb8; structural/exact,lengths ((69, 56), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
DECLSEARCH NHTTPi_Base64Encode:
|
||||
END NHTTPi_Base64Encode: source byte/fragment/inline-quartet changes preserve pool but119/119 scheduling remains;best43struct57exact, declsearch no leading declarations due static alphabet array;baseline retained.
|
||||
BEGIN TMCJPEGDEC_IdctBlock_Lumi: origin=eecf16f01e322dc36702d4fdd7f6cda7a96af2dc, fetch=0, source identical=True; 257/257 instructions,frame0x140/saved18 equal;first row butterfly missing early odd differences and late even-sum scheduling; second pass pitch multipliers and odd-even lifetimes reorder. Recover meaningful intermediate lifetimes, separate coefficient butterfly and preserve out store order before local-color search.
|
||||
POOL FIRST TMCJPEGDEC_IdctBlock_Lumi: POOL IDENTICAL up to 0 (mine=0 base=0) |
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: separate coefficient differences and scale even coefficient into b2; source c5e5e6c53f44; structural/exact,lengths ((29, 188), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: even sum delayed until after DC load and odd factor; source 1fb5ef9bfcaa; structural/exact,lengths ((46, 197), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: unshifted even product has separate lifetime before scaled b2; source ad4c3512225f; structural/exact,lengths ((29, 188), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: odd low and high differences before even product in both passes; source 34ad9ab19c1c; structural/exact,lengths ((47, 190), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: row odd outputs explicitly paired before first stores; source d3004abf9f8b; structural/exact,lengths ((29, 188), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: actual row butterfly inline helper separates column lifetimes; source 4e0f6e6cdda2; structural/exact,lengths ((47, 191), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: row output before difference product and late final pair expressions; source f5e05db71395; structural/exact,lengths ((29, 188), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
DECLSEARCH TMCJPEGDEC_IdctBlock_Lumi: declaration block: | s32 tmp[64]; | s32* dst; | s32 done; | s32 iter; | s32 i; | s32 e; | s32 b2; | s32 b3; | s32 b4; | s32 b5; | s32 b6; | s32 b7; | s32 v; | s32 m; | s32 a; | s32 d; | s32 z; | s32 o; | s32 p; | s32 p_part; | s32 t; | s32 u; | s32 r; | s32 n; | s32 y; | s32 x_factor; | s32 z_factor; | s32 m_part; | s32 q; | s32 w; | s32 x; | s32 b1; | start (29, 188) | improved (25, 189) | improved (25, 188) | best (25, 188) after 180 builds; kept in source: | s32 d; | s32* dst; | s32 done; | s32 iter; | s32 i; | s32 e; | s32 b2; | s32 b3; | s32 b4; | s32 b5; | s32 b6; | s32 b7; | s32 v; | s32 m; | s32 a; | s32 m_part; | s32 z; | s32 o; | s32 p; | s32 p_part; | s32 t; | s32 u; | s32 r; | s32 n; | s32 y; | s32 x_factor; | s32 z_factor; | s32 tmp[64]; | s32 q; | s32 w; | s32 x; | s32 b1; |
|
||||
WITHDRAW Lumi even-sum-delayed and even-product-before-sum variants: b2 overwrite changed original coefficient; neither improved or was retained. These do not count toward distinct honest attempts. Five other valid variants built;all restored.
|
||||
BEGIN TMCJPEGDEC_IdctBlock_Col: origin=eecf16f01e322dc36702d4fdd7f6cda7a96af2dc, fetch=0, source identical=True; 454/454,frame0x130/saved25 equal;DC clamp target uses r3 bool until after range compare,ours hoists output arg r3 early. General row scheduling differs aroundDC load/even sum and first four stores. Low-two row opcode order matches but register lifetimes differ. Actual DC and two-coefficient helpers before declaration search.
|
||||
POOL FIRST TMCJPEGDEC_IdctBlock_Col: POOL IDENTICAL up to 0 (mine=0 base=0) |
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Col: DC inline fill s32 coefficient, u8* output; source e81325589df4; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Col: DC inline fill u8* output, s32 coefficient; source 9aad8f424ae6; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Col: clamp return tested before assigning output call argument; source 61cf75d0643b; structural/exact,lengths ((23, 448), 456, 454); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Col: two-coefficient row inline helper; source da0092a29f5d; structural/exact,lengths ((36, 315), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Col: general row even sum at DC load boundary without overwriting input; source c64135f35a62; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Col: general row output quartet named before stores; source 149c02489070; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ATTEMPT TMCJPEGDEC_IdctBlock_Col: DC clamp input declared outside zigzag case; source 0e510aaf146d; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
DECLSEARCH TMCJPEGDEC_IdctBlock_Col: declaration block: | s32 tmp[64]; | s32* dst; | s32 done; | s32 iter; | s32 d; | s32 b1; | s32 b2; | s32 b3; | s32 b4; | s32 b5; | s32 b6; | s32 b7; | s32 v; | s32 r; | s32 a; | s32 i; | s32 m; | s32 n; | s32 o; | s32 x; | s32 q; | s32 y; | s32 u; | s32 w; | s32 p; | s32 t; | s32 z; | s32 x_factor; | s32 z_factor; | s32 m_part; | s32 p_part; | s32 e; | start (18, 290) | improved (16, 287) | best (16, 287) after 180 builds; kept in source: | s32 tmp[64]; | s32* dst; | s32 done; | s32 iter; | s32 w; | s32 b1; | s32 b2; | s32 b3; | s32 b4; | s32 b5; | s32 b6; | s32 b7; | s32 v; | s32 r; | s32 a; | s32 i; | s32 m; | s32 n; | s32 o; | s32 x; | s32 q; | s32 y; | s32 u; | s32 d; | s32 p; | s32 t; | s32 z; | s32 x_factor; | s32 z_factor; | s32 m_part; | s32 p_part; | s32 e; |
|
||||
END TMCJPEGDEC_IdctBlock_Lumi: five valid source variants and180 declaration builds,25struct188exact best;row/column arithmetic scheduling and colors remain. Baseline restored.
|
||||
END TMCJPEGDEC_IdctBlock_Col: seven valid source variants and180 declaration builds,16struct287exact best;DC helper still hoists output assignment;row scheduling and colors remain. Baseline restored.
|
||||
BEGIN NHTTPi_strnicmp: origin=eecf16f01e322dc36702d4fdd7f6cda7a96af2dc, fetch=0, source identical=True; Register/scheduling-only followup after structural experiments. Give leading real char locals to declsearch; no additional constants or dummy values.
|
||||
POOL FIRST NHTTPi_strnicmp: POOL IDENTICAL up to 1 (mine=1 base=1) |
|
||||
ATTEMPT NHTTPi_strnicmp: two independent leading chars enable declaration search; source d49c532c4a3f; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
|
||||
DECLSEARCH NHTTPi_strnicmp: declaration block: | int a; | int b; | start (2, 2) | best (2, 2) after 2 builds; source restored; best order was: | int a; | int b; |
|
||||
BEGIN NHTTPi_Base64Encode: origin=eecf16f01e322dc36702d4fdd7f6cda7a96af2dc, fetch=0, source identical=True; Declaration-only followup after byte and quartet experiments. Alphabet is static array, so search its following real table/cursor/length/count declarations explicitly.
|
||||
POOL FIRST NHTTPi_Base64Encode: POOL IDENTICAL up to 1 (mine=1 base=1) |
|
||||
DECLSEARCH NHTTPi_Base64Encode explicit real declarations: declaration block: | const char* table=alphabet; | char* output=destination; | s32 length=strlen(source); | s32 consumed=0; | start (43, 57) | best (43, 57) after 13 builds; source restored; best order was: | const char* table=alphabet; | char* output=destination; | s32 length=strlen(source); | s32 consumed=0; |
|
||||
FINAL OPEN-FUNCTION AUDIT: unique successful source hashes exclude build failures and withdrawn incorrect variants. Current unmatched functions re-listed from freshly generated objdiff.
|
||||
AUDIT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: 79.797325% retained; 8 distinct successful source attempts; current instruction/structural evidence ((163, 436), 434, 449).
|
||||
AUDIT NHTTPi_strnicmp: 99.76471% retained; 12 distinct successful source attempts; current instruction/structural evidence ((2, 2), 51, 51).
|
||||
AUDIT NHTTPi_intToStr: 95.57895% retained; 7 distinct successful source attempts; current instruction/structural evidence ((0, 53), 95, 95).
|
||||
AUDIT NHTTPi_compareToken: 54.622223% retained; 11 distinct successful source attempts; current instruction/structural evidence ((24, 42), 44, 45).
|
||||
AUDIT NHTTPi_Base64Encode: 60.285713% retained; 8 distinct successful source attempts; current instruction/structural evidence ((71, 58), 119, 119).
|
||||
AUDIT TMCJPEGDEC_IdctBlock_Lumi: 82.31518% retained; 5 distinct successful source attempts; current instruction/structural evidence ((36, 188), 257, 257).
|
||||
AUDIT TMCJPEGDEC_IdctBlock_Col: 92.47577% retained; 7 distinct successful source attempts; current instruction/structural evidence ((18, 290), 454, 454).
|
||||
RESTORATION: all unsuccessful units byte-for-byte equal initial source, temporary guarded header return experiment restored;only matched nup callback retained.
|
||||
FINAL FULL GATE: PASS over all four units;43U clean build and SHA1 26116613f624061ba99c8d1a299aaa6efa85670d;regressions,forbidden-pattern additions,readability warnings all0;matched callback56/56 instructions,ctxdiff0,poolidentical.
|
||||
43
tools/decomp-assist/four-leaves-r9.final-gate.txt
Normal file
43
tools/decomp-assist/four-leaves-r9.final-gate.txt
Normal file
@@ -0,0 +1,43 @@
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/nup/nup_nhttp] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/nup/nup_nhttp] objdiff: code 2588/2588 data 144/144 functions 9/9 fuzzy 100.0000 linked code 0
|
||||
[libs/RVL_SDK/src/nup/nup_nhttp] instruction-exact functions: 9/9
|
||||
[libs/RVL_SDK/src/nup/nup_nhttp] section .data size 120 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup_nhttp] section .sdata size 24 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup_nhttp] section .text size 2588 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup_nhttp] baseline: code 2364/2588 data 144 functions 8 fuzzy 99.7295
|
||||
[src/utility/iplESMisc] pool: DIVERGES at string 83 (mine=114 orig=114)
|
||||
[src/utility/iplESMisc] objdiff: code 9404/11200 data None/4416 functions 30/31 fuzzy 96.7604 linked code 0
|
||||
[src/utility/iplESMisc] instruction-exact functions: 30/31
|
||||
[src/utility/iplESMisc] section .data size 4384 match 95.18044
|
||||
[src/utility/iplESMisc] section .sdata size 32 match 98.4127
|
||||
[src/utility/iplESMisc] section .text size 11200 match 96.76036
|
||||
[src/utility/iplESMisc] below 100: DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap 79.797325
|
||||
[src/utility/iplESMisc] baseline: code 9404/11200 data None functions 30 fuzzy 96.7604
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] objdiff: code 1008/2248 data 72/112 functions 10/14 fuzzy 87.1886 linked code 0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] instruction-exact functions: 10/14
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .data size 72 match 100.0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .rodata size 40 match 94.73685
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .text size 2248 match 87.188614
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_strnicmp 99.76471
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_intToStr 95.57895
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_compareToken 54.622223
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_Base64Encode 60.285713
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] baseline: code 1008/2248 data 72 functions 10 fuzzy 87.1886
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] objdiff: code None/2844 data None/None functions 0/2 fuzzy 88.8031 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] instruction-exact functions: 0/2
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] section .text size 2844 match 88.80309
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Lumi 82.31518
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Col 92.47577
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] baseline: code None/2844 data None functions 0 fuzzy 88.8031
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.52293 -> 88.53040
|
||||
global fuzzy_match_percent: 99.44739 -> 99.44762
|
||||
global complete_code_percent: 62.78043 -> 62.78043
|
||||
global matched_data_percent: 92.12238 -> 92.12238
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
19
tools/decomp-assist/four-leaves-r9.final.md
Normal file
19
tools/decomp-assist/four-leaves-r9.final.md
Normal file
@@ -0,0 +1,19 @@
|
||||
[libs/RVL_SDK/src/nup/nup_nhttp] objdiff: code 2588/2588 data 144/144 functions 9/9 fuzzy 100.0000 linked code 0
|
||||
[src/utility/iplESMisc] objdiff: code 9404/11200 data None/4416 functions 30/31 fuzzy 96.7604 linked code 0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] objdiff: code 1008/2248 data 72/112 functions 10/14 fuzzy 87.1886 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] objdiff: code None/2844 data None/None functions 0/2 fuzzy 88.8031 linked code 0
|
||||
GATE PASS
|
||||
libs/RVL_SDK/src/nup/nup_nhttp: exact 8/9 -> 9/9; code 2364/2588 -> 2588/2588; data 144/144 -> 144/144
|
||||
src/utility/iplESMisc: exact 30/31 -> 30/31; code 9404/11200 -> 9404/11200; data 0/4416 -> 0/4416
|
||||
DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap 79.797325%: 434/449 instructions; inline boundaries, retained status lifetime, masked title switch; pool first divergence83. Real helpers fixed114 strings but not instruction structure.
|
||||
libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL: exact 10/14 -> 10/14; code 1008/2248 -> 1008/2248; data 72/112 -> 72/112
|
||||
NHTTPi_strnicmp 99.76471%: 51/51; only two initial constant loads swapped: target A,Z,zero; ours A,zero,Z. Twelve valid source variants plus declaration search did not change scheduling.
|
||||
NHTTPi_intToStr 95.57895%: 95/95; output cursor is saved r28 instead of target scratch r5; array initializer registers and zero-digit increment scheduling. Seven valid variants and23 declaration builds plateaued.
|
||||
NHTTPi_compareToken 54.622223%: 44/45 retained; ternary right fold and condition-entry loop recovered45 but constant ordering and raw/folded left colors stayed different. Eleven valid variants and6 declaration builds.
|
||||
NHTTPi_Base64Encode 60.285713%: 119/119; signed padding compares and interleaved input loads, shifted fragments and alphabet indexing. Eight valid variants and13 declaration builds;best43 structural differences.
|
||||
libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var: exact 0/2 -> 0/2; code 0/2844 -> 0/2844; data 0/0 -> 0/0
|
||||
TMCJPEGDEC_IdctBlock_Lumi 82.31518%: 257/257; row and column butterfly scheduling, pitch temporaries and register lifetimes. Five valid variants and180 declaration builds;best25 structural differences.
|
||||
TMCJPEGDEC_IdctBlock_Col 92.47577%: 454/454; DC clamp hoists output argument too early, general-row arithmetic/store scheduling and register lifetimes. Seven valid variants and180 declaration builds;best16 structural differences.
|
||||
Files changed: libs/RVL_SDK/src/nup/nup_nhttp.cpp; tools/decomp-assist/four-leaves-r9.attempts.md; tools/decomp-assist/four-leaves-r9.final-gate.txt; tools/decomp-assist/four-leaves-r9.final.md.
|
||||
Code commit: e53a013d match http string flush. Evidence commit follows this full gate.
|
||||
Uncertain: original unauthorized-data API result type, which was tested with a local guarded declaration and restored; JPEG local lifetimes and decimal rodata final word. No guesses retained.
|
||||
@@ -5,9 +5,11 @@ Paths follow ctxdiff.py: build/43U/{src,obj}/<unit>.o. Requires pyelftools.
|
||||
Exit 0: all selected tables match (or no tables); 1: mismatch; 2: invalid or
|
||||
ambiguous input. This checks relative destinations, not behavioral equivalence.
|
||||
|
||||
Automatic selection covers local jumptable_* symbols whose R_PPC_ADDR32 entries
|
||||
all target the selected function. External callback tables/vtables are not
|
||||
covered. Source locations are inferred from corresponding function relocations,
|
||||
Automatic selection covers jumptable_* symbols and multi-entry data objects
|
||||
whose R_PPC_ADDR32 entries all target the selected function, with at least one
|
||||
interior destination for objects lacking the jumptable_ prefix. This includes
|
||||
compiler-generated @ names and custom names, but excludes ordinary callback
|
||||
tables/vtables. Source locations are inferred from corresponding function relocations,
|
||||
never from an assumption that both data sections have the same layout.
|
||||
"""
|
||||
|
||||
@@ -113,7 +115,11 @@ def jump_target(obj, relocation, function):
|
||||
|
||||
def reference_tables(obj, function, name=None):
|
||||
candidates = [obj.symbol(name)] if name else [
|
||||
s for s in obj.symbols if s.name.startswith("jumptable_") and s.size]
|
||||
s for s in obj.symbols if s.size and (
|
||||
s.name.startswith("jumptable_") or (
|
||||
s.kind == "STT_OBJECT" and s.size >= 8
|
||||
and isinstance(s.section, int)
|
||||
and obj.sections[s.section][0] in (".data", ".rodata", ".sdata", ".sdata2")))]
|
||||
result = []
|
||||
for table in candidates:
|
||||
if not isinstance(table.section, int) or table.size % 4:
|
||||
@@ -123,10 +129,15 @@ def reference_tables(obj, function, name=None):
|
||||
section_size = obj.sections[table.section][1]
|
||||
if table.value < 0 or table.value + table.size > section_size:
|
||||
raise ValueError("reference table is outside its section")
|
||||
targets = [jump_target(obj, obj.relocs(table.section).get(offset), function)
|
||||
for offset in range(table.value, table.value + table.size, 4)]
|
||||
if targets and all(target is not None for target in targets):
|
||||
result.append((table, targets))
|
||||
targets = []
|
||||
for offset in range(table.value, table.value + table.size, 4):
|
||||
target = jump_target(obj, obj.relocs(table.section).get(offset), function)
|
||||
if target is None:
|
||||
break
|
||||
targets.append(target)
|
||||
if targets and len(targets) == table.size // 4:
|
||||
if name or table.name.startswith("jumptable_") or any(targets):
|
||||
result.append((table, targets))
|
||||
elif name:
|
||||
raise ValueError("reference table does not target the selected function")
|
||||
return result
|
||||
|
||||
25
tools/decomp-assist/partial-oct2d.animation-gate.txt
Normal file
25
tools/decomp-assist/partial-oct2d.animation-gate.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/scene/memoryCard/iplMemoryCardManager] pool: IDENTICAL
|
||||
[src/scene/memoryCard/iplMemoryCardManager] objdiff: code 2368/5396 data None/None functions 17/26 fuzzy 97.3610 linked code 0
|
||||
[src/scene/memoryCard/iplMemoryCardManager] instruction-exact functions: 17/26
|
||||
[src/scene/memoryCard/iplMemoryCardManager] section .text size 5396 match 97.36101
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs 92.30769
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: update_file_array__Q33ipl5scene17MemoryCardManagerFUc 99.72222
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: create_icon__Q33ipl5scene17MemoryCardManagerFUcs 86.17647
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: _create_icon__Q33ipl5scene17MemoryCardManagerFUcsl 87.55
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: getComment__Q33ipl5scene17MemoryCardManagerFUcsi 98.94309
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: create_banner__Q33ipl5scene17MemoryCardManagerFUcs 90.42453
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: getBlocks__Q33ipl5scene17MemoryCardManagerFUcs 92.0
|
||||
[src/scene/memoryCard/iplMemoryCardManager] baseline: code 2032/5396 data None functions 16 fuzzy 97.2609
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.52293 -> 88.53414
|
||||
global fuzzy_match_percent: 99.44739 -> 99.44756
|
||||
global complete_code_percent: 62.78043 -> 62.78043
|
||||
global matched_data_percent: 92.12238 -> 92.12238
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
review note: include/iplMemoryCardLib.h: volatile object declaration (orchestrator checks the target really re-reads it) (+1 net), e.g. volatile s16 anmMax;
|
||||
GATE PASS
|
||||
1277
tools/decomp-assist/partial-oct2d.attempts.md
Normal file
1277
tools/decomp-assist/partial-oct2d.attempts.md
Normal file
File diff suppressed because it is too large
Load Diff
58
tools/decomp-assist/partial-oct2d.final-gate.txt
Normal file
58
tools/decomp-assist/partial-oct2d.final-gate.txt
Normal file
@@ -0,0 +1,58 @@
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] pool: IDENTICAL
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] objdiff: code 17444/18624 data 240/1976 functions 64/69 fuzzy 99.8935 linked code 0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] instruction-exact functions: 64/69
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .data size 1696 match None
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .rodata size 48 match 100.0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .sdata size 192 match 100.0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .sdata2 size 40 match 90.0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .text size 18624 match 99.89347
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: calcFadein__Q33ipl5scene14SDChannelTitleFv 97.87234
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: initCalcFadeout__Q33ipl5scene14SDChannelTitleFv 97.95918
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_startCopyProgress 98.62791
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_updateCopyStart 98.3421
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_flushSaveBeforeExit 98.5946
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] baseline: code 17444/18624 data 240 functions 64 fuzzy 99.8935
|
||||
[src/keyboard/tiCandidateBox] pool: IDENTICAL
|
||||
[src/keyboard/tiCandidateBox] objdiff: code 19988/24000 data 1132/4652 functions 109/112 fuzzy 99.4395 linked code 0
|
||||
[src/keyboard/tiCandidateBox] instruction-exact functions: 108/112
|
||||
[src/keyboard/tiCandidateBox] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiCandidateBox] section .data size 3488 match 99.27954
|
||||
[src/keyboard/tiCandidateBox] section .rodata size 1048 match 100.0
|
||||
[src/keyboard/tiCandidateBox] section .sdata size 32 match 96.875
|
||||
[src/keyboard/tiCandidateBox] section .sdata2 size 80 match 100.0
|
||||
[src/keyboard/tiCandidateBox] section .text size 24000 match 99.4395
|
||||
[src/keyboard/tiCandidateBox] below 100: create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 92.71023
|
||||
[src/keyboard/tiCandidateBox] below 100: createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 96.56481
|
||||
[src/keyboard/tiCandidateBox] below 100: CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv 99.873566
|
||||
[src/keyboard/tiCandidateBox] baseline: code 19988/24000 data 1132 functions 109 fuzzy 99.4395
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] objdiff: code 1196/1692 data None/None functions 6/7 fuzzy 96.3641 linked code 0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] instruction-exact functions: 6/7
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] section .text size 1692 match 96.36407
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] below 100: NHTTPi_compareTokenN_HdrRecvBuf 87.59677
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] baseline: code 1196/1692 data None functions 6 fuzzy 96.3641
|
||||
[src/scene/memoryCard/iplMemoryCardManager] pool: IDENTICAL
|
||||
[src/scene/memoryCard/iplMemoryCardManager] objdiff: code 2368/5396 data None/None functions 17/26 fuzzy 97.3610 linked code 0
|
||||
[src/scene/memoryCard/iplMemoryCardManager] instruction-exact functions: 17/26
|
||||
[src/scene/memoryCard/iplMemoryCardManager] section .text size 5396 match 97.36101
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs 92.30769
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: update_file_array__Q33ipl5scene17MemoryCardManagerFUc 99.72222
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: create_icon__Q33ipl5scene17MemoryCardManagerFUcs 86.17647
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: _create_icon__Q33ipl5scene17MemoryCardManagerFUcsl 87.55
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: getComment__Q33ipl5scene17MemoryCardManagerFUcsi 98.94309
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: create_banner__Q33ipl5scene17MemoryCardManagerFUcs 90.42453
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: getBlocks__Q33ipl5scene17MemoryCardManagerFUcs 92.0
|
||||
[src/scene/memoryCard/iplMemoryCardManager] baseline: code 2032/5396 data None functions 16 fuzzy 97.2609
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.52293 -> 88.53414
|
||||
global fuzzy_match_percent: 99.44739 -> 99.44756
|
||||
global complete_code_percent: 62.78043 -> 62.78043
|
||||
global matched_data_percent: 92.12238 -> 92.12238
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
review note: include/iplMemoryCardLib.h: volatile object declaration (orchestrator checks the target really re-reads it) (+1 net), e.g. volatile s16 anmMax;
|
||||
GATE PASS
|
||||
58
tools/decomp-assist/partial-oct2d.initial-gate.txt
Normal file
58
tools/decomp-assist/partial-oct2d.initial-gate.txt
Normal file
@@ -0,0 +1,58 @@
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] pool: IDENTICAL
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] objdiff: code 17444/18624 data 240/1976 functions 64/69 fuzzy 99.8935 linked code 0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] instruction-exact functions: 64/69
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .data size 1696 match None
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .rodata size 48 match 100.0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .sdata size 192 match 100.0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .sdata2 size 40 match 90.0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] section .text size 18624 match 99.89347
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: calcFadein__Q33ipl5scene14SDChannelTitleFv 97.87234
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: initCalcFadeout__Q33ipl5scene14SDChannelTitleFv 97.95918
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_startCopyProgress 98.62791
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_updateCopyStart 98.3421
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_flushSaveBeforeExit 98.5946
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] baseline: code 17444/18624 data 240 functions 64 fuzzy 99.8935
|
||||
[src/keyboard/tiCandidateBox] pool: IDENTICAL
|
||||
[src/keyboard/tiCandidateBox] objdiff: code 19988/24000 data 1132/4652 functions 109/112 fuzzy 99.4395 linked code 0
|
||||
[src/keyboard/tiCandidateBox] instruction-exact functions: 108/112
|
||||
[src/keyboard/tiCandidateBox] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiCandidateBox] section .data size 3488 match 99.27954
|
||||
[src/keyboard/tiCandidateBox] section .rodata size 1048 match 100.0
|
||||
[src/keyboard/tiCandidateBox] section .sdata size 32 match 96.875
|
||||
[src/keyboard/tiCandidateBox] section .sdata2 size 80 match 100.0
|
||||
[src/keyboard/tiCandidateBox] section .text size 24000 match 99.4395
|
||||
[src/keyboard/tiCandidateBox] below 100: create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 92.71023
|
||||
[src/keyboard/tiCandidateBox] below 100: createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 96.56481
|
||||
[src/keyboard/tiCandidateBox] below 100: CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv 99.873566
|
||||
[src/keyboard/tiCandidateBox] baseline: code 19988/24000 data 1132 functions 109 fuzzy 99.4395
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] objdiff: code 1196/1692 data None/None functions 6/7 fuzzy 96.3641 linked code 0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] instruction-exact functions: 6/7
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] section .text size 1692 match 96.36407
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] below 100: NHTTPi_compareTokenN_HdrRecvBuf 87.59677
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] baseline: code 1196/1692 data None functions 6 fuzzy 96.3641
|
||||
[src/scene/memoryCard/iplMemoryCardManager] pool: IDENTICAL
|
||||
[src/scene/memoryCard/iplMemoryCardManager] objdiff: code 2032/5396 data None/None functions 16/26 fuzzy 97.2609 linked code 0
|
||||
[src/scene/memoryCard/iplMemoryCardManager] instruction-exact functions: 16/26
|
||||
[src/scene/memoryCard/iplMemoryCardManager] section .text size 5396 match 97.26093
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs 92.30769
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: update_icon_anm__Q33ipl5scene17MemoryCardManagerFv 98.39286
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: update_file_array__Q33ipl5scene17MemoryCardManagerFUc 99.72222
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: create_icon__Q33ipl5scene17MemoryCardManagerFUcs 86.17647
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: _create_icon__Q33ipl5scene17MemoryCardManagerFUcsl 87.55
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: getComment__Q33ipl5scene17MemoryCardManagerFUcsi 98.94309
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: create_banner__Q33ipl5scene17MemoryCardManagerFUcs 90.42453
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: getBlocks__Q33ipl5scene17MemoryCardManagerFUcs 92.0
|
||||
[src/scene/memoryCard/iplMemoryCardManager] baseline: code 2032/5396 data None functions 16 fuzzy 97.2609
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.52293 -> 88.52293
|
||||
global fuzzy_match_percent: 99.44739 -> 99.44739
|
||||
global complete_code_percent: 62.78043 -> 62.78043
|
||||
global matched_data_percent: 92.12238 -> 92.12238
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
58
tools/decomp-assist/partial-oct2d.report.txt
Normal file
58
tools/decomp-assist/partial-oct2d.report.txt
Normal file
@@ -0,0 +1,58 @@
|
||||
Full final clean gate (not --quick):
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] objdiff: code 17444/18624 data 240/1976 functions 64/69 fuzzy 99.8935 linked code 0
|
||||
[src/scene/sdChannelTitle/iplSDChannelTitle] instruction-exact functions: 64/69
|
||||
[src/keyboard/tiCandidateBox] objdiff: code 19988/24000 data 1132/4652 functions 109/112 fuzzy 99.4395 linked code 0
|
||||
[src/keyboard/tiCandidateBox] instruction-exact functions: 108/112
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] objdiff: code 1196/1692 data None/None functions 6/7 fuzzy 96.3641 linked code 0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] instruction-exact functions: 6/7
|
||||
[src/scene/memoryCard/iplMemoryCardManager] objdiff: code 2368/5396 data None/None functions 17/26 fuzzy 97.3610 linked code 0
|
||||
[src/scene/memoryCard/iplMemoryCardManager] instruction-exact functions: 17/26
|
||||
GATE PASS
|
||||
|
||||
Before -> after (instruction-exact; objdiff exact; matched code bytes; matched data bytes):
|
||||
src/scene/sdChannelTitle/iplSDChannelTitle: instruction 64/69 -> 64/69; objdiff 64/69 -> 64/69; code 17444/18624 -> 17444/18624; data 240/1976 -> 240/1976
|
||||
src/keyboard/tiCandidateBox: instruction 108/112 -> 108/112; objdiff 109/112 -> 109/112; code 19988/24000 -> 19988/24000; data 1132/4652 -> 1132/4652
|
||||
libs/RevoEX/src/nhttp/NHTTP_recvbuf: instruction 6/7 -> 6/7; objdiff 6/7 -> 6/7; code 1196/1692 -> 1196/1692; data None/None -> None/None
|
||||
src/scene/memoryCard/iplMemoryCardManager: instruction 16/26 -> 17/26; objdiff 16/26 -> 17/26; code 2032/5396 -> 2368/5396; data None/None -> None/None
|
||||
|
||||
Exact source change: update_icon_anm, 84/84 instructions, objdiff 100%, ctxdiff diffs 0 after clean build.
|
||||
Target loads anmMax from the same address at 0xa6c and 0xa88, with no intervening store or call. Definition-level volatile preserves those observed reads; source-defined IPL_MEMORY_CARD_MANAGER_CPP macro isolates this field change from every other translation unit. Separate signed delta/currentFrame locals fix the final three register differences.
|
||||
Source commit: c7843729 (match memory card icon animation updates).
|
||||
DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d; regressions 0, forbidden additions 0, readability warnings 0; all four pools IDENTICAL.
|
||||
No fuzzy-only experiment retained. Units remain NonMatching as instructed.
|
||||
|
||||
Remaining functions (current, restored objdiff percentages; unique successfully compiled source hashes):
|
||||
calcFadein__Q33ipl5scene14SDChannelTitleFv: 97.87234%; attempts 3; 48/47 instructions; extra initialization of unused opt-out handler argument. Three meaningful handler/snapshot variants unchanged.
|
||||
initCalcFadeout__Q33ipl5scene14SDChannelTitleFv: 97.95918%; attempts 3; 50/49; extra unused opt-out handler argument. Three state/handler/reference variants unchanged.
|
||||
iplSDChannelTitle_startCopyProgress: 98.62791%; attempts 3; 87/86; unused controller argument initialization and title-word/receiver scheduling. Three argument/local/reference variants failed exactness.
|
||||
iplSDChannelTitle_updateCopyStart: 98.3421%; attempts 3; 77/76; unused controller argument initialization and title argument scheduling. Three variants failed exactness.
|
||||
iplSDChannelTitle_flushSaveBeforeExit: 98.5946%; attempts 6; 37/37; global base/save-manager r3/r4 choice and heap/manager load ordering. Six variants plus declaration search unchanged.
|
||||
create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator: 92.71023%; attempts 3; 351/352; inline Init indexed loop versus target advancing pointer, plus inline button/window name lifetimes. Advancing cursors improved this function but regressed one exact sibling; restored.
|
||||
createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator: 96.56481%; attempts 3; 214/216; cached animation file versus target reload through animation entry pointer. Entry-pointer and leading indices reached 216/216 with zero structural differences but 53 register differences; declaration search unchanged; restored.
|
||||
CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv: 99.873566%; attempts 3; 435/435; eleven float register differences in second inline string-width expansion. Three variants and six declaration permutations unchanged.
|
||||
NHTTPi_compareTokenN_HdrRecvBuf: 87.59677%; attempts 17; 126/124 and frame 0x20/0x30. Positive guard, word character, and ternary lower-case helper reach 124/124 and target frame, with five loop-invariant initialization scheduling differences (97.32258%). Helper/local/loop variations and declaration search failed exactness; restored.
|
||||
isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl: 99.830505%; attempts 3; 118/118; two directory row/cell add operand swaps. Pointer operand order, typed row, inline accessor, and declaration search failed exactness.
|
||||
isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl: 99.830505%; attempts 3; 118/118; same two directory address add operand swaps. Three variants and declaration search failed exactness.
|
||||
isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs: 92.30769%; attempts 3; 26/26; restore-base r11 initialization scheduled seven instructions early. Three result/row/lookup variants and declaration search unchanged.
|
||||
update_file_array__Q33ipl5scene17MemoryCardManagerFUc: 99.72222%; attempts 0; Known r3/r4 register tie; explicitly skipped by task.
|
||||
create_icon__Q33ipl5scene17MemoryCardManagerFUcs: 86.17647%; attempts 3; 51/51; file/frame register lifetimes, counter/frame-bits load order, and row/cell arithmetic. Three variants and declaration search failed exactness.
|
||||
_create_icon__Q33ipl5scene17MemoryCardManagerFUcsl: 87.55%; attempts 3; 100/100; target separate row/column arithmetic and destination lifetime across texture/TLUT calls, plus register differences. Three typed row/accessor variants failed exactness.
|
||||
getComment__Q33ipl5scene17MemoryCardManagerFUcsi: 98.94309%; attempts 4; 123/123; twenty saved-register and trim-pointer differences. Four source variants plus 24 declaration-search builds failed exactness.
|
||||
create_banner__Q33ipl5scene17MemoryCardManagerFUcs: 90.42453%; attempts 3; 106/106; target reconstructs icon row/cell after validation and keeps separate texture/TLUT offsets. Three scope/row/local variants failed exactness.
|
||||
getBlocks__Q33ipl5scene17MemoryCardManagerFUcs: 92.0%; attempts 3; 25/25; restore-base r11 initialization scheduled eight instructions early. Three local-result/row/helper variants failed exactness.
|
||||
|
||||
Count limitation: onGUIEvent__Q39textinput12candidatebox10UITextAreaFRQ39textinput3gui13PaneComponentUlPQ49textinput11nw4rmanager14TiEventHandler5Input: objdiff 100%, gate disassembler differences [(251, ('bge', -23279), ('bge', -21251)), (268, ('bgt', -23347), ('bgt', -21319))]; proper last-branch-operand normalization score (0, 0)
|
||||
The gate normalizer uses the first branch operand, which is CR1 for these two instructions; proper last-operand normalization gives (0,0). Reported gate count stays 108/112, while objdiff is 109/112, both unchanged. This function already matches and was not modified.
|
||||
Other limitations: unchanged existing data scores remain below 100%; no linking claim. The new volatile declaration requires orchestrator source review, supported by the target-read evidence above.
|
||||
|
||||
Files changed:
|
||||
include/iplMemoryCardLib.h
|
||||
src/scene/memoryCard/iplMemoryCardManager.cpp
|
||||
tools/decomp-assist/partial-oct2d.animation-gate.txt
|
||||
tools/decomp-assist/partial-oct2d.attempts.md
|
||||
tools/decomp-assist/partial-oct2d.initial-gate.txt
|
||||
tools/decomp-assist/partial-oct2d.final-gate.txt
|
||||
tools/decomp-assist/partial-oct2d.report.txt
|
||||
|
||||
Attempt evidence: tools/decomp-assist/partial-oct2d.attempts.md; transient per-attempt sources, target/source disassembly and ctxdiff files saved under /tmp/partial-oct2d.
|
||||
Every remaining open function has at least three distinct compiled source attempts, except the explicitly excluded update_file_array.
|
||||
172
tools/decomp-assist/sol-high-four-oct2.attempts.jsonl
Normal file
172
tools/decomp-assist/sol-high-four-oct2.attempts.jsonl
Normal file
@@ -0,0 +1,172 @@
|
||||
{"event": "begin", "unit": "src/keyboard/tiPcKeyboard", "function": "setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode", "origin": "824fe9fc0a89bfca627e6f55e7190796a2bd81fe", "remote_source_identical": true, "diagnosis": "Frame and branches match. Target leaves keyMode undefined on invalid enum; ours initializes it and adds mr r31,r30. No undefined-value experiments allowed.", "initial": [106, 105, 99], "fuzzy": 99.04762}
|
||||
{"event": "pool", "unit": "src/keyboard/tiPcKeyboard", "output": "POOL IDENTICAL up to 204 (mine=204 base=204)\n"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode", "label": "defined masked enum fallback", "compiled": true, "instructions": [106, 105, 101], "fuzzy": 99.04762, "regressions": [], "measures": {"fuzzy_match_percent": 99.97332, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode", "label": "defined direct-mode fallback", "compiled": true, "instructions": [106, 105, 101], "fuzzy": 99.04762, "regressions": [], "measures": {"fuzzy_match_percent": 99.97332, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode", "label": "defined current-mode fallback", "compiled": true, "instructions": [107, 105, 98], "fuzzy": 98.09524, "regressions": [], "measures": {"fuzzy_match_percent": 99.959274, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}}
|
||||
{"event": "restored", "unit": "src/keyboard/tiPcKeyboard", "function": "setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode", "instructions": [106, 105, 99]}
|
||||
{"event": "begin", "unit": "src/keyboard/tiPcKeyboard", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "origin": "824fe9fc0a89bfca627e6f55e7190796a2bd81fe", "remote_source_identical": true, "diagnosis": "Identical frame, branches and instruction counts; inlined setABCFlag flags and owner exchange r4/r6. Try setter argument boundary, owner lifetime, then declaration order.", "initial": [49, 49, 8], "fuzzy": 99.081635}
|
||||
{"event": "pool", "unit": "src/keyboard/tiPcKeyboard", "output": "POOL IDENTICAL up to 204 (mine=204 base=204)\n"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "label": "inline setter with explicit state and flags arguments", "compiled": true, "instructions": [49, 49, 8], "fuzzy": 99.081635, "regressions": [], "measures": {"fuzzy_match_percent": 99.97332, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "label": "inline setter reads owner directly without temporary", "compiled": true, "instructions": [49, 49, 8], "fuzzy": 99.081635, "regressions": [], "measures": {"fuzzy_match_percent": 99.97332, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "label": "bind key state reference before flag extraction", "compiled": true, "instructions": [49, 49, 8], "fuzzy": 99.081635, "regressions": [], "measures": {"fuzzy_match_percent": 99.97332, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}}
|
||||
{"event": "restored", "unit": "src/keyboard/tiPcKeyboard", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "instructions": [49, 49, 8]}
|
||||
{"event": "begin", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "origin": "824fe9fc0a89bfca627e6f55e7190796a2bd81fe", "remote_source_identical": true, "diagnosis": "Identical frame, branches and instruction counts; inlined setABCFlag flags and owner exchange r4/r6. Try setter argument boundary, owner lifetime, then declaration order.", "initial": [39, 39, 8], "fuzzy": 98.84615}
|
||||
{"event": "pool", "unit": "src/keyboard/tiPcKeyboard", "output": "POOL IDENTICAL up to 204 (mine=204 base=204)\n"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "label": "inline setter with explicit state and flags arguments", "compiled": true, "instructions": [39, 39, 8], "fuzzy": 98.84615, "regressions": [], "measures": {"fuzzy_match_percent": 99.97332, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "label": "inline setter reads owner directly without temporary", "compiled": true, "instructions": [39, 39, 11], "fuzzy": 98.46154, "regressions": [], "measures": {"fuzzy_match_percent": 99.971214, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "label": "bind key state reference before flag extraction", "compiled": true, "instructions": [39, 39, 8], "fuzzy": 98.84615, "regressions": [], "measures": {"fuzzy_match_percent": 99.97332, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}}
|
||||
{"event": "restored", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "instructions": [39, 39, 8]}
|
||||
{"event": "begin", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "origin": "824fe9fc0a89bfca627e6f55e7190796a2bd81fe", "remote_source_identical": true, "diagnosis": "Target frame 0x30 saves r30/r31; ours frame 0x40 saves r29/r30/r31. Target high byte load precedes mid and low byte grouped addition. Pointer and index order differ; correct endian expression/helper first.", "initial": [86, 84, 84], "fuzzy": 86.5}
|
||||
{"event": "pool", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "output": "POOL IDENTICAL up to 0 (mine=0 base=0)\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "inline endian helper with high byte first and two addition groups", "compiled": true, "instructions": [84, 84, 48], "fuzzy": 83.72619, "regressions": [], "measures": {"fuzzy_match_percent": 93.22928, "total_code": "3716", "matched_code": "2072", "matched_code_percent": 55.75888, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 17, "matched_functions_percent": 85.0, "complete_data_percent": 100.0, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "evaluate high byte group before low byte group", "compiled": true, "instructions": [86, 84, 85], "fuzzy": 82.27381, "regressions": [], "measures": {"fuzzy_match_percent": 93.09795, "total_code": "3716", "matched_code": "2072", "matched_code_percent": 55.75888, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 17, "matched_functions_percent": 85.0, "complete_data_percent": 100.0, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "declare traversal index after pointers at endian helper boundary", "compiled": true, "instructions": [84, 84, 42], "fuzzy": 84.559525, "regressions": [], "measures": {"fuzzy_match_percent": 93.30463, "total_code": "3716", "matched_code": "2072", "matched_code_percent": 55.75888, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 17, "matched_functions_percent": 85.0, "complete_data_percent": 100.0, "total_units": 1}}
|
||||
{"event": "restored", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "instructions": [86, 84, 84]}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "retain best structural helper for ctxdiff and declaration search", "compiled": true, "instructions": [84, 84, 42], "fuzzy": 84.559525, "regressions": [], "measures": {"fuzzy_match_percent": 93.30463, "total_code": "3716", "matched_code": "2072", "matched_code_percent": 55.75888, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 17, "matched_functions_percent": 85.0, "complete_data_percent": 100.0, "total_units": 1}}
|
||||
{"event": "declsearch", "function": "pdm_part_is_master_boot_sector", "result": "23 builds, structural 20 exact 42, no improvement"}
|
||||
{"event": "restored", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "instructions": [86, 84, 84]}
|
||||
{"event": "begin", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "origin": "824fe9fc0a89bfca627e6f55e7190796a2bd81fe", "remote_source_identical": true, "diagnosis": "Frame 0x2e0 and buffer/array offsets match, 276 instructions each; target groups endian addition as (byte2<<16 + byte0)+(byte3<<24 + byte1<<8), ours chained high-to-low additions. Target end-of-loop stores branch to common exit.", "initial": [276, 276, 146], "fuzzy": 82.56159}
|
||||
{"event": "pool", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "output": "POOL IDENTICAL up to 0 (mine=0 base=0)\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "label": "group low and high endian additions to match target", "compiled": true, "instructions": [276, 276, 141], "fuzzy": 82.61957, "regressions": [], "measures": {"fuzzy_match_percent": 93.49731, "total_code": "3716", "matched_code": "2072", "matched_code_percent": 55.75888, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 17, "matched_functions_percent": 85.0, "complete_data_percent": 100.0, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "label": "reverse start/count array declaration order after endian grouping", "compiled": true, "instructions": [276, 276, 148], "fuzzy": 82.58696, "regressions": [], "measures": {"fuzzy_match_percent": 93.48762, "total_code": "3716", "matched_code": "2072", "matched_code_percent": 55.75888, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 17, "matched_functions_percent": 85.0, "complete_data_percent": 100.0, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "label": "common success exit from extended partition selection", "compiled": true, "instructions": [275, 276, 202], "fuzzy": 82.677536, "regressions": [], "measures": {"fuzzy_match_percent": 93.514534, "total_code": "3716", "matched_code": "2072", "matched_code_percent": 55.75888, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 17, "matched_functions_percent": 85.0, "complete_data_percent": 100.0, "total_units": 1}}
|
||||
{"event": "restored", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "instructions": [276, 276, 146]}
|
||||
{"event": "begin", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_chg_ltop", "origin": "824fe9fc0a89bfca627e6f55e7190796a2bd81fe", "remote_source_identical": true, "diagnosis": "51 instructions each with identical frame, branches and arithmetic. ratio and start swap r0/r3. Try conversion helper, narrower ratio, independent sector ratios, then declaration search.", "initial": [51, 51, 16], "fuzzy": 97.84314}
|
||||
{"event": "pool", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "output": "POOL IDENTICAL up to 0 (mine=0 base=0)\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_chg_ltop", "label": "inline start-sector conversion helper", "compiled": true, "instructions": [51, 51, 0], "fuzzy": 100.0, "regressions": ["pdm_part_logical_read", "pdm_part_logical_write"], "measures": {"fuzzy_match_percent": 86.588806, "total_code": "3716", "matched_code": "1820", "matched_code_percent": 48.977394, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 16, "matched_functions_percent": 80.0, "complete_data_percent": 100.0, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_chg_ltop", "label": "use media-sector ratio with 16 bit type", "compiled": true, "instructions": [51, 51, 16], "fuzzy": 97.84314, "regressions": [], "measures": {"fuzzy_match_percent": 93.48009, "total_code": "3716", "matched_code": "2072", "matched_code_percent": 55.75888, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 17, "matched_functions_percent": 85.0, "complete_data_percent": 100.0, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_chg_ltop", "label": "separate physical and logical ratios", "compiled": true, "instructions": [51, 51, 16], "fuzzy": 97.84314, "regressions": [], "measures": {"fuzzy_match_percent": 93.48009, "total_code": "3716", "matched_code": "2072", "matched_code_percent": 55.75888, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 17, "matched_functions_percent": 85.0, "complete_data_percent": 100.0, "total_units": 1}}
|
||||
{"event": "restored", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_chg_ltop", "instructions": [51, 51, 16]}
|
||||
{"event": "begin", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_chg_ltop", "origin": "3c9af06f34375ee53e621fc7b90d9f211fd6ee88", "remote_source_identical": true, "diagnosis": "Arithmetic inline helper produced standalone exact match but regressed logical read/write. Test real helper argument order while protecting both callers.", "initial": [51, 51, 16], "fuzzy": 97.84314}
|
||||
{"event": "pool", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "output": "POOL IDENTICAL up to 0 (mine=0 base=0)\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_chg_ltop", "label": "conversion helper argument order start,media_bps,bps", "compiled": true, "instructions": [51, 51, 0], "fuzzy": 100.0, "regressions": ["pdm_part_logical_read", "pdm_part_logical_write"], "measures": {"fuzzy_match_percent": 86.588806, "total_code": "3716", "matched_code": "1820", "matched_code_percent": 48.977394, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 16, "matched_functions_percent": 80.0, "complete_data_percent": 100.0, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_chg_ltop", "label": "conversion helper argument order start,bps,media_bps", "compiled": true, "instructions": [51, 51, 0], "fuzzy": 100.0, "regressions": ["pdm_part_logical_read", "pdm_part_logical_write"], "measures": {"fuzzy_match_percent": 86.588806, "total_code": "3716", "matched_code": "1820", "matched_code_percent": 48.977394, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 16, "matched_functions_percent": 80.0, "complete_data_percent": 100.0, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_chg_ltop", "label": "conversion helper argument order media_bps,start,bps", "compiled": true, "instructions": [51, 51, 0], "fuzzy": 100.0, "regressions": ["pdm_part_logical_read", "pdm_part_logical_write"], "measures": {"fuzzy_match_percent": 86.588806, "total_code": "3716", "matched_code": "1820", "matched_code_percent": 48.977394, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 16, "matched_functions_percent": 80.0, "complete_data_percent": 100.0, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_chg_ltop", "label": "conversion helper argument order media_bps,bps,start", "compiled": true, "instructions": [51, 51, 0], "fuzzy": 100.0, "regressions": ["pdm_part_logical_read", "pdm_part_logical_write"], "measures": {"fuzzy_match_percent": 86.588806, "total_code": "3716", "matched_code": "1820", "matched_code_percent": 48.977394, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 16, "matched_functions_percent": 80.0, "complete_data_percent": 100.0, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_chg_ltop", "label": "conversion helper argument order bps,start,media_bps", "compiled": true, "instructions": [51, 51, 0], "fuzzy": 100.0, "regressions": ["pdm_part_logical_read", "pdm_part_logical_write"], "measures": {"fuzzy_match_percent": 86.588806, "total_code": "3716", "matched_code": "1820", "matched_code_percent": 48.977394, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 16, "matched_functions_percent": 80.0, "complete_data_percent": 100.0, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_chg_ltop", "label": "conversion helper argument order bps,media_bps,start", "compiled": true, "instructions": [51, 51, 0], "fuzzy": 100.0, "regressions": ["pdm_part_logical_read", "pdm_part_logical_write"], "measures": {"fuzzy_match_percent": 86.588806, "total_code": "3716", "matched_code": "1820", "matched_code_percent": 48.977394, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 16, "matched_functions_percent": 80.0, "complete_data_percent": 100.0, "total_units": 1}}
|
||||
{"event": "restored", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_chg_ltop", "instructions": [51, 51, 16]}
|
||||
{"event": "begin", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_chg_ltop", "origin": "3c9af06f34375ee53e621fc7b90d9f211fd6ee88", "remote_source_identical": true, "diagnosis": "Conversion helper gives exact standalone but changes two already-exact inline callers. Try shared full conversion implementation with public wrapper and direct inline call sites, preserving real function.", "initial": [51, 51, 16], "fuzzy": 97.84314}
|
||||
{"event": "pool", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "output": "POOL IDENTICAL up to 0 (mine=0 base=0)\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_chg_ltop", "label": "full physical-sector helper with public wrapper", "compiled": true, "instructions": [51, 51, 0], "fuzzy": 100.0, "regressions": ["pdm_part_logical_read", "pdm_part_logical_write"], "measures": {"fuzzy_match_percent": 86.588806, "total_code": "3716", "matched_code": "1820", "matched_code_percent": 48.977394, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 16, "matched_functions_percent": 80.0, "complete_data_percent": 100.0, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_chg_ltop", "label": "logical read/write call shared implementation directly", "compiled": true, "instructions": [51, 51, 0], "fuzzy": 100.0, "regressions": ["pdm_part_logical_read", "pdm_part_logical_write"], "measures": {"fuzzy_match_percent": 86.588806, "total_code": "3716", "matched_code": "1820", "matched_code_percent": 48.977394, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 16, "matched_functions_percent": 80.0, "complete_data_percent": 100.0, "total_units": 1}}
|
||||
{"event": "restored", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_chg_ltop", "instructions": [51, 51, 16]}
|
||||
{"event": "begin", "unit": "src/keyboard/tiPcKeyboard", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "origin": "3c9af06f34375ee53e621fc7b90d9f211fd6ee88", "remote_source_identical": true, "diagnosis": "After frame/branch/helper diagnosis and three structural trials, test setter branch inversion, shared mode temporary, flags assignment lifetime. Check standalone setter and other callers for regressions.", "initial": [49, 49, 8], "fuzzy": 99.081635}
|
||||
{"event": "pool", "unit": "src/keyboard/tiPcKeyboard", "output": "POOL IDENTICAL up to 204 (mine=204 base=204)\n"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "label": "setter early return on unchanged modifier flags", "compiled": true, "instructions": [49, 49, 8], "fuzzy": 99.081635, "regressions": [], "measures": {"fuzzy_match_percent": 99.97332, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "label": "setter names retained input mode before comparison", "compiled": true, "instructions": [50, 49, 41], "fuzzy": 91.734695, "regressions": ["setABCFlag__Q59textinput8keyboard6pctype4Base8KeyStateFUl", "onlyQwerty__Q49textinput8keyboard6pctype4BaseFb", "setLangKeyActive__Q49textinput8keyboard6pctype4BaseFb", "create__Q49textinput8keyboard6pctype12LayoutByNW4RFP12MEMAllocator", "onlyQwerty__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "setLangKeyActive__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv"], "measures": {"fuzzy_match_percent": 99.6742, "total_code": "28484", "matched_code": "24948", "matched_code_percent": 87.58601, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 131, "matched_functions_percent": 92.90781, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "label": "separate assigned state and flags locals for declaration search", "compiled": true, "instructions": [49, 49, 8], "fuzzy": 99.081635, "regressions": [], "measures": {"fuzzy_match_percent": 99.97332, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}}
|
||||
{"event": "declsearch", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "output": "fewer than two leading declarations; pass --lines START END\n"}
|
||||
{"event": "restored", "unit": "src/keyboard/tiPcKeyboard", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "instructions": [49, 49, 8]}
|
||||
{"event": "begin", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "origin": "3c9af06f34375ee53e621fc7b90d9f211fd6ee88", "remote_source_identical": true, "diagnosis": "After frame/branch/helper diagnosis and three structural trials, test setter branch inversion, shared mode temporary, flags assignment lifetime. Check standalone setter and other callers for regressions.", "initial": [39, 39, 8], "fuzzy": 98.84615}
|
||||
{"event": "pool", "unit": "src/keyboard/tiPcKeyboard", "output": "POOL IDENTICAL up to 204 (mine=204 base=204)\n"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "label": "setter early return on unchanged modifier flags", "compiled": true, "instructions": [39, 39, 8], "fuzzy": 98.84615, "regressions": [], "measures": {"fuzzy_match_percent": 99.97332, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "label": "setter names retained input mode before comparison", "compiled": true, "instructions": [40, 39, 34], "fuzzy": 94.48718, "regressions": ["setABCFlag__Q59textinput8keyboard6pctype4Base8KeyStateFUl", "onlyQwerty__Q49textinput8keyboard6pctype4BaseFb", "setLangKeyActive__Q49textinput8keyboard6pctype4BaseFb", "create__Q49textinput8keyboard6pctype12LayoutByNW4RFP12MEMAllocator", "onlyQwerty__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "setLangKeyActive__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv"], "measures": {"fuzzy_match_percent": 99.6742, "total_code": "28484", "matched_code": "24948", "matched_code_percent": 87.58601, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 131, "matched_functions_percent": 92.90781, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "label": "separate assigned state and flags locals for declaration search", "compiled": true, "instructions": [39, 39, 8], "fuzzy": 98.84615, "regressions": [], "measures": {"fuzzy_match_percent": 99.97332, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}}
|
||||
{"event": "declsearch", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "output": "fewer than two leading declarations; pass --lines START END\n"}
|
||||
{"event": "restored", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "instructions": [39, 39, 8]}
|
||||
{"event": "begin", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "origin": "9acff807814ebc31117a41f325bab0af803169cd", "remote_source_identical": true, "diagnosis": "126 instructions each, same frame. Target compares depth>=delay; target period step quotient precedes integer LFO resets and signed conversions; history stores follow all conversion stores. Try source/helper boundaries and history loop before register search.", "initial": [126, 126, 56], "fuzzy": 69.9127}
|
||||
{"event": "pool", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "output": "POOL IDENTICAL up to 0 (mine=0 base=0)\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "compute period step first then initialize integer state before conversions", "compiled": true, "instructions": [126, 126, 55], "fuzzy": 69.11905, "regressions": [], "measures": {"fuzzy_match_percent": 91.1535, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "clear history through nested channel/sample loops after LFO conversions", "compiled": true, "instructions": [126, 126, 32], "fuzzy": 92.92857, "regressions": [], "measures": {"fuzzy_match_percent": 95.62444, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "inline LFO state initialization separate from history initialization", "compiled": true, "instructions": [126, 126, 55], "fuzzy": 70.07143, "regressions": [], "measures": {"fuzzy_match_percent": 91.33234, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "restored", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "instructions": [126, 126, 56]}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "retain history loop structural candidate for diagnosis", "compiled": true, "instructions": [126, 126, 32], "fuzzy": 92.92857, "regressions": [], "measures": {"fuzzy_match_percent": 95.62444, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "history loop and target depth comparison with original constant encounter order", "compiled": true, "instructions": [126, 126, 17], "fuzzy": 95.77778, "regressions": [], "measures": {"fuzzy_match_percent": 96.15946, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "integer LFO state first with original floating expression encounter order", "compiled": true, "instructions": [126, 126, 17], "fuzzy": 97.7381, "regressions": [], "measures": {"fuzzy_match_percent": 96.52757, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "load named LFO rate before conversion expressions", "compiled": true, "instructions": [126, 126, 21], "fuzzy": 97.53968, "regressions": [], "measures": {"fuzzy_match_percent": 96.49031, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "inspect closest structural initialization candidate", "compiled": true, "instructions": [126, 126, 17], "fuzzy": 97.7381, "regressions": [], "measures": {"fuzzy_match_percent": 96.52757, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "target step multiplication operand order and retained depth quotient", "compiled": true, "instructions": [126, 126, 18], "fuzzy": 94.47619, "regressions": [], "measures": {"fuzzy_match_percent": 95.915054, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "split meaningful float and loop declarations for allocation search", "compiled": true, "instructions": [126, 126, 18], "fuzzy": 94.47619, "regressions": [], "measures": {"fuzzy_match_percent": 95.915054, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "declsearch", "function": "__InitParams", "output": "fewer than two leading declarations; pass --lines START END\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "retain quotient then divide step by table length", "compiled": true, "instructions": [126, 126, 24], "fuzzy": 97.2619, "regressions": [], "measures": {"fuzzy_match_percent": 96.43815, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "retain step and depth quotients before gradient conversion", "compiled": true, "instructions": [126, 126, 24], "fuzzy": 94.15873, "regressions": [], "measures": {"fuzzy_match_percent": 95.85544, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "name phase step before period step and convert afterward", "compiled": true, "instructions": [126, 126, 24], "fuzzy": 94.15873, "regressions": [], "measures": {"fuzzy_match_percent": 95.85544, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "restored", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "instructions": [126, 126, 56]}
|
||||
{"event": "begin", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "origin": "426555a34f7dd162e14bc28ead5f55168f090eb8", "remote_source_identical": true, "diagnosis": "Target 65 instructions with 0x10 frame and signed 64-bit value negation, expanded signed 64-bit gradient product, CTR sample loop. Ours 51 instructions, truncates manually and decrements GPR. Restore signed shifts, compound multiplication width and fixed loop.", "initial": [51, 65, 65], "fuzzy": 68.53846}
|
||||
{"event": "pool", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "output": "POOL IDENTICAL up to 0 (mine=0 base=0)\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "label": "signed shifted 64 bit value and fixed count sample loop", "compiled": true, "instructions": [55, 65, 65], "fuzzy": 72.0, "regressions": [], "measures": {"fuzzy_match_percent": 91.637856, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "label": "compound gradient product from signed widened difference", "compiled": true, "instructions": [61, 65, 65], "fuzzy": 62.215385, "regressions": [], "measures": {"fuzzy_match_percent": 90.69002, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "label": "inline signed wide scaling helper for sample and gradient", "compiled": true, "instructions": [55, 65, 65], "fuzzy": 72.0, "regressions": [], "measures": {"fuzzy_match_percent": 91.637856, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "label": "inspect compound widened gradient candidate", "compiled": true, "instructions": [61, 65, 65], "fuzzy": 62.215385, "regressions": [], "measures": {"fuzzy_match_percent": 90.69002, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "label": "independent wide sample and gradient with shifts after both multiplications", "compiled": true, "instructions": [65, 65, 26], "fuzzy": 83.07692, "regressions": [], "measures": {"fuzzy_match_percent": 92.71088, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "label": "retain widened table difference directly in gradient product", "compiled": true, "instructions": [65, 65, 26], "fuzzy": 83.30769, "regressions": [], "measures": {"fuzzy_match_percent": 92.73323, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "label": "commute wide gradient operands after table subtraction", "compiled": true, "instructions": [65, 65, 26], "fuzzy": 83.30769, "regressions": [], "measures": {"fuzzy_match_percent": 92.73323, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "label": "compute sample product before widened table difference", "compiled": true, "instructions": [65, 65, 26], "fuzzy": 83.07692, "regressions": [], "measures": {"fuzzy_match_percent": 92.71088, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "label": "declare phase before signed value then assign phase", "compiled": true, "instructions": [65, 65, 26], "fuzzy": 83.07692, "regressions": [], "measures": {"fuzzy_match_percent": 92.71088, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "declsearch", "function": "__CalcLFO", "output": "declaration block:\n u32 phase;\n s64 value;\nstart (8, 26)\nbest (8, 26) after 2 builds; source restored; best order was:\n u32 phase;\n s64 value;\n"}
|
||||
{"event": "restored", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "instructions": [51, 65, 65]}
|
||||
{"event": "begin", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "origin": "31d0f12981dba19bb149c7904032cb1bf5529c79", "remote_source_identical": true, "diagnosis": "158 instructions and 0x40 frames each. Target loads round count first then key cursor; source state initializers live across round temporaries. Target XORs low-byte lookup with rotated byte8 and prior byte24/16 pair, while ours groups final two byte operands. Try XOR tree, helper round boundary, independent declarations.", "initial": [158, 158, 134], "fuzzy": 60.348103}
|
||||
{"event": "pool", "unit": "libs/RevoEX/src/net/aes", "output": "POOL IDENTICAL up to 4 (mine=4 base=4)\n"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "explicit target low byte XOR association with nested high-byte pair", "compiled": true, "instructions": [158, 158, 134], "fuzzy": 60.348103, "regressions": [], "measures": {"fuzzy_match_percent": 75.11482, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "inline encryption round lookup helper with target association", "compiled": true, "instructions": [158, 158, 139], "fuzzy": 53.83544, "regressions": [], "measures": {"fuzzy_match_percent": 73.61919, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "separate leading state declarations from round-count and initial key loads", "compiled": true, "instructions": [158, 158, 134], "fuzzy": 60.348103, "regressions": [], "measures": {"fuzzy_match_percent": 75.11482, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}}
|
||||
{"event": "restored", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "instructions": [158, 158, 134]}
|
||||
{"event": "begin", "unit": "libs/RevoEX/src/net/aes", "function": "AESiDecryptBlock", "origin": "326273b6198accfc1e4062bacb677ed1eec1ab74", "remote_source_identical": true, "diagnosis": "Target 251 instructions versus 249, same 0x40 frame. Target computes context keys base once then round offset; source folds offset into context. Target inverse MixColumns mutates four/twice/value operands separately with rotated accumulator, ours reassociates XOR chains. Structural pointer and mix boundaries first.", "initial": [249, 251, 244], "fuzzy": 61.49004}
|
||||
{"event": "pool", "unit": "libs/RevoEX/src/net/aes", "output": "POOL IDENTICAL up to 4 (mine=4 base=4)\n"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiDecryptBlock", "label": "mutate inverse MixColumns intermediate terms in target operand order", "compiled": true, "instructions": [249, 251, 244], "fuzzy": 62.74502, "regressions": [], "measures": {"fuzzy_match_percent": 75.57268, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiDecryptBlock", "label": "retain key schedule base separately before round offset", "compiled": true, "instructions": [251, 251, 224], "fuzzy": 63.836655, "regressions": [], "measures": {"fuzzy_match_percent": 75.97093, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiDecryptBlock", "label": "inline inverse MixColumns column helper", "compiled": true, "instructions": [249, 251, 241], "fuzzy": 62.84462, "regressions": [], "measures": {"fuzzy_match_percent": 75.60901, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}}
|
||||
{"event": "restored", "unit": "libs/RevoEX/src/net/aes", "function": "AESiDecryptBlock", "instructions": [249, 251, 244]}
|
||||
{"event": "begin", "unit": "libs/RevoEX/src/net/aes", "function": "NETAESCreateEx", "origin": "a6c7690eb0e3c8f52487c7e736f3032f35bc5bc4", "remote_source_identical": true, "diagnosis": "Target 108 instructions vs 107. Target recomputes words from saved keyLength after memcpy; ours reuses rounds quotient. Target rotated substitution groups byte16 with byte24 then byte0 with byte8; bitfield transform flag is set before round count update. Try inline context setup and explicit substitution helper boundaries.", "initial": [107, 108, 81], "fuzzy": 88.98148}
|
||||
{"event": "pool", "unit": "libs/RevoEX/src/net/aes", "output": "POOL IDENTICAL up to 4 (mine=4 base=4)\n"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "NETAESCreateEx", "label": "inline AES context setup before key word count computation", "compiled": true, "instructions": [107, 108, 77], "fuzzy": 92.73148, "regressions": [], "measures": {"fuzzy_match_percent": 75.70349, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "NETAESCreateEx", "label": "set transformation bit before round count bitfield", "compiled": true, "instructions": [107, 108, 77], "fuzzy": 92.73148, "regressions": [], "measures": {"fuzzy_match_percent": 75.70349, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "NETAESCreateEx", "label": "rotated key substitution grouped as target high and low pairs", "compiled": true, "instructions": [107, 108, 81], "fuzzy": 83.14815, "regressions": [], "measures": {"fuzzy_match_percent": 74.19913, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}}
|
||||
{"event": "restored", "unit": "libs/RevoEX/src/net/aes", "function": "NETAESCreateEx", "instructions": [107, 108, 81]}
|
||||
{"event": "begin", "unit": "src/keyboard/tiPcKeyboard", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "origin": "a6c7690eb0e3c8f52487c7e736f3032f35bc5bc4", "remote_source_identical": true, "diagnosis": "Register-only r4/r6 flags-owner exchange persists after setter boundary trials. Try getter inline boundary and modifier setter wrapper; retain only no-regression exact matches.", "initial": [49, 49, 8], "fuzzy": 99.081635}
|
||||
{"event": "pool", "unit": "src/keyboard/tiPcKeyboard", "output": "POOL IDENTICAL up to 204 (mine=204 base=204)\n"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "label": "modifier getter inline with state reference", "compiled": true, "instructions": [49, 49, 8], "fuzzy": 99.081635, "regressions": [], "measures": {"fuzzy_match_percent": 99.97332, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "label": "modifier getter inline wrapping existing getter", "compiled": true, "instructions": [49, 49, 8], "fuzzy": 99.081635, "regressions": [], "measures": {"fuzzy_match_percent": 99.97332, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "label": "modifier setter inline wrapping real member setter", "compiled": true, "instructions": [49, 49, 8], "fuzzy": 99.081635, "regressions": [], "measures": {"fuzzy_match_percent": 99.97332, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}}
|
||||
{"event": "restored", "unit": "src/keyboard/tiPcKeyboard", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "instructions": [49, 49, 8]}
|
||||
{"event": "begin", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "origin": "a6c7690eb0e3c8f52487c7e736f3032f35bc5bc4", "remote_source_identical": true, "diagnosis": "Register-only r4/r6 flags-owner exchange persists after setter boundary trials. Try getter inline boundary and modifier setter wrapper; retain only no-regression exact matches.", "initial": [39, 39, 8], "fuzzy": 98.84615}
|
||||
{"event": "pool", "unit": "src/keyboard/tiPcKeyboard", "output": "POOL IDENTICAL up to 204 (mine=204 base=204)\n"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "label": "modifier getter inline with state reference", "compiled": true, "instructions": [39, 39, 8], "fuzzy": 98.84615, "regressions": [], "measures": {"fuzzy_match_percent": 99.97332, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "label": "modifier getter inline wrapping existing getter", "compiled": true, "instructions": [39, 39, 8], "fuzzy": 98.84615, "regressions": [], "measures": {"fuzzy_match_percent": 99.97332, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "label": "modifier setter inline wrapping real member setter", "compiled": true, "instructions": [39, 39, 8], "fuzzy": 98.84615, "regressions": [], "measures": {"fuzzy_match_percent": 99.97332, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}}
|
||||
{"event": "restored", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "instructions": [39, 39, 8]}
|
||||
{"event": "begin", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "origin": "a6c7690eb0e3c8f52487c7e736f3032f35bc5bc4", "remote_source_identical": true, "diagnosis": "History loop aligns stores and target compare, leaves 17 differences: phase/depth float scheduling and conversion outputs r7/r6/r5 plus zero r4. Introduce named signed conversion outputs and arithmetic lifetime before declaration search.", "initial": [126, 126, 56], "fuzzy": 69.9127}
|
||||
{"event": "pool", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "output": "POOL IDENTICAL up to 0 (mine=0 base=0)\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "separate signed fixed point conversion results from state stores", "compiled": true, "instructions": [126, 126, 23], "fuzzy": 95.53968, "regressions": [], "measures": {"fuzzy_match_percent": 96.11475, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "compute depth quotient before signed phase and period conversions", "compiled": true, "instructions": [126, 126, 26], "fuzzy": 93.69841, "regressions": [], "measures": {"fuzzy_match_percent": 95.769005, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "compound period scaling with retained quotient operand", "compiled": true, "instructions": [126, 126, 29], "fuzzy": 94.007935, "regressions": [], "measures": {"fuzzy_match_percent": 95.827126, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "restored", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "instructions": [126, 126, 56]}
|
||||
{"event": "begin", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_chg_ltop", "origin": "a6c7690eb0e3c8f52487c7e736f3032f35bc5bc4", "remote_source_identical": true, "diagnosis": "Standalone full conversion helper matches, but inline logical callers need fresh diagnosis; compare their changed register assignments before searching local declaration order.", "initial": [51, 51, 16], "fuzzy": 97.84314}
|
||||
{"event": "pool", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "output": "POOL IDENTICAL up to 0 (mine=0 base=0)\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_chg_ltop", "label": "inspect inline logical callers after standalone wrapper match", "compiled": true, "instructions": [51, 51, 0], "fuzzy": 100.0, "regressions": ["pdm_part_logical_read", "pdm_part_logical_write"], "measures": {"fuzzy_match_percent": 86.588806, "total_code": "3716", "matched_code": "1820", "matched_code_percent": 48.977394, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 16, "matched_functions_percent": 80.0, "complete_data_percent": 100.0, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_chg_ltop", "label": "keep logical read/write out-of-line call boundary proved by target using NO_INLINE", "compiled": true, "instructions": [51, 51, 0], "fuzzy": 100.0, "regressions": [], "measures": {"fuzzy_match_percent": 93.598495, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}}
|
||||
{"event": "accepted", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_chg_ltop", "instructions": [51, 51, 0], "full_gate": "full build: ok\nmain.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d\n[src/keyboard/tiPcKeyboard] pool: IDENTICAL\n[src/keyboard/tiPcKeyboard] objdiff: code 27712/28484 data 18548/18564 functions 138/141 fuzzy 99.9733 linked code 0\n[src/keyboard/tiPcKeyboard] instruction-exact functions: 138/141\n[src/keyboard/tiPcKeyboard] section .bss size 16 match None\n[src/keyboard/tiPcKeyboard] section .ctors size 4 match 100.0\n[src/keyboard/tiPcKeyboard] section .data size 12576 match 100.0\n[src/keyboard/tiPcKeyboard] section .rodata size 5816 match 100.0\n[src/keyboard/tiPcKeyboard] section .sbss size 8 match 100.0\n[src/keyboard/tiPcKeyboard] section .sdata size 136 match 100.0\n[src/keyboard/tiPcKeyboard] section .sdata2 size 8 match 100.0\n[src/keyboard/tiPcKeyboard] section .text size 28484 match 99.97332\n[src/keyboard/tiPcKeyboard] below 100: setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode 99.04762\n[src/keyboard/tiPcKeyboard] below 100: onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb 99.081635\n[src/keyboard/tiPcKeyboard] below 100: onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv 98.84615\n[src/keyboard/tiPcKeyboard] baseline: code 27712/28484 data 18548 functions 138 fuzzy 99.9733\n[libs/RVL_SDK/src/fa/pdm_partition] pool: IDENTICAL\n[libs/RVL_SDK/src/fa/pdm_partition] objdiff: code 2276/3716 data None/None functions 18/20 fuzzy 93.5985 linked code 0\n[libs/RVL_SDK/src/fa/pdm_partition] instruction-exact functions: 18/20\n[libs/RVL_SDK/src/fa/pdm_partition] section .text size 3716 match 93.598495\n[libs/RVL_SDK/src/fa/pdm_partition] below 100: pdm_part_is_master_boot_sector 86.5\n[libs/RVL_SDK/src/fa/pdm_partition] below 100: pdm_part_get_start_sector 82.56159\n[libs/RVL_SDK/src/fa/pdm_partition] baseline: code 2072/3716 data None functions 17 fuzzy 93.4801\n[libs/RVL_SDK/src/axfx/AXFXChorusExp] pool: IDENTICAL\n[libs/RVL_SDK/src/axfx/AXFXChorusExp] objdiff: code 1920/2684 data 48/48 functions 5/7 fuzzy 91.3025 linked code 0\n[libs/RVL_SDK/src/axfx/AXFXChorusExp] instruction-exact functions: 5/7\n[libs/RVL_SDK/src/axfx/AXFXChorusExp] section .sdata2 size 48 match 100.0\n[libs/RVL_SDK/src/axfx/AXFXChorusExp] section .text size 2684 match 91.302536\n[libs/RVL_SDK/src/axfx/AXFXChorusExp] below 100: __InitParams 69.9127\n[libs/RVL_SDK/src/axfx/AXFXChorusExp] below 100: __CalcLFO 68.53846\n[libs/RVL_SDK/src/axfx/AXFXChorusExp] baseline: code 1920/2684 data 48 functions 5 fuzzy 91.3025\n[libs/RevoEX/src/net/aes] pool: IDENTICAL\n[libs/RevoEX/src/net/aes] objdiff: code 684/2752 data 2800/2800 functions 6/9 fuzzy 75.1148 linked code 0\n[libs/RevoEX/src/net/aes] instruction-exact functions: 6/9\n[libs/RevoEX/src/net/aes] section .data size 200 match 100.0\n[libs/RevoEX/src/net/aes] section .rodata size 2592 match 100.0\n[libs/RevoEX/src/net/aes] section .sdata2 size 8 match 100.0\n[libs/RevoEX/src/net/aes] section .text size 2752 match 75.11482\n[libs/RevoEX/src/net/aes] below 100: AESiEncryptBlock 60.348103\n[libs/RevoEX/src/net/aes] below 100: AESiDecryptBlock 61.49004\n[libs/RevoEX/src/net/aes] below 100: NETAESCreateEx 88.98148\n[libs/RevoEX/src/net/aes] baseline: code 684/2752 data 2800 functions 6 fuzzy 75.1148\nregressions vs baseline: 0\nglobal matched_code_percent: 88.09116 -> 88.09798\nglobal fuzzy_match_percent: 99.38004 -> 99.38019\nglobal complete_code_percent: 62.52416 -> 62.52416\nglobal matched_data_percent: 92.11517 -> 92.11517\nforbidden patterns added (net, per file): 0\nreadability warnings (net, per file; must be 0 in the final result): 0\nGATE PASS\n"}
|
||||
{"event": "begin", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "origin": "f4795462112db607d64efb2a3f78bdb33beffee9", "remote_source_identical": true, "diagnosis": "Partition conversion demonstrated inline public wrapper plus preserved out-of-line call boundary can correct register coloring. Try same legitimate initialization implementation boundary with original validation and repaired history loop.", "initial": [126, 126, 56], "fuzzy": 69.9127}
|
||||
{"event": "pool", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "output": "POOL IDENTICAL up to 0 (mine=0 base=0)\n"}
|
||||
{"event": "discarded", "function": "__InitParams", "reason": "definition-only NO_INLINE too late for earlier callers; wrapper symbol not emitted; no count attributed"}
|
||||
{"event": "restored", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "instructions": [126, 126, 56]}
|
||||
{"event": "begin", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "origin": "f4795462112db607d64efb2a3f78bdb33beffee9", "remote_source_identical": true, "diagnosis": "Partition conversion demonstrated inline public wrapper plus preserved out-of-line call boundary can correct register coloring. Try same legitimate initialization implementation boundary with original validation and repaired history loop.", "initial": [126, 126, 56], "fuzzy": 69.9127}
|
||||
{"event": "pool", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "output": "POOL IDENTICAL up to 0 (mine=0 base=0)\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "initialization helper with integer state first and history loop", "compiled": true, "instructions": [126, 126, 24], "fuzzy": 97.38095, "regressions": [], "measures": {"fuzzy_match_percent": 96.46051, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "initialization helper with original state order and history loop", "compiled": true, "instructions": [126, 126, 24], "fuzzy": 95.42063, "regressions": [], "measures": {"fuzzy_match_percent": 96.0924, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "initialization helper with signed conversion locals", "compiled": true, "instructions": [126, 126, 24], "fuzzy": 95.42063, "regressions": [], "measures": {"fuzzy_match_percent": 96.0924, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "restored", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "instructions": [126, 126, 56]}
|
||||
{"event": "begin", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "origin": "f4795462112db607d64efb2a3f78bdb33beffee9", "remote_source_identical": true, "diagnosis": "Closest 17 positional differences follow repaired history loop. Test direct period division instead of pre-folded reciprocal, signed loop indices, and loop helper lifetime, then stop after declaration search if no exact result.", "initial": [126, 126, 56], "fuzzy": 69.9127}
|
||||
{"event": "pool", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "output": "POOL IDENTICAL up to 0 (mine=0 base=0)\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "direct period divided by LFO table length", "compiled": true, "instructions": [126, 126, 16], "fuzzy": 97.81746, "regressions": [], "measures": {"fuzzy_match_percent": 96.54247, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "signed fixed channel and history sample traversal", "compiled": true, "instructions": [126, 126, 16], "fuzzy": 97.81746, "regressions": [], "measures": {"fuzzy_match_percent": 96.54247, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "inline history array loop helper after LFO conversion stores", "compiled": true, "instructions": [126, 126, 16], "fuzzy": 97.81746, "regressions": [], "measures": {"fuzzy_match_percent": 96.54247, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "restored", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "instructions": [126, 126, 56]}
|
||||
{"event": "begin", "unit": "src/keyboard/tiPcKeyboard", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "origin": "f4795462112db607d64efb2a3f78bdb33beffee9", "remote_source_identical": true, "diagnosis": "Structural and helper-boundary attempts exhausted; only flags/owner r4/r6 allocation differs. Run explicit-range declaration search over separately assigned state and flags locals.", "initial": [49, 49, 8], "fuzzy": 99.081635}
|
||||
{"event": "pool", "unit": "src/keyboard/tiPcKeyboard", "output": "POOL IDENTICAL up to 204 (mine=204 base=204)\n"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "label": "expose assigned modifier state and flags locals for final allocation check", "compiled": true, "instructions": [49, 49, 8], "fuzzy": 99.081635, "regressions": [], "measures": {"fuzzy_match_percent": 99.97332, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}}
|
||||
{"event": "declsearch", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "output": "declaration block:\n Base::KeyState* state;\n u32 flags;\nstart (0, 8)\nbest (0, 8) after 2 builds; source restored; best order was:\n Base::KeyState* state;\n u32 flags;\n"}
|
||||
{"event": "restored", "unit": "src/keyboard/tiPcKeyboard", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "instructions": [49, 49, 8]}
|
||||
{"event": "begin", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "origin": "f4795462112db607d64efb2a3f78bdb33beffee9", "remote_source_identical": true, "diagnosis": "Structural and helper-boundary attempts exhausted; only flags/owner r4/r6 allocation differs. Run explicit-range declaration search over separately assigned state and flags locals.", "initial": [39, 39, 8], "fuzzy": 98.84615}
|
||||
{"event": "pool", "unit": "src/keyboard/tiPcKeyboard", "output": "POOL IDENTICAL up to 204 (mine=204 base=204)\n"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "label": "expose assigned modifier state and flags locals for final allocation check", "compiled": true, "instructions": [39, 39, 8], "fuzzy": 98.84615, "regressions": [], "measures": {"fuzzy_match_percent": 99.97332, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}}
|
||||
{"event": "declsearch", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "output": "declaration block:\n Base::KeyState* state;\n u32 flags;\nstart (0, 8)\nbest (0, 8) after 2 builds; source restored; best order was:\n Base::KeyState* state;\n u32 flags;\n"}
|
||||
{"event": "restored", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "instructions": [39, 39, 8]}
|
||||
{"event": "begin", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "origin": "f4795462112db607d64efb2a3f78bdb33beffee9", "remote_source_identical": true, "diagnosis": "Direct period division removes operand mismatch; remaining 16 differences involve gradient/phase conversion scheduling and zero versus conversion-result GPR allocation. Try named compound phase calculation before independent gradient conversion.", "initial": [126, 126, 56], "fuzzy": 69.9127}
|
||||
{"event": "pool", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "output": "POOL IDENTICAL up to 0 (mine=0 base=0)\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "named compound phase quotient and retained depth quotient", "compiled": true, "instructions": [126, 126, 19], "fuzzy": 96.666664, "regressions": [], "measures": {"fuzzy_match_percent": 96.32638, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "split phase and traversal declarations before allocation search", "compiled": true, "instructions": [126, 126, 19], "fuzzy": 96.666664, "regressions": [], "measures": {"fuzzy_match_percent": 96.32638, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}}
|
||||
{"event": "declsearch", "function": "__InitParams", "output": "declaration block:\n f32 delay;\n f32 depth;\n f32 step;\n f32 phaseRate;\n u32 channel;\n u32 sample;\nstart (5, 19)\nbest (5, 19) after 36 builds; source restored; best order was:\n f32 delay;\n f32 depth;\n f32 step;\n f32 phaseRate;\n u32 channel;\n u32 sample;\n"}
|
||||
{"event": "restored", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "instructions": [126, 126, 56]}
|
||||
{"event": "final_full_gate", "output": "full build: ok\nmain.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d\n[src/keyboard/tiPcKeyboard] pool: IDENTICAL\n[src/keyboard/tiPcKeyboard] objdiff: code 27712/28484 data 18548/18564 functions 138/141 fuzzy 99.9733 linked code 0\n[src/keyboard/tiPcKeyboard] instruction-exact functions: 138/141\n[src/keyboard/tiPcKeyboard] section .bss size 16 match None\n[src/keyboard/tiPcKeyboard] section .ctors size 4 match 100.0\n[src/keyboard/tiPcKeyboard] section .data size 12576 match 100.0\n[src/keyboard/tiPcKeyboard] section .rodata size 5816 match 100.0\n[src/keyboard/tiPcKeyboard] section .sbss size 8 match 100.0\n[src/keyboard/tiPcKeyboard] section .sdata size 136 match 100.0\n[src/keyboard/tiPcKeyboard] section .sdata2 size 8 match 100.0\n[src/keyboard/tiPcKeyboard] section .text size 28484 match 99.97332\n[src/keyboard/tiPcKeyboard] below 100: setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode 99.04762\n[src/keyboard/tiPcKeyboard] below 100: onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb 99.081635\n[src/keyboard/tiPcKeyboard] below 100: onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv 98.84615\n[src/keyboard/tiPcKeyboard] baseline: code 27712/28484 data 18548 functions 138 fuzzy 99.9733\n[libs/RVL_SDK/src/fa/pdm_partition] pool: IDENTICAL\n[libs/RVL_SDK/src/fa/pdm_partition] objdiff: code 2276/3716 data None/None functions 18/20 fuzzy 93.5985 linked code 0\n[libs/RVL_SDK/src/fa/pdm_partition] instruction-exact functions: 18/20\n[libs/RVL_SDK/src/fa/pdm_partition] section .text size 3716 match 93.598495\n[libs/RVL_SDK/src/fa/pdm_partition] below 100: pdm_part_is_master_boot_sector 86.5\n[libs/RVL_SDK/src/fa/pdm_partition] below 100: pdm_part_get_start_sector 82.56159\n[libs/RVL_SDK/src/fa/pdm_partition] baseline: code 2072/3716 data None functions 17 fuzzy 93.4801\n[libs/RVL_SDK/src/axfx/AXFXChorusExp] pool: IDENTICAL\n[libs/RVL_SDK/src/axfx/AXFXChorusExp] objdiff: code 1920/2684 data 48/48 functions 5/7 fuzzy 91.3025 linked code 0\n[libs/RVL_SDK/src/axfx/AXFXChorusExp] instruction-exact functions: 5/7\n[libs/RVL_SDK/src/axfx/AXFXChorusExp] section .sdata2 size 48 match 100.0\n[libs/RVL_SDK/src/axfx/AXFXChorusExp] section .text size 2684 match 91.302536\n[libs/RVL_SDK/src/axfx/AXFXChorusExp] below 100: __InitParams 69.9127\n[libs/RVL_SDK/src/axfx/AXFXChorusExp] below 100: __CalcLFO 68.53846\n[libs/RVL_SDK/src/axfx/AXFXChorusExp] baseline: code 1920/2684 data 48 functions 5 fuzzy 91.3025\n[libs/RevoEX/src/net/aes] pool: IDENTICAL\n[libs/RevoEX/src/net/aes] objdiff: code 684/2752 data 2800/2800 functions 6/9 fuzzy 75.1148 linked code 0\n[libs/RevoEX/src/net/aes] instruction-exact functions: 6/9\n[libs/RevoEX/src/net/aes] section .data size 200 match 100.0\n[libs/RevoEX/src/net/aes] section .rodata size 2592 match 100.0\n[libs/RevoEX/src/net/aes] section .sdata2 size 8 match 100.0\n[libs/RevoEX/src/net/aes] section .text size 2752 match 75.11482\n[libs/RevoEX/src/net/aes] below 100: AESiEncryptBlock 60.348103\n[libs/RevoEX/src/net/aes] below 100: AESiDecryptBlock 61.49004\n[libs/RevoEX/src/net/aes] below 100: NETAESCreateEx 88.98148\n[libs/RevoEX/src/net/aes] baseline: code 684/2752 data 2800 functions 6 fuzzy 75.1148\nregressions vs baseline: 0\nglobal matched_code_percent: 88.09116 -> 88.09798\nglobal fuzzy_match_percent: 99.38004 -> 99.38019\nglobal complete_code_percent: 62.52416 -> 62.52416\nglobal matched_data_percent: 92.11517 -> 92.11517\nforbidden patterns added (net, per file): 0\nreadability warnings (net, per file; must be 0 in the final result): 0\nGATE PASS\n", "compiled_attempts": 85, "attempt_counts": {"setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode": 3, "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb": 10, "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv": 10, "pdm_part_is_master_boot_sector": 4, "pdm_part_get_start_sector": 3, "pdm_part_chg_ltop": 13, "__InitParams": 24, "__CalcLFO": 9, "AESiEncryptBlock": 3, "AESiDecryptBlock": 3, "NETAESCreateEx": 3}, "source_commit": "92c886dd"}
|
||||
97
tools/decomp-assist/sol-high-four-oct2.report.md
Normal file
97
tools/decomp-assist/sol-high-four-oct2.report.md
Normal file
@@ -0,0 +1,97 @@
|
||||
# Four-unit matching result, 2026-10-02
|
||||
|
||||
Source commit: 92c886dd, match partition sector conversion.
|
||||
|
||||
| Unit | Instruction-exact functions before -> after | Objdiff matched code bytes before -> after | Objdiff matched data bytes before -> after |
|
||||
| --- | --- | --- | --- |
|
||||
| src/keyboard/tiPcKeyboard | 138/141 -> 138/141 | 27712/28484 -> 27712/28484 | 18548/18564 -> 18548/18564 |
|
||||
| libs/RVL_SDK/src/fa/pdm_partition | 17/20 -> 18/20 | 2072/3716 -> 2276/3716 | absent -> absent |
|
||||
| libs/RVL_SDK/src/axfx/AXFXChorusExp | 5/7 -> 5/7 | 1920/2684 -> 1920/2684 | 48/48 -> 48/48 |
|
||||
| libs/RevoEX/src/net/aes | 6/9 -> 6/9 | 684/2752 -> 684/2752 | 2800/2800 -> 2800/2800 |
|
||||
|
||||
## Accepted change
|
||||
|
||||
pdm_part_chg_ltop: 100.0% objdiff, 51/51 instructions, ctxdiff diffs 0. Extracted the unchanged conversion into an inline implementation and kept the public function out of line with NO_INLINE, matching the calls in the target's logical read/write functions. A wrapper without NO_INLINE matched conversion but expanded both callers from 57 to 87 instructions, so that candidate was rejected. Final logical read/write remain exact. Full clean gate has identical pools, zero regressions, zero forbidden patterns, zero readability warnings and the required DOL hash.
|
||||
|
||||
## Remaining functions
|
||||
|
||||
setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode, 99.04762%: 106/105 instructions; defined invalid-enum fallback adds mr r31,r30. Target default appears uninitialized. No undefined fallback introduced.
|
||||
onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb, 99.081635%: 49/49 instructions; flags and owner exchange r4/r6, eight positional differences. Getter/setter boundaries and final explicit declaration search did not resolve allocation.
|
||||
onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv, 98.84615%: 39/39 instructions; flags and owner exchange r4/r6, eight positional differences. Getter/setter boundaries and final explicit declaration search did not resolve allocation.
|
||||
pdm_part_is_master_boot_sector, 86.5%: 86/84 instructions; extra saved register enlarges frame from target 0x30 to 0x40. Endian load scheduling and pointer allocation differ. Helper reduced frame and count, but remained non-exact.
|
||||
pdm_part_get_start_sector, 82.56159%: 276/276 instructions; endian operand association, byte-load scheduling and retained traversal registers differ. Array and success-exit variants remained non-exact.
|
||||
__InitParams, 69.9127%: 126/126 instructions; comparison operand order and floating/state-store scheduling differ. History-loop repair plus direct period division reached 97.81746%, 16 positional differences, but remained non-exact and was restored.
|
||||
__CalcLFO, 68.53846%: 51/65 instructions; missing full signed 64-bit sample/gradient lifetime and CTR loop. Independent compound wide products reached 65/65 instructions, but retained 26 scheduling/allocation differences and were restored.
|
||||
AESiEncryptBlock, 60.348103%: 158/158 instructions; initial state lifetime, table lookup scheduling and XOR associations differ. Three compiled helper/expression/declaration trials remained non-exact.
|
||||
AESiDecryptBlock, 61.49004%: 249/251 instructions; target retains schedule base separately and different inverse MixColumns intermediate lifetimes. Base-pointer trial reached 251/251 but remained non-exact; restored.
|
||||
NETAESCreateEx, 88.98148%: 107/108 instructions; quotient reuse prevents separate key-word recomputation, and substituted-byte association differs. Context initialization boundary reached 92.73148% but remained non-exact; restored.
|
||||
|
||||
## Attempt audit
|
||||
|
||||
85 compiled source attempts across all 11 initially open functions. Every remaining function has at least three distinct compiled source attempts. Declaration-search results and origin/main checks are recorded in sol-high-four-oct2.attempts.jsonl. Every function start fetched origin and compared current source with origin/main. Initial owned sources matched origin/main; subsequent differences were inspected owned experiments. No push, PR, worktree change, shared header change, or configure.py matching-status change.
|
||||
|
||||
## Files changed
|
||||
|
||||
- libs/RVL_SDK/src/fa/pdm_partition.c, committed in 92c886dd.
|
||||
- tools/decomp-assist/sol-high-four-oct2.attempts.jsonl, attempt and validation evidence.
|
||||
- tools/decomp-assist/sol-high-four-oct2.report.md, this report.
|
||||
|
||||
## Uncertainty
|
||||
|
||||
The intended invalid-enum fallback and the exact original LFO/compiler allocation boundaries remain unresolved. No uncertain source experiment was retained.
|
||||
|
||||
## Final full gate, copied verbatim
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/keyboard/tiPcKeyboard] pool: IDENTICAL
|
||||
[src/keyboard/tiPcKeyboard] objdiff: code 27712/28484 data 18548/18564 functions 138/141 fuzzy 99.9733 linked code 0
|
||||
[src/keyboard/tiPcKeyboard] instruction-exact functions: 138/141
|
||||
[src/keyboard/tiPcKeyboard] section .bss size 16 match None
|
||||
[src/keyboard/tiPcKeyboard] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .data size 12576 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .rodata size 5816 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .sbss size 8 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .sdata size 136 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .sdata2 size 8 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .text size 28484 match 99.97332
|
||||
[src/keyboard/tiPcKeyboard] below 100: setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode 99.04762
|
||||
[src/keyboard/tiPcKeyboard] below 100: onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb 99.081635
|
||||
[src/keyboard/tiPcKeyboard] below 100: onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv 98.84615
|
||||
[src/keyboard/tiPcKeyboard] baseline: code 27712/28484 data 18548 functions 138 fuzzy 99.9733
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] objdiff: code 2276/3716 data None/None functions 18/20 fuzzy 93.5985 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] instruction-exact functions: 18/20
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] section .text size 3716 match 93.598495
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] below 100: pdm_part_is_master_boot_sector 86.5
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] below 100: pdm_part_get_start_sector 82.56159
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] baseline: code 2072/3716 data None functions 17 fuzzy 93.4801
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] objdiff: code 1920/2684 data 48/48 functions 5/7 fuzzy 91.3025 linked code 0
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] instruction-exact functions: 5/7
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] section .sdata2 size 48 match 100.0
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] section .text size 2684 match 91.302536
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] below 100: __InitParams 69.9127
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] below 100: __CalcLFO 68.53846
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] baseline: code 1920/2684 data 48 functions 5 fuzzy 91.3025
|
||||
[libs/RevoEX/src/net/aes] pool: IDENTICAL
|
||||
[libs/RevoEX/src/net/aes] objdiff: code 684/2752 data 2800/2800 functions 6/9 fuzzy 75.1148 linked code 0
|
||||
[libs/RevoEX/src/net/aes] instruction-exact functions: 6/9
|
||||
[libs/RevoEX/src/net/aes] section .data size 200 match 100.0
|
||||
[libs/RevoEX/src/net/aes] section .rodata size 2592 match 100.0
|
||||
[libs/RevoEX/src/net/aes] section .sdata2 size 8 match 100.0
|
||||
[libs/RevoEX/src/net/aes] section .text size 2752 match 75.11482
|
||||
[libs/RevoEX/src/net/aes] below 100: AESiEncryptBlock 60.348103
|
||||
[libs/RevoEX/src/net/aes] below 100: AESiDecryptBlock 61.49004
|
||||
[libs/RevoEX/src/net/aes] below 100: NETAESCreateEx 88.98148
|
||||
[libs/RevoEX/src/net/aes] baseline: code 684/2752 data 2800 functions 6 fuzzy 75.1148
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.09116 -> 88.09798
|
||||
global fuzzy_match_percent: 99.38004 -> 99.38019
|
||||
global complete_code_percent: 62.52416 -> 62.52416
|
||||
global matched_data_percent: 92.11517 -> 92.11517
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
135
tools/decomp-assist/sol-high-round2-oct2.attempts.jsonl
Normal file
135
tools/decomp-assist/sol-high-round2-oct2.attempts.jsonl
Normal file
@@ -0,0 +1,135 @@
|
||||
{"event": "baseline", "head": "cb0716f7a56b7b7431aa7673a394b12780db63e8", "origin": "0b623f581bb359f058651f7ef858e0813200754d", "gate": "/tmp/sol-high-round2-baseline-gate.txt"}
|
||||
{"event": "unit_baseline", "unit": "src/keyboard/tiPcKeyboard", "measures": {"fuzzy_match_percent": 99.985954, "total_code": "28484", "matched_code": "28064", "matched_code_percent": 98.52549, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 140, "matched_functions_percent": 99.29078, "total_units": 1}, "open": [{"name": "setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode", "size": "420", "fuzzy_match_percent": 99.04762, "metadata": {"demangled_name": "textinput::keyboard::pctype::Base::setTranslateMode(textinput::keyboard::pctype::Base::TranslateMode)"}, "address": "3340"}]}
|
||||
{"event": "unit_baseline", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "measures": {"fuzzy_match_percent": 93.598495, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "open": [{"name": "pdm_part_is_master_boot_sector", "size": "336", "fuzzy_match_percent": 86.5, "metadata": {}, "address": "0"}, {"name": "pdm_part_get_start_sector", "size": "1104", "fuzzy_match_percent": 82.56159, "metadata": {}, "address": "644"}]}
|
||||
{"event": "unit_baseline", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "measures": {"fuzzy_match_percent": 94.35023, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "open": [{"name": "__InitParams", "size": "504", "fuzzy_match_percent": 69.9127, "metadata": {}, "address": "1920"}]}
|
||||
{"event": "unit_baseline", "unit": "libs/RevoEX/src/net/aes", "measures": {"fuzzy_match_percent": 76.844475, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "open": [{"name": "AESiEncryptBlock", "size": "632", "fuzzy_match_percent": 60.348103, "metadata": {}, "address": "0"}, {"name": "AESiDecryptBlock", "size": "1004", "fuzzy_match_percent": 61.49004, "metadata": {}, "address": "632"}]}
|
||||
{"event": "begin", "unit": "src/keyboard/tiPcKeyboard", "function": "setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode", "origin": "0b623f581bb359f058651f7ef858e0813200754d", "remote_source_identical": true, "diagnosis": "Baseline 106/105 instructions with identical 0x20 frame and branch tree. Extra mr r31,r30 initializes keyMode for invalid enum; investigate safe switch and helper boundaries before register allocation.", "fuzzy": 99.04762}
|
||||
{"event": "pool", "unit": "src/keyboard/tiPcKeyboard", "output": "POOL IDENTICAL up to 204 (mine=204 base=204)\n"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode", "label": "map mode through a bounded table with original enum fallback", "compiled": true, "instructions": [99, 105], "structural": 13, "positional": 95, "fuzzy": 89.47619, "pool": 0, "regressions": ["main/src/keyboard/tiPcKeyboard:setTranslateMode__Q49textinput8keyboard6pctype12LayoutByNW4RFQ59textinput8keyboard6pctype4Base13TranslateMode"], "measures": {"fuzzy_match_percent": 98.62646, "total_code": "28484", "matched_code": "27408", "matched_code_percent": 96.22244, "total_data": "18564", "matched_data": "12732", "matched_data_percent": 68.58436, "total_functions": 141, "matched_functions": 139, "matched_functions_percent": 98.58156, "total_units": 1}, "context": "/tmp/sol-high-round2-context-1.txt"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode", "label": "preserve original mode separately and map parameter through switch", "compiled": true, "instructions": [103, 105], "structural": 7, "positional": 40, "fuzzy": 94.75238, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.92262, "total_code": "28484", "matched_code": "28064", "matched_code_percent": 98.52549, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 140, "matched_functions_percent": 99.29078, "total_units": 1}, "context": "/tmp/sol-high-round2-context-2.txt"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode", "label": "explicit sequential branches with defined fallback", "compiled": true, "instructions": [103, 105], "structural": 18, "positional": 96, "fuzzy": 92.942856, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.89594, "total_code": "28484", "matched_code": "28064", "matched_code_percent": 98.52549, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 140, "matched_functions_percent": 99.29078, "total_units": 1}, "context": "/tmp/sol-high-round2-context-3.txt"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode", "label": "restore defined baseline; target default uses unwritten callee-saved value, register search cannot remove semantic fallback", "compiled": true, "instructions": [106, 105], "structural": 1, "positional": 99, "fuzzy": 99.04762, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.985954, "total_code": "28484", "matched_code": "28064", "matched_code_percent": 98.52549, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 140, "matched_functions_percent": 99.29078, "total_units": 1}, "context": "/tmp/sol-high-round2-context-4.txt"}
|
||||
{"event": "begin", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "origin": "0b623f581bb359f058651f7ef858e0813200754d", "remote_source_identical": true, "diagnosis": "126/126 instructions, frame 0x30; target compares depth>=delay, delays four float conversions and history stores, and reuses depth for gradient quotient. Examine reset order, period expression and conversion temporaries before declarations.", "fuzzy": 69.9127}
|
||||
{"event": "pool", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "output": "POOL IDENTICAL up to 0 (mine=0 base=0)\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "reproduce prior nearest structure: reversed comparison, resets before conversions and nested history loops", "compiled": true, "instructions": [126, 126], "structural": 2, "positional": 16, "fuzzy": 97.81746, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.590164, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-5.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "named integer conversions followed by parameter stores", "compiled": true, "instructions": [126, 126], "structural": 4, "positional": 22, "fuzzy": 95.61905, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.177345, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-6.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "named scaled depth with gradient quotient in depth variable before phase calculation", "compiled": true, "instructions": [126, 126], "structural": 4, "positional": 23, "fuzzy": 98.13492, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.64977, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-7.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "phase numerator and gradient quotient named before conversions", "compiled": true, "instructions": [126, 126], "structural": 11, "positional": 31, "fuzzy": 94.51588, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 98.97019, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-8.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "restore nearest valid seed for scheduling investigation", "compiled": true, "instructions": [126, 126], "structural": 2, "positional": 16, "fuzzy": 97.81746, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.590164, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-9.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "phase/step/depth quotient statement schedule DSPQTG", "compiled": true, "instructions": [126, 126], "structural": 6, "positional": 31, "fuzzy": 97.53968, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.538, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-10.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "phase/step/depth quotient statement schedule DSQPTG", "compiled": true, "instructions": [126, 126], "structural": 6, "positional": 31, "fuzzy": 97.53968, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.538, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-11.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "phase/step/depth quotient statement schedule SDQPTG", "compiled": true, "instructions": [126, 126], "structural": 6, "positional": 28, "fuzzy": 97.65873, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.560356, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-12.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "phase/step/depth quotient statement schedule SPDQGT", "compiled": true, "instructions": [126, 126], "structural": 7, "positional": 25, "fuzzy": 97.666664, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.56185, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-13.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "phase/step/depth quotient statement schedule DSPTQG", "compiled": true, "instructions": [126, 126], "structural": 6, "positional": 31, "fuzzy": 97.53968, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.538, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-14.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "phase/step/depth quotient statement schedule SDPTQG", "compiled": true, "instructions": [126, 126], "structural": 6, "positional": 28, "fuzzy": 97.65873, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.560356, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-15.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "history traversal or zero-lifetime boundary signed", "compiled": true, "instructions": [126, 126], "structural": 2, "positional": 16, "fuzzy": 97.81746, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.590164, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-16.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "history traversal or zero-lifetime boundary inner-scope", "compiled": true, "instructions": [126, 126], "structural": 2, "positional": 16, "fuzzy": 97.81746, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.590164, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-17.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "history traversal or zero-lifetime boundary descending", "compiled": true, "instructions": [138, 126], "structural": 38, "positional": 71, "fuzzy": 82.769844, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 96.764534, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-18.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "history traversal or zero-lifetime boundary explicit-zero", "compiled": true, "instructions": [126, 126], "structural": 2, "positional": 16, "fuzzy": 97.81746, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.590164, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-19.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "retain nearest scheduled structure (2, 16)", "compiled": true, "instructions": [126, 126], "structural": 2, "positional": 16, "fuzzy": 97.81746, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.590164, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-20.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "named gradient quotient and grad reset placement RSDQZPTG", "compiled": true, "instructions": [126, 126], "structural": 11, "positional": 31, "fuzzy": 94.51588, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 98.97019, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-21.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "named gradient quotient and grad reset placement RSDQPTZG", "compiled": true, "instructions": [126, 126], "structural": 11, "positional": 31, "fuzzy": 94.51588, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 98.97019, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-22.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "named gradient quotient and grad reset placement RZSDQPTG", "compiled": true, "instructions": [126, 126], "structural": 11, "positional": 31, "fuzzy": 94.51588, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 98.97019, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-23.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "named gradient quotient and grad reset placement SRZDQPTG", "compiled": true, "instructions": [126, 126], "structural": 11, "positional": 31, "fuzzy": 94.51588, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 98.97019, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-24.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "named gradient quotient and grad reset placement RSDZQPTG", "compiled": true, "instructions": [126, 126], "structural": 11, "positional": 31, "fuzzy": 94.51588, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 98.97019, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-25.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "named gradient quotient and grad reset placement RZSDPQTG", "compiled": true, "instructions": [126, 126], "structural": 11, "positional": 30, "fuzzy": 94.51588, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 98.97019, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-26.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "named gradient quotient and grad reset placement RSDPQZTG", "compiled": true, "instructions": [126, 126], "structural": 11, "positional": 30, "fuzzy": 94.51588, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 98.97019, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-27.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "named gradient quotient and grad reset placement RZSDPTQG", "compiled": true, "instructions": [126, 126], "structural": 11, "positional": 30, "fuzzy": 94.51588, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 98.97019, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-28.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "named gradient quotient and grad reset placement RZSDQTGP", "compiled": true, "instructions": [126, 126], "structural": 13, "positional": 32, "fuzzy": 92.90476, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 98.66766, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-29.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "named gradient quotient and grad reset placement RSDQPZTG", "compiled": true, "instructions": [126, 126], "structural": 11, "positional": 31, "fuzzy": 94.51588, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 98.97019, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-30.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "named gradient quotient and grad reset placement SDQRZPTG", "compiled": true, "instructions": [126, 126], "structural": 11, "positional": 29, "fuzzy": 94.59524, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 98.9851, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-31.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "named gradient quotient and grad reset placement RSDQPTGZ", "compiled": true, "instructions": [126, 126], "structural": 11, "positional": 31, "fuzzy": 94.51588, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 98.97019, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-32.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "retain gradient scheduling best (2, 16)", "compiled": true, "instructions": [126, 126], "structural": 2, "positional": 16, "fuzzy": 97.81746, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.590164, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-33.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "inline LFO state reset helper", "compiled": true, "instructions": [126, 126], "structural": 2, "positional": 16, "fuzzy": 97.81746, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.590164, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-34.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "inline history reset helper with pointer parameter", "compiled": true, "instructions": [126, 126], "structural": 2, "positional": 16, "fuzzy": 97.81746, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.590164, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-35.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "inline gradient scale helper mutating its depth argument", "compiled": true, "instructions": [126, 126], "structural": 0, "positional": 21, "fuzzy": 99.12698, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.83607, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-36.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "same history traversal using f32 row pointers", "compiled": true, "instructions": [126, 126], "structural": 2, "positional": 16, "fuzzy": 97.81746, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.590164, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-37.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "retain nearest partial helper structure (0, 21)", "compiled": true, "instructions": [126, 126], "structural": 0, "positional": 21, "fuzzy": 99.12698, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.83607, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-38.txt"}
|
||||
{"event": "declaration_search", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "output": "declaration block:\n f32 delay;\n f32 depth;\n f32 step;\n u32 channel;\n u32 sample;\nstart (0, 21)\nbest (0, 21) after 23 builds; source restored; best order was:\n f32 delay;\n f32 depth;\n f32 step;\n u32 channel;\n u32 sample;\n", "reason": "instruction sequence now structurally identical; optimize remaining floating and integer registers last"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "split and search five independent leading declarations after gradient helper yields structural zero", "compiled": true, "instructions": [126, 126], "structural": 0, "positional": 21, "fuzzy": 99.12698, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.83607, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-39.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "reverse inline helper parameter declaration order", "compiled": true, "instructions": [126, 126], "structural": 0, "positional": 21, "fuzzy": 99.12698, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.83607, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-40.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "inline helper updates original depth through pointer", "compiled": true, "instructions": [126, 126], "structural": 15, "positional": 29, "fuzzy": 87.35714, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 97.62593, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-41.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "inline helper scales and stores gradient through LFO field pointer", "compiled": true, "instructions": [126, 126], "structural": 0, "positional": 12, "fuzzy": 99.52381, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.91058, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-42.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "inline helper returns scaled quotient via an explicit result", "compiled": true, "instructions": [126, 126], "structural": 7, "positional": 22, "fuzzy": 92.77778, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 98.643814, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-43.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "retain helper color best (0, 12)", "compiled": true, "instructions": [126, 126], "structural": 0, "positional": 12, "fuzzy": 99.52381, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.91058, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-44.txt"}
|
||||
{"event": "declaration_search", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "output": "declaration block:\n f32 delay;\n f32 depth;\n f32 step;\n u32 channel;\n u32 sample;\nstart (0, 12)\nbest (0, 12) after 23 builds; source restored; best order was:\n f32 delay;\n f32 depth;\n f32 step;\n u32 channel;\n u32 sample;\n", "reason": "inline gradient field writer reduced all floating differences, register-only final search"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "declaration search with inline gradient field writer", "compiled": true, "instructions": [126, 126], "structural": 0, "positional": 12, "fuzzy": 99.52381, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.91058, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-45.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "integer lifetimes after structural match named3", "compiled": true, "instructions": [126, 126], "structural": 0, "positional": 4, "fuzzy": 99.84127, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.97019, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-46.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "integer lifetimes after structural match named4", "compiled": false, "error": "[1/1] MWCC build/43U/src/libs/RVL_SDK/src/axfx/AXFXChorusExp.o\nFAILED: [code=2] build/43U/src/libs/RVL_SDK/src/axfx/AXFXChorusExp.o \nbuild/tools/wibo build/tools/sjiswrap.exe build/compilers/GC/3.0a5.2/mwcceppc.exe -nodefaults -proc gekko -align powerpc -enum int -fp hardware -Cpp_exceptions off -O4,p -inline auto -pragma \"cats off\" -pragma \"warn_notinlined off\" -maxerrors 1 -nosyspath -RTTI off -fp_contract on -str reuse -DSDK_IPL -D_REVOLUTION -DMEM_MANAGER_DIRECT -i include -i include/global -i libs/MetroTRK/include -i libs/Runtime/include -i libs/MSL/include -i libs/RVL_SDK/include -i libs/RevoEX/include -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RVL_SDK/src/axfx/AXFXChorusExp.c -o build/43U/src/libs/RVL_SDK/src/axfx && \"/usr/bin/python3\" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/axfx/AXFXChorusExp.d build/43U/src/libs/RVL_SDK/src/axfx/AXFXChorusExp.d\n### mwcceppc.exe Compiler:\n# File: libs\\RVL_SDK\\src\\axfx\\AXFXChorusExp.c\n# ----------------------------------------------\n# 11: fx->lfo.depthSamp = depthSamp; \n# Error: ^^^^^^^^^\n# (10140) undefined identifier 'depthSamp'\n# Too many errors printed, aborting program\n\nUser break, cancelled...\nninja: build stopped: subcommand failed.\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "integer lifetimes after structural match zerohelper", "compiled": true, "instructions": [126, 126], "structural": 0, "positional": 12, "fuzzy": 99.52381, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.91058, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-48.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "integer lifetimes after structural match statehelper", "compiled": true, "instructions": [126, 126], "structural": 8, "positional": 56, "fuzzy": 93.57143, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 98.79285, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-49.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "integer lifetimes after structural match histhelper", "compiled": true, "instructions": [126, 126], "structural": 0, "positional": 12, "fuzzy": 99.52381, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.91058, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-50.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "retain integer lifetime best (0, 4)", "compiled": true, "instructions": [126, 126], "structural": 0, "positional": 4, "fuzzy": 99.84127, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.97019, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-51.txt"}
|
||||
{"event": "declaration_search", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "output": "declaration block:\n depth /= step;\n lfo->gradFactor = 65536.0f * depth;\n }\n static BOOL __InitParams(AXFX_CHORUS_EXP* fx) {\n f32 delay;\n f32 depth;\n f32 step;\n u32 channel;\nstart (0, 4)\nbest (0, 4) after 71 builds; source restored; best order was:\n depth /= step;\n lfo->gradFactor = 65536.0f * depth;\n}\nstatic BOOL __InitParams(AXFX_CHORUS_EXP* fx) {\n f32 delay;\n f32 depth;\n f32 step;\n u32 channel;\n", "reason": "only phase and step integer register swap remains"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "declaration search over named integer conversions and leading locals", "compiled": true, "instructions": [126, 126], "structural": 0, "positional": 4, "fuzzy": 99.84127, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.97019, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-round2-context-52.txt"}
|
||||
{"event": "declaration_search", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "output": "declaration block:\n f32 delay;\n f32 depth;\n f32 step;\n u32 channel;\n u32 sample;\n s32 depthSamp;\n s32 phaseAdd;\n s32 stepSamp;\nstart (0, 4)\nimproved (0, 0)\nbest (0, 0) after 28 builds; kept in source:\n f32 delay;\n f32 depth;\n f32 step;\n u32 channel;\n u32 sample;\n s32 stepSamp;\n s32 phaseAdd;\n s32 depthSamp;\n", "reason": "scope corrected to eight real local declarations; last swap is depthSamp/stepSamp registers"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "scoped independent integer conversion declaration search", "compiled": true, "instructions": [126, 126], "structural": 0, "positional": 0, "fuzzy": 100.0, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 100.0, "total_code": "2684", "matched_code": "2684", "matched_code_percent": 100.0, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 7, "matched_functions_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-53.txt"}
|
||||
{"event": "match", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "fuzzy": 100.0, "instructions": [126, 126], "context": "/tmp/sol-high-round2-context-53.txt", "quick_gate": "/tmp/sol-high-round2-chorus-quick-gate.txt", "full_gate": "/tmp/sol-high-round2-chorus-full-gate.txt", "data": "48/48", "reason": "gradient inline field writer establishes exact float dependency graph; named signed conversions and swapped depth/step declarations fix remaining registers"}
|
||||
{"event": "commit", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "commit": "4bf4bad3c22afef8b6b0487245d5b79c24d167b7"}
|
||||
{"event": "begin", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "origin": "eecf16f01e322dc36702d4fdd7f6cda7a96af2dc", "remote_source_identical": true, "diagnosis": "84 target/86 source instructions. Target frame 0x30 saves31/30; source frame 0x40 adds29. Endian grouped loads and preliminary zero have three pointer/index live ranges. Diagnose typed entry reader and two-loop stack local order first.", "fuzzy": 86.5}
|
||||
{"event": "pool", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "output": "POOL IDENTICAL up to 0 (mine=0 base=0)\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "inline word field writer with high and low partial sums", "compiled": true, "instructions": [82, 84], "structural": 22, "positional": 81, "fuzzy": 84.77381, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.44241, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-54.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "compound assignments build two endian halves into the real arrays", "compiled": true, "instructions": [92, 84], "structural": 25, "positional": 90, "fuzzy": 79.85714, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 92.99785, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-55.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "partition ranges as a local aggregate with both loops intact", "compiled": true, "instructions": [90, 84], "structural": 30, "positional": 88, "fuzzy": 78.15476, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 92.84392, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-56.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "inline endian byte writer with four ordered meaningful temporaries", "compiled": true, "instructions": [86, 84], "structural": 24, "positional": 84, "fuzzy": 86.5, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.598495, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-57.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "scalar start and length built before storing the partition arrays", "compiled": true, "instructions": [86, 84], "structural": 31, "positional": 86, "fuzzy": 81.7381, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.16792, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-58.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "retain closest structural master candidate (22, 81)", "compiled": true, "instructions": [82, 84], "structural": 22, "positional": 81, "fuzzy": 84.77381, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.44241, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-59.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "low/high inline helper boundary 0", "compiled": true, "instructions": [86, 84], "structural": 24, "positional": 84, "fuzzy": 86.5, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.598495, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-60.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "low/high inline helper boundary 1", "compiled": true, "instructions": [86, 84], "structural": 28, "positional": 84, "fuzzy": 84.09524, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.38106, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-61.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "low/high inline helper boundary 2", "compiled": true, "instructions": [86, 84], "structural": 24, "positional": 84, "fuzzy": 86.5, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.598495, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-62.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "four-byte field writer parameter boundary high-upper-low-lower", "compiled": true, "instructions": [86, 84], "structural": 24, "positional": 84, "fuzzy": 86.5, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.598495, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-63.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "four-byte field writer parameter boundary upper-low-high-lower", "compiled": true, "instructions": [86, 84], "structural": 24, "positional": 84, "fuzzy": 86.5, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.598495, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-64.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "four-byte field writer parameter boundary low-upper-lower-high", "compiled": true, "instructions": [86, 84], "structural": 24, "positional": 84, "fuzzy": 86.5, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.598495, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-65.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "retain master helper boundary best (24, 84)", "compiled": true, "instructions": [86, 84], "structural": 24, "positional": 84, "fuzzy": 86.5, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.598495, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-66.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "restore baseline after 11 distinct structural experiments; grouped load scheduling still changes live GPR count and frame", "compiled": true, "instructions": [86, 84], "structural": 24, "positional": 84, "fuzzy": 86.5, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.598495, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-67.txt"}
|
||||
{"event": "open", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "reason": "baseline 86/84, 0x40/0x30 frames; inline partial sums changed frame/save count but retained endian load/group order differences; no register-only candidate"}
|
||||
{"event": "begin", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "origin": "eecf16f01e322dc36702d4fdd7f6cda7a96af2dc", "remote_source_identical": true, "diagnosis": "276/276, same aligned0x2e0 frame. Target grouped low16+low0 and high24+low8 for all words; target first array pointers are28/29. Inspect endian read helpers and extended-chain scalar lifetime before declaration permutations.", "fuzzy": 82.56159}
|
||||
{"event": "pool", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "output": "POOL IDENTICAL up to 0 (mine=0 base=0)\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "label": "inline four-byte value reader for primary and extended words", "compiled": true, "instructions": [276, 276], "structural": 96, "positional": 152, "fuzzy": 82.134056, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.47147, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-68.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "label": "inline endian field writer for arrays and extended lengths", "compiled": true, "instructions": [276, 276], "structural": 120, "positional": 147, "fuzzy": 78.909424, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 92.51346, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-69.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "label": "primary partition ranges represented by a local aggregate", "compiled": true, "instructions": [276, 276], "structural": 112, "positional": 146, "fuzzy": 82.56159, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.598495, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-70.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "label": "extended base belongs to the low endian sum through inline helper", "compiled": true, "instructions": [276, 276], "structural": 94, "positional": 147, "fuzzy": 81.89855, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.401505, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-71.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "label": "typed MBR byte fields preserve disk layout without integer casts", "compiled": true, "instructions": [277, 276], "structural": 121, "positional": 265, "fuzzy": 79.634056, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 92.72874, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-72.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "label": "extended chain traversal lifetime descending-increasing", "compiled": true, "instructions": [276, 276], "structural": 112, "positional": 146, "fuzzy": 82.56159, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.598495, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-73.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "label": "extended chain traversal lifetime stage-loop", "compiled": true, "instructions": [276, 276], "structural": 87, "positional": 146, "fuzzy": 83.19927, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.78794, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-74.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "label": "retain nearest start-sector structural candidate (87, 146)", "compiled": true, "instructions": [276, 276], "structural": 87, "positional": 146, "fuzzy": 83.19927, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.78794, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-75.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "label": "signed-safe lower-byte groups; high byte stays unsigned", "compiled": true, "instructions": [276, 276], "structural": 79, "positional": 141, "fuzzy": 82.61957, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.615715, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-76.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "label": "unsigned place-value multiplication in paired little endian sums", "compiled": true, "instructions": [276, 276], "structural": 84, "positional": 138, "fuzzy": 84.271736, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 94.10657, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-77.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "label": "low and upper named before high and lower via inline source-byte halves", "compiled": true, "instructions": [276, 276], "structural": 76, "positional": 147, "fuzzy": 84.884056, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 94.28848, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-78.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "label": "restore start-sector baseline after ten distinct structural attempts; unrolled byte arithmetic still has no exact instruction schedule", "compiled": true, "instructions": [276, 276], "structural": 112, "positional": 146, "fuzzy": 82.56159, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.598495, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-round2-context-79.txt"}
|
||||
{"event": "open", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "reason": "276/276 and frame0x2e0; primary and extended endian grouping, byte load order, partial-sum lifetimes still differ. No register-only candidate."}
|
||||
{"event": "begin", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "origin": "456e9dbd2e7967aead334e138cd692c8d8e256c8", "remote_source_identical": true, "diagnosis": "Both158/158 and frame0x40 saving20..31. Target rotates high/upper/lower lookup words separately and uses low^(lower^(high^upper)) before key xor. Diagnose inline round-word/substitution boundaries and named byte terms before declaration search.", "fuzzy": 60.348103}
|
||||
{"event": "pool", "unit": "libs/RevoEX/src/net/aes", "output": "POOL IDENTICAL up to 4 (mine=4 base=4)\n"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "global encrypt table helper with named raw terms then rotations", "compiled": true, "instructions": [158, 158], "structural": 119, "positional": 139, "fuzzy": 52.481014, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 75.03779, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-round2-context-80.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "named rotated terms retain target XOR dependency tree", "compiled": true, "instructions": [158, 158], "structural": 92, "positional": 137, "fuzzy": 55.6962, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 75.77616, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-round2-context-81.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "round and final substitution inline helpers with named byte terms", "compiled": true, "instructions": [158, 158], "structural": 104, "positional": 139, "fuzzy": 58.037975, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 76.31396, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-round2-context-82.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "named substitution bytes and final key-first operand order", "compiled": true, "instructions": [158, 158], "structural": 120, "positional": 138, "fuzzy": 56.341774, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 75.924416, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-round2-context-83.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "round helper owns the final key XOR with rotated local terms", "compiled": true, "instructions": [158, 158], "structural": 106, "positional": 136, "fuzzy": 60.8038, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 76.94913, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-round2-context-84.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "independent state declarations and assignments with raw lookup helper", "compiled": true, "instructions": [158, 158], "structural": 119, "positional": 139, "fuzzy": 52.481014, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 75.03779, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-round2-context-85.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "all next states declared before four named lookup calculations", "compiled": true, "instructions": [158, 158], "structural": 119, "positional": 139, "fuzzy": 52.481014, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 75.03779, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-round2-context-86.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "retain best new encrypt structure (92, 137)", "compiled": true, "instructions": [158, 158], "structural": 92, "positional": 137, "fuzzy": 55.6962, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 75.77616, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-round2-context-87.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "mutating round-word helper parameters follow the three XOR dependencies", "compiled": true, "instructions": [158, 158], "structural": 123, "positional": 139, "fuzzy": 53.36076, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 75.23982, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-round2-context-88.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "named table terms with sequential XOR updates", "compiled": true, "instructions": [158, 158], "structural": 122, "positional": 138, "fuzzy": 54.72152, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 75.55232, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-round2-context-89.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "inline word output parameter preserves next-state write boundary", "compiled": true, "instructions": [158, 158], "structural": 122, "positional": 138, "fuzzy": 54.72152, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 75.55232, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-round2-context-90.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "inline keyed word output boundary", "compiled": true, "instructions": [158, 158], "structural": 122, "positional": 138, "fuzzy": 54.72152, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 75.55232, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-round2-context-91.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "retain nearest mutable/output helper structure (122, 138)", "compiled": true, "instructions": [158, 158], "structural": 122, "positional": 138, "fuzzy": 54.72152, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 75.55232, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-round2-context-92.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "restore baseline after 11 named-term and inline boundary variants; lookup scheduling and state allocation still differ", "compiled": true, "instructions": [158, 158], "structural": 103, "positional": 134, "fuzzy": 60.348103, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 76.844475, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-round2-context-93.txt"}
|
||||
{"event": "open", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "reason": "158/158 and frame0x40; named table terms and helpers produce different byte-extraction/table-load/rotation order. No source candidate reduces differences to registers only."}
|
||||
{"event": "begin", "unit": "libs/RevoEX/src/net/aes", "function": "AESiDecryptBlock", "origin": "68e1ee3a35b20e9d22e57a6c6626b2f4e8aedc02", "remote_source_identical": true, "diagnosis": "Source249/target251 instructions with 0x40 frame. Target key pointer first equals context.keys then advances rounds*4. Transform loop addresses context+round*16 then loads +0x10/+0x14, mutates inverse-mix intermediates, and uses three XOR dependencies. Diagnose field representation and helper boundaries.", "fuzzy": 61.49004}
|
||||
{"event": "pool", "unit": "libs/RevoEX/src/net/aes", "output": "POOL IDENTICAL up to 4 (mine=4 base=4)\n"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiDecryptBlock", "label": "typed contiguous schedule union and key-base-first setup", "compiled": true, "instructions": [251, 251], "structural": 129, "positional": 224, "fuzzy": 65.10757, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 78.164246, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-round2-context-94.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiDecryptBlock", "label": "inverse-mix inline helper with target mutable XOR dependency chain", "compiled": true, "instructions": [251, 251], "structural": 132, "positional": 217, "fuzzy": 65.29084, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 78.2311, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-round2-context-95.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiDecryptBlock", "label": "inverse-mix helper with typed whole schedule word view", "compiled": true, "instructions": [251, 251], "structural": 128, "positional": 217, "fuzzy": 65.30677, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 78.236916, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-round2-context-96.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiDecryptBlock", "label": "independent key-schedule offset induction through legal union word array", "compiled": true, "instructions": [251, 251], "structural": 129, "positional": 224, "fuzzy": 65.10757, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 78.164246, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-round2-context-97.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiDecryptBlock", "label": "named high/low reductions in inline byte-doubling helper", "compiled": true, "instructions": [251, 251], "structural": 133, "positional": 224, "fuzzy": 65.17132, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 78.1875, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-round2-context-98.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiDecryptBlock", "label": "forward key walk with descending remaining-word count and target inverse mix", "compiled": true, "instructions": [256, 251], "structural": 144, "positional": 246, "fuzzy": 61.621513, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 76.89244, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-round2-context-99.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiDecryptBlock", "label": "retain new decrypt structural best (128, 217)", "compiled": true, "instructions": [251, 251], "structural": 128, "positional": 217, "fuzzy": 65.30677, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 78.236916, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-round2-context-100.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiDecryptBlock", "label": "restore baseline after six distinct inverse-mix, key view, and traversal experiments; 251-instruction variants retain transform and round-table scheduling differences", "compiled": true, "instructions": [249, 251], "structural": 143, "positional": 244, "fuzzy": 61.49004, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 76.844475, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-round2-context-101.txt"}
|
||||
{"event": "open", "unit": "libs/RevoEX/src/net/aes", "function": "AESiDecryptBlock", "reason": "baseline249/251, frame0x40. Typed contiguous word view plus native inverse-mix chain reaches251/251 but table/state scheduling remains structural. No register-only candidate."}
|
||||
{"event": "completion_audit", "unit": "src/keyboard/tiPcKeyboard", "function": "setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode", "fuzzy": 99.04762, "distinct_compiled_attempts": 3, "labels": ["explicit sequential branches with defined fallback", "map mode through a bounded table with original enum fallback", "preserve original mode separately and map parameter through switch"]}
|
||||
{"event": "completion_audit", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "fuzzy": 86.5, "distinct_compiled_attempts": 11, "labels": ["compound assignments build two endian halves into the real arrays", "four-byte field writer parameter boundary high-upper-low-lower", "four-byte field writer parameter boundary low-upper-lower-high", "four-byte field writer parameter boundary upper-low-high-lower", "inline endian byte writer with four ordered meaningful temporaries", "inline word field writer with high and low partial sums", "low/high inline helper boundary 0", "low/high inline helper boundary 1", "low/high inline helper boundary 2", "partition ranges as a local aggregate with both loops intact", "scalar start and length built before storing the partition arrays"]}
|
||||
{"event": "completion_audit", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "fuzzy": 82.56159, "distinct_compiled_attempts": 10, "labels": ["extended base belongs to the low endian sum through inline helper", "extended chain traversal lifetime descending-increasing", "extended chain traversal lifetime stage-loop", "inline endian field writer for arrays and extended lengths", "inline four-byte value reader for primary and extended words", "low and upper named before high and lower via inline source-byte halves", "primary partition ranges represented by a local aggregate", "signed-safe lower-byte groups; high byte stays unsigned", "typed MBR byte fields preserve disk layout without integer casts", "unsigned place-value multiplication in paired little endian sums"]}
|
||||
{"event": "completion_audit", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "fuzzy": 60.348103, "distinct_compiled_attempts": 11, "labels": ["all next states declared before four named lookup calculations", "global encrypt table helper with named raw terms then rotations", "independent state declarations and assignments with raw lookup helper", "inline keyed word output boundary", "inline word output parameter preserves next-state write boundary", "mutating round-word helper parameters follow the three XOR dependencies", "named rotated terms retain target XOR dependency tree", "named substitution bytes and final key-first operand order", "named table terms with sequential XOR updates", "round and final substitution inline helpers with named byte terms", "round helper owns the final key XOR with rotated local terms"]}
|
||||
{"event": "completion_audit", "unit": "libs/RevoEX/src/net/aes", "function": "AESiDecryptBlock", "fuzzy": 61.49004, "distinct_compiled_attempts": 6, "labels": ["forward key walk with descending remaining-word count and target inverse mix", "independent key-schedule offset induction through legal union word array", "inverse-mix helper with typed whole schedule word view", "inverse-mix inline helper with target mutable XOR dependency chain", "named high/low reductions in inline byte-doubling helper", "typed contiguous schedule union and key-base-first setup"]}
|
||||
{"event": "declaration_scope_correction", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "reason": "Earlier integer declsearch selected helper lines after a global replacement changed line numbers. All unrelated declarations were removed by reconstructing just the helper and InitParams from baseline. Final search used actual lines165..172, swapped depthSamp/stepSamp, and produced126/126 diffs0 with no other source edits."}
|
||||
{"event": "final_gate", "gate": "tools/decomp-assist/sol-high-round2-oct2.final-gate.txt", "result": "GATE PASS", "full_clean_build": true, "dol_sha1": "26116613f624061ba99c8d1a299aaa6efa85670d", "regressions": 0, "forbidden_patterns": 0, "readability_warnings": 0}
|
||||
@@ -0,0 +1,2 @@
|
||||
src 0x1f8 base 0x1f8 insns 126/126
|
||||
diffs 0: []
|
||||
46
tools/decomp-assist/sol-high-round2-oct2.final-gate.txt
Normal file
46
tools/decomp-assist/sol-high-round2-oct2.final-gate.txt
Normal file
@@ -0,0 +1,46 @@
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/keyboard/tiPcKeyboard] pool: IDENTICAL
|
||||
[src/keyboard/tiPcKeyboard] objdiff: code 28064/28484 data 18548/18564 functions 140/141 fuzzy 99.9860 linked code 0
|
||||
[src/keyboard/tiPcKeyboard] instruction-exact functions: 140/141
|
||||
[src/keyboard/tiPcKeyboard] section .bss size 16 match None
|
||||
[src/keyboard/tiPcKeyboard] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .data size 12576 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .rodata size 5816 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .sbss size 8 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .sdata size 136 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .sdata2 size 8 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .text size 28484 match 99.985954
|
||||
[src/keyboard/tiPcKeyboard] below 100: setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode 99.04762
|
||||
[src/keyboard/tiPcKeyboard] baseline: code 28064/28484 data 18548 functions 140 fuzzy 99.9860
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] objdiff: code 2684/2684 data 48/48 functions 7/7 fuzzy 100.0000 linked code 0
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] instruction-exact functions: 7/7
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] section .sdata2 size 48 match 100.0
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] section .text size 2684 match 100.0
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] baseline: code 2180/2684 data 48 functions 6 fuzzy 94.3502
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] objdiff: code 2276/3716 data None/None functions 18/20 fuzzy 93.5985 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] instruction-exact functions: 18/20
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] section .text size 3716 match 93.598495
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] below 100: pdm_part_is_master_boot_sector 86.5
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] below 100: pdm_part_get_start_sector 82.56159
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] baseline: code 2276/3716 data None functions 18 fuzzy 93.5985
|
||||
[libs/RevoEX/src/net/aes] pool: IDENTICAL
|
||||
[libs/RevoEX/src/net/aes] objdiff: code 1116/2752 data 2800/2800 functions 7/9 fuzzy 76.8445 linked code 0
|
||||
[libs/RevoEX/src/net/aes] instruction-exact functions: 7/9
|
||||
[libs/RevoEX/src/net/aes] section .data size 200 match 100.0
|
||||
[libs/RevoEX/src/net/aes] section .rodata size 2592 match 100.0
|
||||
[libs/RevoEX/src/net/aes] section .sdata2 size 8 match 100.0
|
||||
[libs/RevoEX/src/net/aes] section .text size 2752 match 76.844475
|
||||
[libs/RevoEX/src/net/aes] below 100: AESiEncryptBlock 60.348103
|
||||
[libs/RevoEX/src/net/aes] below 100: AESiDecryptBlock 61.49004
|
||||
[libs/RevoEX/src/net/aes] baseline: code 1116/2752 data 2800 functions 7 fuzzy 76.8445
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.52293 -> 88.53975
|
||||
global fuzzy_match_percent: 99.44739 -> 99.45245
|
||||
global complete_code_percent: 62.78043 -> 62.78043
|
||||
global matched_data_percent: 92.12238 -> 92.12238
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
44
tools/decomp-assist/sol-high-round2-oct2.report.md
Normal file
44
tools/decomp-assist/sol-high-round2-oct2.report.md
Normal file
@@ -0,0 +1,44 @@
|
||||
GATE PASS
|
||||
|
||||
The final gate rebuilt 43U from a clean build directory. The DOL SHA1 is 26116613f624061ba99c8d1a299aaa6efa85670d. All four pools are identical. Regressions, forbidden patterns, and readability warnings are zero.
|
||||
|
||||
| Unit | Instruction-exact before -> after | Objdiff code bytes before -> after | Objdiff data bytes before -> after |
|
||||
| --- | --- | --- | --- |
|
||||
| src/keyboard/tiPcKeyboard | 140/141 -> 140/141 | 28064/28484 -> 28064/28484 | 18548/18564 -> 18548/18564 |
|
||||
| libs/RVL_SDK/src/axfx/AXFXChorusExp | 6/7 -> 7/7 | 2180/2684 -> 2684/2684 | 48/48 -> 48/48 |
|
||||
| libs/RVL_SDK/src/fa/pdm_partition | 18/20 -> 18/20 | 2276/3716 -> 2276/3716 | 0/0 -> 0/0 |
|
||||
| libs/RevoEX/src/net/aes | 7/9 -> 7/9 | 1116/2752 -> 1116/2752 | 2800/2800 -> 2800/2800 |
|
||||
|
||||
Matched __InitParams, 126/126 instructions and zero ctxdiff differences. The gradient field writer preserves the target floating calculation order. Three named signed conversions and their declaration order give the target integer registers. Nested history loops put the twelve zero stores after the conversions. Code and data for AXFXChorusExp are 100%.
|
||||
|
||||
Remaining functions, one line per function:
|
||||
|
||||
- setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode, 99.04762%, 3 distinct compiled source attempts; best experiment 99.04762%. 106/105 instructions, same 0x20 frame. The extra move gives keyMode a defined value for unsupported enums. The target default branch reads an unwritten saved register. Safe table, parameter, and branch forms did not match.
|
||||
- pdm_part_is_master_boot_sector, 86.5%, 11 distinct compiled source attempts; best experiment 86.5%. 86/84 instructions; source frame0x40 with three saved GPRs, target0x30 with two. Endian byte-load order and partial-sum lifetimes still differ. Inline readers, compound assignments, and local range aggregates changed the frame but did not match.
|
||||
- pdm_part_get_start_sector, 82.56159%, 10 distinct compiled source attempts; best experiment 84.884056%. 276/276 instructions and aligned0x2e0 frame. Unrolled primary and extended word byte loads, endian grouping and scalar lifetimes still differ. Named halves, field writers and loop forms did not match.
|
||||
- AESiEncryptBlock, 60.348103%, 11 distinct compiled source attempts; best experiment 60.8038%. 158/158 instructions and frame0x40. State setup, lookup indices, table loads, rotations and XOR operand order still differ. Named byte terms and inline value/output helpers did not match.
|
||||
- AESiDecryptBlock, 61.49004%, 6 distinct compiled source attempts; best experiment 65.30677%. 249/251 instructions and frame0x40. Key-base setup, inverse-mix loop addressing, and round lookup scheduling still differ. Typed schedule views and native inverse-mix chains reached251/251 without an exact match.
|
||||
|
||||
Changed files and commits:
|
||||
|
||||
- libs/RVL_SDK/src/axfx/AXFXChorusExp.c, 4bf4bad3, match chorus parameter initialization.
|
||||
- tools/decomp-assist/sol-high-round2-oct2.attempts.jsonl records the function checks, source variations, measurements, and final attempt audit.
|
||||
- tools/decomp-assist/sol-high-round2-oct2.exact-ctxdiff.txt contains the new exact function diff.
|
||||
- tools/decomp-assist/sol-high-round2-oct2.final-gate.txt contains the full clean gate over all four units.
|
||||
- tools/decomp-assist/sol-high-round2-oct2.report.md is this report.
|
||||
|
||||
Uncertainty: tiPcKeyboard has 16 unscored .bss bytes. Objdiff reports no match percentage for them. Data remains18548/18564. PDM has no data sections; the gate prints None/None and the table represents that as0/0. All unsuccessful source experiments were restored.
|
||||
|
||||
Final full gate unit lines copied verbatim:
|
||||
|
||||
```
|
||||
[src/keyboard/tiPcKeyboard] objdiff: code 28064/28484 data 18548/18564 functions 140/141 fuzzy 99.9860 linked code 0
|
||||
[src/keyboard/tiPcKeyboard] instruction-exact functions: 140/141
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] objdiff: code 2684/2684 data 48/48 functions 7/7 fuzzy 100.0000 linked code 0
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] instruction-exact functions: 7/7
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] objdiff: code 2276/3716 data None/None functions 18/20 fuzzy 93.5985 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] instruction-exact functions: 18/20
|
||||
[libs/RevoEX/src/net/aes] objdiff: code 1116/2752 data 2800/2800 functions 7/9 fuzzy 76.8445 linked code 0
|
||||
[libs/RevoEX/src/net/aes] instruction-exact functions: 7/9
|
||||
GATE PASS
|
||||
```
|
||||
162
tools/decomp-assist/sol-high-structural-oct2.attempts.jsonl
Normal file
162
tools/decomp-assist/sol-high-structural-oct2.attempts.jsonl
Normal file
@@ -0,0 +1,162 @@
|
||||
{"event": "begin", "unit": "src/keyboard/tiPcKeyboard", "function": "setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode", "origin": "3dcd7234599d4199f94a75e95fdd9ffd932d2fe8", "remote_source_identical": true, "diagnosis": "Both frames 0x20. Target 105 instructions versus 106, sole extra source instruction initializes mapped mode from original enum. Invalid enum target uses undefined saved GPR; no uninitialized local permitted. Test complete switch assignments with defined invalid handling before accepting this as open.", "fuzzy": 99.04762}
|
||||
{"event": "pool", "unit": "src/keyboard/tiPcKeyboard", "output": "POOL IDENTICAL up to 204 (mine=204 base=204)\n"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode", "label": "complete switch with invalid-mode early return", "compiled": true, "instructions": [107, 105], "structural": 6, "positional": 89, "fuzzy": 98.0, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.95787, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}, "context": "/tmp/sol-high-context-1.txt"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode", "label": "retain masked current mode for invalid translation", "compiled": true, "instructions": [107, 105], "structural": 2, "positional": 98, "fuzzy": 98.09524, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.959274, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}, "context": "/tmp/sol-high-context-2.txt"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode", "label": "initialize direct mode and combine roman/kana cases", "compiled": true, "instructions": [101, 105], "structural": 12, "positional": 100, "fuzzy": 93.46667, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.89103, "total_code": "28484", "matched_code": "27712", "matched_code_percent": 97.2897, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}, "context": "/tmp/sol-high-context-3.txt"}
|
||||
{"event": "restored", "unit": "src/keyboard/tiPcKeyboard", "function": "setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode", "reason": "defined invalid-enum handling cannot reproduce target undefined local"}
|
||||
{"event": "begin", "unit": "src/keyboard/tiPcKeyboard", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "origin": "4a7353ec731f9f4b95175e0c3e8eaee44e45c4d0", "remote_source_identical": true, "diagnosis": "Both 49 instructions and 0x10 frame; r4 and r6 exchange eight times in inline modifier setter. Out-of-line setter is exact, so investigate getter/setter inline boundary and lifetime before final declaration search. Animation and optional sound already exact.", "fuzzy": 99.081635}
|
||||
{"event": "pool", "unit": "src/keyboard/tiPcKeyboard", "output": "POOL IDENTICAL up to 204 (mine=204 base=204)\n"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "label": "explicit modifier update with retained owner lifetime", "compiled": true, "instructions": [49, 49], "structural": 0, "positional": 0, "fuzzy": 100.0, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.97964, "total_code": "28484", "matched_code": "27908", "matched_code_percent": 97.97781, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 139, "matched_functions_percent": 98.58156, "total_units": 1}, "context": "/tmp/sol-high-context-4.txt"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "label": "modifier state copy before setter with const named flags", "compiled": true, "instructions": [49, 49], "structural": 0, "positional": 8, "fuzzy": 99.081635, "pool": 0, "regressions": ["main/src/keyboard/tiPcKeyboard:updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv"], "measures": {"fuzzy_match_percent": 99.97192, "total_code": "28484", "matched_code": "27152", "matched_code_percent": 95.323685, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 137, "matched_functions_percent": 97.163124, "total_units": 1}, "context": "/tmp/sol-high-context-5.txt"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb", "label": "inline shift-mask helper before modifier setter", "compiled": true, "instructions": [49, 49], "structural": 0, "positional": 9, "fuzzy": 99.081635, "pool": 0, "regressions": ["main/src/keyboard/tiPcKeyboard:updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv"], "measures": {"fuzzy_match_percent": 99.97192, "total_code": "28484", "matched_code": "27152", "matched_code_percent": 95.323685, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 137, "matched_functions_percent": 97.163124, "total_units": 1}, "context": "/tmp/sol-high-context-6.txt"}
|
||||
{"event": "begin", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "origin": "137edaff42e9f87a6e9ecd05ddffc235aa76667a", "remote_source_identical": true, "diagnosis": "Both 39 instructions and 0x10 frame, eight r4/r6 differences in folded setter. Explicit pressed-state update already matched and passed fresh full gate; test same retained-owner boundary for released shift while preserving inline updateInput.", "fuzzy": 98.84615}
|
||||
{"event": "pool", "unit": "src/keyboard/tiPcKeyboard", "output": "POOL IDENTICAL up to 204 (mine=204 base=204)\n"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "label": "explicit released modifier update with retained owner", "compiled": true, "instructions": [39, 39], "structural": 0, "positional": 7, "fuzzy": 98.97436, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.98034, "total_code": "28484", "matched_code": "27908", "matched_code_percent": 97.97781, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 139, "matched_functions_percent": 98.58156, "total_units": 1}, "context": "/tmp/sol-high-context-7.txt"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "label": "direct released modifier update with owner declared after flag store", "compiled": true, "instructions": [39, 39], "structural": 0, "positional": 7, "fuzzy": 98.97436, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.98034, "total_code": "28484", "matched_code": "27908", "matched_code_percent": 97.97781, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 139, "matched_functions_percent": 98.58156, "total_units": 1}, "context": "/tmp/sol-high-context-8.txt"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "label": "direct released modifier update with named current flag load", "compiled": true, "instructions": [39, 39], "structural": 0, "positional": 0, "fuzzy": 100.0, "pool": 0, "regressions": ["main/src/keyboard/tiPcKeyboard:updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv"], "measures": {"fuzzy_match_percent": 99.98034, "total_code": "28484", "matched_code": "27504", "matched_code_percent": 96.55947, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 139, "matched_functions_percent": 98.58156, "total_units": 1}, "context": "/tmp/sol-high-context-9.txt"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "label": "direct released modifier update retaining signed mask local", "compiled": true, "instructions": [39, 39], "structural": 0, "positional": 7, "fuzzy": 98.84615, "pool": 0, "regressions": ["main/src/keyboard/tiPcKeyboard:updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv"], "measures": {"fuzzy_match_percent": 99.97823, "total_code": "28484", "matched_code": "27348", "matched_code_percent": 96.011795, "total_data": "18564", "matched_data": "18540", "matched_data_percent": 99.87072, "total_functions": 141, "matched_functions": 138, "matched_functions_percent": 97.87234, "total_units": 1}, "context": "/tmp/sol-high-context-10.txt"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "label": "named currentFlags before inspect of inlined caller", "compiled": true, "instructions": [39, 39], "structural": 0, "positional": 0, "fuzzy": 100.0, "pool": 0, "regressions": ["main/src/keyboard/tiPcKeyboard:updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv"], "measures": {"fuzzy_match_percent": 99.98034, "total_code": "28484", "matched_code": "27504", "matched_code_percent": 96.55947, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 139, "matched_functions_percent": 98.58156, "total_units": 1}, "context": "/tmp/sol-high-context-11.txt"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "label": "independent released-state declarations for allocation search", "compiled": true, "instructions": [39, 39], "structural": 0, "positional": 0, "fuzzy": 100.0, "pool": 0, "regressions": ["main/src/keyboard/tiPcKeyboard:updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv"], "measures": {"fuzzy_match_percent": 99.98034, "total_code": "28484", "matched_code": "27504", "matched_code_percent": 96.55947, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 139, "matched_functions_percent": 98.58156, "total_units": 1}, "context": "/tmp/sol-high-context-12.txt"}
|
||||
{"event": "declsearch", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "output": "declaration block:\n u32 flags;\n u32 currentFlags;\n Base* keyboard;\nstart (0, 0)\nbest (0, 0) after 1 builds; source restored; best order was:\n u32 flags;\n u32 currentFlags;\n Base* keyboard;\n"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "label": "released-state final declaration search", "compiled": true, "instructions": [39, 39], "structural": 0, "positional": 0, "fuzzy": 100.0, "pool": 0, "regressions": ["main/src/keyboard/tiPcKeyboard:updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv"], "measures": {"fuzzy_match_percent": 99.98034, "total_code": "28484", "matched_code": "27504", "matched_code_percent": 96.55947, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 139, "matched_functions_percent": 98.58156, "total_units": 1}, "context": "/tmp/sol-high-context-13.txt"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "label": "const currentFlags load for released-state update", "compiled": true, "instructions": [39, 39], "structural": 0, "positional": 0, "fuzzy": 100.0, "pool": 0, "regressions": ["main/src/keyboard/tiPcKeyboard:updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv"], "measures": {"fuzzy_match_percent": 99.98034, "total_code": "28484", "matched_code": "27504", "matched_code_percent": 96.55947, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 139, "matched_functions_percent": 98.58156, "total_units": 1}, "context": "/tmp/sol-high-context-14.txt"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "label": "read currentFlags before modifier computation", "compiled": true, "instructions": [39, 39], "structural": 0, "positional": 7, "fuzzy": 98.97436, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.98034, "total_code": "28484", "matched_code": "27908", "matched_code_percent": 97.97781, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 139, "matched_functions_percent": 98.58156, "total_units": 1}, "context": "/tmp/sol-high-context-15.txt"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "label": "preserve original inline release boundary in updateInput", "compiled": true, "instructions": [39, 39], "structural": 0, "positional": 0, "fuzzy": 100.0, "pool": 0, "regressions": ["main/src/keyboard/tiPcKeyboard:updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv"], "measures": {"fuzzy_match_percent": 99.98034, "total_code": "28484", "matched_code": "27504", "matched_code_percent": 96.55947, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 139, "matched_functions_percent": 98.58156, "total_units": 1}, "context": "/tmp/sol-high-context-16.txt"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "label": "explicit inline release update with owner retained", "compiled": true, "instructions": [39, 39], "structural": 0, "positional": 0, "fuzzy": 100.0, "pool": 0, "regressions": ["main/src/keyboard/tiPcKeyboard:updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv"], "measures": {"fuzzy_match_percent": 99.98034, "total_code": "28484", "matched_code": "27504", "matched_code_percent": 96.55947, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 139, "matched_functions_percent": 98.58156, "total_units": 1}, "context": "/tmp/sol-high-context-17.txt"}
|
||||
{"event": "begin", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "origin": "137edaff42e9f87a6e9ecd05ddffc235aa76667a", "remote_source_identical": true, "diagnosis": "Target 84 instructions, 0x30 frame, two saved GPRs; source 86, 0x40, three saved GPRs. Endian byte-load schedule and pointer/index lifetimes differ. Target arithmetic groups low16+low0 and high24+low8; test read helper and entrypoint inline boundary before declaration coloring.", "fuzzy": 86.5}
|
||||
{"event": "pool", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "output": "POOL IDENTICAL up to 0 (mine=0 base=0)\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "partition-word inline helper with explicit high-byte load", "compiled": true, "instructions": [86, 84], "structural": 24, "positional": 84, "fuzzy": 86.5, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.598495, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-18.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "master-sector validation inline boundary", "compiled": true, "instructions": [86, 84], "structural": 24, "positional": 83, "fuzzy": 86.79762, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.625404, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-19.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "validation inline boundary and partition-word helper", "compiled": true, "instructions": [86, 84], "structural": 24, "positional": 83, "fuzzy": 86.79762, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.625404, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-20.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "byte-reader inline parameters high,upper,lower,low", "compiled": true, "instructions": [86, 84], "structural": 24, "positional": 84, "fuzzy": 86.5, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.598495, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-21.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "byte-reader inline parameters upper,high,low,lower", "compiled": true, "instructions": [86, 84], "structural": 24, "positional": 84, "fuzzy": 86.5, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.598495, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-22.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "byte-reader inline parameters low,lower,upper,high", "compiled": true, "instructions": [86, 84], "structural": 24, "positional": 84, "fuzzy": 86.5, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.598495, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-23.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "byte-reader inline parameters lower,low,high,upper", "compiled": true, "instructions": [86, 84], "structural": 24, "positional": 84, "fuzzy": 86.5, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.598495, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-24.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (0, 1, 2, 3)", "compiled": true, "instructions": [86, 84], "structural": 31, "positional": 85, "fuzzy": 86.42857, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.59203, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-25.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (0, 1, 3, 2)", "compiled": true, "instructions": [86, 84], "structural": 32, "positional": 85, "fuzzy": 86.35714, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.58558, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-26.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (0, 2, 1, 3)", "compiled": true, "instructions": [86, 84], "structural": 26, "positional": 84, "fuzzy": 86.36905, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.586655, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-27.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (0, 2, 3, 1)", "compiled": true, "instructions": [86, 84], "structural": 24, "positional": 84, "fuzzy": 86.440475, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.59311, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-28.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (0, 3, 1, 2)", "compiled": true, "instructions": [86, 84], "structural": 31, "positional": 85, "fuzzy": 86.42857, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.59203, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-29.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (0, 3, 2, 1)", "compiled": true, "instructions": [86, 84], "structural": 31, "positional": 85, "fuzzy": 86.57143, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.60495, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-30.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (1, 0, 2, 3)", "compiled": true, "instructions": [86, 84], "structural": 31, "positional": 85, "fuzzy": 86.4881, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.59742, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-31.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (1, 0, 3, 2)", "compiled": true, "instructions": [86, 84], "structural": 32, "positional": 85, "fuzzy": 86.416664, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.59096, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-32.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (1, 2, 0, 3)", "compiled": true, "instructions": [84, 84], "structural": 32, "positional": 35, "fuzzy": 87.27381, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.66846, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-33.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (1, 2, 3, 0)", "compiled": true, "instructions": [86, 84], "structural": 40, "positional": 85, "fuzzy": 82.32143, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.220665, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-34.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (1, 3, 0, 2)", "compiled": true, "instructions": [84, 84], "structural": 27, "positional": 35, "fuzzy": 87.34524, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.67492, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-35.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (1, 3, 2, 0)", "compiled": true, "instructions": [86, 84], "structural": 35, "positional": 85, "fuzzy": 82.39286, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.22713, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-36.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (2, 0, 1, 3)", "compiled": true, "instructions": [86, 84], "structural": 26, "positional": 84, "fuzzy": 86.42857, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.59203, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-37.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (2, 0, 3, 1)", "compiled": true, "instructions": [86, 84], "structural": 24, "positional": 84, "fuzzy": 86.5, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.598495, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-38.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (2, 1, 0, 3)", "compiled": true, "instructions": [84, 84], "structural": 23, "positional": 34, "fuzzy": 87.416664, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.68138, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-39.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (2, 1, 3, 0)", "compiled": true, "instructions": [86, 84], "structural": 31, "positional": 85, "fuzzy": 82.35714, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.2239, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-40.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (2, 3, 0, 1)", "compiled": true, "instructions": [84, 84], "structural": 19, "positional": 34, "fuzzy": 87.60714, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.6986, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-41.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (2, 3, 1, 0)", "compiled": true, "instructions": [86, 84], "structural": 27, "positional": 85, "fuzzy": 82.47619, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.23466, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-42.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (3, 0, 1, 2)", "compiled": true, "instructions": [86, 84], "structural": 31, "positional": 85, "fuzzy": 86.4881, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.59742, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-43.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (3, 0, 2, 1)", "compiled": true, "instructions": [86, 84], "structural": 31, "positional": 85, "fuzzy": 86.63095, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.61034, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-44.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (3, 1, 0, 2)", "compiled": true, "instructions": [84, 84], "structural": 28, "positional": 35, "fuzzy": 87.27381, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.66846, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-45.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (3, 1, 2, 0)", "compiled": true, "instructions": [86, 84], "structural": 36, "positional": 85, "fuzzy": 82.27381, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.21636, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-46.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (3, 2, 0, 1)", "compiled": true, "instructions": [84, 84], "structural": 21, "positional": 35, "fuzzy": 87.39286, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.67922, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-47.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "paired endian operand order (3, 2, 1, 0)", "compiled": true, "instructions": [86, 84], "structural": 36, "positional": 85, "fuzzy": 82.32143, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.220665, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-48.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (0, 1, 2, 3)", "compiled": true, "instructions": [86, 84], "structural": 31, "positional": 85, "fuzzy": 86.42857, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.59203, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-49.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (0, 1, 3, 2)", "compiled": true, "instructions": [86, 84], "structural": 32, "positional": 85, "fuzzy": 86.35714, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.58558, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-50.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (0, 2, 1, 3)", "compiled": true, "instructions": [86, 84], "structural": 26, "positional": 84, "fuzzy": 86.36905, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.586655, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-51.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (0, 2, 3, 1)", "compiled": true, "instructions": [86, 84], "structural": 24, "positional": 84, "fuzzy": 86.440475, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.59311, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-52.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (0, 3, 1, 2)", "compiled": true, "instructions": [86, 84], "structural": 31, "positional": 85, "fuzzy": 86.42857, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.59203, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-53.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (0, 3, 2, 1)", "compiled": true, "instructions": [86, 84], "structural": 31, "positional": 85, "fuzzy": 86.57143, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.60495, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-54.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (1, 0, 2, 3)", "compiled": true, "instructions": [86, 84], "structural": 31, "positional": 85, "fuzzy": 86.4881, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.59742, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-55.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (1, 0, 3, 2)", "compiled": true, "instructions": [86, 84], "structural": 32, "positional": 85, "fuzzy": 86.416664, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.59096, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-56.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (1, 2, 0, 3)", "compiled": true, "instructions": [84, 84], "structural": 24, "positional": 35, "fuzzy": 87.77381, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.71367, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-57.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (1, 2, 3, 0)", "compiled": true, "instructions": [84, 84], "structural": 24, "positional": 34, "fuzzy": 88.78571, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.80517, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-58.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (1, 3, 0, 2)", "compiled": true, "instructions": [84, 84], "structural": 22, "positional": 35, "fuzzy": 87.75, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.71152, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-59.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (1, 3, 2, 0)", "compiled": true, "instructions": [84, 84], "structural": 31, "positional": 35, "fuzzy": 88.71429, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.798706, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-60.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (2, 0, 1, 3)", "compiled": true, "instructions": [86, 84], "structural": 26, "positional": 84, "fuzzy": 86.42857, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.59203, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-61.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (2, 0, 3, 1)", "compiled": true, "instructions": [86, 84], "structural": 24, "positional": 84, "fuzzy": 86.5, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.598495, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-62.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (2, 1, 0, 3)", "compiled": true, "instructions": [84, 84], "structural": 24, "positional": 35, "fuzzy": 87.690475, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.70614, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-63.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (2, 1, 3, 0)", "compiled": true, "instructions": [84, 84], "structural": 30, "positional": 34, "fuzzy": 88.78571, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.80517, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-64.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (2, 3, 0, 1)", "compiled": true, "instructions": [84, 84], "structural": 14, "positional": 35, "fuzzy": 87.75, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.71152, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-65.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (2, 3, 1, 0)", "compiled": true, "instructions": [84, 84], "structural": 19, "positional": 33, "fuzzy": 88.85714, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.81162, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-66.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (3, 0, 1, 2)", "compiled": true, "instructions": [86, 84], "structural": 31, "positional": 85, "fuzzy": 86.4881, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.59742, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-67.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (3, 0, 2, 1)", "compiled": true, "instructions": [86, 84], "structural": 31, "positional": 85, "fuzzy": 86.63095, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.61034, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-68.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (3, 1, 0, 2)", "compiled": true, "instructions": [84, 84], "structural": 21, "positional": 35, "fuzzy": 87.88095, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.72336, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-69.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (3, 1, 2, 0)", "compiled": true, "instructions": [84, 84], "structural": 30, "positional": 35, "fuzzy": 88.72619, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.79978, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-70.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (3, 2, 0, 1)", "compiled": true, "instructions": [84, 84], "structural": 14, "positional": 35, "fuzzy": 87.96429, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.730896, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-71.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "right-associated endian operand order (3, 2, 1, 0)", "compiled": true, "instructions": [84, 84], "structural": 15, "positional": 33, "fuzzy": 88.86905, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.8127, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-72.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "closest endian grouping before final allocation search", "compiled": true, "instructions": [84, 84], "structural": 14, "positional": 35, "fuzzy": 87.75, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.71152, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-73.txt"}
|
||||
{"event": "declsearch", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "output": "declaration block:\n pf_s16 index;\n pf_u32 start[4];\n pf_u32 count[4];\n pf_u32* p_start;\n pf_u32* p_count;\nstart (14, 35)\nimproved (14, 33)\nimproved (14, 32)\nimproved (14, 31)\nimproved (14, 25)\nbest (14, 25) after 33 builds; kept in source:\n pf_u32* p_start;\n pf_u32* p_count;\n pf_s16 index;\n pf_u32 start[4];\n pf_u32 count[4];\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "master-sector declaration allocation search after structural attempts", "compiled": true, "instructions": [84, 84], "structural": 14, "positional": 25, "fuzzy": 88.583336, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.786865, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-74.txt"}
|
||||
{"event": "begin", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "origin": "137edaff42e9f87a6e9ecd05ddffc235aa76667a", "remote_source_identical": true, "diagnosis": "Both 276 instructions with aligned 0x2e0 frame. First difference is unrolled partition word byte load grouping and scheduling, then logical-sector accumulation order. Target combines low16+low0 and high24+low8 pairs and fills start/count arrays in batches. Test endian helper, primary traversal loop, and inline scanning boundary before declaration search.", "fuzzy": 82.56159}
|
||||
{"event": "pool", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "output": "POOL IDENTICAL up to 0 (mine=0 base=0)\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "label": "paired little-endian word macro", "compiled": true, "instructions": [276, 276], "structural": 79, "positional": 141, "fuzzy": 82.61957, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.615715, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-75.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "label": "fixed primary-entry scan loop with paired word macro", "compiled": true, "instructions": [243, 276], "structural": 116, "positional": 251, "fuzzy": 67.67029, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 89.17438, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-76.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "label": "inline partition scanning implementation boundary", "compiled": true, "instructions": [276, 276], "structural": 139, "positional": 173, "fuzzy": 84.76087, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 94.251884, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-77.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "label": "compute relative first-partition word before adding current sector", "compiled": true, "instructions": [278, 276], "structural": 114, "positional": 221, "fuzzy": 79.53623, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 92.69968, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-78.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "label": "separate table population into fixed start and count loops", "compiled": true, "instructions": [272, 276], "structural": 162, "positional": 251, "fuzzy": 73.5942, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 90.93434, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-79.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "label": "advance primary arrays through named start/count pointers", "compiled": true, "instructions": [278, 276], "structural": 125, "positional": 190, "fuzzy": 80.39493, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 92.95479, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-80.txt"}
|
||||
{"event": "begin", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "origin": "137edaff42e9f87a6e9ecd05ddffc235aa76667a", "remote_source_identical": true, "diagnosis": "Both 126 instructions, same 0x30 frame and four float-to-int spill pairs. Target depth>=delay comparison, period division then LFO resets, all conversions grouped before history writes. Explicit history stores in source move before conversion stores. Test history loop and named float conversion temporaries, preserving .sdata2 encounter order.", "fuzzy": 69.9127}
|
||||
{"event": "pool", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "output": "POOL IDENTICAL up to 0 (mine=0 base=0)\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "history loop and target depth/period expressions", "compiled": true, "instructions": [126, 126], "structural": 2, "positional": 16, "fuzzy": 97.81746, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 96.54247, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}, "context": "/tmp/sol-high-context-81.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "named scaled LFO values before integer conversions", "compiled": true, "instructions": [126, 126], "structural": 19, "positional": 36, "fuzzy": 91.650795, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 95.3845, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}, "context": "/tmp/sol-high-context-82.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "reuse depth local for gradient rate after depth conversion", "compiled": true, "instructions": [126, 126], "structural": 5, "positional": 18, "fuzzy": 94.47619, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 95.915054, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}, "context": "/tmp/sol-high-context-83.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "split initialization declarations after history and expression repairs", "compiled": true, "instructions": [126, 126], "structural": 2, "positional": 16, "fuzzy": 97.81746, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 96.54247, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}, "context": "/tmp/sol-high-context-84.txt"}
|
||||
{"event": "declsearch", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "output": ""}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "final initialization declaration order search", "compiled": true, "instructions": [126, 126], "structural": 2, "positional": 16, "fuzzy": 97.81746, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 96.54247, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}, "context": "/tmp/sol-high-context-85.txt"}
|
||||
{"event": "declsearch", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "output": "declaration block:\n f32 delay;\n f32 depth;\n f32 step;\n u32 channel;\n u32 sample;\nstart (2, 16)\nbest (2, 16) after 23 builds; source restored; best order was:\n f32 delay;\n f32 depth;\n f32 step;\n u32 channel;\n u32 sample;\n", "error": ""}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "label": "explicit initialization declaration range search", "compiled": true, "instructions": [126, 126], "structural": 2, "positional": 16, "fuzzy": 97.81746, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 96.54247, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}, "context": "/tmp/sol-high-context-86.txt"}
|
||||
{"event": "begin", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "origin": "137edaff42e9f87a6e9ecd05ddffc235aa76667a", "remote_source_identical": true, "diagnosis": "Target 65 instructions and 0x10 frame, source 51 without frame. Target keeps signed64 value and sign negation, signed32 depth multiplication, and generic64 gradient compound multiplication. Table difference is signed32 before promotion. Target sign>=1 and CTR loop. Test native width and arithmetic boundaries before register search.", "fuzzy": 68.53846}
|
||||
{"event": "pool", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "output": "POOL IDENTICAL up to 0 (mine=0 base=0)\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "label": "signed64 output with compound gradient promotion before depth product", "compiled": true, "instructions": [66, 65], "structural": 6, "positional": 55, "fuzzy": 87.76923, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.16543, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}, "context": "/tmp/sol-high-context-87.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "label": "compute depth product before compound gradient multiplication", "compiled": true, "instructions": [60, 65], "structural": 23, "positional": 65, "fuzzy": 66.815384, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 91.13562, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}, "context": "/tmp/sol-high-context-88.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "label": "signed64 value and separate named depth product", "compiled": true, "instructions": [66, 65], "structural": 6, "positional": 55, "fuzzy": 87.76923, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.16543, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}, "context": "/tmp/sol-high-context-89.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "label": "fixed ascending sample loop with native64 products", "compiled": true, "instructions": [65, 65], "structural": 0, "positional": 11, "fuzzy": 99.07692, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 94.2608, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}, "context": "/tmp/sol-high-context-90.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "label": "fixed descending sample loop with native64 products", "compiled": true, "instructions": [65, 65], "structural": 0, "positional": 11, "fuzzy": 99.07692, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 94.2608, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}, "context": "/tmp/sol-high-context-91.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "label": "64-bit sign adjustment inline helper in ascending loop", "compiled": true, "instructions": [65, 65], "structural": 0, "positional": 11, "fuzzy": 99.07692, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 94.2608, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}, "context": "/tmp/sol-high-context-92.txt"}
|
||||
{"event": "declsearch", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "output": "declaration block:\n s32 start;\n s32 difference;\n s64 gradient;\nstart (0, 11)\nbest (0, 11) after 6 builds; source restored; best order was:\n s32 start;\n s32 difference;\n s64 gradient;\n", "error": ""}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "label": "final LFO inner declaration search after loop and width fixes", "compiled": true, "instructions": [65, 65], "structural": 0, "positional": 11, "fuzzy": 99.07692, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 94.2608, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}, "context": "/tmp/sol-high-context-93.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "label": "declare interpolation locals together before fixed sample loop", "compiled": true, "instructions": [65, 65], "structural": 0, "positional": 11, "fuzzy": 99.07692, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 94.2608, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}, "context": "/tmp/sol-high-context-94.txt"}
|
||||
{"event": "declsearch", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "output": "declaration block:\n s64 value;\n s32 start;\n s32 difference;\n s64 gradient;\n u32 phase;\n u32 sample;\nstart (0, 11)\nimproved (0, 0)\nbest (0, 0) after 2 builds; kept in source:\n s32 start;\n s64 value;\n s32 difference;\n s64 gradient;\n u32 phase;\n u32 sample;\n", "error": ""}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "label": "all interpolation locals final declaration search", "compiled": true, "instructions": [65, 65], "structural": 0, "positional": 0, "fuzzy": 100.0, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 94.35023, "total_code": "2684", "matched_code": "2180", "matched_code_percent": 81.22206, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_units": 1}, "context": "/tmp/sol-high-context-95.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "label": "initialize table sample at its first use inside phase change", "compiled": false, "error": "[1/1] MWCC build/43U/src/libs/RVL_SDK/src/axfx/AXFXChorusExp.o\nFAILED: [code=2] build/43U/src/libs/RVL_SDK/src/axfx/AXFXChorusExp.o \nbuild/tools/wibo build/tools/sjiswrap.exe build/compilers/GC/3.0a5.2/mwcceppc.exe -nodefaults -proc gekko -align powerpc -enum int -fp hardware -Cpp_exceptions off -O4,p -inline auto -pragma \"cats off\" -pragma \"warn_notinlined off\" -maxerrors 1 -nosyspath -RTTI off -fp_contract on -str reuse -DSDK_IPL -D_REVOLUTION -DMEM_MANAGER_DIRECT -i include -i include/global -i libs/MetroTRK/include -i libs/Runtime/include -i libs/MSL/include -i libs/RVL_SDK/include -i libs/RevoEX/include -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RVL_SDK/src/axfx/AXFXChorusExp.c -o build/43U/src/libs/RVL_SDK/src/axfx && \"/usr/bin/python3\" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/axfx/AXFXChorusExp.d build/43U/src/libs/RVL_SDK/src/axfx/AXFXChorusExp.d\n### mwcceppc.exe Compiler:\n# File: libs\\RVL_SDK\\src\\axfx\\AXFXChorusExp.c\n# ----------------------------------------------\n# 210: s32 start = lfo->table[phase]; \n# Error: ^^^\n# (10141) expression syntax error\n# Too many errors printed, aborting program\n\nUser break, cancelled...\nninja: build stopped: subcommand failed.\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__CalcLFO", "label": "name interpolation table before phase sample loads", "compiled": true, "instructions": [65, 65], "structural": 0, "positional": 11, "fuzzy": 99.07692, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 94.2608, "total_code": "2684", "matched_code": "1920", "matched_code_percent": 71.53502, "total_data": "48", "matched_data": "48", "matched_data_percent": 100.0, "total_functions": 7, "matched_functions": 5, "matched_functions_percent": 71.42857, "total_units": 1}, "context": "/tmp/sol-high-context-97.txt"}
|
||||
{"event": "begin", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "origin": "137edaff42e9f87a6e9ecd05ddffc235aa76667a", "remote_source_identical": true, "diagnosis": "Both 158 instructions and 0x40 frame, same savegpr20 range. Target state registers and round/table load scheduling differ. Source computes four mix results before key XORs; target key XOR operand first in final substitution. Test integrate round keys into mix expressions and split scalar state declarations before register-only search.", "fuzzy": 60.348103}
|
||||
{"event": "pool", "unit": "libs/RevoEX/src/net/aes", "output": "POOL IDENTICAL up to 4 (mine=4 base=4)\n"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "include round key in each next-state expression", "compiled": true, "instructions": [158, 158], "structural": 112, "positional": 137, "fuzzy": 52.829113, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 73.388084, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}, "context": "/tmp/sol-high-context-98.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "separate state and round counter declaration lifetimes", "compiled": false, "error": "[1/1] MWCC build/43U/src/libs/RevoEX/src/net/aes.o\nFAILED: [code=2] build/43U/src/libs/RevoEX/src/net/aes.o \nbuild/tools/wibo build/tools/sjiswrap.exe build/compilers/GC/3.0a5.2/mwcceppc.exe -nodefaults -proc gekko -align powerpc -enum int -fp hardware -Cpp_exceptions off -O4,p -inline auto -pragma \"cats off\" -pragma \"warn_notinlined off\" -maxerrors 1 -nosyspath -RTTI off -fp_contract on -str reuse -DSDK_IPL -D_REVOLUTION -DMEM_MANAGER_DIRECT -i include -i include/global -i libs/MetroTRK/include -i libs/Runtime/include -i libs/MSL/include -i libs/RVL_SDK/include -i libs/RevoEX/include -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RevoEX/src/net/aes.c -o build/43U/src/libs/RevoEX/src/net && \"/usr/bin/python3\" tools/transform_dep.py build/43U/src/libs/RevoEX/src/net/aes.d build/43U/src/libs/RevoEX/src/net/aes.d\n### mwcceppc.exe Compiler:\n# File: libs\\RevoEX\\src\\net\\aes.c\n# ----------------------------------\n# 183: u32 stateA = input[0] ^ context->keys[0]; \n# Error: ^^^\n# (10141) expression syntax error\n# Too many errors printed, aborting program\n\nUser break, cancelled...\nninja: build stopped: subcommand failed.\n"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "use do-style guarded round traversal with next-state key operands", "compiled": true, "instructions": [159, 158], "structural": 115, "positional": 154, "fuzzy": 50.949368, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 72.9564, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}, "context": "/tmp/sol-high-context-100.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "split initialized scalar state declarations", "compiled": true, "instructions": [158, 158], "structural": 103, "positional": 134, "fuzzy": 60.348103, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 75.11482, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}, "context": "/tmp/sol-high-context-101.txt"}
|
||||
{"event": "declsearch", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "output": "declaration block:\n u32 rounds = context->rounds;\n const u32* key = context->keys + 4;\n u32 a = input[0] ^ context->keys[0];\n u32 b = input[1] ^ context->keys[1];\n u32 c = input[2] ^ context->keys[2];\n u32 d = input[3] ^ context->keys[3];\nstart (103, 134)\nimproved (96, 135)\nimproved (96, 134)\nimproved (93, 125)\nimproved (88, 125)\nbest (88, 125) after 59 builds; kept in source:\n u32 a = input[0] ^ context->keys[0];\n u32 rounds = context->rounds;\n u32 b = input[1] ^ context->keys[1];\n u32 d = input[3] ^ context->keys[3];\n u32 c = input[2] ^ context->keys[2];\n const u32* key = context->keys + 4;\n", "error": ""}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "encryption scalar declaration search after structural attempts", "compiled": true, "instructions": [158, 158], "structural": 88, "positional": 125, "fuzzy": 64.99367, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 76.18169, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}, "context": "/tmp/sol-high-context-102.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "assign all scalar state after independent declarations", "compiled": true, "instructions": [158, 158], "structural": 103, "positional": 134, "fuzzy": 60.348103, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 75.11482, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}, "context": "/tmp/sol-high-context-103.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "label": "block encryption inline implementation boundary", "compiled": true, "instructions": [158, 158], "structural": 84, "positional": 131, "fuzzy": 61.468353, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 75.37209, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}, "context": "/tmp/sol-high-context-104.txt"}
|
||||
{"event": "begin", "unit": "libs/RevoEX/src/net/aes", "function": "AESiDecryptBlock", "origin": "137edaff42e9f87a6e9ecd05ddffc235aa76667a", "remote_source_identical": true, "diagnosis": "Target 251 instructions versus 249, same 0x40 frame and savegpr20. Target creates separate keys base and round offset before inverse-mix loop; source advances absolute keys pointer. Target mutates doubled-byte intermediates through rotated XOR chain. Test inverse-mix temporary lifetimes and key indexing before declaration search.", "fuzzy": 61.49004}
|
||||
{"event": "pool", "unit": "libs/RevoEX/src/net/aes", "output": "POOL IDENTICAL up to 4 (mine=4 base=4)\n"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiDecryptBlock", "label": "mutate inverse-mix factors in target XOR dependency order", "compiled": true, "instructions": [249, 251], "structural": 139, "positional": 244, "fuzzy": 62.74502, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 75.57268, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}, "context": "/tmp/sol-high-context-105.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiDecryptBlock", "label": "index key words relative to context across each round", "compiled": true, "instructions": [249, 251], "structural": 132, "positional": 244, "fuzzy": 62.151394, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 75.3561, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}, "context": "/tmp/sol-high-context-106.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "AESiDecryptBlock", "label": "retain initial key base before adding last-round offset", "compiled": true, "instructions": [251, 251], "structural": 133, "positional": 224, "fuzzy": 65.09164, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 76.42878, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}, "context": "/tmp/sol-high-context-107.txt"}
|
||||
{"event": "begin", "unit": "libs/RevoEX/src/net/aes", "function": "NETAESCreateEx", "origin": "137edaff42e9f87a6e9ecd05ddffc235aa76667a", "remote_source_identical": true, "diagnosis": "Target 108 instructions versus 107 and matching 0x20 frame. Target rounds conversion is rotate-right2 masked to27bits, while words conversion later is ordinary shift-right2. This is byte count times8 divided32 for rounds, unlike keyLength/4 CSE in ours. Target shares words/result register and XOR substitution groups differently. Test byte-to-bit round conversion before operands and temporaries.", "fuzzy": 88.98148}
|
||||
{"event": "pool", "unit": "libs/RevoEX/src/net/aes", "output": "POOL IDENTICAL up to 4 (mine=4 base=4)\n"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "NETAESCreateEx", "label": "round count through byte-to-bit conversion before dividing word bits", "compiled": true, "instructions": [112, 108], "structural": 30, "positional": 109, "fuzzy": 74.10185, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 72.77907, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}, "context": "/tmp/sol-high-context-108.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "NETAESCreateEx", "label": "word count uses explicit shift after IV initialization", "compiled": true, "instructions": [112, 108], "structural": 30, "positional": 109, "fuzzy": 74.10185, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 72.77907, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}, "context": "/tmp/sol-high-context-109.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "NETAESCreateEx", "label": "byte-to-bit round calculation and target substitution XOR groups", "compiled": true, "instructions": [112, 108], "structural": 28, "positional": 108, "fuzzy": 72.01852, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 72.452034, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}, "context": "/tmp/sol-high-context-110.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "NETAESCreateEx", "label": "set transform bit before round count field", "compiled": true, "instructions": [112, 108], "structural": 26, "positional": 110, "fuzzy": 77.85185, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 73.36773, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}, "context": "/tmp/sol-high-context-111.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "NETAESCreateEx", "label": "explicit bits temporary for round count", "compiled": true, "instructions": [112, 108], "structural": 30, "positional": 109, "fuzzy": 74.10185, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 72.77907, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}, "context": "/tmp/sol-high-context-112.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "NETAESCreateEx", "label": "inline context round setup boundary with byte-to-bit conversion", "compiled": true, "instructions": [112, 108], "structural": 30, "positional": 109, "fuzzy": 74.10185, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 72.77907, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}, "context": "/tmp/sol-high-context-113.txt"}
|
||||
{"event": "declsearch", "unit": "libs/RevoEX/src/net/aes", "function": "NETAESCreateEx", "output": "declaration block:\n BOOL result = FALSE;\n u32 words;\n u32 index;\n u32 value;\n u32* schedule;\nstart (30, 109)\nimproved (12, 25)\nbest (12, 25) after 26 builds; kept in source:\n u32* schedule;\n u32 words;\n u32 index;\n u32 value;\n BOOL result = FALSE;\n", "error": ""}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "NETAESCreateEx", "label": "creation local declaration search after bit and helper attempts", "compiled": true, "instructions": [108, 108], "structural": 12, "positional": 25, "fuzzy": 90.97222, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 75.42732, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}, "context": "/tmp/sol-high-context-114.txt"}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "label": "release caller independent declarations at modifier update boundary", "compiled": true, "instructions": [39, 39], "structural": 0, "positional": 0, "fuzzy": 100.0, "pool": 0, "regressions": ["main/src/keyboard/tiPcKeyboard:updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv"], "measures": {"fuzzy_match_percent": 99.98034, "total_code": "28484", "matched_code": "27504", "matched_code_percent": 96.55947, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 139, "matched_functions_percent": 98.58156, "total_units": 1}, "context": "/tmp/sol-high-context-115.txt"}
|
||||
{"event": "declsearch", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "output": "declaration block:\n u32 currentFlags;\n u32 flags;\n Base* keyboard;\nstart (0, 7)\nimproved (0, 0)\nbest (0, 0) after 2 builds; kept in source:\n u32 flags;\n u32 currentFlags;\n Base* keyboard;\n", "error": ""}
|
||||
{"event": "attempt", "unit": "src/keyboard/tiPcKeyboard", "function": "onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv", "label": "final release caller declaration search", "compiled": true, "instructions": [39, 39], "structural": 0, "positional": 0, "fuzzy": 100.0, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 99.985954, "total_code": "28484", "matched_code": "28064", "matched_code_percent": 98.52549, "total_data": "18564", "matched_data": "18548", "matched_data_percent": 99.91381, "total_functions": 141, "matched_functions": 140, "matched_functions_percent": 99.29078, "total_units": 1}, "context": "/tmp/sol-high-context-116.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "NETAESCreateEx", "label": "balanced rotated substitution and nested plain substitution", "compiled": true, "instructions": [108, 108], "structural": 10, "positional": 31, "fuzzy": 88.888885, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 75.10029, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}, "context": "/tmp/sol-high-context-117.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "NETAESCreateEx", "label": "balanced substitutions with transform flag before rounds setup", "compiled": true, "instructions": [108, 108], "structural": 6, "positional": 26, "fuzzy": 92.638885, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 75.68896, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}, "context": "/tmp/sol-high-context-118.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "NETAESCreateEx", "label": "explicit rotate then substitute key word with separate Rcon XOR", "compiled": true, "instructions": [108, 108], "structural": 12, "positional": 23, "fuzzy": 91.06481, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 75.441864, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}, "context": "/tmp/sol-high-context-119.txt"}
|
||||
{"event": "declsearch", "unit": "libs/RevoEX/src/net/aes", "function": "NETAESCreateEx", "output": "declaration block:\n u32* schedule;\n u32 words;\n u32 index;\n u32 value;\n BOOL result = FALSE;\nstart (6, 26)\nbest (6, 26) after 23 builds; source restored; best order was:\n u32* schedule;\n u32 words;\n u32 index;\n u32 value;\n BOOL result = FALSE;\n", "error": ""}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "NETAESCreateEx", "label": "final creation declarations after substitution structural repairs", "compiled": true, "instructions": [108, 108], "structural": 6, "positional": 26, "fuzzy": 92.638885, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 75.68896, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}, "context": "/tmp/sol-high-context-120.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "NETAESCreateEx", "label": "balanced rotated substitution with named round result", "compiled": true, "instructions": [108, 108], "structural": 6, "positional": 15, "fuzzy": 93.42593, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 75.8125, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}, "context": "/tmp/sol-high-context-121.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "NETAESCreateEx", "label": "separate balanced substitution from round-constant application", "compiled": true, "instructions": [108, 108], "structural": 6, "positional": 13, "fuzzy": 93.51852, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 75.827034, "total_code": "2752", "matched_code": "684", "matched_code_percent": 24.85465, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 6, "matched_functions_percent": 66.66667, "total_units": 1}, "context": "/tmp/sol-high-context-122.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "NETAESCreateEx", "label": "name rotated substitution byte terms in target pair groups", "compiled": true, "instructions": [108, 108], "structural": 0, "positional": 0, "fuzzy": 100.0, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 76.844475, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-context-123.txt"}
|
||||
{"event": "attempt", "unit": "libs/RevoEX/src/net/aes", "function": "NETAESCreateEx", "label": "format exact key setup and substitution for review", "compiled": true, "instructions": [108, 108], "structural": 0, "positional": 0, "fuzzy": 100.0, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 76.844475, "total_code": "2752", "matched_code": "1116", "matched_code_percent": 40.552326, "total_data": "2800", "matched_data": "2800", "matched_data_percent": 100.0, "total_functions": 9, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_units": 1}, "context": "/tmp/sol-high-context-124.txt"}
|
||||
{"event": "begin", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "origin": "137edaff42e9f87a6e9ecd05ddffc235aa76667a", "remote_source_identical": true, "diagnosis": "AES key setup matched after naming individual byte terms and fixing compound-expression boundaries. Test same defined local-byte decomposition for master boot sector. Target starts with high24 load, then low16+low0, high24+low8; only two saved GPRs. Keep pointer/array traversal and preliminary zero store intact.", "fuzzy": 86.5}
|
||||
{"event": "pool", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "output": "POOL IDENTICAL up to 0 (mine=0 base=0)\n"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "name all partition start/count byte terms before grouped sums", "compiled": true, "instructions": [86, 84], "structural": 26, "positional": 84, "fuzzy": 85.22619, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.483315, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-125.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "accumulate high and low half sums in target sequence", "compiled": true, "instructions": [84, 84], "structural": 14, "positional": 47, "fuzzy": 84.2381, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.393974, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-126.txt"}
|
||||
{"event": "attempt", "unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "label": "target sum sequence with pointer declarations before loop index", "compiled": true, "instructions": [84, 84], "structural": 14, "positional": 47, "fuzzy": 84.2381, "pool": 0, "regressions": [], "measures": {"fuzzy_match_percent": 93.393974, "total_code": "3716", "matched_code": "2276", "matched_code_percent": 61.248653, "matched_data_percent": 100.0, "total_functions": 20, "matched_functions": 18, "matched_functions_percent": 90.0, "complete_data_percent": 100.0, "total_units": 1}, "context": "/tmp/sol-high-context-127.txt"}
|
||||
{"event": "completeness_audit", "remaining": [{"unit": "src/keyboard/tiPcKeyboard", "function": "setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode", "fuzzy": 99.04762, "distinct_compiled_attempts": 3}, {"unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_is_master_boot_sector", "fuzzy": 86.5, "distinct_compiled_attempts": 60}, {"unit": "libs/RVL_SDK/src/fa/pdm_partition", "function": "pdm_part_get_start_sector", "fuzzy": 82.56159, "distinct_compiled_attempts": 6}, {"unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "function": "__InitParams", "fuzzy": 69.9127, "distinct_compiled_attempts": 6}, {"unit": "libs/RevoEX/src/net/aes", "function": "AESiEncryptBlock", "fuzzy": 60.348103, "distinct_compiled_attempts": 6}, {"unit": "libs/RevoEX/src/net/aes", "function": "AESiDecryptBlock", "fuzzy": 61.49004, "distinct_compiled_attempts": 3}], "compiled_attempts": 125}
|
||||
{"event": "final_full_gate", "comparison": [{"unit": "src/keyboard/tiPcKeyboard", "before_exact": 138, "after_exact": 140, "total_functions": 141, "before_code": 27712, "after_code": 28064, "total_code": 28484, "before_data": 18548, "after_data": 18548, "total_data": 18564}, {"unit": "libs/RVL_SDK/src/fa/pdm_partition", "before_exact": 18, "after_exact": 18, "total_functions": 20, "before_code": 2276, "after_code": 2276, "total_code": 3716, "before_data": 0, "after_data": 0, "total_data": 0}, {"unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "before_exact": 5, "after_exact": 6, "total_functions": 7, "before_code": 1920, "after_code": 2180, "total_code": 2684, "before_data": 48, "after_data": 48, "total_data": 48}, {"unit": "libs/RevoEX/src/net/aes", "before_exact": 6, "after_exact": 7, "total_functions": 9, "before_code": 684, "after_code": 1116, "total_code": 2752, "before_data": 2800, "after_data": 2800, "total_data": 2800}], "remaining": [{"unit": "src/keyboard/tiPcKeyboard", "name": "setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode", "fuzzy": 99.04762, "attempts": 3, "why": "Source 106/target 105 instructions. Sole extra move initializes keyMode for invalid enums; target reads an undefined saved register for that case. Defined switch variants were restored."}, {"unit": "libs/RVL_SDK/src/fa/pdm_partition", "name": "pdm_part_is_master_boot_sector", "fuzzy": 86.5, "attempts": 60, "why": "Source 86/target 84 instructions. Source frame 0x40 saves three GPRs; target frame 0x30 saves two. Endian byte loads and pointer/index allocation differ. Best structural variants still have 14 structural differences."}, {"unit": "libs/RVL_SDK/src/fa/pdm_partition", "name": "pdm_part_get_start_sector", "fuzzy": 82.56159, "attempts": 6, "why": "Both 276 instructions with aligned 0x2e0 frame. Primary/extended partition word byte grouping, operand evaluation order, and scalar lifetimes differ. Loop and inline-boundary variants did not match."}, {"unit": "libs/RVL_SDK/src/axfx/AXFXChorusExp", "name": "__InitParams", "fuzzy": 69.9127, "attempts": 6, "why": "Both 126 instructions and 0x30 frame. Explicit history stores schedule before conversions, and comparison/gradient scheduling differs. History-loop and period variants reached 97.81746% but retained 16 positional differences."}, {"unit": "libs/RevoEX/src/net/aes", "name": "AESiEncryptBlock", "fuzzy": 60.348103, "attempts": 6, "why": "Both 158 instructions and 0x40 frame. State setup, table lookup/rotation scheduling, and XOR temporary lifetimes differ. Structural and declaration variants remained non-exact."}, {"unit": "libs/RevoEX/src/net/aes", "name": "AESiDecryptBlock", "fuzzy": 61.49004, "attempts": 3, "why": "Source 249/target 251 instructions with 0x40 frame. Initial key base, inverse-mix XOR dependencies, round indexing, and table state lifetimes differ. Closest key-base variant had 251 instructions but remained non-exact."}], "gate": "tools/decomp-assist/sol-high-structural-oct2.final-gate.txt", "dol_sha1": "26116613f624061ba99c8d1a299aaa6efa85670d", "result": "GATE PASS", "regressions": 0, "forbidden_patterns": 0, "readability_warnings": 0}
|
||||
47
tools/decomp-assist/sol-high-structural-oct2.final-gate.txt
Normal file
47
tools/decomp-assist/sol-high-structural-oct2.final-gate.txt
Normal file
@@ -0,0 +1,47 @@
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/keyboard/tiPcKeyboard] pool: IDENTICAL
|
||||
[src/keyboard/tiPcKeyboard] objdiff: code 28064/28484 data 18548/18564 functions 140/141 fuzzy 99.9860 linked code 0
|
||||
[src/keyboard/tiPcKeyboard] instruction-exact functions: 140/141
|
||||
[src/keyboard/tiPcKeyboard] section .bss size 16 match None
|
||||
[src/keyboard/tiPcKeyboard] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .data size 12576 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .rodata size 5816 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .sbss size 8 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .sdata size 136 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .sdata2 size 8 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .text size 28484 match 99.985954
|
||||
[src/keyboard/tiPcKeyboard] below 100: setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode 99.04762
|
||||
[src/keyboard/tiPcKeyboard] baseline: code 27712/28484 data 18548 functions 138 fuzzy 99.9733
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] objdiff: code 2276/3716 data None/None functions 18/20 fuzzy 93.5985 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] instruction-exact functions: 18/20
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] section .text size 3716 match 93.598495
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] below 100: pdm_part_is_master_boot_sector 86.5
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] below 100: pdm_part_get_start_sector 82.56159
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] baseline: code 2276/3716 data None functions 18 fuzzy 93.5985
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] objdiff: code 2180/2684 data 48/48 functions 6/7 fuzzy 94.3502 linked code 0
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] instruction-exact functions: 6/7
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] section .sdata2 size 48 match 100.0
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] section .text size 2684 match 94.35023
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] below 100: __InitParams 69.9127
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] baseline: code 1920/2684 data 48 functions 5 fuzzy 91.3025
|
||||
[libs/RevoEX/src/net/aes] pool: IDENTICAL
|
||||
[libs/RevoEX/src/net/aes] objdiff: code 1116/2752 data 2800/2800 functions 7/9 fuzzy 76.8445 linked code 0
|
||||
[libs/RevoEX/src/net/aes] instruction-exact functions: 7/9
|
||||
[libs/RevoEX/src/net/aes] section .data size 200 match 100.0
|
||||
[libs/RevoEX/src/net/aes] section .rodata size 2592 match 100.0
|
||||
[libs/RevoEX/src/net/aes] section .sdata2 size 8 match 100.0
|
||||
[libs/RevoEX/src/net/aes] section .text size 2752 match 76.844475
|
||||
[libs/RevoEX/src/net/aes] below 100: AESiEncryptBlock 60.348103
|
||||
[libs/RevoEX/src/net/aes] below 100: AESiDecryptBlock 61.49004
|
||||
[libs/RevoEX/src/net/aes] baseline: code 684/2752 data 2800 functions 6 fuzzy 75.1148
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 88.24768 -> 88.28254
|
||||
global fuzzy_match_percent: 99.38681 -> 99.39125
|
||||
global complete_code_percent: 62.52416 -> 62.52416
|
||||
global matched_data_percent: 92.11517 -> 92.11517
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
42
tools/decomp-assist/sol-high-structural-oct2.report.md
Normal file
42
tools/decomp-assist/sol-high-structural-oct2.report.md
Normal file
@@ -0,0 +1,42 @@
|
||||
GATE PASS
|
||||
|
||||
Final full gate over all four units passed a clean 43U rebuild, the DOL hash, zero regressions, zero forbidden patterns, and zero readability warnings. All four pools are identical. The four new matches and the existing updateInput caller have zero ctxdiff differences.
|
||||
|
||||
| Unit | Instruction-exact before -> after | Objdiff code bytes before -> after | Objdiff data bytes before -> after |
|
||||
| --- | --- | --- | --- |
|
||||
| src/keyboard/tiPcKeyboard | 138/141 -> 140/141 | 27712/28484 -> 28064/28484 | 18548/18564 -> 18548/18564 |
|
||||
| libs/RVL_SDK/src/fa/pdm_partition | 18/20 -> 18/20 | 2276/3716 -> 2276/3716 | 0/0 -> 0/0 |
|
||||
| libs/RVL_SDK/src/axfx/AXFXChorusExp | 5/7 -> 6/7 | 1920/2684 -> 2180/2684 | 48/48 -> 48/48 |
|
||||
| libs/RevoEX/src/net/aes | 6/9 -> 7/9 | 684/2752 -> 1116/2752 | 2800/2800 -> 2800/2800 |
|
||||
|
||||
Remaining functions, with current objdiff scores and distinct compiled attempts:
|
||||
|
||||
- `setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode`, 99.04762%, 3 attempts, best experiment 98.09524%. Source 106/target 105 instructions. Sole extra move initializes keyMode for invalid enums; target reads an undefined saved register for that case. Defined switch variants were restored.
|
||||
- `pdm_part_is_master_boot_sector`, 86.5%, 60 attempts, best experiment 88.86905%. Source 86/target 84 instructions. Source frame 0x40 saves three GPRs; target frame 0x30 saves two. Endian byte loads and pointer/index allocation differ. Best structural variants still have 14 structural differences.
|
||||
- `pdm_part_get_start_sector`, 82.56159%, 6 attempts, best experiment 84.76087%. Both 276 instructions with aligned 0x2e0 frame. Primary/extended partition word byte grouping, operand evaluation order, and scalar lifetimes differ. Loop and inline-boundary variants did not match.
|
||||
- `__InitParams`, 69.9127%, 6 attempts, best experiment 97.81746%. Both 126 instructions and 0x30 frame. Explicit history stores schedule before conversions, and comparison/gradient scheduling differs. History-loop and period variants reached 97.81746% but retained 16 positional differences.
|
||||
- `AESiEncryptBlock`, 60.348103%, 6 attempts, best experiment 64.99367%. Both 158 instructions and 0x40 frame. State setup, table lookup/rotation scheduling, and XOR temporary lifetimes differ. Structural and declaration variants remained non-exact.
|
||||
- `AESiDecryptBlock`, 61.49004%, 3 attempts, best experiment 65.09164%. Source 249/target 251 instructions with 0x40 frame. Initial key base, inverse-mix XOR dependencies, round indexing, and table state lifetimes differ. Closest key-base variant had 251 instructions but remained non-exact.
|
||||
|
||||
Changed source and local commits:
|
||||
|
||||
- [src/keyboard/tiPcKeyboard.cpp](/mnt/drive2/projects/wii-ipl-workers/sol-high/src/keyboard/tiPcKeyboard.cpp:2114), `bab40302` and `2dae31dd`. Pressed/released modifier update lifetimes match; updateInput preserves its existing exact code.
|
||||
- [libs/RVL_SDK/src/axfx/AXFXChorusExp.c](/mnt/drive2/projects/wii-ipl-workers/sol-high/libs/RVL_SDK/src/axfx/AXFXChorusExp.c:200), `6feffd9d`. Native signed64 LFO products, fixed sample traversal, and local declaration order match.
|
||||
- [libs/RevoEX/src/net/aes.c](/mnt/drive2/projects/wii-ipl-workers/sol-high/libs/RevoEX/src/net/aes.c:236), `af77141a`. Byte-to-bit round calculation and named substitution byte terms match.
|
||||
- `tools/decomp-assist/sol-high-structural-oct2.attempts.jsonl`, `tools/decomp-assist/sol-high-structural-oct2.final-gate.txt`, and this report contain the attempt and validation evidence.
|
||||
|
||||
Uncertainty: tiPcKeyboard retains 16 unscored .bss data bytes. Objdiff gives that section no match percentage. No linking/configuration changes were made.
|
||||
|
||||
Final gate unit lines copied verbatim:
|
||||
|
||||
```
|
||||
[src/keyboard/tiPcKeyboard] objdiff: code 28064/28484 data 18548/18564 functions 140/141 fuzzy 99.9860 linked code 0
|
||||
[src/keyboard/tiPcKeyboard] instruction-exact functions: 140/141
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] objdiff: code 2276/3716 data None/None functions 18/20 fuzzy 93.5985 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] instruction-exact functions: 18/20
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] objdiff: code 2180/2684 data 48/48 functions 6/7 fuzzy 94.3502 linked code 0
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] instruction-exact functions: 6/7
|
||||
[libs/RevoEX/src/net/aes] objdiff: code 1116/2752 data 2800/2800 functions 7/9 fuzzy 76.8445 linked code 0
|
||||
[libs/RevoEX/src/net/aes] instruction-exact functions: 7/9
|
||||
GATE PASS
|
||||
```
|
||||
@@ -144,6 +144,55 @@ class JumpTableTests(unittest.TestCase):
|
||||
with self.assertRaisesRegex(ValueError, "does not target"):
|
||||
tool.reference_tables(reference, reference.symbol("dispatch"), "jumptable_test")
|
||||
|
||||
def test_discovers_compiler_and_custom_names(self):
|
||||
for name in ("@123", "scCharacterDispatch"):
|
||||
reference = fixture()
|
||||
reference.symbols[1] = replace(reference.symbols[1], name=name)
|
||||
tables = tool.reference_tables(reference, reference.symbol("dispatch"))
|
||||
self.assertEqual([(t.name, entries) for t, entries in tables],
|
||||
[(name, [0x10, 0x20, 0x30])])
|
||||
|
||||
def test_custom_table_can_include_function_entry(self):
|
||||
reference = fixture((0, 0x10, 0x20), source=True)
|
||||
tables = tool.reference_tables(reference, reference.symbol("dispatch"))
|
||||
self.assertEqual(tables[0][1], [0, 0x10, 0x20])
|
||||
|
||||
def test_function_entry_callback_array_is_not_auto_selected(self):
|
||||
reference = fixture((0, 0, 0), source=True)
|
||||
fn = reference.symbol("dispatch")
|
||||
self.assertEqual(tool.reference_tables(reference, fn), [])
|
||||
self.assertEqual(tool.reference_tables(reference, fn, "@123")[0][1],
|
||||
[0, 0, 0])
|
||||
|
||||
def test_single_pointer_requires_explicit_name(self):
|
||||
reference = fixture((0x10,), source=True)
|
||||
fn = reference.symbol("dispatch")
|
||||
self.assertEqual(tool.reference_tables(reference, fn), [])
|
||||
self.assertEqual(tool.reference_tables(reference, fn, "@123")[0][1], [0x10])
|
||||
|
||||
def test_custom_table_requires_data_object(self):
|
||||
reference = fixture(source=True)
|
||||
reference.symbols[1] = replace(reference.symbols[1], kind="STT_NOTYPE")
|
||||
self.assertEqual(tool.reference_tables(reference, reference.symbol("dispatch")), [])
|
||||
reference.symbols[1] = replace(reference.symbols[1], kind="STT_OBJECT")
|
||||
reference.sections[2] = (".text", 0x1000)
|
||||
self.assertEqual(tool.reference_tables(reference, reference.symbol("dispatch")), [])
|
||||
|
||||
def test_custom_table_with_missing_or_external_entry_is_not_selected(self):
|
||||
for entries in ((0x10, 0x20, 0x80), (0x10, 0x20, 0x30)):
|
||||
reference = fixture(entries, source=True)
|
||||
if entries[-1] == 0x30:
|
||||
del reference.relocations[2][0x48]
|
||||
self.assertEqual(tool.reference_tables(reference, reference.symbol("dispatch")), [])
|
||||
|
||||
def test_auto_custom_table_still_detects_swapped_entries(self):
|
||||
reference = fixture(source=True)
|
||||
source = fixture((0x20, 0x10, 0x30), source=True, table_offset=0x90)
|
||||
with patch.object(tool, "read_object", side_effect=[source, reference]):
|
||||
with contextlib.redirect_stdout(io.StringIO()) as output:
|
||||
self.assertEqual(tool.main(["unused", "dispatch"]), 1)
|
||||
self.assertIn("@123: 1/3 entries match", output.getvalue())
|
||||
|
||||
def test_cli_exit_codes(self):
|
||||
for source, expected_status in [(fixture(source=True), 0),
|
||||
(fixture((0x20, 0x10, 0x30), source=True), 1)]:
|
||||
|
||||
Reference in New Issue
Block a user