Struct move_prover::cli::Options

source ·
pub struct Options {
Show 16 fields pub output_path: String, pub verbosity_level: LevelFilter, pub run_docgen: bool, pub run_abigen: bool, pub run_errmapgen: bool, pub run_read_write_set: bool, pub move_sources: Vec<String>, pub move_deps: Vec<String>, pub move_named_address_values: Vec<String>, pub experimental_pipeline: bool, pub model_builder: ModelBuilderOptions, pub docgen: DocgenOptions, pub prover: ProverOptions, pub backend: BoogieOptions, pub abigen: AbigenOptions, pub errmapgen: ErrmapOptions,
}
Expand description

Represents options provided to the tool. Most of those options are configured via a toml source; some over the command line flags.

NOTE: any fields carrying structured data must appear at the end for making toml printing work. When changing this config, use mvp --print-config to verify this works.

Fields§

§output_path: String

The path to the boogie output which represents the verification problem.

§verbosity_level: LevelFilter

Verbosity level for logging.

§run_docgen: bool

Whether to run the documentation generator instead of the prover.

§run_abigen: bool

Whether to run the ABI generator instead of the prover.

§run_errmapgen: bool

Whether to run the error map generator instead of the prover.

§run_read_write_set: bool

Whether to run the read write set analysis instead of the prover

§move_sources: Vec<String>

The paths to the Move sources.

§move_deps: Vec<String>

The paths to any dependencies for the Move sources. Those will not be verified but can be used by move_sources.

§move_named_address_values: Vec<String>

The values assigned to named addresses in the Move code being verified.

§experimental_pipeline: bool

Whether to run experimental pipeline

§model_builder: ModelBuilderOptions

BEGIN OF STRUCTURED OPTIONS Options for the model builder.

§docgen: DocgenOptions

Options for the documentation generator.

§prover: ProverOptions

Options for the prover.

§backend: BoogieOptions

Options for the prover backend.

§abigen: AbigenOptions

Options for the ABI generator.

§errmapgen: ErrmapOptions

Options for the error map generator. TODO: this currently create errors during deserialization, so skip them for this.

Implementations§

source§

impl Options

source

pub fn create_from_toml(toml_source: &str) -> Result<Options>

Creates options from toml configuration source.

source

pub fn create_from_toml_file(toml_file: &str) -> Result<Options>

Creates options from toml configuration file.

source

pub fn create_from_args(args: &[String]) -> Result<Options>

source

pub fn setup_logging(&self)

Sets up logging based on provided options. This should be called as early as possible and before any use of info!, warn! etc.

source

pub fn setup_logging_for_test(&self)

source

pub fn enable_debug(&mut self)

Convenience function to enable debugging (like high verbosity) on this instance.

Trait Implementations§

source§

impl Clone for Options

source§

fn clone(&self) -> Options

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for Options

source§

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

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

impl Default for Options

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Optionswhere Options: Default,

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for Options

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · 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> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,