Z3
Loading...
Searching...
No Matches
FiniteDomainRef Class Reference
Inheritance diagram for FiniteDomainRef:

Public Member Functions

 sort (self)
 as_string (self)
Public Member Functions inherited from ExprRef
 as_ast (self)
 get_id (self)
 sort_kind (self)
 __eq__ (self, other)
 __hash__ (self)
 __ne__ (self, other)
 params (self)
 decl (self)
 kind (self)
 num_args (self)
 arg (self, idx)
 children (self)
 from_string (self, s)
 serialize (self)
Public Member Functions inherited from AstRef
 __init__ (self, ast, ctx=None)
 __del__ (self)
 __deepcopy__ (self, memo={})
 __str__ (self)
 __repr__ (self)
 __eq__ (self, other)
 __hash__ (self)
 __nonzero__ (self)
 __bool__ (self)
 sexpr (self)
 ctx_ref (self)
 eq (self, other)
 translate (self, target)
 __copy__ (self)
 hash (self)
 py_value (self)
Public Member Functions inherited from Z3PPObject
 use_pp (self)

Additional Inherited Members

Data Fields inherited from AstRef
 ast = ast
 ctx = _get_ctx(ctx)
Protected Member Functions inherited from Z3PPObject
 _repr_html_ (self)

Detailed Description

Finite-domain expressions.

Definition at line 7892 of file z3py.py.

Member Function Documentation

◆ as_string()

as_string ( self)
Return a Z3 floating point expression as a Python string.

Reimplemented in FiniteDomainNumRef.

Definition at line 7899 of file z3py.py.

7899 def as_string(self):
7900 """Return a Z3 floating point expression as a Python string."""
7901 return Z3_ast_to_string(self.ctx_ref(), self.as_ast())
7902
7903
Z3_string Z3_API Z3_ast_to_string(Z3_context c, Z3_ast a)
Convert the given AST node into a string.

◆ sort()

sort ( self)
Return the sort of the finite-domain expression `self`.

Reimplemented from ExprRef.

Definition at line 7895 of file z3py.py.

7895 def sort(self):
7896 """Return the sort of the finite-domain expression `self`."""
7897 return FiniteDomainSortRef(Z3_get_sort(self.ctx_ref(), self.as_ast()), self.ctx)
7898
Z3_sort Z3_API Z3_get_sort(Z3_context c, Z3_ast a)
Return the sort of an AST node.