cverif 0.1.0

Verifies that compiled machine code faithfully matches its C source
Documentation
//! Debug helper: parse C files and print the functions found.
fn main() {
    let paths: Vec<std::path::PathBuf> = std::env::args().skip(1).map(Into::into).collect();
    match cverif::c::parse_files(&paths, &Default::default()) {
        Ok(p) => {
            for f in &p.funcs {
                let blocks = f.body.as_ref().map(|b| b.blocks.len());
                println!(
                    "{} params={} locals={} blocks={:?}",
                    f.name,
                    f.nparams,
                    f.locals.len(),
                    blocks
                );
            }
            println!("{} globals, {} coverage points", p.globals.len(), p.ncov);
        }
        Err(e) => {
            eprintln!("{e}");
            std::process::exit(1);
        }
    }
}