From 7f3efa01f053e19549c480a770728085900c2131 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Tue, 22 Aug 2017 12:02:56 -0400 Subject: Add BasicBlock CanExit Accessor. --- python/basicblock.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python') diff --git a/python/basicblock.py b/python/basicblock.py index 623067f5..72f31876 100644 --- a/python/basicblock.py +++ b/python/basicblock.py @@ -149,6 +149,11 @@ class BasicBlock(object): """Whether basic block has undetermined outgoing edges (read-only)""" return core.BNBasicBlockHasUndeterminedOutgoingEdges(self.handle) + @property + def can_exit(self): + """Whether basic block can return or is tagged as 'No Return' (read-only)""" + return core.BNBasicBlockCanExit(self.handle) + @property def dominators(self): """List of dominators for this basic block (read-only)""" -- cgit v1.3.1