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

Public Member Functions

 sort (self)
 __or__ (self, other)
 __and__ (self, other)
 __sub__ (self, other)
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)
 update (self, *args)
 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 set expression.

Definition at line 5365 of file z3py.py.

Member Function Documentation

◆ __and__()

__and__ ( self,
other )
Return the intersection of self and other.

Definition at line 5375 of file z3py.py.

5375 def __and__(self, other):
5376 """Return the intersection of self and other."""
5377 return FiniteSetIntersect(self, other)
5378

◆ __or__()

__or__ ( self,
other )
Return the union of self and other.

Definition at line 5371 of file z3py.py.

5371 def __or__(self, other):
5372 """Return the union of self and other."""
5373 return FiniteSetUnion(self, other)
5374

◆ __sub__()

__sub__ ( self,
other )
Return the set difference of self and other.

Definition at line 5379 of file z3py.py.

5379 def __sub__(self, other):
5380 """Return the set difference of self and other."""
5381 return FiniteSetDifference(self, other)
5382
5383

◆ sort()

sort ( self)
Return the sort of expression `self`.

>>> x = Int('x')
>>> (x + 1).sort()
Int
>>> y = Real('y')
>>> (x + y).sort()
Real

Reimplemented from ExprRef.

Definition at line 5368 of file z3py.py.

5368 def sort(self):
5369 return FiniteSetSortRef(Z3_get_sort(self.ctx_ref(), self.as_ast()), self.ctx)
5370
Z3_sort Z3_API Z3_get_sort(Z3_context c, Z3_ast a)
Return the sort of an AST node.