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

Public Member Functions

 size (self)
Public Member Functions inherited from SortRef
 as_ast (self)
 get_id (self)
 kind (self)
 subsort (self, other)
 cast (self, val)
 name (self)
 __eq__ (self, other)
 __ne__ (self, other)
 __hash__ (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 sort.

Definition at line 7861 of file z3py.py.

Member Function Documentation

◆ size()

size ( self)
Return the size of the finite domain sort

Definition at line 7864 of file z3py.py.

7864 def size(self):
7865 """Return the size of the finite domain sort"""
7866 r = (ctypes.c_ulonglong * 1)()
7867 if Z3_get_finite_domain_sort_size(self.ctx_ref(), self.ast, r):
7868 return r[0]
7869 else:
7870 raise Z3Exception("Failed to retrieve finite domain sort size")
7871
7872
bool Z3_API Z3_get_finite_domain_sort_size(Z3_context c, Z3_sort s, uint64_t *r)
Store the size of the sort in r. Return false if the call failed. That is, Z3_get_sort_kind(s) == Z3_...