Initialized signed weights to native residue classes #
The flat input is an unsigned (n,p) header followed by the signed encodings of the three
n×n weight matrices. Native arithmetic allocates a residue array, class counts and disjoint
query blocks. The existing signed residue kernel processes every weight before the class scanner
reads the A–B residues. Neither residues nor class/layout tables are input certificates.
Main definitions #
ResidueClasses.input: the mixed unsigned-header/signed-weight encoding.ResidueClasses.programAt: the same preparation at a fixed caller header offset.ResidueClasses.program: fixed thirty-two-register native preparation.ResidueClasses.addressBound: explicit arithmetic and allocation bound.
Main results #
ResidueClasses.exec_at: callable execution from a fixed caller header.ResidueClasses.exec_input: initialized execution, residues, class counts, queries and frame.
Header cursor and class-scanner source register.
Instances For
Class-scanner side register.
Instances For
Signed-residue source register.
Instances For
Signed-residue destination register.
Instances For
Signed-residue length register.
Instances For
Signed modulus and subsequent class-count pointer register.
Instances For
Class-scanner query pointer register.
Instances For
Class-scanner modulus register.
Instances For
Unsigned side length.
Instances For
Unsigned positive modulus.
Instances For
Start of the signed weights.
Instances For
Start of all three unsigned residue matrices.
Instances For
Start of the computed class-count array.
Instances For
Start of the class query blocks.
Instances For
Area of one weight matrix.
Instances For
Constant one, preserved by both callees.
Instances For
A fitting value covering every allocation endpoint and temporary for a caller header.
The adjacent header cells contain n,p, followed by the three signed matrices.
Instances For
The standard input places its n,p header immediately after the machine's length cell.
Instances For
The existing signed residue conversion, including unsigned decoding of each remainder.
Instances For
Reuse the complete native class scanner.
Instances For
Read a fixed caller header and compute all array bases, lengths and the encoded modulus. The offset is a code parameter; the complete ET caller uses one fixed input format.
Instances For
Read the standard initialized input header.
Instances For
Deliver the five actual scanner arguments after residue conversion.
Instances For
Native setup, reduction and enumeration for a fixed caller header.
Instances For
All setup, reduction and enumeration is native code.
Instances For
Changing the fixed header offset changes constants but not the instruction graph.
Fixed instruction graph, independent of dimensions and physical width.
Callable residue/class preparation from a concrete caller header and signed matrix words.
The fixed offset selects the adjacent n,p cells; no initialized-memory shape is assumed outside
that payload. The cost and output frame include every setup, signed reduction and class scan.
Read the input header, compute all three residue matrices and enumerate the A–B queries.
The signed width is w, and execution uses the existing signed compiler's w+2 unsigned width.
The cost includes every header, reduction, argument-delivery and class-scan instruction; the
final halt is excluded. This subroutine does not choose a prime or solve an instance.