Documentation

CslibFrontier.DataStructure.FusionTree.WordRAM.ReadHeader

Reading a fusion-node header #

All eighteen words of an internal-node header are loaded by a fixed straight-line program. The constant offsets and their address additions are charged. Query-dependent array accesses are separate from this header load.

Main definitions #

Main results #

References #

@[reducible, inline]

Base address of the record, preserved.

@[reducible, inline]

Constant-offset scratch.

All eighteen header loads, with their constant offsets and address additions.

Output state after the eighteen loaded words.

All header words are read in 54 checked standard instructions, counting constants and address additions. The address bound implies that all constant offsets fit as well.

The record base and memory are preserved, and each output register contains its header word.