Internal register layout, domain buffer predicate, and signed arithmetic wrappers #
Internal register indices across the 47 algorithm registers above the 9-register
WordRAM.Signed bank, the interleaved (mask, size) domain buffer invariant HoldsDom, and
width-fit wrappers around WordRAM.Signed (add, subtract, multiply) at physical word width
w.
Main definitions #
Cslib.Algorithms.WordRAM.TrimmedYates.HoldsDom: interleaved(setMask, card)domain array layout in flat word memory.
Main results #
Cslib.Algorithms.WordRAM.TrimmedYates.mask_fits_of_valueEnvelope:Fits w (valueEnvelope d W)impliesFits w (2 ^ d).Cslib.Algorithms.WordRAM.TrimmedYates.exec_signedAdd,exec_signedSub,exec_signedMul: physical-widthExecWithinwrappers forWordRAM.Signedpreserving registers9 .. 55.
Internal scratch register bank #
Scratch register holding constant 0.
Scratch register holding constant 1.
Saved post-preprocessing bump-allocator high-water mark (qWorkStart).
Current trie root pointer for trie operations.
Bitmask key argument for trie lookup/insert/add.
Encoded payload value read from or written to a trie leaf.
Current trie node pointer while descending bits.
Remaining trie depth counter during descent.
Extracted low bit (0 or 1) during trie descent.
Scratch register for trie node address arithmetic.
Base address of the active coordinate array.
Length of the active coordinate array (d or #C).
Maximum subset cardinality bound for genBounded.
Base address of the enumerated (mask, size) domain buffer.
Current number of (mask, size) pairs in rDomPtr.
Outer coordinate loop index in subset enumeration and extraction.
Inner domain scan index in genBounded.
Snapshot of rDomLen at the start of a genBounded coordinate pass.
Single-bit mask 1 <<< coord for the active coordinate.
General-purpose address and arithmetic scratch register.
Fallback cardinality cutoff (0 in preprocessing, s + 1 in high queries).
Yates pass sign selector (0 for +1 zeta, 1 for -1 Möbius).
Output base address for an array of d + 1 stage trie roots.
Base address of preprocessed fallback stage trie roots.
Current Yates coordinate stage index k ∈ [0, d).
Current domain cell index p ∈ [0, L) during tabulation.
Trie root of stage k read by stage k + 1 (or left factor in tabulateMul).
Fallback trie root for stage k (or right factor in tabulateMul).
Current query loop index q ∈ [0, |Cs|).
Current cell bitmask setMask Y (or active query mask setMask C).
Current cell cardinality #Y.
Base address of the d + 1 preprocessed f-stage trie roots.
Base address of the d + 1 preprocessed g-stage trie roots.
Base address of the d + 1 preprocessed h-stage trie roots.
Base address of the d + 1 per-query high f-stage trie roots.
Base address of the d + 1 per-query high g-stage trie roots.