Public Member Functions
CharRef Class Reference
+ Inheritance diagram for CharRef:

Public Member Functions

def __le__ (self, other)
def to_int (self)
def to_bv (self)
def is_digit (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 params (self)
def decl (self)
def num_args (self)
def arg (self, idx)
def children (self)
def from_string (self, s)
def serialize (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 __nonzero__ (self)
def __bool__ (self)
def sexpr (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

Detailed Description

Character expression.

Definition at line 10831 of file z3py.py.

Member Function Documentation

◆ __le__()

def __le__ (   self,

Definition at line 10834 of file z3py.py.

10834  def __le__(self, other):
10835  other = _coerce_char(other, self.ctx)
10836  return _to_expr_ref(Z3_mk_char_le(self.ctx_ref(), self.as_ast(), other.as_ast()), self.ctx)
Z3_ast Z3_API Z3_mk_char_le(Z3_context c, Z3_ast ch1, Z3_ast ch2)
Create less than or equal to between two characters.

◆ is_digit()

def is_digit (   self)

Definition at line 10844 of file z3py.py.

10844  def is_digit(self):
10845  return _to_expr_ref(Z3_mk_char_is_digit(self.ctx_ref(), self.as_ast()), self.ctx)
Z3_ast Z3_API Z3_mk_char_is_digit(Z3_context c, Z3_ast ch)
Create a check if the character is a digit.

◆ to_bv()

def to_bv (   self)

Definition at line 10841 of file z3py.py.

10841  def to_bv(self):
10842  return _to_expr_ref(Z3_mk_char_to_bv(self.ctx_ref(), self.as_ast()), self.ctx)
Z3_ast Z3_API Z3_mk_char_to_bv(Z3_context c, Z3_ast ch)
Create a bit-vector (code point) from character.

◆ to_int()

def to_int (   self)

Definition at line 10838 of file z3py.py.

10838  def to_int(self):
10839  return _to_expr_ref(Z3_mk_char_to_int(self.ctx_ref(), self.as_ast()), self.ctx)
Z3_ast Z3_API Z3_mk_char_to_int(Z3_context c, Z3_ast ch)
Create an integer (code point) from character.