Sort¶
Sorts are the types of terms: Booleans, integers, reals, bit-vectors, floating-point numbers, arrays, datatypes, functions, and more.
Sort¶
The sort of a cvc5 term.
Wrapper class for Sort.
70 of the 70 mirrored methods of Sort are generated.
| Method | Summary | Binding | Mojo |
|---|---|---|---|
__eq__ |
rule | ✓ | |
__ne__ |
override | ✓ | |
__lt__ |
rule | ✓ | |
__gt__ |
rule | ✓ | |
__le__ |
rule | ✓ | |
__ge__ |
rule | ✓ | |
__str__ |
auto | ✓ | |
__repr__ |
auto | ✓ | |
__hash__ |
rule | ✓ | |
getKind |
Returns the SortKind of this sort. |
auto | ✓ |
hasSymbol |
Returns true iff this sort has a symbol. | auto | ✓ |
getSymbol |
Returns the raw symbol of the sort. | auto | ✓ |
isNull |
Returns true if this Sort is a null sort. | rule | ✓ |
isBoolean |
Determine if this is the Boolean sort (SMT-LIB: Bool). |
auto | ✓ |
isInteger |
Determine if this is the integer sort (SMT-LIB: Int). |
auto | ✓ |
isReal |
Determine if this is the real sort (SMT-LIB: Real). |
auto | ✓ |
isString |
Determine if this is the string sort (SMT-LIB: String). |
auto | ✓ |
isRegExp |
Determine if this is the regular expression sort (SMT-LIB: RegLan). |
auto | ✓ |
isRoundingMode |
Determine if this is the rounding mode sort (SMT-LIB: RoundingMode). |
auto | ✓ |
isBitVector |
Determine if this is a bit-vector sort (SMT-LIB: (_ BitVec i)). |
auto | ✓ |
isFloatingPoint |
Determine if this is a floatingpoint sort (SMT-LIB: (_ FloatingPoint eb sb)). |
auto | ✓ |
isDatatype |
Determine if this is a datatype sort. | auto | ✓ |
isDatatypeConstructor |
Determine if this is a datatype constructor sort. | auto | ✓ |
isDatatypeSelector |
Determine if this is a datatype selector sort. | auto | ✓ |
isDatatypeTester |
Determine if this is a tester sort. | auto | ✓ |
isDatatypeUpdater |
Determine if this is a datatype updater sort. | auto | ✓ |
isFunction |
Determine if this is a function sort. | auto | ✓ |
isPredicate |
Determine if this is a predicate sort. | auto | ✓ |
isTuple |
Determine if this is a tuple sort. | auto | ✓ |
isNullable |
Determine if this is a nullable sort. | auto | ✓ |
isRecord |
Determine if this is a record sort. | auto | ✓ |
isArray |
Determine if this is an array sort. | auto | ✓ |
isFiniteField |
Determine if this is a finite field sort. | auto | ✓ |
isSet |
Determine if this is a set sort. | auto | ✓ |
isBag |
Determine if this is a bag sort. | auto | ✓ |
isSequence |
Determine if this is a sequence sort. | auto | ✓ |
isAbstract |
Determine if this is an abstract sort. | auto | ✓ |
isUninterpretedSort |
Determine if this is a sort uninterpreted. | auto | ✓ |
isUninterpretedSortConstructor |
Determine if this is a sort constructor kind. | auto | ✓ |
isInstantiated |
Determine if this is an instantiated (parametric datatype or uninterpreted sort constructor) sort. | auto | ✓ |
getUninterpretedSortConstructor |
Get the associated uninterpreted sort constructor of an instantiated uninterpreted sort. | auto | ✓ |
getDatatype |
Returns the underlying datatype of a datatype sort | auto | ✓ |
instantiate |
Instantiate a parameterized datatype sort or uninterpreted sort constructor sort. | auto | ✓ |
getInstantiatedParameters |
Get the sorts used to instantiate the sort parameters of a parametric sort (parametric datatype or uninterpreted sort constructor sort, see instantiate()). |
auto | ✓ |
substitute |
Substitution of Sorts. | overloaded | ✓ |
getDatatypeConstructorArity |
Returns the arity of a datatype constructor sort. | auto | ✓ |
getDatatypeConstructorDomainSorts |
Returns the domain sorts of a datatype constructor sort. | auto | ✓ |
getDatatypeConstructorCodomainSort |
Returns the codomain sort of a datatype constructor sort. | auto | ✓ |
getDatatypeSelectorDomainSort |
Returns the domain sort of a datatype selector sort. | auto | ✓ |
getDatatypeSelectorCodomainSort |
Returns the codomain sort of a datatype selector sort. | auto | ✓ |
getDatatypeTesterDomainSort |
Returns the domain sort of a datatype tester sort. | auto | ✓ |
getDatatypeTesterCodomainSort |
Returns the codomain sort of a datatype tester sort, which is the Boolean sort | auto | ✓ |
getFunctionArity |
Returns the arity of a function sort. | auto | ✓ |
getFunctionDomainSorts |
Returns the domain sorts of a function sort. | auto | ✓ |
getFunctionCodomainSort |
Returns the codomain sort of a function sort. | auto | ✓ |
getArrayIndexSort |
Returns the array index sort of an array sort. | auto | ✓ |
getArrayElementSort |
Returns the array element sort of an array sort. | auto | ✓ |
getSetElementSort |
Returns the element sort of a set sort. | auto | ✓ |
getBagElementSort |
Returns the element sort of a bag sort. | auto | ✓ |
getSequenceElementSort |
Returns the element sort of a sequence sort. | auto | ✓ |
getAbstractedKind |
Returns the sort kind of an abstract sort, which denotes the kind of sorts that this abstract sort denotes. | auto | ✓ |
getUninterpretedSortConstructorArity |
Returns the arity of a sort constructor sort. | auto | ✓ |
getBitVectorSize |
Returns the bit-width of the bit-vector sort. | auto | ✓ |
getFiniteFieldSize |
Returns the size of the finite field sort. | auto | ✓ |
getFloatingPointExponentSize |
Returns the bit-width of the exponent of the floating-point sort. | auto | ✓ |
getFloatingPointSignificandSize |
Returns the width of the significand of the floating-point sort. | auto | ✓ |
getDatatypeArity |
Returns the arity of a datatype sort. | auto | ✓ |
getTupleLength |
Returns the length of a tuple sort. | auto | ✓ |
getTupleSorts |
Returns the element sorts of a tuple sort. | auto | ✓ |
getNullableElementSort |
Returns the element sort of a nullable sort. | auto | ✓ |
Sort.__eq__¶
Mojo declaration:
def __eq__(self, other: Self) -> Bool
Upstream Python signature:
Sort.__eq__(other: Sort)
Binding: Generated by a rule from cvc5_sort_is_equal.
Sort.__ne__¶
Mojo declaration:
def __ne__(self, other: Self) -> Bool
Upstream Python signature:
Sort.__ne__(other: Sort)
Binding: Bound to cvc5_sort_is_equal by bindgen/overrides.toml. Negate equality: cvc5 1.4.1's C inequality implementation prints debugging output..
Sort.__lt__¶
Mojo declaration:
def __lt__(self, other: Self) -> Bool
Upstream Python signature:
Sort.__lt__(other: Sort)
Binding: Generated by a rule from cvc5_sort_compare.
Sort.__gt__¶
Mojo declaration:
def __gt__(self, other: Self) -> Bool
Upstream Python signature:
Sort.__gt__(other: Sort)
Binding: Generated by a rule from cvc5_sort_compare.
Sort.__le__¶
Mojo declaration:
def __le__(self, other: Self) -> Bool
Upstream Python signature:
Sort.__le__(other: Sort)
Binding: Generated by a rule from cvc5_sort_compare.
Sort.__ge__¶
Mojo declaration:
def __ge__(self, other: Self) -> Bool
Upstream Python signature:
Sort.__ge__(other: Sort)
Binding: Generated by a rule from cvc5_sort_compare.
Sort.__str__¶
Mojo declaration:
def toString(self) -> String
def write_to(self, mut writer: Some[Writer])
Upstream Python signature:
Sort.__str__()
Mojo uses the Writable protocol here: call String(value), repr(value), or print(value).
Binding: Generated from cvc5_sort_to_string.
Sort.__repr__¶
Mojo declaration:
Upstream Python signature:
Sort.__repr__()
Mojo uses the Writable protocol here: call String(value), repr(value), or print(value).
Binding: Generated from cvc5_sort_to_string.
Sort.__hash__¶
Mojo declaration:
def __hash__[H: Hasher](self, mut hasher: H)
Upstream Python signature:
Sort.__hash__()
Binding: Generated by a rule from cvc5_sort_hash.
Sort.getKind¶
Mojo declaration:
def getKind(self) raises -> SortKind
Upstream Python signature:
Sort.getKind()
Warning
This function is experimental and may change in future versions.
Returns
The SortKind of this sort.
Binding: Generated from cvc5_sort_get_kind.
Sort.hasSymbol¶
Mojo declaration:
def hasSymbol(self) raises -> Bool
Upstream Python signature:
Sort.hasSymbol()
Returns
True iff this sort has a symbol.
Binding: Generated from cvc5_sort_has_symbol.
Sort.getSymbol¶
Mojo declaration:
def getSymbol(self) raises -> String
Upstream Python signature:
Sort.getSymbol()
Note
Asserts hasSymbol().
Returns
The raw symbol of the sort.
Binding: Generated from cvc5_sort_get_symbol.
Sort.isNull¶
Mojo declaration:
def isNull(self) -> Bool
Upstream Python signature:
Sort.isNull()
Returns
True if this Sort is a null sort.
Binding: Generated by a rule: a check for a NULL handle, which is how the C API represents a null object.
Sort.isBoolean¶
Mojo declaration:
def isBoolean(self) raises -> Bool
Upstream Python signature:
Sort.isBoolean()
Determine if this is the Boolean sort (SMT-LIB: Bool).
Returns
True if the sort is the Boolean sort.
Binding: Generated from cvc5_sort_is_boolean.
Sort.isInteger¶
Mojo declaration:
def isInteger(self) raises -> Bool
Upstream Python signature:
Sort.isInteger()
Determine if this is the integer sort (SMT-LIB: Int).
Returns
True if the sort is the integer sort.
Binding: Generated from cvc5_sort_is_integer.
Sort.isReal¶
Mojo declaration:
def isReal(self) raises -> Bool
Upstream Python signature:
Sort.isReal()
Determine if this is the real sort (SMT-LIB: Real).
Returns
True if the sort is the real sort.
Binding: Generated from cvc5_sort_is_real.
Sort.isString¶
Mojo declaration:
def isString(self) raises -> Bool
Upstream Python signature:
Sort.isString()
Determine if this is the string sort (SMT-LIB: String).
Returns
True if the sort is the string sort.
Binding: Generated from cvc5_sort_is_string.
Sort.isRegExp¶
Mojo declaration:
def isRegExp(self) raises -> Bool
Upstream Python signature:
Sort.isRegExp()
Determine if this is the regular expression sort (SMT-LIB: RegLan).
Returns
True if the sort is the regexp sort.
Binding: Generated from cvc5_sort_is_regexp.
Sort.isRoundingMode¶
Mojo declaration:
def isRoundingMode(self) raises -> Bool
Upstream Python signature:
Sort.isRoundingMode()
Determine if this is the rounding mode sort (SMT-LIB: RoundingMode).
Returns
True if the sort is the rounding mode sort.
Binding: Generated from cvc5_sort_is_rm.
Sort.isBitVector¶
Mojo declaration:
def isBitVector(self) raises -> Bool
Upstream Python signature:
Sort.isBitVector()
Determine if this is a bit-vector sort (SMT-LIB: (_ BitVec i)).
Returns
True if the sort is a bit-vector sort.
Binding: Generated from cvc5_sort_is_bv.
Sort.isFloatingPoint¶
Mojo declaration:
def isFloatingPoint(self) raises -> Bool
Upstream Python signature:
Sort.isFloatingPoint()
Determine if this is a floatingpoint sort (SMT-LIB: (_ FloatingPoint eb sb)).
Returns
True if the sort is a bit-vector sort.
Binding: Generated from cvc5_sort_is_fp.
Sort.isDatatype¶
Mojo declaration:
def isDatatype(self) raises -> Bool
Upstream Python signature:
Sort.isDatatype()
Determine if this is a datatype sort.
Returns
True if the sort is a datatype sort.
Binding: Generated from cvc5_sort_is_dt.
Sort.isDatatypeConstructor¶
Mojo declaration:
def isDatatypeConstructor(self) raises -> Bool
Upstream Python signature:
Sort.isDatatypeConstructor()
Determine if this is a datatype constructor sort.
Returns
True if the sort is a datatype constructor sort.
Binding: Generated from cvc5_sort_is_dt_constructor.
Sort.isDatatypeSelector¶
Mojo declaration:
def isDatatypeSelector(self) raises -> Bool
Upstream Python signature:
Sort.isDatatypeSelector()
Determine if this is a datatype selector sort.
Returns
True if the sort is a datatype selector sort.
Binding: Generated from cvc5_sort_is_dt_selector.
Sort.isDatatypeTester¶
Mojo declaration:
def isDatatypeTester(self) raises -> Bool
Upstream Python signature:
Sort.isDatatypeTester()
Determine if this is a tester sort.
Returns
True if the sort is a selector sort.
Binding: Generated from cvc5_sort_is_dt_tester.
Sort.isDatatypeUpdater¶
Mojo declaration:
def isDatatypeUpdater(self) raises -> Bool
Upstream Python signature:
Sort.isDatatypeUpdater()
Determine if this is a datatype updater sort.
Returns
True if the sort is a datatype updater sort.
Binding: Generated from cvc5_sort_is_dt_updater.
Sort.isFunction¶
Mojo declaration:
def isFunction(self) raises -> Bool
Upstream Python signature:
Sort.isFunction()
Determine if this is a function sort.
Returns
True if the sort is a function sort.
Binding: Generated from cvc5_sort_is_fun.
Sort.isPredicate¶
Mojo declaration:
def isPredicate(self) raises -> Bool
Upstream Python signature:
Sort.isPredicate()
Determine if this is a predicate sort.
A predicate sort is a function sort that maps to the Boolean sort. All predicate sorts are also function sorts.
Returns
True if the sort is a predicate sort.
Binding: Generated from cvc5_sort_is_predicate.
Sort.isTuple¶
Mojo declaration:
def isTuple(self) raises -> Bool
Upstream Python signature:
Sort.isTuple()
Determine if this is a tuple sort.
Returns
True if the sort is a tuple sort.
Binding: Generated from cvc5_sort_is_tuple.
Sort.isNullable¶
Mojo declaration:
def isNullable(self) raises -> Bool
Upstream Python signature:
Sort.isNullable()
Determine if this is a nullable sort.
Returns
True if the sort is a nullable sort.
Binding: Generated from cvc5_sort_is_nullable.
Sort.isRecord¶
Mojo declaration:
def isRecord(self) raises -> Bool
Upstream Python signature:
Sort.isRecord()
Determine if this is a record sort.
Warning
This function is experimental and may change in future versions.
Returns
True if the sort is a record sort.
Binding: Generated from cvc5_sort_is_record.
Sort.isArray¶
Mojo declaration:
def isArray(self) raises -> Bool
Upstream Python signature:
Sort.isArray()
Determine if this is an array sort.
Returns
True if the sort is an array sort.
Binding: Generated from cvc5_sort_is_array.
Sort.isFiniteField¶
Mojo declaration:
def isFiniteField(self) raises -> Bool
Upstream Python signature:
Sort.isFiniteField()
Determine if this is a finite field sort.
Returns
True if the sort is an array sort.
Binding: Generated from cvc5_sort_is_ff.
Sort.isSet¶
Mojo declaration:
def isSet(self) raises -> Bool
Upstream Python signature:
Sort.isSet()
Determine if this is a set sort.
Returns
True if the sort is a set sort.
Binding: Generated from cvc5_sort_is_set.
Sort.isBag¶
Mojo declaration:
def isBag(self) raises -> Bool
Upstream Python signature:
Sort.isBag()
Determine if this is a bag sort.
Returns
True if the sort is a bag sort.
Binding: Generated from cvc5_sort_is_bag.
Sort.isSequence¶
Mojo declaration:
def isSequence(self) raises -> Bool
Upstream Python signature:
Sort.isSequence()
Determine if this is a sequence sort.
Returns
True if the sort is a sequence sort.
Binding: Generated from cvc5_sort_is_sequence.
Sort.isAbstract¶
Mojo declaration:
def isAbstract(self) raises -> Bool
Upstream Python signature:
Sort.isAbstract()
Determine if this is an abstract sort.
Warning
This function is experimental and may change in future versions.
Returns
True if the sort is an abstract sort.
Binding: Generated from cvc5_sort_is_abstract.
Sort.isUninterpretedSort¶
Mojo declaration:
def isUninterpretedSort(self) raises -> Bool
Upstream Python signature:
Sort.isUninterpretedSort()
Determine if this is a sort uninterpreted.
Returns
True if the sort is uninterpreted.
Binding: Generated from cvc5_sort_is_uninterpreted_sort.
Sort.isUninterpretedSortConstructor¶
Mojo declaration:
def isUninterpretedSortConstructor(self) raises -> Bool
Upstream Python signature:
Sort.isUninterpretedSortConstructor()
Determine if this is a sort constructor kind.
An uninterpreted sort constructor is an uninterpreted sort with arity > 0.
Returns
True if this a sort constructor kind.
Binding: Generated from cvc5_sort_is_uninterpreted_sort_constructor.
Sort.isInstantiated¶
Mojo declaration:
def isInstantiated(self) raises -> Bool
Upstream Python signature:
Sort.isInstantiated()
Determine if this is an instantiated (parametric datatype or uninterpreted sort constructor) sort.
An instantiated sort is a sort that has been constructed from
instantiating a sort parameters with sort arguments
(see instantiate()).
Returns
True if this is an instantiated sort.
Binding: Generated from cvc5_sort_is_instantiated.
Sort.getUninterpretedSortConstructor¶
Mojo declaration:
def getUninterpretedSortConstructor(self) raises -> Sort
Upstream Python signature:
Sort.getUninterpretedSortConstructor()
Get the associated uninterpreted sort constructor of an instantiated uninterpreted sort.
Returns
The uninterpreted sort constructor sort
Binding: Generated from cvc5_sort_get_uninterpreted_sort_constructor.
Sort.getDatatype¶
Mojo declaration:
def getDatatype(self) raises -> Datatype
Upstream Python signature:
Sort.getDatatype()
Returns
The underlying datatype of a datatype sort
Binding: Generated from cvc5_sort_get_datatype.
Sort.instantiate¶
Mojo declaration:
def instantiate(self, params: List[Sort]) raises -> Sort
Upstream Python signature:
Sort.instantiate(params)
Instantiate a parameterized datatype sort or uninterpreted sort constructor sort.
Create sorts parameter with TermManager.mkParamSort()
Warning
This function is experimental and may change in future versions.
Parameters
params: The list of sort parameters to instantiate with
Returns
The instantiated sort
Binding: Generated from cvc5_sort_instantiate.
Sort.getInstantiatedParameters¶
Mojo declaration:
def getInstantiatedParameters(self) raises -> List[Sort]
Upstream Python signature:
Sort.getInstantiatedParameters()
Get the sorts used to instantiate the sort parameters of a parametric sort (parametric datatype or uninterpreted sort constructor sort, see instantiate()).
Returns
The sorts used to instantiate the sort parameters of a parametric sort
Binding: Generated from cvc5_sort_get_instantiated_parameters.
Sort.substitute¶
Mojo declaration:
def substitute(self, s: Sort, replacement: Sort) raises -> Sort
def substitute(self, sorts: List[Sort], replacements: List[Sort]) raises -> Sort
Upstream Python signature:
Sort.substitute(sort_or_list_1, sort_or_list_2)
Substitution of Sorts.
Note that this replacement is applied during a pre-order traversal and only once to the sort. It is not run until fix point. In the case that sort_or_list_1 contains duplicates, the replacement earliest in the list takes priority.
For example,
(Array A B) .substitute([A, C], [(Array C D), (Array A B)])
will return (Array (Array C D) B).
Warning
This function is experimental and may change in future versions.
Parameters
sort_or_list_1: The subsort or subsorts to be substituted within this sort.sort_or_list_2: The sort or list of sorts replacing the substituted subsort.
Binding: Generated as overloads from cvc5_sort_substitute, cvc5_sort_substitute_sorts.
Sort.getDatatypeConstructorArity¶
Mojo declaration:
def getDatatypeConstructorArity(self) raises -> Int
Upstream Python signature:
Sort.getDatatypeConstructorArity()
Returns
The arity of a datatype constructor sort.
Binding: Generated from cvc5_sort_dt_constructor_get_arity.
Sort.getDatatypeConstructorDomainSorts¶
Mojo declaration:
def getDatatypeConstructorDomainSorts(self) raises -> List[Sort]
Upstream Python signature:
Sort.getDatatypeConstructorDomainSorts()
Returns
The domain sorts of a datatype constructor sort.
Binding: Generated from cvc5_sort_dt_constructor_get_domain.
Sort.getDatatypeConstructorCodomainSort¶
Mojo declaration:
def getDatatypeConstructorCodomainSort(self) raises -> Sort
Upstream Python signature:
Sort.getDatatypeConstructorCodomainSort()
Returns
The codomain sort of a datatype constructor sort.
Binding: Generated from cvc5_sort_dt_constructor_get_codomain.
Sort.getDatatypeSelectorDomainSort¶
Mojo declaration:
def getDatatypeSelectorDomainSort(self) raises -> Sort
Upstream Python signature:
Sort.getDatatypeSelectorDomainSort()
Returns
The domain sort of a datatype selector sort.
Binding: Generated from cvc5_sort_dt_selector_get_domain.
Sort.getDatatypeSelectorCodomainSort¶
Mojo declaration:
def getDatatypeSelectorCodomainSort(self) raises -> Sort
Upstream Python signature:
Sort.getDatatypeSelectorCodomainSort()
Returns
The codomain sort of a datatype selector sort.
Binding: Generated from cvc5_sort_dt_selector_get_codomain.
Sort.getDatatypeTesterDomainSort¶
Mojo declaration:
def getDatatypeTesterDomainSort(self) raises -> Sort
Upstream Python signature:
Sort.getDatatypeTesterDomainSort()
Returns
The domain sort of a datatype tester sort.
Binding: Generated from cvc5_sort_dt_tester_get_domain.
Sort.getDatatypeTesterCodomainSort¶
Mojo declaration:
def getDatatypeTesterCodomainSort(self) raises -> Sort
Upstream Python signature:
Sort.getDatatypeTesterCodomainSort()
Returns
the codomain sort of a datatype tester sort, which is the Boolean sort
Binding: Generated from cvc5_sort_dt_tester_get_codomain.
Sort.getFunctionArity¶
Mojo declaration:
def getFunctionArity(self) raises -> Int
Upstream Python signature:
Sort.getFunctionArity()
Returns
The arity of a function sort.
Binding: Generated from cvc5_sort_fun_get_arity.
Sort.getFunctionDomainSorts¶
Mojo declaration:
def getFunctionDomainSorts(self) raises -> List[Sort]
Upstream Python signature:
Sort.getFunctionDomainSorts()
Returns
The domain sorts of a function sort.
Binding: Generated from cvc5_sort_fun_get_domain.
Sort.getFunctionCodomainSort¶
Mojo declaration:
def getFunctionCodomainSort(self) raises -> Sort
Upstream Python signature:
Sort.getFunctionCodomainSort()
Returns
The codomain sort of a function sort.
Binding: Generated from cvc5_sort_fun_get_codomain.
Sort.getArrayIndexSort¶
Mojo declaration:
def getArrayIndexSort(self) raises -> Sort
Upstream Python signature:
Sort.getArrayIndexSort()
Returns
The array index sort of an array sort.
Binding: Generated from cvc5_sort_array_get_index_sort.
Sort.getArrayElementSort¶
Mojo declaration:
def getArrayElementSort(self) raises -> Sort
Upstream Python signature:
Sort.getArrayElementSort()
Returns
The array element sort of an array sort.
Binding: Generated from cvc5_sort_array_get_element_sort.
Sort.getSetElementSort¶
Mojo declaration:
def getSetElementSort(self) raises -> Sort
Upstream Python signature:
Sort.getSetElementSort()
Returns
The element sort of a set sort.
Binding: Generated from cvc5_sort_set_get_element_sort.
Sort.getBagElementSort¶
Mojo declaration:
def getBagElementSort(self) raises -> Sort
Upstream Python signature:
Sort.getBagElementSort()
Returns
The element sort of a bag sort.
Binding: Generated from cvc5_sort_bag_get_element_sort.
Sort.getSequenceElementSort¶
Mojo declaration:
def getSequenceElementSort(self) raises -> Sort
Upstream Python signature:
Sort.getSequenceElementSort()
Returns
The element sort of a sequence sort.
Binding: Generated from cvc5_sort_sequence_get_element_sort.
Sort.getAbstractedKind¶
Mojo declaration:
def getAbstractedKind(self) raises -> SortKind
Upstream Python signature:
Sort.getAbstractedKind()
Warning
This function is experimental and may change in future versions.
Returns
The sort kind of an abstract sort, which denotes the kind of sorts that this abstract sort denotes.
Binding: Generated from cvc5_sort_abstract_get_kind.
Sort.getUninterpretedSortConstructorArity¶
Mojo declaration:
def getUninterpretedSortConstructorArity(self) raises -> Int
Upstream Python signature:
Sort.getUninterpretedSortConstructorArity()
Returns
The arity of a sort constructor sort.
Binding: Generated from cvc5_sort_uninterpreted_sort_constructor_get_arity.
Sort.getBitVectorSize¶
Mojo declaration:
def getBitVectorSize(self) raises -> Int
Upstream Python signature:
Sort.getBitVectorSize()
Returns
The bit-width of the bit-vector sort.
Binding: Generated from cvc5_sort_bv_get_size.
Sort.getFiniteFieldSize¶
Mojo declaration:
def getFiniteFieldSize(self) raises -> Integer
Upstream Python signature:
Sort.getFiniteFieldSize()
Returns
The size of the finite field sort.
Binding: Generated from cvc5_sort_ff_get_size.
Sort.getFloatingPointExponentSize¶
Mojo declaration:
def getFloatingPointExponentSize(self) raises -> Int
Upstream Python signature:
Sort.getFloatingPointExponentSize()
Returns
The bit-width of the exponent of the floating-point sort.
Binding: Generated from cvc5_sort_fp_get_exp_size.
Sort.getFloatingPointSignificandSize¶
Mojo declaration:
def getFloatingPointSignificandSize(self) raises -> Int
Upstream Python signature:
Sort.getFloatingPointSignificandSize()
Returns
The width of the significand of the floating-point sort.
Binding: Generated from cvc5_sort_fp_get_sig_size.
Sort.getDatatypeArity¶
Mojo declaration:
def getDatatypeArity(self) raises -> Int
Upstream Python signature:
Sort.getDatatypeArity()
Returns
The arity of a datatype sort.
Binding: Generated from cvc5_sort_dt_get_arity.
Sort.getTupleLength¶
Mojo declaration:
def getTupleLength(self) raises -> Int
Upstream Python signature:
Sort.getTupleLength()
Returns
The length of a tuple sort.
Binding: Generated from cvc5_sort_tuple_get_length.
Sort.getTupleSorts¶
Mojo declaration:
def getTupleSorts(self) raises -> List[Sort]
Upstream Python signature:
Sort.getTupleSorts()
Returns
The element sorts of a tuple sort.
Binding: Generated from cvc5_sort_tuple_get_element_sorts.
Sort.getNullableElementSort¶
Mojo declaration:
def getNullableElementSort(self) raises -> Sort
Upstream Python signature:
Sort.getNullableElementSort()
Returns
The element sort of a nullable sort.
Binding: Generated from cvc5_sort_nullable_get_element_sort.