[−][src]Struct varisat::checker::Checker
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]
&mut self,
input: impl io::Read
) -> Result<(), Error> where
impl io::Read: Read,
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]
&mut self,
processor: &'a mut (dyn ProofTranscriptProcessor + 'a)
)
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]
&mut self,
input: impl io::Read
) -> Result<(), CheckerError> where
impl io::Read: Read,
Checks a proof in the native Varisat format.
Trait Implementations
impl<'a> SelfChecker for Checker<'a>
[src]
fn self_check_step(&mut self, step: ProofStep) -> Result<(), CheckerError>
[src]
fn self_check_delayed_steps(&mut self) -> Result<(), CheckerError>
[src]
impl<'a> Default for Checker<'a>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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,
Inner: Part,
Outer: Part<PartType = Field<OuterFieldType>>,
OuterFieldType: HasPart<Inner, RawTarget = OuterFieldType> + PartialRefTarget + ?Sized,
Reference: HasPart<Outer> + ?Sized,
unsafe fn part_ptr(
ptr: *const <Reference as PartialRefTarget>::RawTarget
) -> <<Inner as Part>::PartType as PartType>::Ptr
ptr: *const <Reference as PartialRefTarget>::RawTarget
) -> <<Inner as Part>::PartType as PartType>::Ptr
unsafe fn part_ptr_mut(
ptr: *mut <Reference as PartialRefTarget>::RawTarget
) -> <<Inner as Part>::PartType as PartType>::PtrMut
ptr: *mut <Reference as PartialRefTarget>::RawTarget
) -> <<Inner as Part>::PartType as PartType>::PtrMut