Executable correction subroutines #
The highest-bit call accepts an ordinary physical register and initializes its own bank. The boundary and second-rank calls charge all register transfers. No call changes memory.
Main definitions #
NodeProgram.msbBank,NodeProgram.highest: register bank and code for the highest-bit call.NodeProgram.boundaryInputs,NodeProgram.boundaries: register transfers and boundary code.NodeProgram.secondQuery: second sketch query with charged register transfers.
Main results #
NodeProgram.exec_highest: the concrete highest-bit code on the selected exclusive or.NodeProgram.exec_boundaries: both correction endpoints and the query bit.NodeProgram.exec_secondQuery: a full second sketch query with charged transfers.
References #
Disjoint workspace for the complete multiword highest-bit program.
Copy the physical input, run the actual highest-bit program, and copy its scalar result.
The 200000-instruction MSB bound plus its two actual caller copies.
Prepare two inputs and compute both correction boundaries.
The boundary call includes three transfer instructions and ten arithmetic instructions.
Transfer a full word to the compressor, make a sketch query and return the rank.
Both caller copies and all 119 sketch-query instructions are charged.
Both boundary words are physical words, including a differing bit at w - 1.