summaryrefslogtreecommitdiff
path: root/python/basicblock.py
diff options
context:
space:
mode:
authorrollsafe <rollsafe@users.noreply.github.com>2019-07-22 22:09:14 -0400
committerrollsafe <rollsafe@users.noreply.github.com>2019-07-22 22:11:31 -0400
commit801d92feb44f5bafca08d9a019404a78f12e937a (patch)
tree39d20f36c8e4869995246fb8ce20480cf272c9ec /python/basicblock.py
parentd4fa2fa1d657ced48dd00d64d44dcc2cd621ae01 (diff)
Create API for whether a basic block contains any invalid instructions
Diffstat (limited to 'python/basicblock.py')
-rw-r--r--python/basicblock.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/basicblock.py b/python/basicblock.py
index 98a7b212..83df8161 100644
--- a/python/basicblock.py
+++ b/python/basicblock.py
@@ -294,6 +294,11 @@ class BasicBlock(object):
return core.BNBasicBlockCanExit(self.handle)
@property
+ def has_invalid_instructions(self):
+ """Whether basic block has any invalid instructions (read-only)"""
+ return core.BNBasicBlockHasInvalidInstructions(self.handle)
+
+ @property
def dominators(self):
"""List of dominators for this basic block (read-only)"""
count = ctypes.c_ulonglong()