pub struct VerificationContext { /* private fields */ }Expand description
A verification context for building constraints incrementally.
Provides direct access to Z3 types for constructing custom proofs.
For most use cases, prefer VerificationSession which works with
the higher-level VerifyExpr IR.
Implementations§
Source§impl VerificationContext
impl VerificationContext
Sourcepub fn solver(&self) -> Solver
pub fn solver(&self) -> Solver
Create a new solver for this context.
The solver accumulates assertions and can check their satisfiability.
Sourcepub fn check_valid(
&self,
solver: &Solver,
assertion: &Bool,
) -> VerificationResult
pub fn check_valid( &self, solver: &Solver, assertion: &Bool, ) -> VerificationResult
Check if an assertion is valid (always true).
Uses the standard validity check: P is valid iff ¬P is unsatisfiable. The solver state is preserved using push/pop.
Auto Trait Implementations§
impl Freeze for VerificationContext
impl RefUnwindSafe for VerificationContext
impl Send for VerificationContext
impl Sync for VerificationContext
impl Unpin for VerificationContext
impl UnsafeUnpin for VerificationContext
impl UnwindSafe for VerificationContext
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