Struct cryptominisat::Solver [] [src]

pub struct Solver(_);

Methods

impl Solver
[src]

Create new solver instance

Current number of variables. Call new_var() or new_vars() to increase this.

Current number of variables

Add a xor clause, which enforces that the xor of the unnegated variables equals rhs. It is generally more convienent to use add_xor_literal_clause() instead.

Adds n new variabless.

Solve and return Lbool::True if a solution was found.

Solve under the assumption that the passed literals are true and return Lbool::True if a solution was found.

Returns true/false/unknown status for each variable.

Return conflicts for assumptions that led to unsatisfiability.

Set number of threads used for solving. Must not be called after other methods.

Helper that adds a variable and returns the corresponding literal.

Wrapper which calls get_model() and returns whether the given literal is true.

Wrapper which converts literals to variables and then calls add_xor_clause()

Trait Implementations

impl Drop for Solver
[src]

A method called when the value goes out of scope. Read more