code: def branches(self):
          
          branches = []
  
          if self._taken_branch:
              branches += [(self._taken_branch, 'taken')]
  
          if self._not_taken_branch:
              branches += [(self._not_taken_branch, 'not-taken')]
  
          if self._direct_branch:
              branches += [(self._direct_branch, 'direct')]
  
          return branches
docs: Get basic block branches.