Actual parameter-selecting native ExactTriangle code #
One fixed program consumes the existing host ABI: raw n,F,AB,BC,AC,workspace in registers0–5, and returns a raw Boolean in6 while restoring0–5. The real dyadic parameter block occupies144–159, the actual selector occupies the low160, and the complete callable solver retains its640 bank. The original F is saved in143; original dimension/pointers/workspace stay in600,604–607.
The flag computed by the parameter program dispatches to the real exhaustive block below the fast geometry threshold. Every save, delivery, selection, return and restoration is actual code. No parameters, selected prime, layout, solver, execution or time certificate is an input. These stage definitions are internal execution-composition interfaces.
Original raw side length, restored on return.
Original raw positive magnitude bound, restored on return.
Original canonical-signed AB pointer, restored on return.
Original canonical-signed BC pointer, restored on return.
Original canonical-signed AC pointer, restored on return.
Original dirty workspace boundary, restored on return.
Raw original-weight ET Boolean.
Saved original magnitude bound; both selector and callable solver preserve it.
Actual disjoint placement of the complete16-register parameter code.
The complete concrete selector occupies the low160 registers.
The existing exhaustive program occupies the low24 registers.
Save all original host arguments and deliver n to the real parameter block.
The entire actual parameter computation, not a supplied exponent or geometry flag.
Preserve actual D,g and deliver original arrays to the actual selector.
Complete native prime enumeration and actual cyclic-Strassen counting.
Deliver the actual selected prime to the actual complete callable solver.
Deliver original arguments to the existing small-input exhaustive block.
Real exhaustive small-input solving, including raw result transfer.
Actual selector delivery, complete selection and complete fixed-prime solving.
Restore every original host argument and deliver the actual raw Boolean.
One finite runtime program computes parameters/prime and decides original ExactTriangle. The fast flag is read before the selected-prime delivery overwrites its initial zero argument.