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>
impl<'tcx> VerifyDriver<'tcx>
Sourcepub(crate) fn new(tcx: TyCtxt<'tcx>, config: Rc<VerifyConfig>) -> Self
pub(crate) fn new(tcx: TyCtxt<'tcx>, config: Rc<VerifyConfig>) -> Self
Create a verification pass with the selected options.
fn max_repeat_for_target(&self, target: &FunctionTarget<'tcx>) -> usize
Sourcefn run_invless_sequences(&self, targets: &[FunctionTarget<'tcx>])
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 → methodconstructor → 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.
fn build_virtual_target( &self, read_target: &FunctionTarget<'tcx>, read_def_id: DefId, con_id: DefId, mut_ids: &[DefId], ) -> FunctionTarget<'tcx>
Sourcefn run_repeat_rounds(
&self,
target: &FunctionTarget<'tcx>,
max_repeat: usize,
all_results: &mut Vec<PropertyCheckResult<'tcx>>,
limits: &mut VerificationLimits,
)
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.
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>
impl<'tcx> Analysis for VerifyDriver<'tcx>
Source§fn run(&mut self)
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> 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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