'Pop one or many call frames from the stack. This method is called when returning from a function in CFG
recovery.
:param int retn_target: The target to return to.
:return: None'

def ret(self, retn_target=None):

    if (retn_target is None):
        return self.pop()
    return_target_index = self._find_return_target(retn_target)
    if (return_target_index is not None):
        o = self
        while (return_target_index >= 0):
            o = o.pop()
            return_target_index -= 1
        return o
    else:
        l.warning('Returning    to    an    unexpected    address    %#x', retn_target)
        return self
