class documentation
class Z3Proxy(infer_proxy.InferProxy): (source)
Undocumented
Class Method | init |
Undocumented |
Method | __init__ |
Initialize proxy with Z3 variable :param z3_expr: the z3 variable wrapped within the proxy :param default: default value if z3_var is not in the model |
Method | __k |
Undocumented |
Method | __k |
Undocumented |
Method | __k |
Undocumented |
Method | __k |
Undocumented |
Method | __k |
Undocumented |
Instance Variable | defaults |
Undocumented |
Method | _binop |
Undocumented |
Method | _compop |
Undocumented |
Method | _default |
Undocumented |
Method | _infer |
Undocumented |
Method | _setup |
setup all dunder method to do operation on proxy obj, and return an InferenceResult :return: None |
Method | _unary |
Undocumented |
Inherited from InferProxy
:
Method | __hash__ |
Undocumented |
Method | __iter__ |
Undocumented |
Method | __next__ |
Undocumented |
Method | dunder |
try to resolve the dunder method |
Method | get |
Undocumented |
Method | hash |
Undocumented |
Method | infer |
Undocumented |
Method | to |
Specify how to convert this node to ast expression, to be used as test case comparison :return: ast node |
Static Method | _convert |
convert dunder method string to klara's specification :param dunder: dunder method in string, e.g. __str__ :return: converted dunder |
Method | _infer |
Undocumented |
Method | _infer |
Undocumented |
Method | _infer |
Undocumented |
Class Variable | _fields |
Undocumented |
Instance Variable | _hash |
Undocumented |
Instance Variable | _infer |
Undocumented |
Instance Variable | _infer |
Undocumented |
Inherited from Const
(via InferProxy
):
Method | __repr__ |
Undocumented |
Method | get |
get the type of the constant holding |
Instance Variable | value |
Undocumented |
Inherited from BaseNode
(via InferProxy
, Const
):
Static Method | get |
Undocumented |
Method | __contains__ |
Undocumented |
Method | accept |
Undocumented |
Method | generic |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
find the definition of `var` from outer scope recursively. Skip param will determine how many parent scope to skip :param var: variable of interest :param skip: how many layer of parent scope to skip :return:... |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
get the assigning target instance rather than scope(). See #mr68u a.b.c = node calling node.get_target_instance() will return `a.b.c.instance()` |
Method | is |
check if the given node is part of 'self' or children |
Method | iter |
Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields`` that is present on *node*. |
Method | prepare |
Undocumented |
Method | scope |
return the first containing scope |
Method | statement |
Undocumented |
Instance Variable | col |
Undocumented |
Instance Variable | explicit |
Undocumented |
Instance Variable | lineno |
Undocumented |
Instance Variable | parent |
Undocumented |
Instance Variable | refer |
Undocumented |
Inherited from Proxy
(via InferProxy
, Const
, BaseNode
, BaseInstance
):
Method | __getattr__ |
Undocumented |
Instance Variable | obj |
Undocumented |
Inherited from InvertCondMixin
(via InferProxy
, Const
, BaseNode
, BaseInstance
, Proxy
):
Method | invert |
Invert the condition of this node. wrap the node in `not()` |
Method | wrap |
Undocumented |
Initialize proxy with Z3 variable :param z3_expr: the z3 variable wrapped within the proxy :param default: default value if z3_var is not in the model
Undocumented
Parameters | |
op:str | Undocumented |
op | Undocumented |
reflected | Undocumented |
other:nodes.Const | Undocumented |
def _default_op(self, op, other, method_name, context=None, self_result=inference.InferenceResult):
(source)
Undocumented
Parameters | |
op:str | Undocumented |
other:inference.InferenceResult | Undocumented |
methodstr | Undocumented |
context | Undocumented |
self | Undocumented |