fn lc_num_times_used(&self, count_sinks: bool) -> Vec<usize> {
        let mut num_times_used = vec![0; self.lc_map.len()];

        // Iterate over every lc in constraint system
        for (index, lc) in self.lc_map.iter() {
            num_times_used[index.0] += count_sinks as usize;

            // Increment the counter for each lc that this lc has a direct dependency on.
            for &(_, var) in lc.iter() {
                if var.is_lc() {
                    let lc_index = var.get_lc_index().expect("should be lc");
                    num_times_used[lc_index.0] += 1;
                }
            }
        }
        num_times_used
    }
/// Count the number of times each LC is used within other LCs in the
/// constraint system
Count the number of times each LC is used within other LCs in the
constraint system
Count the number of times each LC is used within other LCs in the constraint system
fn lc_num_times_used(&self, count_sinks: bool) -> Vec<usize> {
        let mut num_times_used = vec![0; self.lc_map.len()];
        // Iterate over every lc in constraint system
        for (index, lc) in self.lc_map.iter() {
            num_times_used[index.0] += count_sinks as usize;
            // Increment the counter for each lc that this lc has a direct dependency on.
            for &(_, var) in lc.iter() {
                if var.is_lc() {
                    let lc_index = var.get_lc_index().expect("should be lc");
                    num_times_used[lc_index.0] += 1;
                }
            }
        }
        num_times_used
    }
fn lc_num_times_used ( & self , count_sinks : bool ) -> Vec < usize > { let mut num_times_used = vec ! [ 0 self lc_map len ( ) ] ; // Iterate over every lc in constraint system for ( index , lc ) in self . lc_map . iter ( ) { num_times_used [ index . 0 ] += count_sinks as usize ; // Increment the counter for each lc that this lc has a direct dependency on. for & ( _ , var ) in lc . iter ( ) { if var . is_lc ( ) { let lc_index = var . get_lc_index ( ) . expect ( " " ) ; num_times_used [ lc_index . 0 ] += 1 ; } } } num_times_used }
Count the number of times each LC is used within other LCs in the
constraint system
Count the number of times each LC is used within other LCs in the constraint system
&self
count_sinks
bool
&self
count_sinks
bool