pub struct DpllSolver { /* private fields */ }Expand description
DPLL-based propositional SAT solver. Variables are 1..=n. Clauses are lists of literals (positive = var, negative = -var).
Implementations§
Source§impl DpllSolver
impl DpllSolver
Sourcepub fn add_clause(&mut self, clause: Vec<i32>)
pub fn add_clause(&mut self, clause: Vec<i32>)
Add a clause (disjunction of literals).
Auto Trait Implementations§
impl Freeze for DpllSolver
impl RefUnwindSafe for DpllSolver
impl Send for DpllSolver
impl Sync for DpllSolver
impl Unpin for DpllSolver
impl UnsafeUnpin for DpllSolver
impl UnwindSafe for DpllSolver
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