cranelift: CLIF Fuzzer generate multiple blocks
This commit is contained in:
@@ -9,6 +9,13 @@ pub struct Config {
|
||||
/// Number of variables that we allocate per function
|
||||
/// This value does not include the signature params
|
||||
pub vars_per_function: RangeInclusive<usize>,
|
||||
/// Number of blocks that we generate per function.
|
||||
/// This value does not include the entry block
|
||||
pub blocks_per_function: RangeInclusive<usize>,
|
||||
/// Number of params a block should take
|
||||
/// This value does not apply to block0 which takes the function params
|
||||
/// and is thus governed by `signature_params`
|
||||
pub block_signature_params: RangeInclusive<usize>,
|
||||
}
|
||||
|
||||
impl Default for Config {
|
||||
@@ -19,6 +26,8 @@ impl Default for Config {
|
||||
signature_rets: 0..=16,
|
||||
instructions_per_block: 0..=64,
|
||||
vars_per_function: 0..=16,
|
||||
blocks_per_function: 0..=16,
|
||||
block_signature_params: 0..=16,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user