Z3
Public Member Functions
ArraySortRef Class Reference

Arrays. More...

+ Inheritance diagram for ArraySortRef:

Public Member Functions

def domain (self)
 
def domain_n (self, i)
 
def range (self)
 
- Public Member Functions inherited from SortRef
def as_ast (self)
 
def get_id (self)
 
def kind (self)
 
def subsort (self, other)
 
def cast (self, val)
 
def name (self)
 
def __eq__ (self, other)
 
def __ne__ (self, other)
 
def __hash__ (self)
 
- Public Member Functions inherited from AstRef
def __init__
 
def __del__ (self)
 
def __deepcopy__
 
def __str__ (self)
 
def __repr__ (self)
 
def __eq__ (self, other)
 
def __hash__ (self)
 
def __nonzero__ (self)
 
def __bool__ (self)
 
def sexpr (self)
 
def as_ast (self)
 
def get_id (self)
 
def ctx_ref (self)
 
def eq (self, other)
 
def translate (self, target)
 
def __copy__ (self)
 
def hash (self)
 
- Public Member Functions inherited from Z3PPObject
def use_pp (self)
 

Additional Inherited Members

- Data Fields inherited from AstRef
 ast
 
 ctx
 

Detailed Description

Arrays.

Array sorts.

Definition at line 4513 of file z3py.py.

Member Function Documentation

def domain (   self)
Return the domain of the array sort `self`.

>>> A = ArraySort(IntSort(), BoolSort())
>>> A.domain()
Int

Definition at line 4516 of file z3py.py.

4516  def domain(self):
4517  """Return the domain of the array sort `self`.
4518 
4519  >>> A = ArraySort(IntSort(), BoolSort())
4520  >>> A.domain()
4521  Int
4522  """
4523  return _to_sort_ref(Z3_get_array_sort_domain(self.ctx_ref(), self.ast), self.ctx)
4524 
def domain(self)
Definition: z3py.py:4516
Z3_sort Z3_API Z3_get_array_sort_domain(Z3_context c, Z3_sort t)
Return the domain of the given array sort. In the case of a multi-dimensional array, this function returns the sort of the first dimension.
def ctx_ref(self)
Definition: z3py.py:400
def domain_n (   self,
  i 
)
Return the domain of the array sort `self`.

Definition at line 4525 of file z3py.py.

4525  def domain_n(self, i):
4526  """Return the domain of the array sort `self`.
4527  """
4528  return _to_sort_ref(Z3_get_array_sort_domain_n(self.ctx_ref(), self.ast, i), self.ctx)
4529 
def domain_n(self, i)
Definition: z3py.py:4525
def ctx_ref(self)
Definition: z3py.py:400
Z3_sort Z3_API Z3_get_array_sort_domain_n(Z3_context c, Z3_sort t, unsigned idx)
Return the i'th domain sort of an n-dimensional array.
def range (   self)
Return the range of the array sort `self`.

>>> A = ArraySort(IntSort(), BoolSort())
>>> A.range()
Bool

Definition at line 4530 of file z3py.py.

4530  def range(self):
4531  """Return the range of the array sort `self`.
4532 
4533  >>> A = ArraySort(IntSort(), BoolSort())
4534  >>> A.range()
4535  Bool
4536  """
4537  return _to_sort_ref(Z3_get_array_sort_range(self.ctx_ref(), self.ast), self.ctx)
4538 
4539 
Z3_sort Z3_API Z3_get_array_sort_range(Z3_context c, Z3_sort t)
Return the range of the given array sort.
def ctx_ref(self)
Definition: z3py.py:400
def range(self)
Definition: z3py.py:4530