#[non_exhaustive]pub struct Config {
pub threads: usize,
pub prove: Config,
pub mba: Option<MbaConfig>,
pub hub: Option<Config>,
pub split: Split,
pub store_nodes: usize,
}Expand description
A session’s configuration, fixed when it is made: every answer and cost is a function of the question and of this.
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.threads: usizeThreads a call may use, the calling thread among them (0: as many as the machine runs at once). The others live for the call only; a session keeps no pool. It changes how long a call takes and nothing else.
prove: ConfigHow every task is decided: the search’s limits, the simplifier’s budget
(prove::Config::simplify_budget, also the budget of a Ask::simplify), and
the rest. Certificates are not kept: a split question’s proof is of its parts.
The limits are each proof’s, not the question’s: a question cut in parts makes
several proofs (its hubs’, unless hub says otherwise, the search for
an assignment its assumptions hold at, its own), each within
max_conflicts and
max_propagations, whichever is reached first,
and each swept first within half of them again. An
Unknown::Budget answer carries what the question’s last
proof did, sweep included; Reply::cost is the sum over all of them.
mba: Option<MbaConfig>The MBA phase of the session’s engines, when not the prover’s own (the default with the opaque-constant sweep).
hub: Option<Config>How a hub is proved constant, when not as prove says: a hub is
one of many, and a search that a question deserves is long for each of them.
split: SplitWhere questions are cut.
store_nodes: usizeThe most nodes the store’s context may hold when a call begins; past it the store is emptied first (its context and every answer). It bounds memory between calls, and changes how long a call takes and nothing else.
Implementations§
Source§impl Config
impl Config
Sourcepub fn with_threads(self, value: usize) -> Self
pub fn with_threads(self, value: usize) -> Self
Sets threads.
Sourcepub fn with_prove(self, value: Config) -> Self
pub fn with_prove(self, value: Config) -> Self
Sets prove.
Sourcepub fn with_split(self, value: Split) -> Self
pub fn with_split(self, value: Split) -> Self
Sets split.
Sourcepub fn with_store_nodes(self, value: usize) -> Self
pub fn with_store_nodes(self, value: usize) -> Self
Sets store_nodes.