Concrete memory layout of native wanted-query grouping #
Main definitions #
Wanted.tableAddress: computed selected-mask table after the readonly query input.Wanted.Parameters: scalar register equalities used by all three grouping passes.Wanted.wordBudget: an original-input-derived sufficient bound for unsigned words.
All layout definitions are numeric specifications of actual address instructions. Neither the layout nor the parameter record contains a run, time bound or assumed solver.
The original length word, four headers and two words per wanted position.
The forward table follows a complete 2^L-word inverse table.
Tile counts follow both computed tables.
One immutable prefix offset per tile, followed by one terminal offset.
Mutable stable-scatter cursors follow the immutable prefix offsets.
One actual query code per original occurrence.
Every code retains its original input position in the adjacent array.
One past both grouped output arrays.
This sufficient budget covers the reused parameter kernels as well as all routing and grouping arithmetic. It depends only on the original four scalar parameters.
Persistent scalar register values after actual table relocation and allocation.
The reused table kernel's actual scalar contents.
- route : RouteParameters L m N (tableAddress L Q) x
The one-query router's actual scalar contents.
Original query input starts after its four scalar headers.
Number of positions, retaining repetitions.
Allocated tile counts.
Immutable prefix offsets.
Mutable cursor addresses.
Grouped query codes.
Original-position permutation.
Actual tile count.
The entire readonly original prefix.
One past the allocated arrays.
The exact scalar register footprint shared by the grouping passes.
Persistent scalar contracts survive preservation of their concrete registers.
Persistent scalar contracts survive any bounded execution that syntactically preserves
parameterRegisters.