Native initialized-input Chan–He preprocessing program #
The complete finite instruction program first executes the native frontend and parameter computation. It builds the prime bitmap by actual trial division, computes concrete stack and output-table reservations, and loads and traverses every actual six-word frontend descriptor. The ternary reservation is computed by a native multiplication loop, not supplied by a caller.
This module defines the executable program. PreprocessingInput, PreprocessingWidth and
PreprocessingTime prove initialized-input execution, derived width and charged global bounds.
Main definitions #
program: one finite 128-register program per fixed magnitude exponent.flatProgram: the complete native program with its final count-returning halt.loadRoot,forest: actual descriptor loads and the outer native root loop.
Main results #
not_readsWidth: runtime physical width never controls the program's computation.size_program: code size depends only on the fixed exponent.
The code and layout computations are original. Output metadata is unsigned; payload words use the existing signed encoding. No solver, collision, primality or operation-count oracle is used.
Saved frontend descriptor base.
Saved number of roots.
Index of the next root.
The computed recursion fuel shared by all roots.
The computed original-input magnitude.
The computed candidate-prime bound.
The computed label-bit parameter.
Common packed length in words, retained as unsigned output metadata.
One-past-end frontend address; the shared prime bitmap begins here.
Six words per frontend root descriptor.
Outer-controller constant one.
Outer-controller constant zero.
Descriptor-loading address temporary.
Computed ternary-tree reservation.
Remaining reservation multiplications.
Reserved number of unsigned output pointers.
Setup constant, first seven and then three.
The constant four converts packed words to groups.
Initial heap frontier, above the complete stack and pointer-table reservations.
The complete 15-register prime builder runs in the low registers.
Save every frontend/parameter output that the reused traversal registers will overwrite.
Deliver the actual native prime-table inputs.
Compute the traversal ABI and concrete stack reservation, retaining the outer metadata.
One actual multiplication and decrement per ternary-reservation level.
Compute 3^(fuel+1) by a finite native loop.
Reserve all output pointers before the initial fresh heap frontier.
Load all six descriptor words in their actual length/pointer order, with the shared fuel.
Traverse the actually loaded root, then advance the actual descriptor index.
Enumerate every frontend root, including the exact empty and multiplicity boundary roots.
Complete native preprocessing after the native initialized-input frontend.
One finite native program per fixed magnitude exponent, independent of input length/width.
Complete flat native program; it returns the unsigned output count.
Physical width never determines radix passes, prime candidates, recursion fuel or code.
The finite controller adds a fixed code suffix to the exponent-dependent frontend.
Only the current index and address scratch among registers 109–127 change during a root.