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 5371 of file z3py.py.

Member Function Documentation

◆ __and__()

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

Definition at line 5381 of file z3py.py.

5381 def __and__(self, other):
5382 """Return the intersection of self and other."""
5383 return FiniteSetIntersect(self, other)
5384

◆ __or__()

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

Definition at line 5377 of file z3py.py.

5377 def __or__(self, other):
5378 """Return the union of self and other."""
5379 return FiniteSetUnion(self, other)
5380

◆ __sub__()

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

Definition at line 5385 of file z3py.py.

5385 def __sub__(self, other):
5386 """Return the set difference of self and other."""
5387 return FiniteSetDifference(self, other)
5388
5389

◆ 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 5374 of file z3py.py.

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