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)
 __gt__ (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 11138 of file z3py.py.

Member Function Documentation

◆ basis()

basis ( self)

Definition at line 11152 of file z3py.py.

11152 def basis(self):
11153 return _to_sort_ref(Z3_get_seq_sort_basis(self.ctx_ref(), self.ast), self.ctx)
11154
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 11141 of file z3py.py.

11141 def is_string(self):
11142 """Determine if sort is a string
11143 >>> s = StringSort()
11144 >>> s.is_string()
11145 True
11146 >>> s = SeqSort(IntSort())
11147 >>> s.is_string()
11148 False
11149 """
11150 return Z3_is_string_sort(self.ctx_ref(), self.ast)
11151
bool Z3_API Z3_is_string_sort(Z3_context c, Z3_sort s)
Check if s is a string sort.