tooling: add call chains, skipped calls and unexported callees to the CPU fuzz test #1122
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1129"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T01:34:57Z.
Change
Follow-up to #1164 (Refs #446). Rebased onto the merged baseline; only what
cpu_aot_fuzz_callsdoes not cover is kept, as a separate--area chainsintools/fuzz_cpu.py. It reuses the baseline'sFunction,NONVOLATILEandparthelpers, its check and report path and its per-area mutant table.POP, two arms) including to framed callees.cpu_aot_fuzz_chainsinCMakeLists.txt: native, default-translated and/O2-translated exports, 10,016 comparisons at seed0xCA11.--mutantpasses RDX before RCX at every direct call and tail jump (the baseline plants a retargeted call). The test fails unless that build differs from native.docs/experiments.md: one new paragraph; one sentence in the baseline paragraph points to it.AI-assisted. Fixtures are generated from the seed; nothing is copied from elsewhere.
Verification
ctest --preset dev -R '^cpu_aot_fuzz_chains$'on Windows with MSVC (no Windows machine). CI is the first MSVC run.llvm-ml-19,lld-link-19, MinGW g++ (-O0 and -O2) and Wine against the native DLL, on this merge commit: chains total=5008 bad=0 for each build; mutant bad=3711 of 5008 in 13 of 16 functions. The baselinecallsarea at the same commit is unchanged: bad=0, mutant 313 of 7825.python3 -B tools/fuzz_cpu.py emit 0xCA11 16 a b --area chainsfails withinvalid choice: 'chains'; with this change it succeeds.python3 -B tests/docs_links_check.py: 15 files, 263 links.docs/experiments.mdgrows by 2 lines (one paragraph).Evidence and follow-up
Assumption: MinGW and Wine exercise the same translated C++, not MSVC code generation. Recursion, indirect calls, dead reads, fault equivalence and RBP frames remain follow-ups.
Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T02:15:22Z.
Review: COMMENTED
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
f8407ade24ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T02:15:26Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
f8407adℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T02:17:53Z.
Fixed the bot finding: the
cpu_aot_fuzz_callsparagraph indocs/experiments.mdhad lost the$of its regex to shell expansion, which also pulled in a duplicated copy of the document tail. The file is restored from the base with only the three intended paragraphs changed (4 insertions, 2 changes against base), the command readsctest --preset dev --no-tests=error -R '^cpu_aot_fuzz_calls$' -V, and origin/main is merged in (no force). Code and CMake were not touched by this fix. AI-assisted.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T02:23:53Z.
Thanks for restoring the docs and keeping the work distinct. We are reviewing the direct-call baseline in #1164 first. The native/default-/O2 comparison and its wrong-callee control passed locally. Once the baseline lands, your deeper call chains, skipped conditional calls and unexported callees would be useful as a focused follow-up. Please keep those cases and any distinct control that catches something the baseline misses.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T02:45:47Z.
Thanks, that sounds right. Once #1164 is on main I will rebase this branch as a focused follow-up: deeper call chains, skipped conditional calls, unexported callees, and any control that catches something the direct-call baseline misses. I will drop whatever #1164 already covers so the diff stays small.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T02:53:22Z.
AI-assisted. Rebased onto the merged #1164 (merge commit, no force push). What is left is only what the baseline does not cover: callees that no export names, call chains up to four calls long that nest two levels deep, calls skipped behind a conditional, and tail jumps to framed callees, as a separate
--area chains/cpu_aot_fuzz_chains. The distinct control is swapped call arguments, not a retargeted call. The baseline's own generators, clobber callee and controls are not duplicated; the new code reuses its helpers. Local Linux run (Wine): clean 0 of 5008 mismatches, mutant 3711 of 5008, baselinecallsunchanged. Waiting for the 4 CI jobs.Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T02:15:22Z.
Code review location:
docs/experiments.md; line 2102Following the new reproduction instructions leaves the shell with an unterminated quote: the command stops at
-R '^cpu_aot_fuzz_callsrather than providing the complete regex argument (ctest --helpdocuments-R <regex>as “Run tests matching regular expression”). The-Vfragment appears at line 7025, after an accidental 4,920-line copy of the remaining experiment notes, which then repeat starting at line 7028. Remove the extra copy and restorectest --preset dev --no-tests=error -R '^cpu_aot_fuzz_calls$' -Vso contributors can reproduce the new experiment without navigating duplicated documentation.AGENTS.md reference: AGENTS.md:L153-L156
Useful? React with 👍 / 👎.