Documentation

Complexity.Algorithms.WordRAM.ThreeSum.ChanHe.PreprocessingProgram

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 #

Main results #

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.

@[reducible, inline]

Saved frontend descriptor base.

Instances For
    @[reducible, inline]

    Saved number of roots.

    Instances For
      @[reducible, inline]

      Index of the next root.

      Instances For
        @[reducible, inline]

        The computed recursion fuel shared by all roots.

        Instances For
          @[reducible, inline]

          The computed original-input magnitude.

          Instances For
            @[reducible, inline]

            The computed candidate-prime bound.

            Instances For
              @[reducible, inline]

              The computed label-bit parameter.

              Instances For
                @[reducible, inline]

                Common packed length in words, retained as unsigned output metadata.

                Instances For
                  @[reducible, inline]

                  One-past-end frontend address; the shared prime bitmap begins here.

                  Instances For
                    @[reducible, inline]

                    Six words per frontend root descriptor.

                    Instances For
                      @[reducible, inline]

                      Outer-controller constant one.

                      Instances For
                        @[reducible, inline]

                        Outer-controller constant zero.

                        Instances For
                          @[reducible, inline]

                          Descriptor-loading address temporary.

                          Instances For
                            @[reducible, inline]

                            Computed ternary-tree reservation.

                            Instances For
                              @[reducible, inline]

                              Remaining reservation multiplications.

                              Instances For
                                @[reducible, inline]

                                Reserved number of unsigned output pointers.

                                Instances For
                                  @[reducible, inline]

                                  Setup constant, first seven and then three.

                                  Instances For
                                    @[reducible, inline]

                                    The constant four converts packed words to groups.

                                    Instances For
                                      @[reducible, inline]

                                      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

                                            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

                                                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.