uroboros-diversification/src/diversification/func_inline_diversify.py
def caller_collect(self, fn):
        """
        We simply change instructions like `call func_name`
        """
        def is_call(op):
            return Opcode_utils.is_call(op)

        callers = []
        for i in self.instrs:
            if isinstance(i, DoubleInstr):
                p, e, _, _ = i
                if is_call(p):
                    es = p_exp(e)
                    if es.find(fn) >= 0:
                        callers.append(i)
                        # print 'find caller at 0x%x: %s' % (get_loc(i).loc_addr, pp_print_instr(i))
        return callers

        We simply change instructions like `call func_name`
        
We simply change instructions like `call func_name`
We simply change instructions like ` call func_name `
def caller_collect(self, fn):
        def is_call(op):
            return Opcode_utils.is_call(op)
        callers = []
        for i in self.instrs:
            if isinstance(i, DoubleInstr):
                p, e, _, _ = i
                if is_call(p):
                    es = p_exp(e)
                    if es.find(fn) >= 0:
                        callers.append(i)
        return callers
def caller_collect ( self , fn ) : def is_call ( op ) : return Opcode_utils . is_call ( op ) callers = [ ] for i in self . instrs : if isinstance ( i , DoubleInstr ) : p , e , _ , _ = i if is_call ( p ) : es = p_exp ( e ) if es . find ( fn ) >= 0 : callers . append ( i ) return callers
We simply change instructions like `call func_name`
We simply change instructions like ` call func_name `
"""
        We simply change instructions like `call func_name`
        """ # print 'find caller at 0x%x: %s' % (get_loc(i).loc_addr, pp_print_instr(i))
self
fn