[][src]Struct splr::cdb::ClauseDB

pub struct ClauseDB {
    pub bin_watcher: Vec<Vec<Watch>>,
    pub watcher: Vec<Vec<Watch>>,
    pub certified: Vec<(CertifiedRecord, Vec<i32>)>,
    pub during_vivification: bool,
    pub eliminated_permanent: Vec<Vec<Lit>>,
    // some fields omitted
}

Clause database

 use crate::{splr::config::Config, splr::types::*};
 use crate::splr::cdb::ClauseDB;
 let cdb = ClauseDB::instantiate(&Config::default(), &CNFDescription::default());

Fields

bin_watcher: Vec<Vec<Watch>>

container of watch literals for binary clauses

watcher: Vec<Vec<Watch>>

container of watch literals

certified: Vec<(CertifiedRecord, Vec<i32>)>

clause history to make certification

during_vivification: booleliminated_permanent: Vec<Vec<Lit>>

Trait Implementations

impl ActivityIF for ClauseDB[src]

type Ix = ClauseId

type for index

type Inc = ()

an extra parameter for bumping

impl ClauseDBIF for ClauseDB[src]

pub fn detach(&mut self, cid: ClauseId)[src]

Warning

this function is the only function that turns Flag::DEAD on without calling garbage_collect which erases all the DEAD flags. So you must care about how and when garbage_collect is called.

impl Debug for ClauseDB[src]

impl Default for ClauseDB[src]

impl Export<(usize, usize, usize, usize, usize, usize), bool> for ClauseDB[src]

pub fn exports(&self) -> (usize, usize, usize, usize, usize, usize)[src]

exports:

  1. the number of active clauses
  2. the number of binary clauses
  3. the number of binary learnt clauses
  4. the number of clauses which LBDs are 2
  5. the number of learnt clauses
  6. the number of clause reductions
 use crate::{splr::config::Config, splr::types::*};
 use crate::splr::cdb::ClauseDB;
 let cdb = ClauseDB::instantiate(&Config::default(), &CNFDescription::default());
 let (_active, _bi_clause, _bi_learnt, _lbd2, _learnt, _reduction) = cdb.exports();

pub fn mode(&self) -> bool[src]

return the value of use_chan_seok

impl Index<&'_ ClauseId> for ClauseDB[src]

type Output = Clause

The returned type after indexing.

impl Index<ClauseId> for ClauseDB[src]

type Output = Clause

The returned type after indexing.

impl Index<Range<usize>> for ClauseDB[src]

type Output = [Clause]

The returned type after indexing.

impl Index<RangeFrom<usize>> for ClauseDB[src]

type Output = [Clause]

The returned type after indexing.

impl IndexMut<&'_ ClauseId> for ClauseDB[src]

impl IndexMut<ClauseId> for ClauseDB[src]

impl IndexMut<Range<usize>> for ClauseDB[src]

impl IndexMut<RangeFrom<usize>> for ClauseDB[src]

impl Instantiate for ClauseDB[src]

impl LBDIF for ClauseDB[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.