Native query-chunk descriptors #
For one computed query class, the program writes consecutive triples (residue, pair pointer, pair count). It computes the last chunk's shorter length and advances over the actual two-word
coordinate representation. The input query list is preserved.
This adapts the chunk loop in the pinned Theorem 17 chunk builder.
Main definitions #
Chunks.program: fixed fourteen-register descriptor writer.
Main results #
Chunks.exec: exact chunk count, descriptor readback and a memory frame.
Query pair array base.
Descriptor output base.
Actual number of query pairs.
Positive maximum pairs per chunk.
Class residue.
Consumed pair count.
Number of written chunks.
Constant one.
Number of words per descriptor.
Current chunk length.
Output address.
Current pair pointer.
Compute a nonempty chunk, write its descriptor and advance both counters.
Initialize all loop state with charged instructions.
Fixed code and no physical-width reads.
Write the exact nonempty chunks of one class. Descriptor k names the query slice beginning
at pair k * capacity, with its final length truncated to the class size. All other memory is
preserved, so placing the query array outside the descriptor block preserves its coordinates.
The final halt is excluded from the 17 total + 7 bound.