docs/mobile: record retail 1.0.2.1 recomp_census.py measurements (RECOMP-CENSUS-RETAIL-EXE) #1776

Open
github-bot wants to merge 2 commits from github-bot/gh-1776 into main AGit
Owner

@⁠Ch1mpleo on GitHub · 2026-11-25 11:53 UTC · original
Ch1mpleo:docs/recomp-census-retail-exe → main · +40 −7 · 2 files · 2 commits · open

Claimed in the coordination issue as: RECOMP-CENSUS-RETAIL-EXE (#1608)

Depends on: #1121

What and why

Records the full ools/recomp_census.py measurement over the retail 1.0.2.1 executable (game_scarlett_master.exe, 120,181,760 bytes) in docs/mobile.md (completing Next step 1) and updates the summary row in docs/README.md. Aggregate counts only; no game bytes or code.

Running the full census on main (caa13dad) hits the truncated VEX-prefix IndexError fixed by #1121; applying #1121 in an out-of-tree scratch copy lets the census complete cleanly over all 299,257 .pdata functions (21,518,571 decoded instructions, 84.77% translated).

Tested

  • python -I tools/recomp_census.py (with #1121 applied in an out-of-tree scratch copy) on game_scarlett_master.exe (Windows 11 x64, Python 3.14.7): 299,257 .pdata functions, 21,518,571 instructions, 84.77% covered, 0 crashes.
  • python -I scripts/check_no_game_data.py docs/mobile.md docs/README.md (exit 0).
  • python -I tests/test_recomp_census.py (11/11 OK).

GPUs tested: n/a (CPU-only documentation & census measurement)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled
    eeds rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a — documentation only)
**@⁠Ch1mpleo** on GitHub · 2026-11-25 11:53 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1776) `Ch1mpleo:docs/recomp-census-retail-exe` → `main` · +40 −7 · 2 files · 2 commits · open Claimed in the coordination issue as: RECOMP-CENSUS-RETAIL-EXE (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) Depends on: #1121 ### What and why Records the full ools/recomp_census.py measurement over the retail 1.0.2.1 executable (game_scarlett_master.exe, 120,181,760 bytes) in docs/mobile.md (completing Next step 1) and updates the summary row in docs/README.md. Aggregate counts only; no game bytes or code. Running the full census on main (caa13dad) hits the truncated VEX-prefix IndexError fixed by #1121; applying #1121 in an out-of-tree scratch copy lets the census complete cleanly over all 299,257 .pdata functions (21,518,571 decoded instructions, 84.77% translated). ### Tested - python -I tools/recomp_census.py (with #1121 applied in an out-of-tree scratch copy) on game_scarlett_master.exe (Windows 11 x64, Python 3.14.7): 299,257 .pdata functions, 21,518,571 instructions, 84.77% covered, 0 crashes. - python -I scripts/check_no_game_data.py docs/mobile.md docs/README.md (exit 0). - python -I tests/test_recomp_census.py (11/11 OK). GPUs tested: n/a (CPU-only documentation & census measurement) AI-assisted: yes ### Checklist - [x] Based on current main and merges cleanly (a conflicting pull request is labeled eeds rebase). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a — documentation only)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:04:34 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 18:56 UTC · original

Reviewed 07f59ca73: ran tests/test_recomp_census.py (11 OK on both trees) plus probes over the census tooling: the table is internally consistent, but decode:op_90 is a bare nop (0x90 is missing from PRIMARY: the xchg loop starts at 0x91) and the census stops decoding a function there, so the instruction count and coverage undercount the affected functions - worth a word in the doc. Blocker: "at main bcaa13dad with PR #1121 (X64-RECOMP-VEX-BOUNDS)" is unreadable - #1121 in this repository is the merged tools/hashdict.py PR, the cited patch is under no branch or commit in this clone, and main cannot regenerate the run (a "c4 " function tail aborts the census with IndexError, and vzeroupper desyncs as a 4-byte v77). Please cite the real branch/PR or attach the patch.

AI-assisted review.

Recommendation: Fix first

**@⁠PierreEbele** on GitHub · 2026-11-25 18:56 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1776#issuecomment-7171614581) Reviewed 07f59ca73: ran tests/test_recomp_census.py (11 OK on both trees) plus probes over the census tooling: the table is internally consistent, but decode:op_90 is a bare nop (0x90 is missing from PRIMARY: the xchg loop starts at 0x91) and the census stops decoding a function there, so the instruction count and coverage undercount the affected functions - worth a word in the doc. Blocker: "at main bcaa13dad with PR #1121 (X64-RECOMP-VEX-BOUNDS)" is unreadable - #1121 in this repository is the merged tools/hashdict.py PR, the cited patch is under no branch or commit in this clone, and main cannot regenerate the run (a "c4 <one byte>" function tail aborts the census with IndexError, and vzeroupper desyncs as a 4-byte v77). Please cite the real branch/PR or attach the patch. AI-assisted review. **Recommendation:** Fix first
Author
Owner

@⁠Ch1mpleo on GitHub · 2026-11-25 19:39 UTC · original

Thanks @⁠PierreEbele — linked PR #1121 (old-pr/9855) explicitly and added a note in docs/mobile.md that decode:op_90 is bare nop (0x90) and stops per-function decoding early, so affected functions are undercounted.

**@⁠Ch1mpleo** on GitHub · 2026-11-25 19:39 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1776#issuecomment-7172586027) Thanks @⁠PierreEbele — linked [PR #1121](https://git.gtahub.st/github/ubiquitarianism--leonida/pulls/1121) (`old-pr/9855`) explicitly and added a note in `docs/mobile.md` that `decode:op_90` is bare `nop` (`0x90`) and stops per-function decoding early, so affected functions are undercounted.
github-bot force-pushed github-bot/gh-1776 from e7c56e48f5 to 4e37fb8191 2026-11-26 11:24:50 +00:00 Compare
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1776/head:github-bot/gh-1776'
git switch 'github-bot/gh-1776'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1776'
git switch 'github-bot/gh-1776'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1776'
git switch 'github-bot/gh-1776'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1776'
git switch 'main'
git merge --squash 'github-bot/gh-1776'
git switch 'main'
git merge --ff-only 'github-bot/gh-1776'
git switch 'main'
git merge 'github-bot/gh-1776'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.