pub fn run_generation(iterations: usize) {
    env_logger::init();

    let mut valid_programs: u64 = 0;
    for _ in 0..iterations {
        let module =
            ModuleBuilder::new(2, Some(Box::new(generate_bytecode))).materialize_unverified();
        valid_programs += run_verifier(module);
    }

    info!(
        "Total valid: {}, Total programs: {}, Percent valid: {:.2}",
        valid_programs,
        iterations,
        (valid_programs as f64) / (iterations as f64) * 100.0
    );
}
/// Run generate_bytecode for 'iterations' iterations and test each generated module
/// on the bytecode verifier.
Run generate_bytecode for 'iterations' iterations and test each generated module
on the bytecode verifier.
Run generate_bytecode for ' iterations ' iterations and test each generated module on the bytecode verifier .
pub fn run_generation(iterations: usize) {
    env_logger::init();
    let mut valid_programs: u64 = 0;
    for _ in 0..iterations {
        let module =
            ModuleBuilder::new(2, Some(Box::new(generate_bytecode))).materialize_unverified();
        valid_programs += run_verifier(module);
    }
    info!(
        "Total valid: {}, Total programs: {}, Percent valid: {:.2}",
        valid_programs,
        iterations,
        (valid_programs as f64) / (iterations as f64) * 100.0
    );
}
pub fn run_generation ( iterations : usize ) { env_logger :: init ( ) ; let mut valid_programs : u64 = 0 ; for _ in 0 .. iterations { let module = ModuleBuilder :: new ( 2 , Some ( Box :: new ( generate_bytecode ) ) ) . materialize_unverified ( ) ; valid_programs += run_verifier ( module ) ; } info ! ( " " valid_programs iterations ( valid_programs as f64 ) ( iterations as f64 ) 100.0 ) ; }
Run generate_bytecode for 'iterations' iterations and test each generated module
on the bytecode verifier.
Run generate_bytecode for ' iterations ' iterations and test each generated module on the bytecode verifier .
iterations
usize
iterations
usize