Charged quadrant-pointer computation #
The controller's matrix-pointer fields are in the high bank, and the computed helper arguments are in the low bank. The static quadrant number selects finite code; its runtime offset multiplication and address addition are ordinary charged instructions.
theorem Cslib.Algorithms.WordRAM.Strassen.exec_quadrant {w t : ℕ} (base dst : Fin 64) (x : WordRAM.Data 64) (hbt : base ≠ Reg.temporary) (ht : t < 4) (hw : WordRAM.Fits w (x.regs base + 4 * x.regs Reg.quarter + 4)) :
Compute one of the four actual contiguous-quadrant pointers, preserving memory and every register except the chosen low argument and the offset temporary.