From 21a8896ae9f187c4480fe1a541dce599483817a6 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Wed, 23 Apr 2025 14:22:29 -0400 Subject: Add Function::Analyze API to perform on-demand function analysis. --- python/function.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'python/function.py') diff --git a/python/function.py b/python/function.py index 6d20359a..be669002 100644 --- a/python/function.py +++ b/python/function.py @@ -2454,6 +2454,14 @@ class Function: type_id = core.BNGetIntegerConstantDisplayTypeEnumerationType(self.handle, arch.handle, instr_addr, value, operand) return display_type, type_id + def analyze(self) -> None: + """ + ``analyze`` causes this function to be analyzed if it's out of date. This function does not wait for the analysis to finish. + + :rtype: None + """ + core.BNAnalyzeFunction(self.handle) + def reanalyze(self, update_type: FunctionUpdateType = FunctionUpdateType.UserFunctionUpdate) -> None: """ ``reanalyze`` causes this function to be reanalyzed. This function does not wait for the analysis to finish. -- cgit v1.3.1