uroboros-diversification/src/analysis/visit.py
def replace_instrs(self, i_new, l, i_old):
        """
        The instruction needs to be replaced
        Note: while calling insert and replace to modify self.instrs,
            if the location of inserted instruction is the same as that of replaced instruction,
            the replace_instrs must be called later than insert_instrs (and no 2 replace operations with the same location)
            In similar way, the append instrs must be called later than replace_instrs
        :param i_new: the new instruction to replace old one
        :param l: the location of instruction needs to be replaced
        :param i_old: the instruction to be replaced
        Note: you have to call update_process to do real change
        """
        i_old_str = pp_print_instr(i_old)
        self.instrs_update.append((i_new, l, instr_update.REPLACE, i_old_str))

        The instruction needs to be replaced
        Note: while calling insert and replace to modify self.instrs,
            if the location of inserted instruction is the same as that of replaced instruction,
            the replace_instrs must be called later than insert_instrs (and no 2 replace operations with the same location)
            In similar way, the append instrs must be called later than replace_instrs
        :param i_new: the new instruction to replace old one
        :param l: the location of instruction needs to be replaced
        :param i_old: the instruction to be replaced
        Note: you have to call update_process to do real change
        
The instruction needs to be replaced
Note: while calling insert and replace to modify self.instrs,
if the location of inserted instruction is the same as that of replaced instruction,
the replace_instrs must be called later than insert_instrs (and no 2 replace operations with the same location)
In similar way, the append instrs must be called later than replace_instrs
The instruction needs to be replaced Note : while calling insert and replace to modify self . instrs if the location of inserted instruction is the same as that of replaced instruction the replace_instrs must be called later than insert_instrs ( and no 2 replace operations with the same location ) In similar way the append instrs must be called later than replace_instrs
def replace_instrs(self, i_new, l, i_old):
        i_old_str = pp_print_instr(i_old)
        self.instrs_update.append((i_new, l, instr_update.REPLACE, i_old_str))
def replace_instrs ( self , i_new , l , i_old ) : i_old_str = pp_print_instr ( i_old ) self . instrs_update . append ( ( i_new , l , instr_update . REPLACE , i_old_str ) )
The instruction needs to be replaced
Note: while calling insert and replace to modify self.instrs,
if the location of inserted instruction is the same as that of replaced instruction,
the replace_instrs must be called later than insert_instrs (and no 2 replace operations with the same location)
In similar way, the append instrs must be called later than replace_instrs
The instruction needs to be replaced Note : while calling insert and replace to modify self . instrs if the location of inserted instruction is the same as that of replaced instruction the replace_instrs must be called later than insert_instrs ( and no 2 replace operations with the same location ) In similar way the append instrs must be called later than replace_instrs
"""
        The instruction needs to be replaced
        Note: while calling insert and replace to modify self.instrs,
            if the location of inserted instruction is the same as that of replaced instruction,
            the replace_instrs must be called later than insert_instrs (and no 2 replace operations with the same location)
            In similar way, the append instrs must be called later than replace_instrs
        :param i_new: the new instruction to replace old one
        :param l: the location of instruction needs to be replaced
        :param i_old: the instruction to be replaced
        Note: you have to call update_process to do real change
        """
self
i_new
the new instruction to replace old one
the new instruction to replace old one
l
the location of instruction needs to be replaced
the location of instruction needs to be replaced
i_old
the instruction to be replaced
Note: you have to call update_process to do real change
the instruction to be replaced Note : you have to call update_process to do real change