MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / param

Method param

cranelift/fuzzgen/src/function_generator.rs:1275–1277  ·  view source on GitHub ↗

Generates a random value for config `param`

(&mut self, param: &RangeInclusive<usize>)

Source from the content-addressed store, hash-verified

1273
1274 /// Generates a random value for config `param`
1275 fn param(&mut self, param: &RangeInclusive<usize>) -> Result<usize> {
1276 Ok(self.u.int_in_range(param.clone())?)
1277 }
1278
1279 fn system_callconv(&mut self) -> CallConv {
1280 // TODO: This currently only runs on linux, so this is the only choice

Callers 5

generate_instructionsMethod · 0.45
generate_stack_slotsMethod · 0.45
generate_blocksMethod · 0.45
build_variable_poolMethod · 0.45

Calls 2

OkFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected