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)
 
 __nonzero__ (self)
 
 __bool__ (self)
 
 sexpr (self)
 
 ctx_ref (self)
 
 eq (self, other)
 
 translate (self, target)
 
 __copy__ (self)
 
 hash (self)
 
- Public Member Functions inherited from Z3PPObject
 use_pp (self)
 

Data Fields

 ast
 
- Data Fields inherited from SortRef
 ast
 
 ctx
 
- Data Fields inherited from AstRef
 ast = ast
 
 ctx = _get_ctx(ctx)
 

Additional Inherited Members

- Protected Member Functions inherited from Z3PPObject
 _repr_html_ (self)
 

Detailed Description

Finite domain sort.

Definition at line 7771 of file z3py.py.

Member Function Documentation

◆ size()

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

Definition at line 7774 of file z3py.py.

7774 def size(self):
7775 """Return the size of the finite domain sort"""
7776 r = (ctypes.c_ulonglong * 1)()
7777 if Z3_get_finite_domain_sort_size(self.ctx_ref(), self.ast, r):
7778 return r[0]
7779 else:
7780 raise Z3Exception("Failed to retrieve finite domain sort size")
7781
7782
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_...

Referenced by Goal.__len__(), ParamDescrsRef.__len__(), BitVecNumRef.as_signed_long(), and BitVecSortRef.subsort().

Field Documentation

◆ ast