ModelCheckerContext

Trait ModelCheckerContext 

Source
pub trait ModelCheckerContext:
    Sized
    + Clone
    + Debug {
    type CreationError: Error;
    type ContextOptions;

    // Required method
    fn try_new(
        opt: Option<Self::ContextOptions>,
    ) -> Result<Self, Self::CreationError>;
}
Expand description

Trait of contexts for model checker

A context to a model checker supplies backend functionality such as, for example an SMT solver to the model checker

Required Associated Types§

Source

type CreationError: Error

Possible error that can occur during creation of the context

Source

type ContextOptions

Options for the model checker context

Required Methods§

Source

fn try_new( opt: Option<Self::ContextOptions>, ) -> Result<Self, Self::CreationError>

Create a new model checking context

Tries to create a new context with the given options

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ModelCheckerContext for SMTSolverBuilder

Implement ModelCheckerContext for the SMT solver builder

Source§

type CreationError = SMTSolverBuilderError

Source§

type ContextOptions = SMTSolverBuilderCfg

Source§

fn try_new( opt: Option<Self::ContextOptions>, ) -> Result<Self, Self::CreationError>

Implementors§

Source§

impl ModelCheckerContext for SMTBddContext

Source§

type CreationError = SMTSolverBuilderError

Source§

type ContextOptions = (Option<SMTSolverBuilderCfg>, Option<BDDManagerConfig>)