Skip to main content

VerifyDriver

Struct VerifyDriver 

Source
pub(crate) struct VerifyDriver<'tcx> {
    tcx: TyCtxt<'tcx>,
    config: Rc<VerifyConfig>,
}
Expand description

Collects verification targets, schedules checks, and emits their summaries.

Fields§

§tcx: TyCtxt<'tcx>

Compiler context for target collection and verification.

§config: Rc<VerifyConfig>

Verification options shared with target preparation and call handling.

Implementations§

Source§

impl<'tcx> VerifyDriver<'tcx>

Source

pub(crate) fn new(tcx: TyCtxt<'tcx>, config: Rc<VerifyConfig>) -> Self

Create a verification pass with the selected options.

Source

fn max_repeat_for_target(&self, target: &FunctionTarget<'tcx>) -> usize

Source

fn run_invless_sequences(&self, targets: &[FunctionTarget<'tcx>])

With --no-invariant-target, generate verification sequences for each read method that chain through constructors and mutators.

Produces sequences like:

  • constructor → method
  • constructor → mutator → method

Each sequence propagates the constructor’s #[rapx::requires] through the mutator chain to serve as entry assumptions for the read method. TODO: This sequence analysis is incomplete; it currently considers at most one mutator.

Source

fn build_virtual_target( &self, read_target: &FunctionTarget<'tcx>, read_def_id: DefId, con_id: DefId, mut_ids: &[DefId], ) -> FunctionTarget<'tcx>

Source

fn run_repeat_rounds( &self, target: &FunctionTarget<'tcx>, max_repeat: usize, all_results: &mut Vec<PropertyCheckResult<'tcx>>, limits: &mut VerificationLimits, )

Run verify_checkpoints at every repeat depth up to max_repeat.

Source

fn verify_and_emit_sequence( &self, read_def_id: DefId, con_target: &FunctionTarget<'tcx>, con_id: DefId, mut_ids: &[DefId], )

Trait Implementations§

Source§

impl<'tcx> Analysis for VerifyDriver<'tcx>

Source§

fn run(&mut self)

Collect targets, run each function verifier, and emit a compact summary.

For each target, extracts paths with increasing postfix-repeat levels from 0 to the configured maximum, running verification at each level. Earlier rounds use fewer loop unrollings; later rounds incrementally add deeper paths.

Auto Trait Implementations§

§

impl<'tcx> !DynSend for VerifyDriver<'tcx>

§

impl<'tcx> !DynSync for VerifyDriver<'tcx>

§

impl<'tcx> !RefUnwindSafe for VerifyDriver<'tcx>

§

impl<'tcx> !Send for VerifyDriver<'tcx>

§

impl<'tcx> !Sync for VerifyDriver<'tcx>

§

impl<'tcx> !UnwindSafe for VerifyDriver<'tcx>

§

impl<'tcx> Forget for VerifyDriver<'tcx>

§

impl<'tcx> Freeze for VerifyDriver<'tcx>

§

impl<'tcx> Move for VerifyDriver<'tcx>

§

impl<'tcx> Unpin for VerifyDriver<'tcx>

§

impl<'tcx> UnsafeUnpin for VerifyDriver<'tcx>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V