diff options
| author | KyleMiles <krm504@nyu.edu> | 2022-01-27 22:43:28 -0500 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2022-01-28 00:24:06 -0500 |
| commit | 6812c973c9fa9b4ad642ab81856c05f87bd6fcc4 (patch) | |
| tree | dace4156d03148bcaf02df138ab4e0d93e61bc6f /python/commonil.py | |
| parent | 519c9db22367f2659d1a54599fab47e6313be06e (diff) | |
Format All Files
Diffstat (limited to 'python/commonil.py')
| -rw-r--r-- | python/commonil.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python/commonil.py b/python/commonil.py index 9e9f6fea..7517574d 100644 --- a/python/commonil.py +++ b/python/commonil.py @@ -24,11 +24,12 @@ from .enums import BranchType from .interaction import show_graph_report from .log import log_warn + # This file contains a list of top level abstract classes for implementing BNIL instructions @dataclass(frozen=True, repr=False, eq=False) class BaseILInstruction: @classmethod - def prepend_parent(cls, graph:FlowGraph, node:FlowGraphNode, nodes={}): + def prepend_parent(cls, graph: FlowGraph, node: FlowGraphNode, nodes={}): for parent in cls.__bases__: if not issubclass(parent, BaseILInstruction): continue @@ -54,6 +55,7 @@ class BaseILInstruction: def show_hierarchy_graph(cls): show_graph_report(f"{cls.__name__}", cls.add_subgraph(FlowGraph(), {})) + @dataclass(frozen=True, repr=False, eq=False) class Constant(BaseILInstruction): pass @@ -123,6 +125,7 @@ class Localcall(Call): class Tailcall(Localcall): pass + @dataclass(frozen=True, repr=False, eq=False) class Return(Terminal): pass |
