Skip to main content

cells_to_gates

Function cells_to_gates 

Source
pub fn cells_to_gates(
    cells: &[LoopCell],
    result: Src,
    width: u32,
) -> Option<Word>
Expand description

An ALU/select cell body lowered STRAIGHT INTO THE SHARED GATE DAG at width. Linear in the CELLS: a cell read by three later cells is built once and shared by pointer, where the tree form copies it three times (and their readers copy those, and so on — fib.lg’s 75-cell body unfolds to 1 657 763 tree nodes from a few hundred).