pub struct SMTSolverBuilder {
pub(crate) command: String,
pub(crate) args: Vec<String>,
pub(crate) opts: Vec<SMTSolverOption>,
pub(crate) set_lia: bool,
}Expand description
Builder to create new SMTSolver instances
This builder can be used to create new SMT solver instances. Each new instance will be using a separate solver process.
Fields§
§command: String§args: Vec<String>§opts: Vec<SMTSolverOption>§set_lia: boolImplementations§
Source§impl SMTSolverBuilder
impl SMTSolverBuilder
Sourcepub fn new(cfg: &SMTSolverBuilderCfg) -> Result<Self, SMTSolverBuilderError>
pub fn new(cfg: &SMTSolverBuilderCfg) -> Result<Self, SMTSolverBuilderError>
Create a new SMTSolverBuilder with the given configuration
Sourcepub fn new_solver(&self) -> SMTSolver
pub fn new_solver(&self) -> SMTSolver
Create a new SMTSolver instance
Sourcepub fn new_solver_with_replay<W>(&mut self, replay_file: W) -> SMTSolver
pub fn new_solver_with_replay<W>(&mut self, replay_file: W) -> SMTSolver
Create a new SMTSolver instance with a replay file recoding all
interactions with the SMT solver
Sourcepub fn new_automatic_selection() -> Result<Self, SMTSolverBuilderError>
pub fn new_automatic_selection() -> Result<Self, SMTSolverBuilderError>
Builder to automatically select a supported SMT solver
This builder will try to start the CVC5 solver first, and if that fails, it will try to start the Z3 solver. If both fail, it will panic.
Trait Implementations§
Source§impl Clone for SMTSolverBuilder
impl Clone for SMTSolverBuilder
Source§fn clone(&self) -> SMTSolverBuilder
fn clone(&self) -> SMTSolverBuilder
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 SMTSolverBuilder
impl Debug for SMTSolverBuilder
Source§impl Default for SMTSolverBuilder
impl Default for SMTSolverBuilder
Source§fn default() -> Self
fn default() -> Self
Create a new SMTSolverBuilder which will automatically try to select
a supported SMT solver, if one is installed on the system.
Source§impl PartialEq for SMTSolverBuilder
impl PartialEq for SMTSolverBuilder
Source§impl ProvidesSMTSolverBuilder for SMTSolverBuilder
impl ProvidesSMTSolverBuilder for SMTSolverBuilder
Source§fn get_solver_builder(&self) -> SMTSolverBuilder
fn get_solver_builder(&self) -> SMTSolverBuilder
Get the configured
SMTSolverBuilderimpl StructuralPartialEq for SMTSolverBuilder
Auto Trait Implementations§
impl Freeze for SMTSolverBuilder
impl RefUnwindSafe for SMTSolverBuilder
impl Send for SMTSolverBuilder
impl Sync for SMTSolverBuilder
impl Unpin for SMTSolverBuilder
impl UnwindSafe for SMTSolverBuilder
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