From 45a370964fd2e672fb672963accd519663cda677 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Wed, 27 Jul 2022 10:45:03 -0400 Subject: add better BNIL API documentation examples --- python/highlevelil.py | 4 ++++ python/lowlevelil.py | 4 ++++ python/mediumlevelil.py | 4 ++++ 3 files changed, 12 insertions(+) (limited to 'python') diff --git a/python/highlevelil.py b/python/highlevelil.py index 395de637..59434fb0 100644 --- a/python/highlevelil.py +++ b/python/highlevelil.py @@ -294,6 +294,10 @@ class HighLevelILInstruction(BaseILInstruction): @staticmethod def show_hlil_hierarchy(): + """ + Opens a new tab showing the HLIL hierarchy which includes classes which can + easily be used with isinstance to match multiple types of IL instructions. + """ graph = flowgraph.FlowGraph() nodes = {} for instruction in ILInstruction.values(): diff --git a/python/lowlevelil.py b/python/lowlevelil.py index f20ad68f..98bf4da6 100644 --- a/python/lowlevelil.py +++ b/python/lowlevelil.py @@ -459,6 +459,10 @@ class LowLevelILInstruction(BaseILInstruction): @staticmethod def show_llil_hierarchy(): + """ + Opens a new tab showing the LLIL hierarchy which includes classes which can + easily be used with isinstance to match multiple types of IL instructions. + """ graph = flowgraph.FlowGraph() nodes = {} for instruction in ILInstruction.values(): diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py index cf85acb3..d79e2984 100644 --- a/python/mediumlevelil.py +++ b/python/mediumlevelil.py @@ -319,6 +319,10 @@ class MediumLevelILInstruction(BaseILInstruction): @staticmethod def show_mlil_hierarchy(): + """ + Opens a new tab showing the MLIL hierarchy which includes classes which can + easily be used with isinstance to match multiple types of IL instructions. + """ graph = flowgraph.FlowGraph() nodes = {} for instruction in ILInstruction.values(): -- cgit v1.3.1