pub struct Cdcl {
pub total_conflicts: u64,
/* private fields */
}Expand description
Elinvar’s own conflict-driven solver.
Fields§
§total_conflicts: u64Conflicts over the solver’s life, for statistics.
Implementations§
Trait Implementations§
Source§impl Solver for Cdcl
impl Solver for Cdcl
Source§fn add_clause(&mut self, clause: &[Lit])
fn add_clause(&mut self, clause: &[Lit])
Adds a clause: at least one of its literals is true.
Source§fn solve(&mut self, assumptions: &[Lit], budget: &Budget) -> Solved
fn solve(&mut self, assumptions: &[Lit], budget: &Budget) -> Solved
Solves under assumptions.
Unknown when the budget runs out.Source§fn conflicts(&self) -> u64
fn conflicts(&self) -> u64
Total conflicts spent by this solver, for statistics. Returns
0
when a solver does not report conflict counts.Source§fn unsat_core(&self) -> Vec<Lit>
fn unsat_core(&self) -> Vec<Lit>
After
Solved::Unsat, a subset of the assumptions passed to solve
whose conjunction with the clauses is unsatisfiable. Returns an empty
vector when the clauses alone are unsatisfiable or when a solver does
not extract cores.Source§fn unknown_reason(&self) -> Option<BudgetExhausted>
fn unknown_reason(&self) -> Option<BudgetExhausted>
After
Solved::Unknown, which limit of the Budget ended the search,
if the solver tracks it (N26).Auto Trait Implementations§
impl Forget for Cdcl
impl Freeze for Cdclwhere
*const u8 is !null: Freeze,
PhantomData<Lit>: Freeze,
PhantomData<Vec<Watcher>>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<u32>: Freeze,
PhantomData<bool>: Freeze,
PhantomData<f64>: Freeze,
PhantomData<usize>: Freeze,
impl Move for Cdcl
impl RefUnwindSafe for Cdcl
impl Send for Cdclwhere
RawVecInner: Send,
impl Sync for Cdclwhere
RawVecInner: Sync,
impl Unpin for Cdcl
impl UnsafeUnpin for Cdclwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Lit>: UnsafeUnpin,
PhantomData<Vec<Watcher>>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
PhantomData<bool>: UnsafeUnpin,
PhantomData<f64>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
impl UnwindSafe for Cdclwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more