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

Member Function Documentation

◆ basis()

basis ( self)

Definition at line 10975 of file z3py.py.

10975 def basis(self):
10976 return _to_sort_ref(Z3_get_seq_sort_basis(self.ctx_ref(), self.ast), self.ctx)
10977
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 10964 of file z3py.py.

10964 def is_string(self):
10965 """Determine if sort is a string
10966 >>> s = StringSort()
10967 >>> s.is_string()
10968 True
10969 >>> s = SeqSort(IntSort())
10970 >>> s.is_string()
10971 False
10972 """
10973 return Z3_is_string_sort(self.ctx_ref(), self.ast)
10974
bool Z3_API Z3_is_string_sort(Z3_context c, Z3_sort s)
Check if s is a string sort.