Public Member Functions | |
def | __init__ |
def | enable_passes |
def | apply_simp |
def | expr_simp |
def | expr_simp_wrapper |
def | __call__ |
Public Attributes | |
expr_simp_cb | |
Static Public Attributes | |
dictionary | PASS_COMMONS |
dictionary | PASS_HEAVY = {} |
dictionary | PASS_COND |
Wrapper on expression simplification passes. Instance handle passes lists. Available passes lists are: - commons: common passes such as constant folding - heavy : rare passes (for instance, in case of obfuscation)
Definition at line 14 of file simplifications.py.
def miasm2.expression.simplifications.ExpressionSimplifier.__init__ | ( | self | ) |
Definition at line 49 of file simplifications.py.
def miasm2.expression.simplifications.ExpressionSimplifier.__call__ | ( | self, | |
expression, | |||
callback = None |
|||
) |
Definition at line 115 of file simplifications.py.
def miasm2.expression.simplifications.ExpressionSimplifier.apply_simp | ( | self, | |
expression | |||
) |
Apply enabled simplifications on expression @expression: Expr instance Return an Expr instance
Definition at line 62 of file simplifications.py.
def miasm2.expression.simplifications.ExpressionSimplifier.enable_passes | ( | self, | |
passes | |||
) |
Add passes from @passes @passes: dict(Expr class : list(callback)) Callback signature: Expr callback(ExpressionSimplifier, Expr)
Definition at line 52 of file simplifications.py.
def miasm2.expression.simplifications.ExpressionSimplifier.expr_simp | ( | self, | |
expression | |||
) |
Apply enabled simplifications on expression and find a stable state @expression: Expr instance Return an Expr instance
Definition at line 78 of file simplifications.py.
def miasm2.expression.simplifications.ExpressionSimplifier.expr_simp_wrapper | ( | self, | |
expression, | |||
callback = None |
|||
) |
Apply enabled simplifications on expression @expression: Expr instance @manual_callback: If set, call this function instead of normal one Return an Expr instance
Definition at line 101 of file simplifications.py.
miasm2.expression.simplifications.ExpressionSimplifier.expr_simp_cb |
Definition at line 50 of file simplifications.py.
|
static |
Definition at line 26 of file simplifications.py.
|
static |
Definition at line 39 of file simplifications.py.
|
static |
Definition at line 36 of file simplifications.py.