#6553 rejects --limit below 1 in the argparse type (positive_int) and #6696 added a
second check after parse_args with its own message, which the new test asserts. Both
landed, so argparse exits first with "argument --limit: must be at least 1" and the
later check never runs: test_limit_must_be_positive failed on main.
Keep the type check, give it the longer reason from the removed check, and assert the
message argparse prints. Exit code stays 2.
Tested: python -I tests/test_ptr_truncation_census.py (12 tests OK); --limit 0, -1 and
abc print the argparse error.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
shader_meta only looks at a global_* whose base is an SGPR pair, and the corpus has none: its 10,548 global_*
instructions (530 shaders) address through VGPR pairs. The census now counts them, the s_getpc_b64 users and the
access kind of every untruncated site, and docs/d3d12_vulkan.md says that VGPR-held global_* addresses are, with
V# bases, outside what the count can see, instead of reporting "no global_* base truncated".
Co-Authored-By: Claude Opus <noreply@anthropic.com>
tools/ptr_truncation_census.py runs rdna2spirv.translate() up to its shader_meta.collect call, writes no SPIR-V,
and records every base pair shader_meta's truncates_high / ptr32_lo rule looks at: the access (descriptor-table
load, scalar load, global_*), the low and the high half. Over package 1.0.2.1 every truncated pointer is the base
of a 4/8/16-dword descriptor load from a user SGPR (86,036 in 25,865 shaders, at most 5 per shader); no global_*
or 1-2 dword s_load base is truncated. docs/d3d12_vulkan.md replaces "some"/"many" with those counts.
Controls from the same pass: 26,503 shaders per stage as docs/design.md, user_sgpr_census.py on its index gives
section 3.5's 9,830 / 1,660 / 2,364 / 7,977, and 204 sampled shaders match a full translate's build_meta.
Co-Authored-By: Claude Opus <noreply@anthropic.com>