pub struct Opts {}Expand description
Which strategies are on. The default has all of them on.
Fields§
§delta_hash: boolIncremental state and EXCEPT hashes from cached node
hashes. Off (-delta-hash): every successor’s key is recomputed from
the leaves of every variable, and EXCEPT re-sums every entry.
early_probe: boolProbe the seen set before materializing. Off (-early-probe):
every successor is interned first.
hashcons: boolHash-consing and equality by handle. Off (-hashcons).
symbolic_member: boolSymbolic membership in a..b, [D -> R], SUBSET S, record
sets and Seq(S). Off (-symbolic-member): the set is materialized
(up to 2^24 elements; beyond that the run is refused).
member_index: boolBounded hash indexes for repeated default normalized membership.
Off (-member-index); TLC comparisons always use the original search.
memo: boolKeyed result caches. Off (-memo).
step_memo: boolKeyed result caches for the cached bodies of step predicates
(implied actions, action constraints), keyed on the primed and
unprimed variables they read. Off (-step-memo).
primed_memo: boolKeyed result caches for zero-arity definitions that a
next-state action reads primed, keyed on the primed and unprimed
variables they read, used only once those primed variables are
assigned. Off (-primed-memo).
parent_skip: boolParent-delta skip of invariant and constraint conjuncts. Off
(-parent-skip).
arena: boolThe pooled arena. Off (-arena): one heap allocation per
transient value.
eager: boolArguments substituted or evaluated eagerly where the demand-order
rule allows. Off (-eager): every argument is a thunk.
fold: boolConstant folding of closed constant-level subexpressions. Off
(-fold).
memo_cap: usizeThe byte cap of each worker’s memo tables (not a switch; the engine derives it from the run’s memory budget).
Implementations§
Source§impl Opts
impl Opts
Sourcepub fn parse(text: &str) -> Result<Self, String>
pub fn parse(text: &str) -> Result<Self, String>
Parses a comma-separated list of -name (off) and +name (on).
let o = dive_core::Opts::parse("-memo,+delta-hash").unwrap();
assert!(!o.memo && o.delta_hash && o.arena);
assert!(dive_core::Opts::default().memo);
assert!(dive_core::Opts::parse("-inline-subst").is_err());§Errors
An unknown switch. -inline-subst is reported as not applicable:
the core binds substitutions dynamically, never by inlining.