mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:30:53 +01:00
[PR #1656] vint_diff: restore globals, validate hardware oracle/shrink results and CLI options, and tighten RefError checks #1670
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1670
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1656
Author: @IlyassRS3
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/vint-diff-oracle-cli-and-ref📝 Commits (1)
92ae998vint_diff: restore globals, validate oracle/shrink results and CLI options, and enforce RefError checks📊 Changes
2 files changed (+170 additions, -12 deletions)
View changed files
📝
tests/test_vint_diff.py(+98 -0)📝
tools/vint_diff.py(+72 -12)📄 Description
Item ID:
VINT-DIFF-ORACLE-CLI-AND-REFClaim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7155721833
Summary
tools/vint_diff.py): restoreKNOWNandLITERALSinmain()'sfinallyblock (and handle--list-ops/--self-testbefore mutating them) so in-process runs do not leak flags.hw_run()validatingoracle is not Noneand exact result-list length across bothrun_suite()and shrinkcheck_fn(preventingAttributeError/IndexErroron empty or short oracle responses); validate 4-word tuples/lists in_diff(); catch transientSkipduring final shrunk recheck and fall back toproblem.--hw-arch,--build, and--work.RefErrorinstead of silent misbehaviour or rawValueError/KeyError/IndexError/TypeErroron invalid operands, non-pair 64-bit sources/destinations, unknown or malformedv_cmp_*/v_cndmask_b32_e64/s_mov_b32forms, wrong source counts, and unsupportedop_selmodifiers (non-OP_SEL_OPS, wrong length, or non-zero trailing selector bits).tests/test_vint_diff.py): add 4 regression tests covering all of the above.Verification
python3 -W error -I tests/test_vint_diff.py -v: 29 passed, 0 failed (2.718s).main: ran=29, failures=9, errors=7.python3 -m compileall -q tools/vint_diff.py tests/test_vint_diff.py,python3 -I tests/test_text_write_line_endings.py,python3 -I scripts/check_no_game_data.py: all pass.AI-assisted: yes
GPUs tested: none (CPU unit tests with stubbed hardware oracle and
spirv_mini_interp; no game data)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.