Native residue-class query lists #
The fixed program calls QueryScan.program for each residue, storing the computed class count
and its row-major coordinate pairs. Each class receives a disjoint block of capacity 2n².
The cost of scanning once per residue is included; no class table is supplied as input.
This adapts the class builder in the pinned Theorem 17 program.
Main definitions #
Classes.program: fixed twenty-register class enumeration.
Main results #
Classes.exec: actual execution, class counts, coordinate readback and a memory frame.
Source residue matrix.
Query-scanner output pointer.
Matrix side.
Query-scanner selected residue.
Query-scanner emitted count.
Array of class counts.
Array of disjoint query blocks.
Number of residues to enumerate.
Current class.
Constant one.
Count address.
Capacity in words of a query block.
Reuse the certified scanner with a disjoint register bank for the outer loop.
Compute the class's output pointer, scan, record its count, and advance.
The modulus is runtime data; the program itself is independent of it.
Fixed instruction graph, with no physical-width reads.
Enumerate every residue class into actual count and coordinate arrays. The source matrix, count array and query capacity blocks must occur in that order. The final halt is excluded.