#[non_exhaustive]pub struct Options {
pub symmetry_breaking: bool,
pub budget: Budget,
pub steps: usize,
pub predicate_length: usize,
pub slicing: bool,
pub no_overflow: bool,
}Expand description
How a search runs.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.symmetry_breaking: boolBreak symmetries (LOGIC.md 12.5). On by default; off for counting.
budget: BudgetThe budget of each solve. There is always one (AGENTS.md law 22).
steps: usizeThe most states a trace may have (LOGIC.md 13.4).
predicate_length: usizeThe most entries the symmetry predicate compares per pair of atoms (LOGIC.md 12.5).
slicing: boolTry a smaller problem with the same verdict before the whole one (DESIGN.md section 7.9). On by default; off, every check is solved whole, which gives the reference answer slicing is compared with.
no_overflow: boolForbid signed integer overflow (noOverflow in Alloy 6.2.0,
A4Options.java): when true, any case whose integer arithmetic overflows
the bitwidth is ruled out. Off by default, matching Alloy’s default.
Implementations§
Source§impl Options
impl Options
Sourcepub fn symmetry_breaking(self, on: bool) -> Options
pub fn symmetry_breaking(self, on: bool) -> Options
The same options with symmetry breaking on or off.
Sourcepub fn predicate_length(self, length: usize) -> Options
pub fn predicate_length(self, length: usize) -> Options
The same options with another length of the symmetry predicate.
Sourcepub fn slicing(self, on: bool) -> Options
pub fn slicing(self, on: bool) -> Options
The same options with slicing on or off (DESIGN.md section 7.9).
Sourcepub fn no_overflow(self, on: bool) -> Options
pub fn no_overflow(self, on: bool) -> Options
The same options with overflow prevention on or off (Alloy noOverflow).