diff --git a/decompile.py b/decompile.py index d18c8b312..fb0c8642c 100755 --- a/decompile.py +++ b/decompile.py @@ -47,10 +47,7 @@ def decompile(self, function_ids: Collection[object] | None = None, task_options if task_options is None: task_options = Decompiler.create_options() - pipeline = DecompilerPipeline.from_strings( - task_options.getlist("pipeline.cfg_stages"), - task_options.getlist("pipeline.ast_stages") - ) + pipeline = DecompilerPipeline.from_strings(task_options.getlist("pipeline.cfg_stages"), task_options.getlist("pipeline.ast_stages")) tasks = [] for function_id in function_ids: @@ -62,10 +59,7 @@ def decompile(self, function_ids: Collection[object] | None = None, task_options code = self._backend.generate(tasks) - return Decompiler.Result( - tasks, - code - ) + return Decompiler.Result(tasks, code) @dataclass class Result: diff --git a/decompiler/frontend/binaryninja/frontend.py b/decompiler/frontend/binaryninja/frontend.py index db2c25bea..390cc608a 100644 --- a/decompiler/frontend/binaryninja/frontend.py +++ b/decompiler/frontend/binaryninja/frontend.py @@ -101,7 +101,9 @@ def _get_binninja_function(self, function_identifier: object) -> binaryninja.fun raise RuntimeError(f"BNinja frontend could not resolve function with identifier '{function_identifier}'") if function.analysis_skipped: - raise RuntimeError(f"BNinja skipped function analysis for function '{function.name}' with reason '{function.analysis_skip_reason.name}'") + raise RuntimeError( + f"BNinja skipped function analysis for function '{function.name}' with reason '{function.analysis_skip_reason.name}'" + ) return function diff --git a/decompiler/task.py b/decompiler/task.py index 38d8b6f85..0c21751d3 100644 --- a/decompiler/task.py +++ b/decompiler/task.py @@ -1,4 +1,5 @@ """Module describing tasks to be handled by the decompiler pipleline.""" + from dataclasses import dataclass, field from typing import List