[−][src]Struct batsat::core::Solver
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
Methods
impl<Cb: Callbacks> Solver<Cb>
[src]
pub fn new(opts: SolverOpts, cb: Cb) -> Self
[src]
Create a new solver with the given options and default callbacks
impl<Cb: Callbacks> Solver<Cb>
[src]
pub fn new_with(opts: SolverOpts, cb: Cb) -> Self
[src]
Create a new solver with the given options and callbacks.
pub fn cb_mut(&mut self) -> &mut Cb
[src]
Temporary access to the callbacks
pub fn cb(&self) -> &Cb
[src]
Temporary access to the callbacks
pub fn dimacs_model(&self) -> SolverPrintDimacs<Cb>
[src]
pub fn interrupt_async(&self)
[src]
Interrupt search asynchronously
Trait Implementations
impl<Cb: Callbacks + Default> Default for Solver<Cb>
[src]
impl<Cb: Callbacks> SolverInterface for Solver<Cb>
[src]
fn new_var(&mut self, upol: lbool, dvar: bool) -> Var
[src]
fn new_var_default(&mut self) -> Var
[src]
fn var_of_int(&mut self, v_idx: u32) -> Var
[src]
fn add_clause_reuse(&mut self, clause: &mut Vec<Lit>) -> bool
[src]
fn solve_limited_th<Th: Theory>(
&mut self,
th: &mut Th,
assumps: &[Lit]
) -> lbool
[src]
&mut self,
th: &mut Th,
assumps: &[Lit]
) -> lbool
fn simplify_th<Th: Theory>(&mut self, th: &mut Th) -> bool
[src]
fn value_var(&self, v: Var) -> lbool
[src]
fn value_lit(&self, v: Lit) -> lbool
[src]
fn get_model(&self) -> &[lbool]
[src]
fn is_ok(&self) -> bool
[src]
fn num_vars(&self) -> u32
[src]
fn num_clauses(&self) -> u64
[src]
fn num_conflicts(&self) -> u64
[src]
fn num_propagations(&self) -> u64
[src]
fn num_decisions(&self) -> u64
[src]
fn num_restarts(&self) -> u64
[src]
fn value_lvl_0(&self, lit: Lit) -> lbool
[src]
fn print_stats(&self)
[src]
fn unsat_core(&self) -> &[Lit]
[src]
fn unsat_core_contains_lit(&self, lit: Lit) -> bool
[src]
fn unsat_core_contains_var(&self, v: Var) -> bool
[src]
fn proved_at_lvl_0(&self) -> &[Lit]
[src]
fn simplify(&mut self) -> bool
[src]
fn solve_limited(&mut self, assumps: &[Lit]) -> lbool
[src]
Auto Trait Implementations
impl<Cb> RefUnwindSafe for Solver<Cb> where
Cb: RefUnwindSafe,
Cb: RefUnwindSafe,
impl<Cb> Send for Solver<Cb> where
Cb: Send,
Cb: Send,
impl<Cb> Sync for Solver<Cb> where
Cb: Sync,
Cb: Sync,
impl<Cb> Unpin for Solver<Cb> where
Cb: Unpin,
Cb: Unpin,
impl<Cb> UnwindSafe for Solver<Cb> where
Cb: UnwindSafe,
Cb: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,