A finite exhaustive native Exact Triangle callee #
This reference implementation enumerates the actual triples, loads all three encoded matrix
weights, and compares the sums of their positive and negative magnitudes. No solver instruction,
host execution premise or precomputed verdict occurs in its code. It is library code because its
certification witnesses that Host.Callee can be satisfied by a concrete finite program.
Main definitions #
program: one fixed 24-register native triple scan.callee: a concrete certified finite block with charged cubic time and logarithmic width.
This exhaustive native implementation and its certification are original.
Raw number of vertices per part.
Instances For
AB matrix pointer.
Instances For
BC matrix pointer.
Instances For
AC matrix pointer.
Instances For
The free-pointer argument is overwritten by zero after entry.
Instances For
Raw Boolean return value.
Instances For
Next flattened triple.
Instances For
Number of cells per matrix.
Instances For
Number of triples.
Instances For
Loop increment.
Instances For
Sign-and-magnitude radix.
Instances For
First vertex index.
Instances For
Second vertex index.
Instances For
Third vertex index.
Instances For
Actual matrix-load address.
Instances For
The three actual loaded edge words.
Instances For
Sum of positive magnitudes.
Instances For
Sum of negative magnitudes.
Instances For
Magnitude of the current encoded edge.
Instances For
Sign bit of the current encoded edge.
Instances For
Flattened second and third vertex indices.
Instances For
Add one encoded edge to its positive or negative magnitude sum.
Instances For
Compute three indices and load the three corresponding matrix cells.
Instances For
Retain a found zero-weight triangle and advance to the next triple.
Instances For
One fully charged triple scan.
Instances For
Initialize every scratch value used before the first triple.
Instances For
Exhaust all t³ triples using native division/remainder and actual matrix loads.
Instances For
Actual finite cubic-time solver used to inhabit the complete host's callee contract. It preserves all memory, works on arbitrary signed matrices, and never reads physical width.