Documentation

CslibFrontier.Algorithms.WordRAM.ThreeSum.Decision.VisitorRelease

Reusing the consumed node's packed tail #

After the actual Convolution consumer returns, one native copy moves the committed frontier to the packed pointer. Every live heavy child and pending ancestor column ends before this pointer. The packed, residue and histogram tail can therefore be overwritten by the next native node. Heavy arrays and their capacity/count cells remain allocated; the shared reserved gap remains.

The emission witness stays anchored before consumption and release. Its heap equation describes the complete node endpoint, whereas the released state has the smaller committed frontier. No total-space or touched-high-water bound for arbitrary callee scratch is asserted here.

Main definitions #

Main results #

Exact full-bank state after copying the consumed packed pointer to the heap register.

The released pointer is already actual metadata; copying it costs one native instruction.

Every register except the actual preprocessing heap is preserved.

The committed allocation advances by exactly the heavy capacities and three count cells.

Releasing a dead tail retains a monotonically advancing persistent heavy-array frontier.

The released frontier stays below the completed node's original allocation endpoint.

Every child, including unchanged parent columns, remains live below the new frontier.

All persistent traversal controls survive; the heap is not one of those fixed parameters.