pub fn circuit_table<T>(
circuit: &Circuit<T>,
index_inputs: impl IntoIterator<Item = T>,
) -> (Circuit<T>, Vec<Option<T>>, Vec<Vec<OutputEntry<T>>>)Expand description
Generates circuit table. Circuit that for given index inputs calculates outputs
for all combinations of index inputs for this circuit. index_inputs is list of
index inputs. Function reduces duplication circuits.
Function returns circuit, list of mapping old inputs to new inputs and list of all mappings of outputs for all index inputs combinations.