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.
Instances For
Saved number of roots.
Instances For
Index of the next root.
Instances For
The computed recursion fuel shared by all roots.
Instances For
The computed original-input magnitude.
Instances For
The computed candidate-prime bound.
Instances For
The computed label-bit parameter.
Instances For
Common packed length in words, retained as unsigned output metadata.
Instances For
One-past-end frontend address; the shared prime bitmap begins here.
Instances For
Six words per frontend root descriptor.
Instances For
Outer-controller constant one.
Instances For
Outer-controller constant zero.
Instances For
Descriptor-loading address temporary.
Instances For
Computed ternary-tree reservation.
Instances For
Remaining reservation multiplications.
Instances For
Reserved number of unsigned output pointers.
Instances For
Setup constant, first seven and then three.
Instances For
The constant four converts packed words to groups.
Instances For
Initial heap frontier, above the complete stack and pointer-table reservations.
Instances For
The complete 15-register prime builder runs in the low registers.
Instances For
Save every frontend/parameter output that the reused traversal registers will overwrite.
Instances For
Deliver the actual native prime-table inputs.
Instances For
Compute the traversal ABI and concrete stack reservation, retaining the outer metadata.
Instances For
One actual multiplication and decrement per ternary-reservation level.
Instances For
Compute 3^(fuel+1) by a finite native loop.
Instances For
Reserve all output pointers before the initial fresh heap frontier.
Instances For
Load all six descriptor words in their actual length/pointer order, with the shared fuel.
Instances For
Traverse the actually loaded root, then advance the actual descriptor index.
Instances For
Enumerate every frontend root, including the exact empty and multiplicity boundary roots.
Instances For
Complete native preprocessing after the native initialized-input frontend.
Instances For
One finite native program per fixed magnitude exponent, independent of input length/width.
Instances For
Complete flat native program; it returns the unsigned output count.
Instances For
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.