first impl

This commit is contained in:
T0b1
2023-04-14 18:18:15 +02:00
parent 993074a974
commit e2061d2e04
5 changed files with 998 additions and 52 deletions

View File

@@ -11,6 +11,6 @@ fuzz_target!(|func: Func| {
let _ = env_logger::try_init();
log::trace!("func:\n{:?}", func);
let env = regalloc2::fuzzing::func::machine_env();
let _out =
regalloc2::fuzzing::ion::run(&func, &env, false, false).expect("regalloc did not succeed");
let _out = regalloc2::fuzzing::ion::run(&func, &env, false, false, true)
.expect("regalloc did not succeed");
});

View File

@@ -40,8 +40,8 @@ fuzz_target!(|testcase: TestCase| {
let _ = env_logger::try_init();
log::trace!("func:\n{:?}", func);
let env = regalloc2::fuzzing::func::machine_env();
let out =
regalloc2::fuzzing::ion::run(&func, &env, true, false).expect("regalloc did not succeed");
let out = regalloc2::fuzzing::ion::run(&func, &env, true, false, true)
.expect("regalloc did not succeed");
let mut checker = Checker::new(&func, &env);
checker.prepare(&out);

View File

@@ -37,6 +37,6 @@ impl Arbitrary<'_> for TestCase {
}
fuzz_target!(|t: TestCase| {
let cfginfo = CFGInfo::new(&t.f).expect("could not create CFG info");
let cfginfo = CFGInfo::new(&t.f, true).expect("could not create CFG info");
validate_ssa(&t.f, &cfginfo).expect("invalid SSA");
});