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: boolList collected verification targets and their resolved contracts without running verification.
postfix_repeat: PostfixRepeatNumber 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: VerifyModeVerification mode: scan auto-detects unannotated unsafe targets (default), targeted verifies #[rapx::verify] functions.
skip_invariant: boolSkip standalone struct and type invariant checks and verify constructor-mutator-method sequences instead.
constructor_mir: ConstructorMirModeConstructor 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: boolPrint 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
impl VerifyConfig
Sourcepub(crate) fn path_limit(&self) -> usize
pub(crate) fn path_limit(&self) -> usize
Effective verification path cap, including the default for zero or omission.
Sourcepub(crate) fn trait_impl_limit(&self) -> usize
pub(crate) fn trait_impl_limit(&self) -> usize
Effective trait implementation cap, including the default for zero or omission.
Sourcepub(crate) fn constructor_mir_mode(&self) -> ConstructorMirMode
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
impl Args for VerifyConfig
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl Clone for VerifyConfig
impl Clone for VerifyConfig
Source§impl Debug for VerifyConfig
impl Debug for VerifyConfig
Source§impl FromArgMatches for VerifyConfig
impl FromArgMatches for VerifyConfig
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl DynSend for VerifyConfig
impl DynSync for VerifyConfig
impl Forget for VerifyConfig
impl Freeze for VerifyConfig
impl Move for VerifyConfig
impl RefUnwindSafe for VerifyConfig
impl Send for VerifyConfig
impl Sync for VerifyConfig
impl Unpin for VerifyConfig
impl UnsafeUnpin for VerifyConfig
impl UnwindSafe for VerifyConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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