[][src]Struct varisat::checker::Checker

pub struct Checker<'a> where
    'a: 'a, 
{ ctx: Box<Context<'a>>, }

A checker for unsatisfiability proofs in the native varisat format.

Fields

ctx: Box<Context<'a>>

Methods

impl<'a> Checker<'a>[src]

pub fn new() -> Checker<'a>[src]

Create a new checker.

pub fn add_clause(&mut self, clause: &[Lit]) -> Result<(), CheckerError>[src]

Adds a clause to the checker.

pub fn add_formula(&mut self, formula: &CnfFormula) -> Result<(), CheckerError>[src]

Add a formula to the checker.

pub fn add_dimacs_cnf<impl io::Read>(
    &mut self,
    input: impl io::Read
) -> Result<(), Error> where
    impl io::Read: Read
[src]

Reads and adds a formula in DIMACS CNF format.

Using this avoids creating a temporary CnfFormula.

pub fn add_processor(&mut self, processor: &'a mut (dyn ProofProcessor + 'a))[src]

Add a ProofProcessor.

This has to be called before loading any clauses or checking any proofs.

pub fn add_transcript(
    &mut self,
    processor: &'a mut (dyn ProofTranscriptProcessor + 'a)
)
[src]

Add a ProofTranscriptProcessor.

This has to be called before loading any clauses or checking any proofs.

pub fn check_proof<impl io::Read>(
    &mut self,
    input: impl io::Read
) -> Result<(), CheckerError> where
    impl io::Read: Read
[src]

Checks a proof in the native Varisat format.

Trait Implementations

impl<'a> SelfChecker for Checker<'a>[src]

impl<'a> Default for Checker<'a>[src]

Auto Trait Implementations

impl<'a> !Send for Checker<'a>

impl<'a> !Sync for Checker<'a>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<Reference, Outer, OuterFieldType, Inner> HasPart<Nested<Outer, Inner>> for Reference where
    Inner: Part,
    Outer: Part<PartType = Field<OuterFieldType>>,
    OuterFieldType: HasPart<Inner, RawTarget = OuterFieldType> + PartialRefTarget + ?Sized,
    Reference: HasPart<Outer> + ?Sized