[][src]Struct rate_common::parser::Parser

pub struct Parser {
    pub redundancy_property: RedundancyProperty,
    pub maxvar: Variable,
    pub clause_pivot: Vector<Literal>,
    pub proof_start: Clause,
    pub proof: Vector<ProofStep>,
    pub max_proof_steps: Option<usize>,
    pub verbose: bool,
    pub clause_db: ClauseDatabase,
    pub witness_db: WitnessDatabase,
}

CNF and DRAT/DPR parser.

Fields

redundancy_property: RedundancyProperty

The redundancy property identifying the proof format.

maxvar: Variable

The highest variable parsed so far

clause_pivot: Vector<Literal>

For RAT, the pivot (first literal) for each clause

It is necessary to store this because the clauses will be sorted (and watches will be shuffled).

proof_start: Clause

The first clause that is part of the proof (and not the input formula)

proof: Vector<ProofStep>

The proof steps

max_proof_steps: Option<usize>

How many proof steps we want to parse

verbose: bool

Print diagnostics and timing information

clause_db: ClauseDatabase

Clause store

witness_db: WitnessDatabase

Witness store

Methods

impl Parser[src]

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

Returns true if we are parsing a (D)PR proof.

Trait Implementations

impl Debug for Parser[src]

impl Default for Parser[src]

fn default() -> Parser[src]

Create a new parser.

Note: this allocates the static clause and witness databases, so this should only be called once.

impl HeapSpace for Parser[src]

impl PartialEq<Parser> for Parser[src]

impl StructuralPartialEq for Parser[src]

Auto Trait Implementations

impl RefUnwindSafe for Parser

impl Send for Parser

impl Sync for Parser

impl Unpin for Parser

impl UnwindSafe for Parser

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> HeapSpace for T where
    T: Copy
[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.