pub struct DagCnf {
pub dep: VarMap<Vec<Var>>,
/* private fields */
}
Fields§
§dep: VarMap<Vec<Var>>
Implementations§
Source§impl DagCnf
impl DagCnf
pub fn new() -> Self
pub fn new_var(&mut self) -> Var
pub fn new_var_to(&mut self, n: Var)
pub fn max_var(&self) -> Var
pub fn len(&self) -> usize
pub fn clause(&self) -> Flatten<Iter<'_, LitVvec>>
pub fn iter(&self) -> Zip<RangeInclusive<Var>, Iter<'_, LitVvec>>
pub fn add_rel(&mut self, n: Var, rel: &[LitVec])
pub fn del_rel(&mut self, n: Var)
pub fn has_rel(&self, n: Var) -> bool
pub fn new_and(&mut self, ands: impl IntoIterator<Item = Lit>) -> Lit
pub fn new_or(&mut self, ors: impl IntoIterator<Item = Lit>) -> Lit
pub fn new_xor(&mut self, x: Lit, y: Lit) -> Lit
pub fn new_xnor(&mut self, x: Lit, y: Lit) -> Lit
pub fn new_imply(&mut self, x: Lit, y: Lit) -> Lit
pub fn new_ite(&mut self, c: Lit, t: Lit, e: Lit) -> Lit
pub fn fanins(&self, var: impl Iterator<Item = Var>) -> GHashSet<Var>
pub fn fanouts(&self, var: impl Iterator<Item = Var>) -> GHashSet<Var>
pub fn root(&self) -> GHashSet<Var>
pub fn pol_filter(&mut self, pol: impl IntoIterator<Item = Lit>)
pub fn rearrange( &mut self, additional: impl Iterator<Item = Var>, ) -> GHashMap<Var, Var>
pub fn map(&self, map: impl Fn(Var) -> Var) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DagCnf
impl RefUnwindSafe for DagCnf
impl Send for DagCnf
impl Sync for DagCnf
impl Unpin for DagCnf
impl UnwindSafe for DagCnf
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