Scripts: follow reachable record-writer fallback calls #2660

Open
github-bot wants to merge 1 commit from github-bot/gh-2660 into main AGit
Owner

@⁠luckyteagirl on GitHub · 2026-11-26 05:16 UTC · original
luckyteagirl:codex/record-writer-fallback-boundary → main · +56 −3 · 2 files · 1 commits · open

The record-writer inspector's fallback slot scan takes the first indirect call in the next 12 listed instructions. That can name an unreachable call after a return or unconditional jump. Walk reachable instructions from the fallback target, following direct branches within the same bounded search.

What is in it

  • Use a visited, bounded queue for fallthrough and direct branch targets; stop at returns, ud2 traps, and unconditional jumps, including common objdump prefix spellings.
  • Add synthetic listings with unreachable decoys, direct and conditional branches to real calls, prefixed returns/jumps, and a self-loop.

Tested

  • On current main b49be183, the new unreachable-decoy cases reported slot 8 instead of unknown. The first patch version missed reachable calls after jumps; independent review caught that and the final fixtures now cover them. Prefixed repz ret and bnd jmp were also verified before finalizing.
  • An additional ud2 decoy fixture failed on the first PR revision and passed after recognizing the trap as a path terminator. On this branch, full Python script discovery passed 26/26 on Windows and Ubuntu under WSL. git diff --check and independent source review passed.

Regression run

  • Not applicable. Only the Python inspector and its synthetic fixture changed.

Not tested

  • A retail binary objdump listing, Rust workspace tests, GPU tests, or title smoke. The search remains a bounded heuristic: it resolves numeric direct branch targets, not indirect jump targets. PR #2049 refactors the same scan and may require a mechanical rebase.

AI use

  • Codex (GPT-6.2 Sol) implemented and tested the change; another Codex Sol agent reviewed the CFG behavior and its revisions.
**@⁠luckyteagirl** on GitHub · 2026-11-26 05:16 UTC · [original](https://github.com/xcl-dev/xcl/pull/2660) `luckyteagirl:codex/record-writer-fallback-boundary` → `main` · +56 −3 · 2 files · 1 commits · open The record-writer inspector's fallback slot scan takes the first indirect call in the next 12 listed instructions. That can name an unreachable call after a return or unconditional jump. Walk reachable instructions from the fallback target, following direct branches within the same bounded search. **What is in it** - Use a visited, bounded queue for fallthrough and direct branch targets; stop at returns, `ud2` traps, and unconditional jumps, including common objdump prefix spellings. - Add synthetic listings with unreachable decoys, direct and conditional branches to real calls, prefixed returns/jumps, and a self-loop. **Tested** - On current main `b49be183`, the new unreachable-decoy cases reported slot 8 instead of unknown. The first patch version missed reachable calls after jumps; independent review caught that and the final fixtures now cover them. Prefixed `repz ret` and `bnd jmp` were also verified before finalizing. - An additional `ud2` decoy fixture failed on the first PR revision and passed after recognizing the trap as a path terminator. On this branch, full Python script discovery passed 26/26 on Windows and Ubuntu under WSL. `git diff --check` and independent source review passed. **Regression run** - Not applicable. Only the Python inspector and its synthetic fixture changed. **Not tested** - A retail binary objdump listing, Rust workspace tests, GPU tests, or title smoke. The search remains a bounded heuristic: it resolves numeric direct branch targets, not indirect jump targets. PR #2049 refactors the same scan and may require a mechanical rebase. **AI use** - Codex (GPT-6.2 Sol) implemented and tested the change; another Codex Sol agent reviewed the CFG behavior and its revisions.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:14:50 +00:00
This pull request can be merged automatically.
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/2660/head:github-bot/gh-2660'
git switch 'github-bot/gh-2660'

Merge

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