pub struct SMTSolverBuilderCfg {
pub(crate) command: String,
pub(crate) args: Vec<String>,
pub(crate) opts: Vec<SMTSolverOption>,
pub(crate) set_lia: bool,
pub(crate) check_version: Option<fn((i32, i32, i32))>,
}Expand description
Configuration for a SMTSolverBuilder
Fields§
§command: StringCommand to start the SMT solver
args: Vec<String>Arguments to pass to the SMT solver command
opts: Vec<SMTSolverOption>Options to configure in the SMT solver
set_lia: boolSets the logic explicitly to LIA
check_version: Option<fn((i32, i32, i32))>Function to check version compatibility of the SMT solver
Implementations§
Source§impl SMTSolverBuilderCfg
impl SMTSolverBuilderCfg
Sourcepub fn new(
command: String,
args: Vec<String>,
opts: Vec<SMTSolverOption>,
set_lia: bool,
) -> Self
pub fn new( command: String, args: Vec<String>, opts: Vec<SMTSolverOption>, set_lia: bool, ) -> Self
Create a new SMT solver builder configuration
This function takes the command to start the SMT solver, the arguments to pass to the SMT solver, and the options to pass to the SMT solver.
Additionally, it takes a boolean value to set the logic explicitly to linear integer arithmetic (LIA).
Note that the SMT solver must be started in interactive REPL mode and accept input in the SMT-LIB2 format.
Trait Implementations§
Source§impl Clone for SMTSolverBuilderCfg
impl Clone for SMTSolverBuilderCfg
Source§fn clone(&self) -> SMTSolverBuilderCfg
fn clone(&self) -> SMTSolverBuilderCfg
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SMTSolverBuilderCfg
impl Debug for SMTSolverBuilderCfg
Source§impl<'de> Deserialize<'de> for SMTSolverBuilderCfg
impl<'de> Deserialize<'de> for SMTSolverBuilderCfg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 PartialEq for SMTSolverBuilderCfg
impl PartialEq for SMTSolverBuilderCfg
Source§impl ProvidesSMTSolverBuilderCfg for SMTSolverBuilderCfg
impl ProvidesSMTSolverBuilderCfg for SMTSolverBuilderCfg
Source§fn get_smt_solver_builder_cfg(&self) -> &SMTSolverBuilderCfg
fn get_smt_solver_builder_cfg(&self) -> &SMTSolverBuilderCfg
Get the
SMTSolverBuilderCfgAuto Trait Implementations§
impl Freeze for SMTSolverBuilderCfg
impl RefUnwindSafe for SMTSolverBuilderCfg
impl Send for SMTSolverBuilderCfg
impl Sync for SMTSolverBuilderCfg
impl Unpin for SMTSolverBuilderCfg
impl UnwindSafe for SMTSolverBuilderCfg
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