SortChecker

Struct SortChecker 

Source
pub struct SortChecker<'a>(/* private fields */);

Trait Implementations§

Source§

impl<'a> Debug for SortChecker<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<L: Logic> Folder<L> for SortChecker<'_>

Source§

type Output = ISort

Type produced by the transformation. If Output = Term<T>, implement IntraLogicFolder instead. If Output = Term<U> for some U: Logic, implement InterLogicFolder instead.
Source§

type Error = UnknownSort<Term<L>>

Type of errors that the folder may run into.
Source§

fn fold_const(&mut self, constant: IConst) -> Result<Self::Output, Self::Error>

Transforms a constant.
Source§

fn fold_var(&mut self, var: IVar<L::Var>) -> Result<Self::Output, Self::Error>

Transforms a variable.
Source§

fn fold_core_op(&mut self, op: ICoreOp<L>) -> Result<Self::Output, Self::Error>

Transforms an SMT-LIB Core operation, recursively folding its arguments.
Source§

fn fold_theory_op(&mut self, op: IOp<L>) -> Result<Self::Output, Self::Error>

Transforms a non-core operation, recursively folding its arguments.
Source§

fn fold_uninterpreted_func( &mut self, uf: IUF<L>, ) -> Result<Self::Output, Self::Error>

Transforms an uninterpreted function, recursively folding its arguments.
Source§

fn fold_let(&mut self, l: ILet<L>) -> Result<Self::Output, Self::Error>

Transforms a let binder, recursively folding its arguments.
Source§

fn fold_match(&mut self, m: IMatch<L>) -> Result<Self::Output, Self::Error>

Transforms a match binder, recursively folding its arguments.
Source§

fn fold_quantifier( &mut self, quantifier: IQuantifier<L>, ) -> Result<Self::Output, Self::Error>

Transforms a quantifier, recursively folding its arguments.
Source§

fn context(&self) -> Option<&Ctx>

Gets the context tracked by the folder, if applicable. Tracking context enables things like determining the sorts of expressions and which variables are free/bound, but a folder that doesn’t need that information can leave this method defaulted, which will return None.
Source§

fn context_mut(&mut self) -> Option<&mut Ctx>

Gets a mutable reference to the context tracked by the folder, if applicable. Tracking context enables things like determining the sorts of expressions and which variables are free/bound, but a folder that doesn’t need that information can leave this method defaulted, which will return None.
Source§

fn fold_term(&mut self, term: Term<T>) -> Result<Self::Output, Self::Error>

Transforms a term, recursively transforming its contents. By default, calls SuperFold::super_fold_with.
Source§

fn fold_set_logic( &mut self, logic: ISymbol, ) -> Result<Command<Self::Output>, Self::Error>

Transforms a set-logic command. By default, returns as-is.
Source§

fn fold_assert( &mut self, asserted: Term<T>, ) -> Result<Command<Self::Output>, Self::Error>

Transforms an asserted term. By default, calls Self::fold_term.
Source§

fn fold_declare_const( &mut self, symbol: ISymbol, sort: ISort, ) -> Result<Command<Self::Output>, Self::Error>

Transforms a constant declaration. By default, returns as-is.
Source§

fn fold_declare_fun( &mut self, symbol: ISymbol, parameters: Vec<ISort>, sort: ISort, ) -> Result<Command<Self::Output>, Self::Error>

Transforms a function declaration. By default, returns as-is.
Source§

fn fold_declare_sort( &mut self, symbol: ISymbol, arity: Numeral, ) -> Result<Command<Self::Output>, Self::Error>

Transforms a sort declaration. By default, returns as-is.
Source§

fn fold_define_fun( &mut self, sig: FunctionDec, body: Term<T>, ) -> Result<Command<Self::Output>, Self::Error>

Transforms a function definition. By default, recursively transforms the function body with Self::fold_term.
Source§

fn fold_define_fun_rec( &mut self, sig: FunctionDec, body: Term<T>, ) -> Result<Command<Self::Output>, Self::Error>

Transforms a recursive function definition. By default, recursively transforms the function body with Self::fold_term.
Source§

fn fold_define_funs_rec( &mut self, funs: Vec<(FunctionDec, Term<T>)>, ) -> Result<Command<Self::Output>, Self::Error>

Transforms a set of recursive function definition. By default, recursively transforms each function body with Self::fold_term.
Source§

fn fold_define_sort( &mut self, symbol: ISymbol, parameters: Vec<ISymbol>, sort: ISort, ) -> Result<Command<Self::Output>, Self::Error>

Transforms a sort definition. By default, returns as-is.
Source§

fn fold_get_value( &mut self, terms: Vec<Term<T>>, ) -> Result<Command<Self::Output>, Self::Error>

Transforms a get-value call. By default, recursively transforms each term with Self::fold_term.

Auto Trait Implementations§

§

impl<'a> Freeze for SortChecker<'a>

§

impl<'a> RefUnwindSafe for SortChecker<'a>

§

impl<'a> Send for SortChecker<'a>

§

impl<'a> Sync for SortChecker<'a>

§

impl<'a> Unpin for SortChecker<'a>

§

impl<'a> !UnwindSafe for SortChecker<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Compose for T

Source§

fn compose<After, M1, M2>( self, after: After, ) -> TryComposed<Self, After, fn(Infallible) -> Infallible, fn(Infallible) -> Infallible, Infallible, M1, M2>

Source§

fn try_compose<After, MapErr1, MapErr2, Err, M1, M2>( self, after: After, f: MapErr1, g: MapErr2, ) -> TryComposed<Self, After, MapErr1, MapErr2, Err, M1, M2>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V