[−][src]Enum rsmt2::conf::SmtStyle
Solver styles.
- z3: full support
- cvc4: full support in theory, but only partially tested. Note that
get-value
is known to crash some versions of CVC4. - yices 2: full support in theory, but only partially tested. Command
get-model
will only work on Yices 2 >2.6.1
, and needs to be activated inSmtConf
withSmtConf::models
. To understand why, see https://github.com/SRI-CSL/yices2/issues/162.
Variants
Z3-style smt solver.
CVC4-style smt solver.
NB: CVC4 has only been partially tested at this point.
Yices-2-style smt solver.
NB: Yices 2 has only been partially tested at this point.
Implementations
impl SmtStyle
[src]
pub fn new(self, cmd: impl Into<String>) -> SmtConf
[src]
Configuration constructor.
pub fn default(self) -> SmtConf
[src]
Default configuration for a solver style.
Warning
The command used to run a particular solver is up to the end-user. As such, it does not
make sense to use default commands for anything else than local testing. You should
explicitely pass the command to use with Self::new
instead.
pub fn of_str(s: &str) -> Option<Self>
[src]
A solver style from a string.
pub fn str_keys() -> Vec<&'static str>
[src]
Legal string representations of solver styles.
pub fn env_cmd(self) -> SmtRes<Option<String>>
[src]
Solver style command from the corresponding environment variable.
The environement variables scanned are Z3_ENV_VAR
, CVC4_ENV_VAR
and
YICES_2_ENV_VAR
.
pub fn cmd(self) -> &'static str
[src]
Default command for a solver style.
Trait Implementations
impl Clone for SmtStyle
[src]
impl Copy for SmtStyle
[src]
impl Debug for SmtStyle
[src]
impl Display for SmtStyle
[src]
Auto Trait Implementations
impl RefUnwindSafe for SmtStyle
[src]
impl Send for SmtStyle
[src]
impl Sync for SmtStyle
[src]
impl Unpin for SmtStyle
[src]
impl UnwindSafe for SmtStyle
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,