Modifier and Type | Field and Description |
---|---|
protected long |
pointer |
Constructor and Description |
---|
Sort()
Null sort
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Sort s)
Comparison for ordering on sorts.
|
void |
deletePointer() |
protected void |
deletePointer(long pointer) |
boolean |
equals(java.lang.Object s)
Comparison for structural equality.
|
SortKind |
getAbstractedKind() |
Sort |
getArrayElementSort() |
Sort |
getArrayIndexSort() |
Sort |
getBagElementSort() |
int |
getBitVectorSize() |
Datatype |
getDatatype() |
int |
getDatatypeArity() |
int |
getDatatypeConstructorArity() |
Sort |
getDatatypeConstructorCodomainSort() |
Sort[] |
getDatatypeConstructorDomainSorts() |
Sort |
getDatatypeSelectorCodomainSort() |
Sort |
getDatatypeSelectorDomainSort() |
Sort |
getDatatypeTesterCodomainSort() |
Sort |
getDatatypeTesterDomainSort() |
java.lang.String |
getFiniteFieldSize() |
int |
getFloatingPointExponentSize() |
int |
getFloatingPointSignificandSize() |
int |
getFunctionArity() |
Sort |
getFunctionCodomainSort() |
Sort[] |
getFunctionDomainSorts() |
Sort[] |
getInstantiatedParameters()
Get the sorts used to instantiate the sort parameters of a parametric
sort (parametric datatype or uninterpreted sort constructor sort,
see
instantiate(Sort[]) ). |
SortKind |
getKind() |
Sort |
getNullableElementSort() |
long |
getPointer() |
Sort |
getSequenceElementSort() |
Sort |
getSetElementSort() |
java.lang.String |
getSymbol() |
int |
getTupleLength() |
Sort[] |
getTupleSorts() |
Sort |
getUninterpretedSortConstructor()
Get the associated uninterpreted sort constructor of an instantiated
uninterpreted sort.
|
int |
getUninterpretedSortConstructorArity() |
int |
hashCode()
Get the hash value of a sort.
|
boolean |
hasSymbol() |
Sort |
instantiate(Sort[] params)
Instantiate a parameterized datatype sort or uninterpreted sort
constructor sort.
|
boolean |
isAbstract()
Determine if this is an abstract sort.
|
boolean |
isArray()
Determine if this is an array sort.
|
boolean |
isBag()
Determine if this is a Bag sort.
|
boolean |
isBitVector()
Determine if this is a bit-vector sort (SMT-LIB:
(_ BitVec i) ). |
boolean |
isBoolean()
Determine if this is the Boolean sort (SMT-LIB:
Bool ). |
boolean |
isDatatype()
Determine if this is a datatype sort.
|
boolean |
isDatatypeConstructor()
Determine if this is a datatype constructor sort.
|
boolean |
isDatatypeSelector()
Determine if this is a datatype selector sort.
|
boolean |
isDatatypeTester()
Determine if this is a datatype tester sort.
|
boolean |
isDatatypeUpdater()
Determine if this is a datatype updater sort.
|
boolean |
isFiniteField()
Determine if this is a finite field sort (SMT-LIB:
(_ FiniteField i) ). |
boolean |
isFloatingPoint()
Determine if this is a floatingpoint sort
(SMT-LIB:
(_ FloatingPoint eb sb) ). |
boolean |
isFunction()
Determine if this is a function sort.
|
boolean |
isInstantiated()
Determine if this is an instantiated (parametric datatype or uninterpreted
sort constructor) sort.
|
boolean |
isInteger()
Determine if this is the integer sort (SMT-LIB:
Int ). |
boolean |
isNull()
Determine if this is the null sort.
|
boolean |
isNullable()
Determine if this a nullable sort.
|
boolean |
isPredicate()
Determine if this is a predicate sort.
|
boolean |
isReal()
Determine if this is the real sort (SMT-LIB:
Real ). |
boolean |
isRecord()
Determine if this is a record sort.
|
boolean |
isRegExp()
Determine if this is the regular expression sort (SMT-LIB:
RegLan ). |
boolean |
isRoundingMode()
Determine if this is the rounding mode sort (SMT-LIB:
RoundingMode ). |
boolean |
isSequence()
Determine if this is a Sequence sort.
|
boolean |
isSet()
Determine if this is a Set sort.
|
boolean |
isString()
Determine if this is the string sort (SMT-LIB:
String ).. |
boolean |
isTuple()
Determine if this a tuple sort.
|
boolean |
isUninterpretedSort()
Determine if this is an uninterpreted sort.
|
boolean |
isUninterpretedSortConstructor()
Determine if this is an uninterpreted sort constructor.
|
Sort |
substitute(Sort[] sorts,
Sort[] replacements)
Simultaneous substitution of Sorts.
|
Sort |
substitute(Sort sort,
Sort replacement)
Substitution of Sorts.
|
java.lang.String |
toString() |
protected java.lang.String |
toString(long pointer) |
protected void deletePointer(long pointer)
public boolean equals(java.lang.Object s)
equals
in class java.lang.Object
s
- The sort to compare to.public int compareTo(Sort s)
compareTo
in interface java.lang.Comparable<Sort>
s
- The sort to compare to.public SortKind getKind() throws CVC5ApiException
CVC5ApiException
- on errorpublic boolean hasSymbol()
public java.lang.String getSymbol()
public boolean isNull()
public boolean isBoolean()
Bool
).public boolean isInteger()
Int
).public boolean isReal()
Real
).public boolean isString()
String
)..public boolean isRegExp()
RegLan
).public boolean isRoundingMode()
RoundingMode
).public boolean isBitVector()
(_ BitVec i)
).public boolean isFiniteField()
(_ FiniteField i)
).public boolean isFloatingPoint()
(_ FloatingPoint eb sb)
).public boolean isDatatype()
public boolean isDatatypeConstructor()
public boolean isDatatypeSelector()
public boolean isDatatypeTester()
public boolean isDatatypeUpdater()
public boolean isFunction()
public boolean isPredicate()
public boolean isTuple()
public boolean isNullable()
public boolean isRecord()
public boolean isArray()
public boolean isSet()
public boolean isBag()
public boolean isSequence()
public boolean isAbstract()
public boolean isUninterpretedSort()
public boolean isUninterpretedSortConstructor()
public boolean isInstantiated()
instantiate(Sort[])
).public Sort getUninterpretedSortConstructor()
public Datatype getDatatype()
public Sort instantiate(Sort[] params)
Solver.mkParamSort(String)
).params
- The list of sort parameters to instantiate with.public Sort[] getInstantiatedParameters()
instantiate(Sort[])
).public Sort substitute(Sort sort, Sort replacement)
sort
- The subsort to be substituted within this sort.replacement
- The sort replacing the substituted subsort.public Sort substitute(Sort[] sorts, Sort[] replacements)
(Array A B).substitute({A, C}, {(Array C D), (Array A B)})
will
return (Array (Array C D) B)
.sorts
- The subsorts to be substituted within this sort.replacements
- The sort replacing the substituted subsorts.protected java.lang.String toString(long pointer)
public int getDatatypeConstructorArity()
public Sort[] getDatatypeConstructorDomainSorts()
public Sort getDatatypeConstructorCodomainSort()
public Sort getDatatypeSelectorDomainSort()
public Sort getDatatypeSelectorCodomainSort()
public Sort getDatatypeTesterDomainSort()
public Sort getDatatypeTesterCodomainSort()
public int getFunctionArity()
public Sort[] getFunctionDomainSorts()
public Sort getFunctionCodomainSort()
public Sort getArrayIndexSort()
public Sort getArrayElementSort()
public Sort getSetElementSort()
public Sort getBagElementSort()
public Sort getSequenceElementSort()
public SortKind getAbstractedKind() throws CVC5ApiException
CVC5ApiException
- on errorpublic int getUninterpretedSortConstructorArity()
public int getBitVectorSize()
public java.lang.String getFiniteFieldSize()
public int getFloatingPointExponentSize()
public int getFloatingPointSignificandSize()
public int getDatatypeArity()
public int getTupleLength()
public Sort[] getTupleSorts()
public Sort getNullableElementSort()
public int hashCode()
hashCode
in class java.lang.Object
public long getPointer()
public void deletePointer()
public java.lang.String toString()
toString
in class java.lang.Object