From 6812c973c9fa9b4ad642ab81856c05f87bd6fcc4 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Thu, 27 Jan 2022 22:43:28 -0500 Subject: Format All Files --- python/commonil.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'python/commonil.py') 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 -- cgit v1.3.1