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,
}
Expand description
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
Implementations§
Trait Implementations§
Source§impl HeapSpace for Parser
impl HeapSpace for Parser
Source§fn heap_space(&self) -> usize
fn heap_space(&self) -> usize
The number of bytes allocated on the heap that this owns.
impl StructuralPartialEq for Parser
Auto Trait Implementations§
impl Freeze for Parser
impl RefUnwindSafe for Parser
impl Send for Parser
impl Sync for Parser
impl Unpin for Parser
impl UnwindSafe for Parser
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