pub fn generate(
        &mut self,
        input: &mut Unstructured<'_>,
        default_fuel: Option<u32>,
    ) -> arbitrary::Result<wasm_smith::Module> {
        let mut module = wasm_smith::Module::new(self.module_config.config.clone(), input)?;

        if let Some(default_fuel) = default_fuel {
            module.ensure_termination(default_fuel);
        }

        Ok(module)
    }
/// Uses this configuration and the supplied source of data to generate
/// a wasm module.
///
/// If a `default_fuel` is provided, the resulting module will be configured
/// to ensure termination; as doing so will add an additional global to the module,
/// the pooling allocator, if configured, will also have its globals limit updated.
Uses this configuration and the supplied source of data to generate
a wasm module.

If a `default_fuel` is provided, the resulting module will be configured
to ensure termination; as doing so will add an additional global to the module,
the pooling allocator, if configured, will also have its globals limit updated.
Uses this configuration and the supplied source of data to generate a wasm module . If a ` default_fuel ` is provided the resulting module will be configured to ensure termination ; as doing so will add an additional global to the module the pooling allocator if configured will also have its globals limit updated .
pub fn generate(
        &mut self,
        input: &mut Unstructured<'_>,
        default_fuel: Option<u32>,
    ) -> arbitrary::Result<wasm_smith::Module> {
        let mut module = wasm_smith::Module::new(self.module_config.config.clone(), input)?;
        if let Some(default_fuel) = default_fuel {
            module.ensure_termination(default_fuel);
        }
        Ok(module)
    }
pub fn generate ( & mut self , input : & mut Unstructured < ' _ > , default_fuel : Option < u32 > , ) -> arbitrary :: Result < wasm_smith :: Module > { let mut module = wasm_smith :: Module :: new ( self . module_config . config . clone ( ) , input ) ? ; if let Some ( default_fuel ) = default_fuel { module . ensure_termination ( default_fuel ) ; } Ok ( module ) }
Uses this configuration and the supplied source of data to generate
a wasm module.
Uses this configuration and the supplied source of data to generate a wasm module .
&mut self
input
&mut Unstructured<'_>
default_fuel
Option<u32>
&mut self
input
&mut Unstructured<'_>
default_fuel
Option<u32>