Actual selector trial-division calls #
Argument delivery and register renaming compose the existing native primality kernel. Every memory cell and every register above the six-register trial bank survive the call.
theorem Cslib.Algorithms.WordRAM.ExactTriangle.PrimeSelection.exec_trial {w : ℕ} (x : WordRAM.Data 160) (hp : 2 ≤ x.regs Reg.cursor) (hfit : WordRAM.Fits w (x.regs Reg.cursor + 2)) :
Test the actual current candidate in at most 7p+7 charged instructions, including
argument delivery. The input must be at least two; no primality bit is supplied.