MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / test_static_infer

Function test_static_infer

src/program/infer/static_infer.rs:772–786  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

770
771#[test]
772fn test_static_infer() -> Result<()> {
773 crate::config::Config::init_test("c-ares");
774 let deopt = Deopt::new("c-ares".to_string())?;
775 let mut constraints = APIConstraints::new();
776
777 let programs = crate::deopt::utils::read_sort_dir(&deopt.get_library_succ_seed_dir()?)?;
778
779 for program in programs {
780 println!("program: {program:?}");
781 infer_constraints(&program, &deopt, &mut constraints)?;
782 }
783 let refined = refine_constraints(constraints);
784 println!("{refined:#?}");
785 Ok(())
786}

Callers

nothing calls this directly

Calls 4

read_sort_dirFunction · 0.85
refine_constraintsFunction · 0.85
infer_constraintsFunction · 0.70

Tested by

no test coverage detected