Z3
Public Member Functions
SeqSortRef Class Reference

Strings, Sequences and Regular expressions. More...

+ Inheritance diagram for SeqSortRef:

Public Member Functions

def is_string (self)
 
def basis (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__ (self, ast, ctx=None)
 
def __del__ (self)
 
def __deepcopy__ (self, memo={})
 
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

Strings, Sequences and Regular expressions.

Sequence sort.

Definition at line 9952 of file z3py.py.

Member Function Documentation

◆ basis()

def basis (   self)

Definition at line 9966 of file z3py.py.

9966 def basis(self):
9967 return _to_sort_ref(Z3_get_seq_sort_basis(self.ctx_ref(), self.ast), self.ctx)
9968
9969
Z3_sort Z3_API Z3_get_seq_sort_basis(Z3_context c, Z3_sort s)
Retrieve basis sort for sequence sort.

◆ is_string()

def is_string (   self)
Determine if sort is a string
>>> s = StringSort()
>>> s.is_string()
True
>>> s = SeqSort(IntSort())
>>> s.is_string()
False

Definition at line 9955 of file z3py.py.

9955 def is_string(self):
9956 """Determine if sort is a string
9957 >>> s = StringSort()
9958 >>> s.is_string()
9959 True
9960 >>> s = SeqSort(IntSort())
9961 >>> s.is_string()
9962 False
9963 """
9964 return Z3_is_string_sort(self.ctx_ref(), self.ast)
9965
def IntSort(ctx=None)
Definition: z3py.py:2907
def SeqSort(s)
Definition: z3py.py:9980
def StringSort(ctx=None)
Definition: z3py.py:9970
def is_string(a)
Definition: z3py.py:10063
bool Z3_API Z3_is_string_sort(Z3_context c, Z3_sort s)
Check if s is a string sort.