Enum smtlib_lowlevel::ast::Command
source · pub enum Command {
Show 31 variants
Assert(Term),
CheckSat,
CheckSatAssuming(Vec<PropLiteral>),
DeclareConst(Symbol, Sort),
DeclareDatatype(Symbol, DatatypeDec),
DeclareDatatypes(Vec<SortDec>, Vec<DatatypeDec>),
DeclareFun(Symbol, Vec<Sort>, Sort),
DeclareSort(Symbol, Numeral),
DefineFun(FunctionDef),
DefineFunRec(FunctionDef),
DefineFunsRec(Vec<FunctionDec>, Vec<Term>),
DefineSort(Symbol, Vec<Symbol>, Sort),
Echo(String),
Exit,
GetAssertions,
GetAssignment,
GetInfo(InfoFlag),
GetModel,
GetOption(Keyword),
GetProof,
GetUnsatAssumptions,
GetUnsatCore,
GetValue(Vec<Term>),
Pop(Numeral),
Push(Numeral),
Reset,
ResetAssertions,
SetInfo(Attribute),
SetLogic(Symbol),
SetOption(Option),
Simplify(Term),
}
Variants§
Assert(Term)
(assert <term>)
CheckSat
(check-sat)
CheckSatAssuming(Vec<PropLiteral>)
(check-sat-assuming (<prop_literal>*))
DeclareConst(Symbol, Sort)
(declare-const <symbol> <sort>)
DeclareDatatype(Symbol, DatatypeDec)
(declare-datatype <symbol> <datatype_dec>)
DeclareDatatypes(Vec<SortDec>, Vec<DatatypeDec>)
(declare-datatypes (<sort_dec>n+1) (<datatype_dec>n+1))
DeclareFun(Symbol, Vec<Sort>, Sort)
(declare-fun <symbol> (<sort>*) <sort>)
DeclareSort(Symbol, Numeral)
(declare-sort <symbol> <numeral>)
DefineFun(FunctionDef)
(define-fun <function_def>)
DefineFunRec(FunctionDef)
(define-fun-rec <function_def>)
DefineFunsRec(Vec<FunctionDec>, Vec<Term>)
(define-funs-rec (<function_dec>n+1) (<term>n+1))
DefineSort(Symbol, Vec<Symbol>, Sort)
(define-sort <symbol> (<symbol>*) <sort>)
Echo(String)
(echo <string>)
Exit
(exit)
GetAssertions
(get-assertions)
GetAssignment
(get-assignment)
GetInfo(InfoFlag)
(get-info <info_flag>)
GetModel
(get-model)
GetOption(Keyword)
(get-option <keyword>)
GetProof
(get-proof)
GetUnsatAssumptions
(get-unsat-assumptions)
GetUnsatCore
(get-unsat-core)
GetValue(Vec<Term>)
(get-value (<term>+))
Pop(Numeral)
(pop <numeral>)
Push(Numeral)
(push <numeral>)
Reset
(reset)
ResetAssertions
(reset-assertions)
SetInfo(Attribute)
(set-info <attribute>)
SetLogic(Symbol)
(set-logic <symbol>)
SetOption(Option)
(set-option <option>)
Simplify(Term)
(simplify <term>)
Implementations§
source§impl Command
impl Command
pub fn has_response(&self) -> bool
pub fn parse_response( &self, response: &str ) -> Result<Option<SpecificSuccessResponse>, ParseError>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
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 Command
impl PartialEq for Command
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more