Skip to main content

VerifyConfig

Struct VerifyConfig 

Source
pub struct VerifyConfig {
    pub prepare_targets: bool,
    pub postfix_repeat: PostfixRepeat,
    pub mode: VerifyMode,
    pub skip_invariant: bool,
    pub constructor_mir: ConstructorMirMode,
    pub crate_filter: Option<String>,
    pub module_filter: Option<String>,
    pub path_limit: Option<usize>,
    pub trait_impl_limit: Option<usize>,
    pub debug_contracts: bool,
}
Expand description

Configuration parsed by the verify command and shared throughout verification.

Fields§

§prepare_targets: bool

List collected verification targets and their resolved contracts without running verification.

§postfix_repeat: PostfixRepeat

Number of extra SCC postfix repetitions allowed during path enumeration. auto (default) estimates the needed repetitions for each target. A number N checks repeat counts from 0 through N.

§mode: VerifyMode

Verification mode: scan auto-detects unannotated unsafe targets (default), targeted verifies #[rapx::verify] functions.

§skip_invariant: bool

Skip standalone struct and type invariant checks and verify constructor-mutator-method sequences instead.

§constructor_mir: ConstructorMirMode

Constructor MIR: true prioritizes available MIR over call models; false skips MIR; default skips MIR if the direct result has an invariant, otherwise tries call models before MIR. With --no-invariant-target, default behaves as true.

§crate_filter: Option<String>

Filter verification targets to only those within the specified crate (Rust crate name or Cargo package name, e.g. std, core, my-crate). Useful for standard-library workspaces and sub-workspaces.

§module_filter: Option<String>

Filter verification targets to only those within the specified module path (e.g. my_module::inner). When combined with --crate, the path is interpreted relative to that crate. Applies to all verification modes.

§path_limit: Option<usize>

Cap on the number of paths collected per checkpoint (defaults to the built-in PATH_LIMIT; 0 also selects that default). Lower it to speed up verification; paths omitted by the cap are treated as proved.

§trait_impl_limit: Option<usize>

Cap on trait impls inlined for a virtual call and generic type combinations checked during monomorphization. Defaults to 1; 0 also selects that default.

§debug_contracts: bool

Print all contract resolutions for every verification target: each unsafe callee with its resolved contracts, and the caller’s own contracts (expanded form), without running verification.

Implementations§

Source§

impl VerifyConfig

Source

pub(crate) fn path_limit(&self) -> usize

Effective verification path cap, including the default for zero or omission.

Source

pub(crate) fn trait_impl_limit(&self) -> usize

Effective trait implementation cap, including the default for zero or omission.

Source

pub(crate) fn constructor_mir_mode(&self) -> ConstructorMirMode

Invariant-less runs expand constructor MIR under the default mode.

Trait Implementations§

Source§

impl Args for VerifyConfig

Source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
Source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
Source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via [FromArgMatches::update_from_arg_matches_mut] Read more
Source§

impl Clone for VerifyConfig

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VerifyConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for VerifyConfig

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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