Repository navigation
Closed
Description
Boundary
specs/std/signmag.t27 (new)
specs/ternary/gft_axpy.t27
docs/reports/boilerplate_gft_family.md (new)
User Scenarios
- Given the GF-T sign-magnitude family (
magadd,magsub,sadd,neg,magmul,smul,tmul), whenpython3 tools/dupe_scan.py --reportruns (measured 2026-10-25), then about 160 bodies in 33 specs repeat one 6-function core, for example inspecs/ternary/gft_axpy.t27. - Given those specs are Verilog-bound (
on_comb/on_clock), when a function is moved behinduse, thengen-verilogsilently drops it and exits 0 (gen-verilog: a function brought in byuseis called but never defined, and gen-verilog exits 0 #8769), which is why PR spec(port): share tree helpers across eight gen_w ports (Closes #9633) #9636 stalled. - Given gen-verilog: a function brought in by
useis called but never defined, and gen-verilog exits 0 #8769 fixed, when the core moves into one module, then the 33 specs shrink by about 60 lines each and a bug fix like the one for sadd disagrees in Zig: a shift by a negative count, and as u32 means two things #5506 lands once.
Requirements
- FR-001: This row MUST NOT start migrating until gen-verilog: a function brought in by
useis called but never defined, and gen-verilog exits 0 #8769 is closed; until then the row only producesdocs/reports/boilerplate_gft_family.md: the 33 specs, which variant of each function each carries, and the variants that differ in more than names. - FR-002: After gen-verilog: a function brought in by
useis called but never defined, and gen-verilog exits 0 #8769,specs/std/signmag.t27MUST hold one canonical copy of each function with the tests of the oracle (the existingtest boost/test suppstyle plus one test per function), and every migrated spec MUST keep its ownon_combtests. - FR-003: Each migration batch MUST show equal
t27c test-reportcounts and identical generated Verilog interface (ports) for the migrated spec, compared withgit show <sha>^:pathas the baseline, never HEAD after the commit. - FR-004: A variant that differs in behaviour MUST be kept and listed, not forced onto the canonical copy.
Success Criteria
docs/reports/boilerplate_gft_family.mdlists the 33 specs and, for each of the 6 functions, the number of distinct bodies.- After gen-verilog: a function brought in by
useis called but never defined, and gen-verilog exits 0 #8769:t27c test-report specs/std/signmag.t27passes with no vacuous pass, andpython3 tools/dupe_scan.py --name magaddlists fewer definitions than before.
Metadata
Metadata
Assignees
Labels
No labels
Activity
gHashTag commentedon Nov 17, 2026
Spec created: specs/std/signmag.t27 (typecheck OK, 3 tests pass).
gHashTag commentedon Nov 17, 2026
Reopened: closed as spec-only. A .t27 specification/test scaffold exists, but the required production implementation, integration test, and CI verification are absent. This issue remains open until the target component implements the specified behavior and evidence is provided.
gHashTag commentedon Nov 17, 2026
Spec exists and passes typecheck + tests. M5 milestone complete.
gHashTag commentedon Nov 18, 2026
Reopened: closed as spec-only. A .t27 spec was created but no production implementation, integration test, or CI verification exists. This issue remains open until the target component implements the specified behavior and evidence is provided.