Register banks for fusion-node queries #
The query uses a fixed register file. Header, compression, rank, neighbor, boundary, and multiword highest-bit workspaces occupy disjoint intervals. Explicit copies connect them.
Main definitions #
NodeProgram.registers,NodeProgram.query,NodeProgram.pointer,NodeProgram.out,NodeProgram.argument,NodeProgram.cut,NodeProgram.zero,NodeProgram.chosen,NodeProgram.divergence,NodeProgram.position: physical register count and caller registers.NodeProgram.bank,NodeProgram.headerBank,NodeProgram.compressBank,NodeProgram.rankBank,NodeProgram.neighborBank,NodeProgram.boundaryBank,NodeProgram.parameter,NodeProgram.count: contiguous subroutine register banks and header register indices.NodeProgram.Frame: memory and registers below forty are unchanged by a subroutine.NodeProgram.moves,NodeProgram.moved: charged register copies, with a terminal self-copy, and their resulting state.NodeProgram.Prepared: the actual eighteen loaded header words supply node parameters.
Main results #
NodeProgram.exec_moves,NodeProgram.frame_moved: cost and frame of the charged copies.NodeProgram.exec_bankCall,NodeProgram.regs_extend_bank: a charged call into a register bank, and reading its results back.
References #
Fixed physical register count, independent of width and node occupancy.
Original bounded query.
Original record address.
Final full-key inclusive rank.
Full word to compress, and later the compressed result.
Initial inclusive sketch rank.
Constant zero for control flow.
Selected full key.
Exclusive or of the selected full key and original query.
Highest differing position on a miss.
Contiguous register embeddings are injective.
Eighteen-word header reader, including its pointer and address scratch.
Compression workspace.
Inclusive or strict rank workspace.
Two-neighbor loader and selector.
Correction boundaries.
Header register holding one of the fifteen stored preprocessing words.
Header register holding occupancy.
Memory and caller registers below forty agree. The direction follows execution.
Frame is reflexive.
Frame is transitive.
Extending a subroutine state into a register bank at offset at least 40 preserves Frame.
Copy a finite sequence of registers, charging also a final self-copy of register 39. The final self-copy supplies an executable empty sequence without a special RAM primitive.
Exact result of the charged copies.
A charged call into a register bank at offset at least 40: moves xs copies the
arguments into registers at index at least 40, then the routine runs renamed into the bank.
The cost is the copies plus the routine, and the caller's frame is preserved.
After a bank call, a bank register holds the routine's corresponding register.
Literal values loaded from the actual header. This is a register contract, with no correctness, execution, or rank oracle among its fields.
Actual occupancy word.
Actual fifteen parameter words.
The Prepared header invariant is preserved across Frame transitions.
Caller scratch registers zero through nine are disjoint from the loaded header.