Documentation

CslibFrontier.Algorithms.WordRAM.ExactTriangle.RecordProduct.Program

Calling a queried product from an actual prepared record #

The low 64 producer registers are retained. Register 64 selects an actual record ordinal; the native code computes its stride, reads its six words and places the original raw matrices and interleaved query coordinates at the actual producer heap end. The complete callable product occupies a separate 163-register bank. Its existing matrix-input code, not this adapter, performs raw-zero/one to canonical-signed doubling.

The logarithm is computed by NatLog.program. Under D=4^m, dividing its binary result by two recovers m exactly. No layout, logarithm, execution or solver certificate is a runtime input. These definitions are internal stages of the complete record consumer.

@[reducible, inline]

Actual record ordinal supplied by the outer caller.

@[reducible, inline]

Absolute result pointer.

@[reducible, inline]

Actual producer heap end, and the callee's local-memory base.

@[reducible, inline]

Original padded middle dimension.

@[reducible, inline]

Original outer dimension.

@[reducible, inline]

Computed selected record pointer.

@[reducible, inline]

Loaded residue and piece metadata, retained without reinterpreting them.

@[reducible, inline]

Loaded piece index.

@[reducible, inline]

Loaded interleaved query pointer.

@[reducible, inline]

Loaded number of query occurrences.

@[reducible, inline]

Loaded left-matrix pointer.

@[reducible, inline]

Loaded right-matrix pointer.

@[reducible, inline]

Computed size of either matrix block.

@[reducible, inline]

Computed combined matrix-block length.

@[reducible, inline]

Recovered inner depth.

@[reducible, inline]

Computed tensor level, nineteen times the inner depth.

@[reducible, inline]

Computed original callee payload length.

@[reducible, inline]

Constant one.

@[reducible, inline]

Constant two.

@[reducible, inline]

Record header length.

@[reducible, inline]

Tensor-level multiplier.

@[reducible, inline]

Original callee scalar header length.

@[reducible, inline]

Adapter address scratch.

@[reducible, inline]

Temporary source pointer, also the logarithm input.

@[reducible, inline]

Temporary destination pointer, also the logarithm result.

@[reducible, inline]

Temporary copy length.

The logarithm and copy routines share an adapter-local temporary register bank.

All seven registers of the real array-copy routine are relocated together.

The complete callable product bank is disjoint from producer and adapter registers.

Compute the record pointer and read every actual descriptor field.

Recover the exact power-of-four exponent with the existing charged binary logarithm.

Write the complete original local input header, including its length word.

Deliver real source and destination pointers for the left-matrix copy.

Preserve each query occurrence's two original raw coordinates, in its original order.

Real copying, with every address calculation, load/store and loop instruction charged.

Three actual copies; no catalogue or virtual-window snapshot is made.

Runtime memory rebasing is provided by the callee; renaming moves only its registers.

Runtime preparation prefix, useful for admitted decoder/copy tests without the full solver.

One selected actual producer record, including all copying and the complete native callee.

One fixed finite native program, independent of dimensions, record ordinal and word width.