fn replace_branch_dest(&mut self, inst: usize, old_succ: usize, new_dest: &str, succ: MuID) {
        {
            let asm = &mut self.code[inst];

            asm.code = format!(
                "jmp {}",
                symbol(&mangle_name(Arc::new(new_dest.to_string())))
            );
            asm.succs.retain(|&x| x != old_succ);
            asm.succs.push(succ);
        }
        {
            let asm = &mut self.code[succ];

            if !asm.preds.contains(&inst) {
                asm.preds.push(inst);
            }
        }
    }
/// replace destination for a jump instruction
replace destination for a jump instruction
replace destination for a jump instruction
fn replace_branch_dest(&mut self, inst: usize, old_succ: usize, new_dest: &str, succ: MuID) {
        {
            let asm = &mut self.code[inst];
            asm.code = format!(
                "jmp {}",
                symbol(&mangle_name(Arc::new(new_dest.to_string())))
            );
            asm.succs.retain(|&x| x != old_succ);
            asm.succs.push(succ);
        }
        {
            let asm = &mut self.code[succ];
            if !asm.preds.contains(&inst) {
                asm.preds.push(inst);
            }
        }
    }
fn replace_branch_dest ( & mut self , inst : usize , old_succ : usize , new_dest : & str , succ : MuID ) { { let asm = & mut self . code [ inst ] ; asm . code = format ! ( " " symbol ( mangle_name ( Arc new ( new_dest to_string ( ) ) ) ) ) ; asm . succs . retain ( | & x | x != old_succ ) ; asm . succs . push ( succ ) ; } { let asm = & mut self . code [ succ ] ; if ! asm . preds . contains ( & inst ) { asm . preds . push ( inst ) ; } } }
replace destination for a jump instruction
replace destination for a jump instruction
&mut self
inst
usize
old_succ
usize
new_dest
&str
succ
MuID
&mut self
inst
usize
old_succ
usize
new_dest
&str
succ
MuID