Z3
Loading...
Searching...
No Matches
SeqSortRef Class Reference

Strings, Sequences and Regular expressions. More...

Inheritance diagram for SeqSortRef:

Public Member Functions

 is_string (self)
 basis (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)
 __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

Strings, Sequences and Regular expressions.

Sequence sort.

Definition at line 10970 of file z3py.py.

Member Function Documentation

◆ basis()

basis ( self)

Definition at line 10984 of file z3py.py.

10984 def basis(self):
10985 return _to_sort_ref(Z3_get_seq_sort_basis(self.ctx_ref(), self.ast), self.ctx)
10986
Z3_sort Z3_API Z3_get_seq_sort_basis(Z3_context c, Z3_sort s)
Retrieve basis sort for sequence sort.

◆ is_string()

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

10973 def is_string(self):
10974 """Determine if sort is a string
10975 >>> s = StringSort()
10976 >>> s.is_string()
10977 True
10978 >>> s = SeqSort(IntSort())
10979 >>> s.is_string()
10980 False
10981 """
10982 return Z3_is_string_sort(self.ctx_ref(), self.ast)
10983
bool Z3_API Z3_is_string_sort(Z3_context c, Z3_sort s)
Check if s is a string sort.