Struct batsat::core::Solver

source ·
pub struct Solver<Cb: Callbacks> { /* private fields */ }
Expand description

The main solver structure

A Solver object contains the whole state of the SAT solver, including a clause allocator, literals, clauses, and statistics.

It is parametrized by Callbacks

Implementations

Create a new solver with the given options

Temporary access to the callbacks

Temporary access to the callbacks

Interrupt search asynchronously

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Creates a new SAT variable in the solver. If ‘decision’ is cleared, variable will not be used as a decision variable (NOTE! This has effects on the meaning of a SATISFIABLE result). Read more
Create a new variable with the default polarity
Add a clause to the solver. Returns false if the solver is in an UNSAT state. Read more
Search for a model that respects a given set of assumptions (With resource constraints).
Simplify the clause database according to the current top-level assigment. Currently, the only thing done here is the removal of satisfied clauses, but more things can be put here. Read more
Query model for var Read more
Query model for lit
Query whole model Read more
Value of this literal if it’s assigned at level 0, or UNDEF otherwise
Print some current statistics to standard output.
Return unsat core (as a subset of assumptions). Read more
Does this literal occur in the unsat-core? Read more
Does this variable occur in the unsat-core? Read more
Obtain the slice of literals that are proved at level 0. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.