angr/analyses/cfg/segment_list.py
def _search(self, addr):
        """
        Checks which segment that the address `addr` should belong to, and, returns the offset of that segment.
        Note that the address may not actually belong to the block.

        :param addr: The address to search
        :return: The offset of the segment.
        """

        start = 0
        end = len(self._list)

        while start != end:
            mid = (start + end) // 2

            segment = self._list[mid]
            if addr < segment.start:
                end = mid
            elif addr >= segment.end:
                start = mid + 1
            else:
                # Overlapped :(
                start = mid
                break

        return start

        Checks which segment that the address `addr` should belong to, and, returns the offset of that segment.
        Note that the address may not actually belong to the block.

        :param addr: The address to search
        :return: The offset of the segment.
        
Checks which segment that the address `addr` should belong to, and, returns the offset of that segment.
Note that the address may not actually belong to the block.
Checks which segment that the address ` addr ` should belong to and returns the offset of that segment . Note that the address may not actually belong to the block .
def _search(self, addr):
        start = 0
        end = len(self._list)
        while start != end:
            mid = (start + end) // 2
            segment = self._list[mid]
            if addr < segment.start:
                end = mid
            elif addr >= segment.end:
                start = mid + 1
            else:
                start = mid
                break
        return start
def _search ( self , addr ) : start = 0 end = len ( self . _list ) while start != end : mid = ( start + end ) // 2 segment = self . _list [ mid ] if addr < segment . start : end = mid elif addr >= segment . end : start = mid + 1 else : start = mid break return start
Checks which segment that the address `addr` should belong to, and, returns the offset of that segment.
Checks which segment that the address ` addr ` should belong to and returns the offset of that segment .
"""
        Checks which segment that the address `addr` should belong to, and, returns the offset of that segment.
        Note that the address may not actually belong to the block.

        :param addr: The address to search
        :return: The offset of the segment.
        """ # Overlapped :(
The offset of the segment.
The offset of the segment .
self
addr
The address to search
The address to search