uroboros-diversification/src/analysis/visit.py
def func_instrs(self, f):
        """
        get the instruction list of the function
        :param f: the function needs to disassemble
        :return: the instructions list of 'f'
        """
        b_addr = f.func_begin_addr
        e_addr = f.func_end_addr
        b_idx = self._binary_search_instr_idx(b_addr, True)
        e_idx = self._binary_search_instr_idx(e_addr, False)
        assert b_idx >= 0 and e_idx >= 0 and b_idx <= e_idx, 'wrong function info (%d, %d)' % (b_idx, e_idx)
        if b_idx < e_idx:
            res = self.instrs[b_idx:e_idx]
        else:
            res = [self.instrs[b_idx]] # some bugs during analysing, I have to do this werid stuff
        assert len(res) != 0, 'error: a function without any instruction ' + str(f)
        return res

        get the instruction list of the function
        :param f: the function needs to disassemble
        :return: the instructions list of 'f'
        
get the instruction list of the function
get the instruction list of the function
def func_instrs(self, f):
        b_addr = f.func_begin_addr
        e_addr = f.func_end_addr
        b_idx = self._binary_search_instr_idx(b_addr, True)
        e_idx = self._binary_search_instr_idx(e_addr, False)
        assert b_idx >= 0 and e_idx >= 0 and b_idx <= e_idx, 'wrong function info (%d, %d)' % (b_idx, e_idx)
        if b_idx < e_idx:
            res = self.instrs[b_idx:e_idx]
        else:
            res = [self.instrs[b_idx]] 
        assert len(res) != 0, 'error: a function without any instruction ' + str(f)
        return res
def func_instrs ( self , f ) : b_addr = f . func_begin_addr e_addr = f . func_end_addr b_idx = self . _binary_search_instr_idx ( b_addr , True ) e_idx = self . _binary_search_instr_idx ( e_addr , False ) assert b_idx >= 0 and e_idx >= 0 and b_idx <= e_idx , 'wrong function info (%d, %d)' % ( b_idx , e_idx ) if b_idx < e_idx : res = self . instrs [ b_idx : e_idx ] else : res = [ self . instrs [ b_idx ] ] assert len ( res ) != 0 , 'error: a function without any instruction ' + str ( f ) return res
get the instruction list of the function
get the instruction list of the function
"""
        get the instruction list of the function
        :param f: the function needs to disassemble
        :return: the instructions list of 'f'
        """ # some bugs during analysing, I have to do this werid stuff
the instructions list of 'f'
the instructions list of ' f '
self
f
the function needs to disassemble
the function needs to disassemble