Struct wasm_smith::SwarmConfig [−][src]
pub struct SwarmConfig { /* fields omitted */ }Expand description
A module configuration that uses swarm testing.
Dynamically – but still deterministically, via its Arbitrary
implementation – chooses configuration options.
Note that we pick only maximums, not minimums, here because it is more
complex to describe the domain of valid configs when minima are involved
(min <= max for each variable) and minima are mostly used to ensure
certain elements are present, but do not widen the range of generated Wasm
modules.
Trait Implementations
The maximum number of imports to generate. Defaults to 100.
The maximum number of functions to generate. Defaults to 100. This includes imported functions. Read more
The maximum number of globals to generate. Defaults to 100. This includes imported globals. Read more
The maximum number of exports to generate. Defaults to 100.
The maximum number of element segments to generate. Defaults to 100.
The maximum number of elements within a segment to generate. Defaults to 100. Read more
The maximum number of data segments to generate. Defaults to 100.
The maximum number of instructions to generate in a function body. Defaults to 100. Read more
The maximum number of memories to use. Defaults to 1. This includes imported memories. Read more
The maximum number of tables to use. Defaults to 1. This includes imported tables. Read more
The maximum, in 64k Wasm pages, of any memory’s initial or maximum size. Defaults to 2^16 = 65536 (the maximum possible for 32-bit Wasm). Read more
The minimum size, in bytes, of all leb-encoded integers. Defaults to 1. Read more
Determines whether the bulk memory proposal is enabled for generating
insructions. Defaults to false. Read more
Determines whether the reference types proposal is enabled for
generating insructions. Defaults to false. Read more
Determines whether the module linking proposal is enabled. Read more
Returns the maximal size of the alias section.
Returns the maximal nesting depth of modules with the module linking proposal. Read more
The minimum number of imports to generate. Defaults to 0. Read more
The minimum number of functions to generate. Defaults to 0. This includes imported functions. Read more
The minimum number of globals to generate. Defaults to 0. This includes imported globals. Read more
The minimum number of exports to generate. Defaults to 0.
The minimum number of element segments to generate. Defaults to 0.
The minimum number of elements within a segment to generate. Defaults to 0. Read more
The minimum number of data segments to generate. Defaults to 0.
The minimum number of memories to use. Defaults to 0. This includes imported memories. Read more
The minimum number of tables to use. Defaults to 0. This includes imported tables. Read more
Whether every Wasm memory must have a maximum size specified. Defaults
to false. Read more
The maximum number of instances to use. Defaults to 10. This includes imported instances. Read more
The maximum number of modules to use. Defaults to 10. This includes imported modules. Read more
Control the probability of generating memory offsets that are in bounds vs. potentially out of bounds. Read more
Determines whether a start export may be included. Defaults to true.
Returns the maximal effective size of any type generated by wasm-smith. Read more
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for SwarmConfigimpl Send for SwarmConfigimpl Sync for SwarmConfigimpl Unpin for SwarmConfigimpl UnwindSafe for SwarmConfigBlanket Implementations
Mutably borrows from an owned value. Read more