pub struct VerifyRun<'tcx> {
tcx: TyCtxt<'tcx>,
repeat_strategy: RepeatStrategy,
mode: VerifyMode,
skip_invariant: bool,
crate_filter: Option<String>,
module_filter: Option<String>,
debug_contracts: bool,
}Expand description
Analysis pass that runs verification and emits function-level summaries.
Fields§
§tcx: TyCtxt<'tcx>§repeat_strategy: RepeatStrategy§mode: VerifyMode§skip_invariant: bool§crate_filter: Option<String>§module_filter: Option<String>§debug_contracts: boolImplementations§
Source§impl<'tcx> VerifyRun<'tcx>
impl<'tcx> VerifyRun<'tcx>
Sourcepub fn new(
tcx: TyCtxt<'tcx>,
repeat_strategy: RepeatStrategy,
mode: VerifyMode,
skip_invariant: bool,
crate_filter: Option<String>,
module_filter: Option<String>,
debug_contracts: bool,
) -> Self
pub fn new( tcx: TyCtxt<'tcx>, repeat_strategy: RepeatStrategy, mode: VerifyMode, skip_invariant: bool, crate_filter: Option<String>, module_filter: Option<String>, debug_contracts: bool, ) -> Self
Create the default verify pass for the current compiler type context.
fn repeat_rounds_for_target( &self, target: &FunctionTarget<'tcx>, ) -> (usize, Vec<usize>)
Sourcefn run_invless_sequences(&self, targets: &[FunctionTarget<'tcx>])
fn run_invless_sequences(&self, targets: &[FunctionTarget<'tcx>])
With --skip-invariant, 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_def_id: DefId, con_target: &FunctionTarget<'tcx>, con_id: DefId, mut_ids: &[DefId], )
Source§impl<'tcx> VerifyRun<'tcx>
impl<'tcx> VerifyRun<'tcx>
fn print_contracts_debug(&self, targets: &[FunctionTarget<'tcx>])
fn has_printable_contracts(&self, target: &FunctionTarget<'tcx>) -> bool
fn print_contract_lines( &self, prefix: &str, branch: &str, call: &str, meaning: &str, )
fn print_target_contracts( &self, target: &FunctionTarget<'tcx>, branch: &str, cont: &str, ) -> bool
fn resolve_arg_names_with_types( &self, def_id: DefId, ) -> (Vec<String>, Option<String>)
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> !RefUnwindSafe for VerifyRun<'tcx>
impl<'tcx> !Send for VerifyRun<'tcx>
impl<'tcx> !Sync for VerifyRun<'tcx>
impl<'tcx> !UnwindSafe for VerifyRun<'tcx>
impl<'tcx> DynSend for VerifyRun<'tcx>
impl<'tcx> DynSync for VerifyRun<'tcx>
impl<'tcx> Freeze for VerifyRun<'tcx>
impl<'tcx> Unpin for VerifyRun<'tcx>
impl<'tcx> UnsafeUnpin 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
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> ⓘ
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