TermManager¶
The term manager creates sorts, terms, operators, and datatype declarations. The objects it creates keep it alive, and several solvers can share one term manager.
Integer literals stay exact. mkInteger(42) automatically uses the direct
64-bit constructor when the literal fits; larger literals retain arbitrary
precision. See literal construction.
Fitting APN Integer and Rational inputs and nonnegative bit-vector values
also use native numeric constructors, with exact text fallbacks for wider
values. See direct numeric conversions.
The cached C API rejects mkParamSort() and mkParamSort(None), although
Python accepts them. Pass an explicit symbol when creating parameter sorts.
An empty string is an empty symbol, not an anonymous sort; see the
native limitation.
TermManager¶
A cvc5 term manager.
Wrapper class for TermManager.
68 of the 68 mirrored methods of TermManager are generated.
| Method | Summary | Binding | Mojo |
|---|---|---|---|
getStatistics |
Get a snapshot of the current state of the statistic values of this term manager. | auto | ✓ |
getBooleanSort |
Returns sort Boolean. | auto | ✓ |
getIntegerSort |
Returns sort Integer. | auto | ✓ |
getRealSort |
Returns sort Real. | auto | ✓ |
getRegExpSort |
Returns the sort of regular expressions. | auto | ✓ |
getRoundingModeSort |
Returns sort RoundingMode. | auto | ✓ |
getStringSort |
Returns sort String. | auto | ✓ |
mkArraySort |
Create an array sort. | auto | ✓ |
mkBitVectorSort |
Create a bit-vector sort. | auto | ✓ |
mkFloatingPointSort |
Create a floating-point sort. | auto | ✓ |
mkFiniteFieldSort |
Create a finite field sort. | auto | ✓ |
mkDatatypeSort |
Create a datatype sort. | auto | ✓ |
mkDatatypeSorts |
Create a vector of datatype sorts using unresolved sorts. | auto | ✓ |
mkFunctionSort |
Create function sort. | auto | ✓ |
mkParamSort |
Create a sort parameter. | auto | ✓ |
mkSkolem |
Create a skolem. | auto | ✓ |
getNumIndicesForSkolemId |
Get the number of indices for a skolem id. | auto | ✓ |
mkPredicateSort |
Create a predicate sort. | auto | ✓ |
mkRecordSort |
Create a record sort | auto | ✓ |
mkSetSort |
Create a set sort. | auto | ✓ |
mkBagSort |
Create a bag sort. | auto | ✓ |
mkSequenceSort |
Create a sequence sort. | auto | ✓ |
mkAbstractSort |
Create an abstract sort. | auto | ✓ |
mkUninterpretedSort |
Create an uninterpreted sort. | auto | ✓ |
mkUnresolvedDatatypeSort |
Create an unresolved datatype sort. | auto | ✓ |
mkUninterpretedSortConstructorSort |
Create a sort constructor sort. | auto | ✓ |
mkTupleSort |
Create a tuple sort. | auto | ✓ |
mkNullableSort |
Create a nullable sort. | auto | ✓ |
mkTerm |
Create a term. | overloaded | ✓ |
mkTuple |
Create a tuple term. | auto | ✓ |
mkNullableSome |
Create a nullable some term. | auto | ✓ |
mkNullableVal |
Create a selector for nullable term. | auto | ✓ |
mkNullableIsNull |
Create a null tester for a nullable term. | auto | ✓ |
mkNullableIsSome |
Create a some tester for a nullable term. | auto | ✓ |
mkNullableNull |
Create a constant representing an null of the given sort. | auto | ✓ |
mkNullableLift |
Create a term that lifts kind to nullable terms. | auto | ✓ |
mkOp |
Create operator. | overloaded | ✓ |
mkTrue |
Create a Boolean true constant. | auto | ✓ |
mkFalse |
Create a Boolean false constant. | auto | ✓ |
mkBoolean |
Create a Boolean constant. | auto | ✓ |
mkPi |
Create a constant representing the number Pi. | auto | ✓ |
mkInteger |
Create an integer constant. | overloaded | ✓ |
mkReal |
Create a real constant from a numerator and an optional denominator. | override | ✓ |
mkRegexpAll |
Create a regular expression all (re.all) term. |
auto | ✓ |
mkRegexpAllchar |
Create a regular expression allchar (re.allchar) term. |
auto | ✓ |
mkRegexpNone |
Create a regular expression none (re.none) term. |
auto | ✓ |
mkEmptySet |
Create a constant representing an empty set of the given sort. | auto | ✓ |
mkEmptyBag |
Create a constant representing an empty bag of the given sort. | auto | ✓ |
mkSepEmp |
Create a separation logic empty term. | auto | ✓ |
mkSepNil |
Create a separation logic nil term. | auto | ✓ |
mkString |
Create a String constant from a str which may contain SMT-LIB compatible escape sequences like \u1234 to encode unicode characters. |
manual | ✓ |
mkEmptySequence |
Create an empty sequence of the given element sort. | auto | ✓ |
mkUniverseSet |
Create a universe set of the given sort. | auto | ✓ |
mkBitVector |
Create bit-vector value. | override | ✓ |
mkFiniteFieldElem |
Create finite field value. | auto | ✓ |
mkConstArray |
Create a constant array with the provided constant value stored at every index | auto | ✓ |
mkFloatingPointPosInf |
Create a positive infinity floating-point constant. | auto | ✓ |
mkFloatingPointNegInf |
Create a negative infinity floating-point constant. | auto | ✓ |
mkFloatingPointNaN |
Create a not-a-number (NaN) floating-point constant. | auto | ✓ |
mkFloatingPointPosZero |
Create a positive zero (+0.0) floating-point constant. | auto | ✓ |
mkFloatingPointNegZero |
Create a negative zero (+0.0) floating-point constant. | auto | ✓ |
mkRoundingMode |
Create a roundingmode constant. | auto | ✓ |
mkFloatingPoint |
Create a floating-point value from a bit-vector given in IEEE-754 format, or from its three IEEE-754 bit-vector value components (sign bit, exponent, significand). | overloaded | ✓ |
mkCardinalityConstraint |
Create cardinality constraint. | auto | ✓ |
mkConst |
Create (first-order) constant (0-arity function symbol). | auto | ✓ |
mkVar |
Create a bound variable to be used in a binder (i.e. | auto | ✓ |
mkDatatypeConstructorDecl |
Create datatype constructor declaration. | auto | ✓ |
mkDatatypeDecl |
Create a datatype declaration. | overloaded | ✓ |
TermManager.getStatistics¶
Mojo declaration:
def getStatistics(self) raises -> Statistics
Upstream Python signature:
TermManager.getStatistics()
Get a snapshot of the current state of the statistic values of this term manager.
Term manager statistics are independent from any solver instance. The returned object is completely decoupled from the term manager and will not change when the solver is used again.
Returns
A snapshot of the current state of the statistic values.
Binding: Generated from cvc5_term_manager_get_statistics.
TermManager.getBooleanSort¶
Mojo declaration:
def getBooleanSort(self) raises -> Sort
Upstream Python signature:
TermManager.getBooleanSort()
Returns
Sort Boolean.
Binding: Generated from cvc5_get_boolean_sort.
TermManager.getIntegerSort¶
Mojo declaration:
def getIntegerSort(self) raises -> Sort
Upstream Python signature:
TermManager.getIntegerSort()
Returns
Sort Integer.
Binding: Generated from cvc5_get_integer_sort.
TermManager.getRealSort¶
Mojo declaration:
def getRealSort(self) raises -> Sort
Upstream Python signature:
TermManager.getRealSort()
Returns
Sort Real.
Binding: Generated from cvc5_get_real_sort.
TermManager.getRegExpSort¶
Mojo declaration:
def getRegExpSort(self) raises -> Sort
Upstream Python signature:
TermManager.getRegExpSort()
Returns
The sort of regular expressions.
Binding: Generated from cvc5_get_regexp_sort.
TermManager.getRoundingModeSort¶
Mojo declaration:
def getRoundingModeSort(self) raises -> Sort
Upstream Python signature:
TermManager.getRoundingModeSort()
Returns
Sort RoundingMode.
Binding: Generated from cvc5_get_rm_sort.
TermManager.getStringSort¶
Mojo declaration:
def getStringSort(self) raises -> Sort
Upstream Python signature:
TermManager.getStringSort()
Returns
Sort String.
Binding: Generated from cvc5_get_string_sort.
TermManager.mkArraySort¶
Mojo declaration:
def mkArraySort(self, indexSort: Sort, elemSort: Sort) raises -> Sort
Upstream Python signature:
TermManager.mkArraySort(indexSort: Sort, elemSort: Sort)
Create an array sort.
Parameters
indexSort: The array index sort.elemSort: The array element sort.
Returns
The array sort.
Binding: Generated from cvc5_mk_array_sort.
TermManager.mkBitVectorSort¶
Mojo declaration:
def mkBitVectorSort(self, size: Int) raises -> Sort
def mkBitVectorSort(self, size: IntLiteral) raises -> Sort
Upstream Python signature:
TermManager.mkBitVectorSort(size: uint32_t)
Create a bit-vector sort.
Parameters
size: The bit-width of the bit-vector sort
Returns
The bit-vector sort
Binding: Generated from cvc5_mk_bv_sort.
TermManager.mkFloatingPointSort¶
Mojo declaration:
def mkFloatingPointSort(self, exp: Int, sig: Int) raises -> Sort
def mkFloatingPointSort(self, exp: IntLiteral, sig: Int) raises -> Sort
def mkFloatingPointSort(self, exp: Int, sig: IntLiteral) raises -> Sort
def mkFloatingPointSort(self, exp: IntLiteral, sig: IntLiteral) raises -> Sort
Upstream Python signature:
TermManager.mkFloatingPointSort(exp: uint32_t, sig: uint32_t)
Create a floating-point sort.
Parameters
exp: The bit-width of the exponent of the floating-point sort.sig: The bit-width of the significand of the floating-point sort.
Binding: Generated from cvc5_mk_fp_sort.
TermManager.mkFiniteFieldSort¶
Mojo declaration:
def mkFiniteFieldSort(self, size: String, base: Int = 10) raises -> Sort
def mkFiniteFieldSort(self, size: String, base: IntLiteral) raises -> Sort
def mkFiniteFieldSort(self, size: Integer) raises -> Sort
Upstream Python signature:
TermManager.mkFiniteFieldSort(size, base: int = 10)
Create a finite field sort.
Supports the following arguments:
Sort mkFiniteFieldSort(int size)Sort mkFiniteFieldSort(string size)Sort mkFiniteFieldSort(string size, int base)
Parameters
size: The size of the field. Must be a prime-power. An integer or string of base 10 if the base is not explicitly given, and else a string in the given base.base: The base of the string representation ofsize.
Binding: Generated from cvc5_mk_ff_sort.
TermManager.mkDatatypeSort¶
Mojo declaration:
def mkDatatypeSort(self, dtypedecl: DatatypeDecl) raises -> Sort
Upstream Python signature:
TermManager.mkDatatypeSort(dtypedecl: DatatypeDecl)
Create a datatype sort.
Parameters
dtypedecl: The datatype declaration from which the sort is created.
Returns
The datatype sort.
Binding: Generated from cvc5_mk_dt_sort.
TermManager.mkDatatypeSorts¶
Mojo declaration:
def mkDatatypeSorts(self, dtypedecls: List[DatatypeDecl]) raises -> List[Sort]
Upstream Python signature:
TermManager.mkDatatypeSorts(dtypedecls: list)
Create a vector of datatype sorts using unresolved sorts. The names of the datatype declarations in dtypedecls must be distinct.
When constructing datatypes, unresolved sorts are replaced by the datatype sort constructed for the datatype declaration it is associated with.
Parameters
dtypedecls: The datatype declarations from which the sort is created.
Returns
The datatype sorts.
Binding: Generated from cvc5_mk_dt_sorts.
TermManager.mkFunctionSort¶
Mojo declaration:
def mkFunctionSort(self, sorts: List[Sort], codomain: Sort) raises -> Sort
def mkFunctionSort(self, sorts: Sort, codomain: Sort) raises -> Sort
Upstream Python signature:
TermManager.mkFunctionSort(sorts, codomain: Sort)
Create function sort.
Parameters
sorts: The sort of the function arguments.codomain: The sort of the function return value.
Returns
The function sort.
Binding: Generated from cvc5_mk_fun_sort.
TermManager.mkParamSort¶
Mojo declaration:
def mkParamSort(self, symbolname: Optional[String] = None) raises -> Sort
Upstream Python signature:
TermManager.mkParamSort(symbolname: str = None)
Create a sort parameter.
Warning
This function is experimental and may change in future versions.
Parameters
symbol: The name of the sort.
Returns
The sort parameter.
Binding: Generated from cvc5_mk_param_sort.
TermManager.mkSkolem¶
Mojo declaration:
def mkSkolem(self, id: SkolemId, *indices: Term) raises -> Term
def mkSkolem(self, id: SkolemId, indices: List[Term]) raises -> Term
Upstream Python signature:
TermManager.mkSkolem(id, *indices)
Create a skolem.
Warning
This function is experimental and may change in future versions.
Parameters
id: The skolem id.indices: The indices for the skolem.
Returns
The skolem with the given id and indices.
Binding: Generated from cvc5_mk_skolem.
TermManager.getNumIndicesForSkolemId¶
Mojo declaration:
def getNumIndicesForSkolemId(self, id: SkolemId) raises -> Int
Upstream Python signature:
TermManager.getNumIndicesForSkolemId(id)
Get the number of indices for a skolem id.
Warning
This function is experimental and may change in future versions.
Parameters
id: The skolem id.
Returns
The number of indice for a skolem with the given id.
Binding: Generated from cvc5_get_num_idxs_for_skolem_id.
TermManager.mkPredicateSort¶
Mojo declaration:
def mkPredicateSort(self, *sorts: Sort) raises -> Sort
def mkPredicateSort(self, sorts: List[Sort]) raises -> Sort
Upstream Python signature:
TermManager.mkPredicateSort(*sorts)
Create a predicate sort.
Parameters
sorts: The list of sorts of the predicate.
Returns
The predicate sort.
Binding: Generated from cvc5_mk_predicate_sort.
TermManager.mkRecordSort¶
Mojo declaration:
def mkRecordSort(self, names: List[String], sorts: List[Sort]) raises -> Sort
def mkRecordSort(self, *fields: Tuple[String, Sort]) raises -> Sort
Upstream Python signature:
TermManager.mkRecordSort(*fields)
Create a record sort
Warning
This function is experimental and may change in future versions.
Parameters
fields: The list of fields of the record.
Returns
The record sort.
Binding: Generated from cvc5_mk_record_sort.
TermManager.mkSetSort¶
Mojo declaration:
def mkSetSort(self, elemSort: Sort) raises -> Sort
Upstream Python signature:
TermManager.mkSetSort(elemSort: Sort)
Create a set sort.
Parameters
elemSort: The sort of the set elements.
Returns
The set sort.
Binding: Generated from cvc5_mk_set_sort.
TermManager.mkBagSort¶
Mojo declaration:
def mkBagSort(self, elemSort: Sort) raises -> Sort
Upstream Python signature:
TermManager.mkBagSort(elemSort: Sort)
Create a bag sort.
Parameters
elemSort: The sort of the bag elements.
Returns
The bag sort.
Binding: Generated from cvc5_mk_bag_sort.
TermManager.mkSequenceSort¶
Mojo declaration:
def mkSequenceSort(self, elemSort: Sort) raises -> Sort
Upstream Python signature:
TermManager.mkSequenceSort(elemSort: Sort)
Create a sequence sort.
Parameters
elemSort: The sort of the sequence elements
Returns
The sequence sort.
Binding: Generated from cvc5_mk_sequence_sort.
TermManager.mkAbstractSort¶
Mojo declaration:
def mkAbstractSort(self, kind: SortKind) raises -> Sort
Upstream Python signature:
TermManager.mkAbstractSort(kind)
Create an abstract sort. An abstract sort represents a sort for a given kind whose parameters and arguments are unspecified.
Given kind must be the kind of a sort that can be abstracted,
i.e., a sort that has indices or argument sorts. For example,
ARRAY_SORT
and BITVECTOR_SORT can be
passed as the kind k to this method, while
INTEGER_SORT and
STRING_SORT cannot.
Note
Providing the kind ABSTRACT_SORT
as an argument to this method returns the (fully) unspecified
sort, denoted ?.
Note
Providing a kind of sort that has no indices and a fixed arity
of argument sorts will return the sort of kind kind whose
arguments are the unspecified sort. For example,
mkAbstractSort(ARRAY_SORT) will return the sort
(ARRAY_SORT ? ?) instead of the abstract sort whose
abstract kind is pyARRAY_SORT.
Warning
This function is experimental and may change in future versions.
Parameters
k: The kind of the abstract sort
Returns
The abstract sort.
Binding: Generated from cvc5_mk_abstract_sort.
TermManager.mkUninterpretedSort¶
Mojo declaration:
def mkUninterpretedSort(self, name: Optional[String] = None) raises -> Sort
Upstream Python signature:
TermManager.mkUninterpretedSort(name: str = None)
Create an uninterpreted sort.
Parameters
symbol: The name of the sort.
Returns
The uninterpreted sort.
Binding: Generated from cvc5_mk_uninterpreted_sort.
TermManager.mkUnresolvedDatatypeSort¶
Mojo declaration:
def mkUnresolvedDatatypeSort(self, name: String, arity: Int = 0) raises -> Sort
def mkUnresolvedDatatypeSort(self, name: String, arity: IntLiteral) raises -> Sort
Upstream Python signature:
TermManager.mkUnresolvedDatatypeSort(name: str, arity: size_t = 0)
Create an unresolved datatype sort.
This is for creating yet unresolved sort placeholders for mutually recursive datatypes.
Parameters
symbol: The name of the sort.arity: The number of sort parameters of the sort.
Returns
The unresolved sort.
Binding: Generated from cvc5_mk_unresolved_dt_sort.
TermManager.mkUninterpretedSortConstructorSort¶
Mojo declaration:
def mkUninterpretedSortConstructorSort(self, arity: Int, symbol: Optional[String] = None) raises -> Sort
def mkUninterpretedSortConstructorSort(self, arity: IntLiteral, symbol: Optional[String] = None) raises -> Sort
Upstream Python signature:
TermManager.mkUninterpretedSortConstructorSort(arity: size_t, symbol: str = None)
Create a sort constructor sort.
An uninterpreted sort constructor is an uninterpreted sort with arity > 0.
Parameters
symbol: The symbol of the sort.arity: The arity of the sort (must be > 0).
Returns
The sort constructor sort.
Binding: Generated from cvc5_mk_uninterpreted_sort_constructor_sort.
TermManager.mkTupleSort¶
Mojo declaration:
def mkTupleSort(self, *sorts: Sort) raises -> Sort
def mkTupleSort(self, sorts: List[Sort]) raises -> Sort
Upstream Python signature:
TermManager.mkTupleSort(*sorts)
Create a tuple sort.
Parameters
sorts: Of the elements of the tuple.
Returns
The tuple sort.
Binding: Generated from cvc5_mk_tuple_sort.
TermManager.mkNullableSort¶
Mojo declaration:
def mkNullableSort(self, elemSort: Sort) raises -> Sort
Upstream Python signature:
TermManager.mkNullableSort(elemSort: Sort)
Create a nullable sort.
Parameters
elemSort: The sort of the element of the nullable.
Returns
The nullable sort.
Binding: Generated from cvc5_mk_nullable_sort.
TermManager.mkTerm¶
Mojo declaration:
def mkTerm(self, kind: Kind, *args: Term) raises -> Term
def mkTerm(self, kind: Kind, args: List[Term]) raises -> Term
def mkTerm(self, op: Op, *args: Term) raises -> Term
def mkTerm(self, op: Op, args: List[Term]) raises -> Term
Upstream Python signature:
TermManager.mkTerm(kind_or_op, *args)
Create a term.
Supports the following arguments:
Term mkTerm(Kind kind)Term mkTerm(Op op)Term mkTerm(Kind kind, *args)Term mkTerm(Op op, *args)
where *args is a comma-separated list of terms.
Binding: Generated as overloads from cvc5_mk_term, cvc5_mk_term_from_op.
TermManager.mkTuple¶
Mojo declaration:
def mkTuple(self, terms: List[Term]) raises -> Term
Upstream Python signature:
TermManager.mkTuple(terms)
Create a tuple term. Terms are automatically converted if sorts are compatible.
Parameters
terms: The elements in the tuple.
Returns
The tuple Term.
Binding: Generated from cvc5_mk_tuple.
TermManager.mkNullableSome¶
Mojo declaration:
def mkNullableSome(self, term: Term) raises -> Term
Upstream Python signature:
TermManager.mkNullableSome(term: Term)
Create a nullable some term.
Parameters
term: The elements value.
Returns
The element value wrapped in some constructor.
Binding: Generated from cvc5_mk_nullable_some.
TermManager.mkNullableVal¶
Mojo declaration:
def mkNullableVal(self, term: Term) raises -> Term
Upstream Python signature:
TermManager.mkNullableVal(term: Term)
Create a selector for nullable term.
Parameters
term: A nullable term.
Returns
The element value of the nullable term.
Binding: Generated from cvc5_mk_nullable_val.
TermManager.mkNullableIsNull¶
Mojo declaration:
def mkNullableIsNull(self, term: Term) raises -> Term
Upstream Python signature:
TermManager.mkNullableIsNull(term: Term)
Create a null tester for a nullable term.
Parameters
term: A nullable term.
Returns
A tester whether term is null.
Binding: Generated from cvc5_mk_nullable_is_null.
TermManager.mkNullableIsSome¶
Mojo declaration:
def mkNullableIsSome(self, term: Term) raises -> Term
Upstream Python signature:
TermManager.mkNullableIsSome(term: Term)
Create a some tester for a nullable term.
Parameters
term: A nullable term.
Returns
A tester whether term is some.
Binding: Generated from cvc5_mk_nullable_is_some.
TermManager.mkNullableNull¶
Mojo declaration:
def mkNullableNull(self, sort: Sort) raises -> Term
Upstream Python signature:
TermManager.mkNullableNull(sort: Sort)
Create a constant representing an null of the given sort.
Parameters
term: The sort of the Nullable element.
Returns
The null constant.
Binding: Generated from cvc5_mk_nullable_null.
TermManager.mkNullableLift¶
Mojo declaration:
def mkNullableLift(self, kind: Kind, *args: Term) raises -> Term
def mkNullableLift(self, kind: Kind, args: List[Term]) raises -> Term
Upstream Python signature:
TermManager.mkNullableLift(kind, *args)
Create a term that lifts kind to nullable terms. Example: If we have the term ((_ nullable.lift +) x y), where x, y of type (Nullable Int), then kind would be ADD, and args would be [x, y]. This function would return (nullable.lift (lambda ((a Int) (b Int)) (+ a b)) x y)
Parameters
kind: The lifted operator.args: The arguments of the lifted operator.
Returns
A term of Kind NULLABLE_LIFT where the first child is a lambda expression, and the remaining children are the original arguments.
Binding: Generated from cvc5_mk_nullable_lift.
TermManager.mkOp¶
Mojo declaration:
def mkOp(self, k: Kind, *args: Integer) raises -> Op
def mkOp(self, k: Kind, args: List[Int]) raises -> Op
def mkOp(self, k: Kind, arg: String) raises -> Op
Upstream Python signature:
TermManager.mkOp(k, *args)
Create operator.
Supports the following arguments:
Op mkOp(Kind kind)Op mkOp(Kind kind, const string& arg)Op mkOp(Kind kind, uint32_t arg0, ...)
Binding: Generated as overloads from cvc5_mk_op, cvc5_mk_op_from_str.
TermManager.mkTrue¶
Mojo declaration:
def mkTrue(self) raises -> Term
Upstream Python signature:
TermManager.mkTrue()
Create a Boolean true constant.
Returns
The true constant.
Binding: Generated from cvc5_mk_true.
TermManager.mkFalse¶
Mojo declaration:
def mkFalse(self) raises -> Term
Upstream Python signature:
TermManager.mkFalse()
Create a Boolean false constant.
Returns
The false constant.
Binding: Generated from cvc5_mk_false.
TermManager.mkBoolean¶
Mojo declaration:
def mkBoolean(self, val: Bool) raises -> Term
Upstream Python signature:
TermManager.mkBoolean(val: bint)
Create a Boolean constant.
Parameters
val: The value of the constant.
Returns
The Boolean constant.
Binding: Generated from cvc5_mk_boolean.
TermManager.mkPi¶
Mojo declaration:
def mkPi(self) raises -> Term
Upstream Python signature:
TermManager.mkPi()
Create a constant representing the number Pi.
Returns
A constant representing PI.
Binding: Generated from cvc5_mk_pi.
TermManager.mkInteger¶
Mojo declaration:
def mkInteger(self, val: String) raises -> Term
def mkInteger(self, val: Int) raises -> Term
def mkInteger(self, val: Integer) raises -> Term
def mkInteger(self, val: IntLiteral) raises -> Term
Upstream Python signature:
TermManager.mkInteger(val)
Create an integer constant.
Parameters
val: Representation of the constant: either a string or integer.
Returns
A constant of sort Integer.
Binding: Generated as overloads from cvc5_mk_integer, cvc5_mk_integer_int64.
TermManager.mkReal¶
Mojo declaration:
def mkReal(self, numerator: String) raises -> Term
def mkReal(self, numerator: Int) raises -> Term
def mkReal(self, numerator: Rational) raises -> Term
def mkReal(self, numerator: IntLiteral) raises -> Term
def mkReal(self, numerator: Float64) raises -> Term
def mkReal(self, numerator: FloatLiteral) raises -> Term
def mkReal(self, numerator: Integer, denominator: Integer) raises -> Term
def mkReal(self, numerator: String, denominator: String) raises -> Term
def mkReal(self, numerator: Integer, denominator: String) raises -> Term
def mkReal(self, numerator: String, denominator: Integer) raises -> Term
Upstream Python signature:
TermManager.mkReal(numerator, denominator = None)
Create a real constant from a numerator and an optional denominator.
First converts the arguments to a temporary string, either
"<numerator>" or "<numerator>/<denominator>". This temporary
string is forwarded to TermManager::mkReal() and should
thus represent an integer, a decimal number or a fraction.
Parameters
numerator: The numerator.denominator: The denominator, orNone.
Returns
A real term with literal value.
Binding: Bound to cvc5_mk_real, cvc5_mk_real_int64, cvc5_mk_real_num_den by bindgen/overrides.toml. Exact Integer/Rational overloads use a private generated int64-pair helper when representable, with a decimal fallback..
TermManager.mkRegexpAll¶
Mojo declaration:
def mkRegexpAll(self) raises -> Term
Upstream Python signature:
TermManager.mkRegexpAll()
Create a regular expression all (re.all) term.
Returns
The all term.
Binding: Generated from cvc5_mk_regexp_all.
TermManager.mkRegexpAllchar¶
Mojo declaration:
def mkRegexpAllchar(self) raises -> Term
Upstream Python signature:
TermManager.mkRegexpAllchar()
Create a regular expression allchar (re.allchar) term.
Returns
The allchar term.
Binding: Generated from cvc5_mk_regexp_allchar.
TermManager.mkRegexpNone¶
Mojo declaration:
def mkRegexpNone(self) raises -> Term
Upstream Python signature:
TermManager.mkRegexpNone()
Create a regular expression none (re.none) term.
Returns
The none term.
Binding: Generated from cvc5_mk_regexp_none.
TermManager.mkEmptySet¶
Mojo declaration:
def mkEmptySet(self, s: Sort) raises -> Term
Upstream Python signature:
TermManager.mkEmptySet(s: Sort)
Create a constant representing an empty set of the given sort.
Parameters
sort: The sort of the set elements.
Returns
The empty set constant.
Binding: Generated from cvc5_mk_empty_set.
TermManager.mkEmptyBag¶
Mojo declaration:
def mkEmptyBag(self, s: Sort) raises -> Term
Upstream Python signature:
TermManager.mkEmptyBag(s: Sort)
Create a constant representing an empty bag of the given sort.
Parameters
sort: The sort of the bag elements.
Returns
The empty bag constant.
Binding: Generated from cvc5_mk_empty_bag.
TermManager.mkSepEmp¶
Mojo declaration:
def mkSepEmp(self) raises -> Term
Upstream Python signature:
TermManager.mkSepEmp()
Create a separation logic empty term.
Warning
This function is experimental and may change in future versions.
Returns
The separation logic empty term.
Binding: Generated from cvc5_mk_sep_emp.
TermManager.mkSepNil¶
Mojo declaration:
def mkSepNil(self, sort: Sort) raises -> Term
Upstream Python signature:
TermManager.mkSepNil(sort: Sort)
Create a separation logic nil term.
Warning
This function is experimental and may change in future versions.
Parameters
sort: The sort of the nil term.
Returns
The separation logic nil term.
Binding: Generated from cvc5_mk_sep_nil.
TermManager.mkString¶
Mojo declaration:
def mkString(self, s: String, useEscSequences: Optional[Bool] = None) raises -> Term
Upstream Python signature:
TermManager.mkString(s: str, useEscSequences = None)
Create a String constant from a str which may contain SMT-LIB compatible escape sequences like \u1234 to encode unicode characters.
Parameters
s: The string this constant represents.useEscSequences: Determines whether escape sequences insshould be converted to the corresponding unicode character
Returns
The String constant.
Binding: Hand-written using cvc5_mk_string. Python's omitted flag accepts Unicode code points; encode them as SMT-LIB escapes to preserve NUL through the C API. Explicit Boolean flags retain cvc5's escaped-string behavior..
TermManager.mkEmptySequence¶
Mojo declaration:
def mkEmptySequence(self, sort: Sort) raises -> Term
Upstream Python signature:
TermManager.mkEmptySequence(sort: Sort)
Create an empty sequence of the given element sort.
Parameters
sort: The element sort of the sequence.
Returns
The empty sequence with given element sort.
Binding: Generated from cvc5_mk_empty_sequence.
TermManager.mkUniverseSet¶
Mojo declaration:
def mkUniverseSet(self, sort: Sort) raises -> Term
Upstream Python signature:
TermManager.mkUniverseSet(sort: Sort)
Create a universe set of the given sort.
Parameters
sort: The sort of the set elements
Returns
The universe set constant
Binding: Generated from cvc5_mk_universe_set.
TermManager.mkBitVector¶
Mojo declaration:
def mkBitVector(self, size: Int, s: String, base: Int) raises -> Term
def mkBitVector(self, size: IntLiteral, s: String, base: Int) raises -> Term
def mkBitVector(self, size: Int, s: String, base: IntLiteral) raises -> Term
def mkBitVector(self, size: IntLiteral, s: String, base: IntLiteral) raises -> Term
def mkBitVector(self, size: Int, val: Integer) raises -> Term
def mkBitVector(self, size: Int) raises -> Term
def mkBitVector(self, size: IntLiteral, val: Integer) raises -> Term
def mkBitVector(self, size: IntLiteral) raises -> Term
Upstream Python signature:
TermManager.mkBitVector(size: int, *args)
Create bit-vector value.
Supports the following arguments:
Term mkBitVector(int size, int val=0)Term mkBitVector(int size, string val, int base)
Parameters
size: The bit-width.val: An integer representating the value, in the first form. In the second form, a string representing the value.base: The base of the string representation (second form only).
Returns
A Term representing a bit-vector value.
Binding: Bound to cvc5_mk_bv, cvc5_mk_bv_uint64 by bindgen/overrides.toml. The exact Integer overload uses a private generated uint64 helper for fitting nonnegative values, with a decimal fallback..
TermManager.mkFiniteFieldElem¶
Mojo declaration:
def mkFiniteFieldElem(self, value: String, sort: Sort, base: Int = 10) raises -> Term
def mkFiniteFieldElem(self, value: String, sort: Sort, base: IntLiteral) raises -> Term
def mkFiniteFieldElem(self, value: Integer, sort: Sort) raises -> Term
Upstream Python signature:
TermManager.mkFiniteFieldElem(value, sort: Sort, base: int = 10)
Create finite field value.
Supports the following arguments:
Term mkFiniteFieldElem(int value, Sort sort)Term mkFiniteFieldElem(string value, Sort sort)Term mkFiniteFieldElem(string value, Sort sort, int base)
Parameters
value: The value of the element's integer representation. An integer or string of base 10 if the base is not explicitly given, and else a string in the given base.sort: The field to create the element in.base: The base of the string representation ofvalue.
Returns
A Term representing a finite field value.
Binding: Generated from cvc5_mk_ff_elem.
TermManager.mkConstArray¶
Mojo declaration:
def mkConstArray(self, sort: Sort, val: Term) raises -> Term
Upstream Python signature:
TermManager.mkConstArray(sort: Sort, val: Term)
Create a constant array with the provided constant value stored at every index
Parameters
sort: The sort of the constant array (must be an array sort).val: The constant value to store (must match the sort's element sort).
Returns
The constant array term.
Binding: Generated from cvc5_mk_const_array.
TermManager.mkFloatingPointPosInf¶
Mojo declaration:
def mkFloatingPointPosInf(self, exp: Int, sig: Int) raises -> Term
def mkFloatingPointPosInf(self, exp: IntLiteral, sig: Int) raises -> Term
def mkFloatingPointPosInf(self, exp: Int, sig: IntLiteral) raises -> Term
def mkFloatingPointPosInf(self, exp: IntLiteral, sig: IntLiteral) raises -> Term
Upstream Python signature:
TermManager.mkFloatingPointPosInf(exp: int, sig: int)
Create a positive infinity floating-point constant.
Parameters
exp: Number of bits in the exponent.sig: Number of bits in the significand.
Returns
The floating-point constant.
Binding: Generated from cvc5_mk_fp_pos_inf.
TermManager.mkFloatingPointNegInf¶
Mojo declaration:
def mkFloatingPointNegInf(self, exp: Int, sig: Int) raises -> Term
def mkFloatingPointNegInf(self, exp: IntLiteral, sig: Int) raises -> Term
def mkFloatingPointNegInf(self, exp: Int, sig: IntLiteral) raises -> Term
def mkFloatingPointNegInf(self, exp: IntLiteral, sig: IntLiteral) raises -> Term
Upstream Python signature:
TermManager.mkFloatingPointNegInf(exp: int, sig: int)
Create a negative infinity floating-point constant.
Parameters
exp: Number of bits in the exponent.sig: Number of bits in the significand.
Returns
The floating-point constant.
Binding: Generated from cvc5_mk_fp_neg_inf.
TermManager.mkFloatingPointNaN¶
Mojo declaration:
def mkFloatingPointNaN(self, exp: Int, sig: Int) raises -> Term
def mkFloatingPointNaN(self, exp: IntLiteral, sig: Int) raises -> Term
def mkFloatingPointNaN(self, exp: Int, sig: IntLiteral) raises -> Term
def mkFloatingPointNaN(self, exp: IntLiteral, sig: IntLiteral) raises -> Term
Upstream Python signature:
TermManager.mkFloatingPointNaN(exp: int, sig: int)
Create a not-a-number (NaN) floating-point constant.
Parameters
exp: Number of bits in the exponent.sig: Number of bits in the significand.
Returns
The floating-point constant.
Binding: Generated from cvc5_mk_fp_nan.
TermManager.mkFloatingPointPosZero¶
Mojo declaration:
def mkFloatingPointPosZero(self, exp: Int, sig: Int) raises -> Term
def mkFloatingPointPosZero(self, exp: IntLiteral, sig: Int) raises -> Term
def mkFloatingPointPosZero(self, exp: Int, sig: IntLiteral) raises -> Term
def mkFloatingPointPosZero(self, exp: IntLiteral, sig: IntLiteral) raises -> Term
Upstream Python signature:
TermManager.mkFloatingPointPosZero(exp: int, sig: int)
Create a positive zero (+0.0) floating-point constant.
Parameters
exp: Number of bits in the exponent.sig: Number of bits in the significand.
Returns
The floating-point constant.
Binding: Generated from cvc5_mk_fp_pos_zero.
TermManager.mkFloatingPointNegZero¶
Mojo declaration:
def mkFloatingPointNegZero(self, exp: Int, sig: Int) raises -> Term
def mkFloatingPointNegZero(self, exp: IntLiteral, sig: Int) raises -> Term
def mkFloatingPointNegZero(self, exp: Int, sig: IntLiteral) raises -> Term
def mkFloatingPointNegZero(self, exp: IntLiteral, sig: IntLiteral) raises -> Term
Upstream Python signature:
TermManager.mkFloatingPointNegZero(exp: int, sig: int)
Create a negative zero (+0.0) floating-point constant.
Parameters
exp: Number of bits in the exponent.sig: Number of bits in the significand.
Returns
The floating-point constant.
Binding: Generated from cvc5_mk_fp_neg_zero.
TermManager.mkRoundingMode¶
Mojo declaration:
def mkRoundingMode(self, rm: RoundingMode) raises -> Term
Upstream Python signature:
TermManager.mkRoundingMode(rm)
Create a roundingmode constant.
Parameters
rm: The floating point rounding mode this constant represents.
Binding: Generated from cvc5_mk_rm.
TermManager.mkFloatingPoint¶
Mojo declaration:
def mkFloatingPoint(self, arg0: Int, arg1: Int, arg2: Term) raises -> Term
def mkFloatingPoint(self, arg0: IntLiteral, arg1: Int, arg2: Term) raises -> Term
def mkFloatingPoint(self, arg0: Int, arg1: IntLiteral, arg2: Term) raises -> Term
def mkFloatingPoint(self, arg0: IntLiteral, arg1: IntLiteral, arg2: Term) raises -> Term
def mkFloatingPoint(self, arg0: Term, arg1: Term, arg2: Term) raises -> Term
Upstream Python signature:
TermManager.mkFloatingPoint(arg0, arg1, arg2: Term)
Create a floating-point value from a bit-vector given in IEEE-754 format, or from its three IEEE-754 bit-vector value components (sign bit, exponent, significand). Arguments must be either given as (int, int, Term) or (Term, Term, Term).
Parameters
arg0: The size of the exponent or the sign bit.arg1: The size of the signifcand or the bit-vector representing the exponent.arg2: The value of the floating-point constant as a bit-vector term or the bit-vector representing the significand.
Returns
The floating-point value.
Binding: Generated as overloads from cvc5_mk_fp, cvc5_mk_fp_from_ieee.
TermManager.mkCardinalityConstraint¶
Mojo declaration:
def mkCardinalityConstraint(self, sort: Sort, index: Int) raises -> Term
def mkCardinalityConstraint(self, sort: Sort, index: IntLiteral) raises -> Term
Upstream Python signature:
TermManager.mkCardinalityConstraint(sort: Sort, index: int)
Create cardinality constraint.
Warning
This function is experimental and may change in future versions.
Parameters
sort: Sort of the constraint.index: The upper bound for the cardinality of the sort.
Binding: Generated from cvc5_mk_cardinality_constraint.
TermManager.mkConst¶
Mojo declaration:
def mkConst(self, sort: Sort, symbol: Optional[String] = None) raises -> Term
Upstream Python signature:
TermManager.mkConst(sort: Sort, symbol = None)
Create (first-order) constant (0-arity function symbol).
SMT-LIB:
( declare-const <symbol> <sort> )
( declare-fun <symbol> ( ) <sort> )
Parameters
sort: The sort of the constant.symbol: The name of the constant. If None, a default symbol is used.
Returns
The first-order constant.
Binding: Generated from cvc5_mk_const.
TermManager.mkVar¶
Mojo declaration:
def mkVar(self, sort: Sort, symbol: Optional[String] = None) raises -> Term
Upstream Python signature:
TermManager.mkVar(sort: Sort, symbol = None)
Create a bound variable to be used in a binder (i.e. a quantifier, a lambda, or a witness binder).
Parameters
sort: The sort of the variable.symbol: The name of the variable.
Returns
The variable.
Binding: Generated from cvc5_mk_var.
TermManager.mkDatatypeConstructorDecl¶
Mojo declaration:
def mkDatatypeConstructorDecl(self, name: String) raises -> DatatypeConstructorDecl
Upstream Python signature:
TermManager.mkDatatypeConstructorDecl(name: str)
Create datatype constructor declaration.
Parameters
name: The name of the constructor.
Returns
The datatype constructor declaration.
Binding: Generated from cvc5_mk_dt_cons_decl.
TermManager.mkDatatypeDecl¶
Mojo declaration:
def mkDatatypeDecl(self, name: String, is_codt: Bool = False) raises -> DatatypeDecl
def mkDatatypeDecl(self, name: String, params: List[Sort], isCoDatatype: Bool = False) raises -> DatatypeDecl
Upstream Python signature:
TermManager.mkDatatypeDecl(name: str, sorts_or_bool = None, isCoDatatype = None)
Create a datatype declaration.
Parameters
name: The name of the datatype.isCoDatatype: True if a codatatype is to be constructed.
Returns
The datatype declaration.
Binding: Generated as overloads from cvc5_mk_dt_decl, cvc5_mk_dt_decl_with_params.