summaryrefslogtreecommitdiff
path: root/python/function.py
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2025-04-23 14:22:29 -0400
committerBrian Potchik <brian@vector35.com>2025-04-23 14:22:29 -0400
commit21a8896ae9f187c4480fe1a541dce599483817a6 (patch)
tree795284c41f1ac5fe7e428f862f8ea1d026880d9b /python/function.py
parent67ae186d19ef585d17ee5085340e66b5b35011fd (diff)
Add Function::Analyze API to perform on-demand function analysis.
Diffstat (limited to 'python/function.py')
-rw-r--r--python/function.py8
1 files changed, 8 insertions, 0 deletions
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.