Struct DagCnf

Source
pub struct DagCnf {
    pub dep: VarMap<Vec<Var>>,
    /* private fields */
}

Fields§

§dep: VarMap<Vec<Var>>

Implementations§

Source§

impl DagCnf

Source

pub fn lower(&self) -> Cnf

Source§

impl DagCnf

Source

pub fn simplify(&self, frozen: impl Iterator<Item = Var>) -> Self

Source§

impl DagCnf

Source

pub fn var_sim(&mut self, n: Var, value: &mut VarAssign)

Source§

impl DagCnf

Source

pub fn new() -> Self

Source

pub fn new_var(&mut self) -> Var

Source

pub fn new_var_to(&mut self, n: Var)

Source

pub fn max_var(&self) -> Var

Source

pub fn len(&self) -> usize

Source

pub fn clause(&self) -> Flatten<Iter<'_, LitVvec>>

Source

pub fn iter(&self) -> Zip<RangeInclusive<Var>, Iter<'_, LitVvec>>

Source

pub fn add_rel(&mut self, n: Var, rel: &[LitVec])

Source

pub fn del_rel(&mut self, n: Var)

Source

pub fn has_rel(&self, n: Var) -> bool

Source

pub fn new_and(&mut self, ands: impl IntoIterator<Item = Lit>) -> Lit

Source

pub fn new_or(&mut self, ors: impl IntoIterator<Item = Lit>) -> Lit

Source

pub fn new_xor(&mut self, x: Lit, y: Lit) -> Lit

Source

pub fn new_xnor(&mut self, x: Lit, y: Lit) -> Lit

Source

pub fn new_imply(&mut self, x: Lit, y: Lit) -> Lit

Source

pub fn new_ite(&mut self, c: Lit, t: Lit, e: Lit) -> Lit

Source

pub fn fanins(&self, var: impl Iterator<Item = Var>) -> GHashSet<Var>

Source

pub fn fanouts(&self, var: impl Iterator<Item = Var>) -> GHashSet<Var>

Source

pub fn root(&self) -> GHashSet<Var>

Source

pub fn pol_filter(&mut self, pol: impl IntoIterator<Item = Lit>)

Source

pub fn rearrange( &mut self, additional: impl Iterator<Item = Var>, ) -> GHashMap<Var, Var>

Source

pub fn map(&self, map: impl Fn(Var) -> Var) -> Self

Trait Implementations§

Source§

impl Clone for DagCnf

Source§

fn clone(&self) -> DagCnf

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DagCnf

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DagCnf

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Index<Var> for DagCnf

Source§

type Output = [LitVec]

The returned type after indexing.
Source§

fn index(&self, index: Var) -> &Self::Output

Performs the indexing (container[index]) operation. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.