diff options
| author | rollsafe <rollsafe@users.noreply.github.com> | 2019-07-22 22:09:14 -0400 |
|---|---|---|
| committer | rollsafe <rollsafe@users.noreply.github.com> | 2019-07-22 22:11:31 -0400 |
| commit | 801d92feb44f5bafca08d9a019404a78f12e937a (patch) | |
| tree | 39d20f36c8e4869995246fb8ce20480cf272c9ec /python | |
| parent | d4fa2fa1d657ced48dd00d64d44dcc2cd621ae01 (diff) | |
Create API for whether a basic block contains any invalid instructions
Diffstat (limited to 'python')
| -rw-r--r-- | python/basicblock.py | 5 |
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() |
