Z3
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Data Fields
ParamDescrsRef Class Reference

Public Member Functions

def __init__
 
def __del__
 
def size
 
def __len__
 
def get_name
 
def get_kind
 
def __getitem__
 
def __repr__
 

Data Fields

 ctx
 
 descr
 

Detailed Description

Set of parameter descriptions for Solvers, Tactics and Simplifiers in Z3.

Definition at line 4489 of file z3py.py.

Constructor & Destructor Documentation

def __init__ (   self,
  descr,
  ctx = None 
)

Definition at line 4492 of file z3py.py.

4493  def __init__(self, descr, ctx=None):
4494  _z3_assert(isinstance(descr, ParamDescrs), "parameter description object expected")
4495  self.ctx = _get_ctx(ctx)
4496  self.descr = descr
4497  Z3_param_descrs_inc_ref(self.ctx.ref(), self.descr)
void Z3_API Z3_param_descrs_inc_ref(__in Z3_context c, __in Z3_param_descrs p)
Increment the reference counter of the given parameter description set.
def __del__ (   self)

Definition at line 4498 of file z3py.py.

4499  def __del__(self):
4500  Z3_param_descrs_dec_ref(self.ctx.ref(), self.descr)
void Z3_API Z3_param_descrs_dec_ref(__in Z3_context c, __in Z3_param_descrs p)
Decrement the reference counter of the given parameter description set.

Member Function Documentation

def __getitem__ (   self,
  arg 
)

Definition at line 4521 of file z3py.py.

4522  def __getitem__(self, arg):
4523  if _is_int(arg):
4524  return self.get_name(arg)
4525  else:
4526  return self.get_kind(arg)
def __len__ (   self)
Return the size of in the parameter description `self`.

Definition at line 4506 of file z3py.py.

Referenced by AstVector.__getitem__(), and AstVector.__setitem__().

4507  def __len__(self):
4508  """Return the size of in the parameter description `self`.
4509  """
4510  return self.size()
def __repr__ (   self)

Definition at line 4527 of file z3py.py.

4528  def __repr__(self):
4529  return Z3_param_descrs_to_string(self.ctx.ref(), self.descr)
Z3_string Z3_API Z3_param_descrs_to_string(__in Z3_context c, __in Z3_param_descrs p)
Convert a parameter description set into a string. This function is mainly used for printing the cont...
def get_kind (   self,
  n 
)
Return the kind of the parameter named `n`.

Definition at line 4516 of file z3py.py.

Referenced by ParamDescrsRef.__getitem__().

4517  def get_kind(self, n):
4518  """Return the kind of the parameter named `n`.
4519  """
4520  return Z3_param_descrs_get_kind(self.ctx.ref(), self.descr, to_symbol(n, self.ctx))
Z3_param_kind Z3_API Z3_param_descrs_get_kind(__in Z3_context c, __in Z3_param_descrs p, __in Z3_symbol n)
Return the kind associated with the given parameter name n.
def to_symbol
Definition: z3py.py:94
def get_name (   self,
  i 
)
Return the i-th parameter name in the parameter description `self`.

Definition at line 4511 of file z3py.py.

Referenced by ParamDescrsRef.__getitem__().

4512  def get_name(self, i):
4513  """Return the i-th parameter name in the parameter description `self`.
4514  """
4515  return _symbol2py(self.ctx, Z3_param_descrs_get_name(self.ctx.ref(), self.descr, i))
Z3_symbol Z3_API Z3_param_descrs_get_name(__in Z3_context c, __in Z3_param_descrs p, __in unsigned i)
Return the number of parameters in the given parameter description set.
def size (   self)
Return the size of in the parameter description `self`.

Definition at line 4501 of file z3py.py.

Referenced by ParamDescrsRef.__len__(), and Goal.__len__().

4502  def size(self):
4503  """Return the size of in the parameter description `self`.
4504  """
4505  return int(Z3_param_descrs_size(self.ctx.ref(), self.descr))
unsigned Z3_API Z3_param_descrs_size(__in Z3_context c, __in Z3_param_descrs p)
Return the number of parameters in the given parameter description set.

Field Documentation

ctx

Definition at line 4494 of file z3py.py.

Referenced by Probe.__eq__(), Probe.__ge__(), AstVector.__getitem__(), AstMap.__getitem__(), ModelRef.__getitem__(), ApplyResult.__getitem__(), Probe.__gt__(), Probe.__le__(), Probe.__lt__(), Probe.__ne__(), Fixedpoint.add_rule(), Tactic.apply(), FuncEntry.arg_value(), Goal.as_expr(), ApplyResult.as_expr(), Goal.assert_exprs(), Fixedpoint.assert_exprs(), ApplyResult.convert_model(), ModelRef.decls(), FuncInterp.else_value(), FuncInterp.entry(), ModelRef.eval(), Goal.get(), Fixedpoint.get_answer(), Fixedpoint.get_assertions(), Fixedpoint.get_cover_delta(), ModelRef.get_interp(), ParamDescrsRef.get_kind(), ParamDescrsRef.get_name(), Fixedpoint.get_rules(), ModelRef.get_sort(), ModelRef.get_universe(), AstMap.keys(), Fixedpoint.param_descrs(), Tactic.param_descrs(), Fixedpoint.parse_file(), Fixedpoint.parse_string(), Fixedpoint.set(), Tactic.solver(), Fixedpoint.statistics(), Solver.to_smt2(), Fixedpoint.update_rule(), and FuncEntry.value().

descr

Definition at line 4495 of file z3py.py.

Referenced by ParamDescrsRef.__del__(), ParamDescrsRef.__repr__(), ParamDescrsRef.get_kind(), ParamDescrsRef.get_name(), and ParamDescrsRef.size().