diff --git a/compiler/noirc_driver/src/lib.rs b/compiler/noirc_driver/src/lib.rs index b35e2e85019..322c51727ad 100644 --- a/compiler/noirc_driver/src/lib.rs +++ b/compiler/noirc_driver/src/lib.rs @@ -652,6 +652,9 @@ fn compile_contract_inner( } let mut options = options.clone(); + if name == "public_dispatch" { + options.inliner_aggressiveness = 0; + } if let Some(ref name_filter) = options.show_contract_fn { let show = name == *name_filter; diff --git a/tooling/ast_fuzzer/src/lib.rs b/tooling/ast_fuzzer/src/lib.rs index 115c6da2ee8..5276a672218 100644 --- a/tooling/ast_fuzzer/src/lib.rs +++ b/tooling/ast_fuzzer/src/lib.rs @@ -109,14 +109,14 @@ impl Default for Config { ("constrain", 4), ]); let stmt_freqs_brillig = Freqs::new(&[ - ("break", 35), + ("break", 45), ("continue", 25), ("assign", 30), ("if", 10), ("match", 15), - ("for", 30), - ("loop", 30), - ("while", 30), + ("for", 40), + ("loop", 40), + ("while", 40), ("let", 20), ("call", 5), ("print", 15),