Documentation

CslibFrontier.Algorithms.WordRAM.VariableElimination.FlattenScope

Pure Scope Deduplication, sumScopeLen, and flattenScopes #

Computes total concatenated bucket-scope length (sumScopeLen) and copies all bucket scopes into a contiguous flat array (flattenScopes), paired with the foldr characterization of bucketOutScope.

Main definitions #

Output scope materialization (buildOutScope) #

Pure deduplicating insertion step avoiding the eliminated variable x.

Arguments (bucketPtr, bucketLen) for sumScopeLen.

Instances For

    Compute the total length of all scopes inside a bucket descriptor array.

    Arguments for concatenating all bucket scopes into a scratch buffer.

    Instances For

      Concatenate every factor scope in a bucket into one flat word buffer.