diff --git a/decompiler/frontend/binaryninja/frontend.py b/decompiler/frontend/binaryninja/frontend.py index 8064f7cf1..db2c25bea 100644 --- a/decompiler/frontend/binaryninja/frontend.py +++ b/decompiler/frontend/binaryninja/frontend.py @@ -100,7 +100,8 @@ def _get_binninja_function(self, function_identifier: object) -> binaryninja.fun if function is None: raise RuntimeError(f"BNinja frontend could not resolve function with identifier '{function_identifier}'") - # TODO: Check if function is analyzed, potentially retrying, etc... + if function.analysis_skipped: + raise RuntimeError(f"BNinja skipped function analysis for function '{function.name}' with reason '{function.analysis_skip_reason.name}'") return function