pub struct VerifyRun<'tcx> {
tcx: TyCtxt<'tcx>,
postfix_repeat: usize,
mode: VerifyMode,
crate_filter: Option<String>,
module_filter: Option<String>,
}Expand description
Analysis pass that runs verification and emits function-level summaries.
Fields§
§tcx: TyCtxt<'tcx>§postfix_repeat: usize§mode: VerifyMode§crate_filter: Option<String>§module_filter: Option<String>Implementations§
Source§impl<'tcx> VerifyRun<'tcx>
impl<'tcx> VerifyRun<'tcx>
Sourcepub fn new(
tcx: TyCtxt<'tcx>,
postfix_repeat: usize,
mode: VerifyMode,
crate_filter: Option<String>,
module_filter: Option<String>,
) -> Self
pub fn new( tcx: TyCtxt<'tcx>, postfix_repeat: usize, mode: VerifyMode, crate_filter: Option<String>, module_filter: Option<String>, ) -> Self
Create the default verify pass for the current compiler type context.
Sourcefn run_invless_sequences(&self, targets: &[FunctionTarget<'tcx>])
fn run_invless_sequences(&self, targets: &[FunctionTarget<'tcx>])
In invless mode, 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.
fn build_virtual_target( &self, read_target: &FunctionTarget<'tcx>, read_def_id: DefId, con_id: DefId, mut_ids: &[DefId], ) -> FunctionTarget<'tcx>
fn verify_and_emit_sequence( &self, _read_target: &FunctionTarget<'tcx>, read_def_id: DefId, con_target: &FunctionTarget<'tcx>, con_id: DefId, mut_ids: &[DefId], _seq_index: usize, )
Trait Implementations§
Source§impl<'tcx> Analysis for VerifyRun<'tcx>
impl<'tcx> Analysis for VerifyRun<'tcx>
Source§fn run(&mut self)
fn run(&mut self)
Collect verify targets, run the staged driver, 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> Freeze for VerifyRun<'tcx>
impl<'tcx> !RefUnwindSafe for VerifyRun<'tcx>
impl<'tcx> !Send for VerifyRun<'tcx>
impl<'tcx> !Sync for VerifyRun<'tcx>
impl<'tcx> Unpin for VerifyRun<'tcx>
impl<'tcx> !UnwindSafe for VerifyRun<'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
Mutably borrows from an owned value. Read more
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>
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 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>
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