Z3
Public Member Functions
SeqRef Class Reference
+ Inheritance diagram for SeqRef:

Public Member Functions

def sort (self)
 
def __add__ (self, other)
 
def __radd__ (self, other)
 
def __getitem__ (self, i)
 
def is_string (self)
 
def is_string_value (self)
 
def as_string (self)
 
- Public Member Functions inherited from ExprRef
def as_ast (self)
 
def get_id (self)
 
def sort (self)
 
def sort_kind (self)
 
def __eq__ (self, other)
 
def __hash__ (self)
 
def __ne__ (self, other)
 
def decl (self)
 
def num_args (self)
 
def arg (self, idx)
 
def children (self)
 
- Public Member Functions inherited from AstRef
def __init__ (self, ast, ctx=None)
 
def __del__ (self)
 
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 hash (self)
 
- Public Member Functions inherited from Z3PPObject
def use_pp (self)
 

Additional Inherited Members

- Data Fields inherited from AstRef
 ast
 
 ctx
 

Detailed Description

Sequence expression.

Definition at line 9365 of file z3py.py.

Member Function Documentation

§ __add__()

def __add__ (   self,
  other 
)

Definition at line 9371 of file z3py.py.

9371  def __add__(self, other):
9372  return Concat(self, other)
9373 
def Concat(args)
Definition: z3py.py:3603

§ __getitem__()

def __getitem__ (   self,
  i 
)

Definition at line 9377 of file z3py.py.

9377  def __getitem__(self, i):
9378  if _is_int(i):
9379  i = IntVal(i, self.ctx)
9380  return SeqRef(Z3_mk_seq_at(self.ctx_ref(), self.as_ast(), i.as_ast()), self.ctx)
9381 
def IntVal(val, ctx=None)
Definition: z3py.py:2752

§ __radd__()

def __radd__ (   self,
  other 
)

Definition at line 9374 of file z3py.py.

9374  def __radd__(self, other):
9375  return Concat(other, self)
9376 
def Concat(args)
Definition: z3py.py:3603

§ as_string()

def as_string (   self)
Return a string representation of sequence expression.

Definition at line 9388 of file z3py.py.

9388  def as_string(self):
9389  """Return a string representation of sequence expression."""
9390  return Z3_ast_to_string(self.ctx_ref(), self.as_ast())
9391 
9392 
Z3_string Z3_API Z3_ast_to_string(Z3_context c, Z3_ast a)
Convert the given AST node into a string.

§ is_string()

def is_string (   self)

Definition at line 9382 of file z3py.py.

9382  def is_string(self):
9383  return Z3_is_string_sort(self.ctx_ref(), Z3_get_sort(self.ctx_ref(), self.as_ast()))
9384 
def is_string(a)
Definition: z3py.py:9421

§ is_string_value()

def is_string_value (   self)

Definition at line 9385 of file z3py.py.

9385  def is_string_value(self):
9386  return Z3_is_string(self.ctx_ref(), self.as_ast())
9387 
def is_string_value(a)
Definition: z3py.py:9428

§ sort()

def sort (   self)

Definition at line 9368 of file z3py.py.

9368  def sort(self):
9369  return SeqSortRef(Z3_get_sort(self.ctx_ref(), self.as_ast()), self.ctx)
9370