fn return_node(&self, call_node: SSARef) -> Option<SSARef> {
        let ret_reg_name_opt = ret_value_string(self.rfn);
        if ret_reg_name_opt.is_none() {
            return None;
        }
        let ret_reg_name = ret_reg_name_opt.unwrap();
        let reg_map = utils::call_rets(call_node, self.ssa);
        for (idx, (node, _)) in reg_map.into_iter() {
            if let Some(name) = self.ssa.regfile.get_name(idx) {
                if name == ret_reg_name {
                    return self.datamap.var_map.get(&node).cloned();
                }
            }
        }
        return None;
    }
// Retrieve CCFG's return value node of function call
Retrieve CCFG's return value node of function call
Retrieve CCFG ' s return value node of function call
fn return_node(&self, call_node: SSARef) -> Option<SSARef> {
        let ret_reg_name_opt = ret_value_string(self.rfn);
        if ret_reg_name_opt.is_none() {
            return None;
        }
        let ret_reg_name = ret_reg_name_opt.unwrap();
        let reg_map = utils::call_rets(call_node, self.ssa);
        for (idx, (node, _)) in reg_map.into_iter() {
            if let Some(name) = self.ssa.regfile.get_name(idx) {
                if name == ret_reg_name {
                    return self.datamap.var_map.get(&node).cloned();
                }
            }
        }
        return None;
    }
fn return_node ( & self , call_node : SSARef ) -> Option < SSARef > { let ret_reg_name_opt = ret_value_string ( self . rfn ) ; if ret_reg_name_opt . is_none ( ) { return None ; } let ret_reg_name = ret_reg_name_opt . unwrap ( ) ; let reg_map = utils :: call_rets ( call_node , self . ssa ) ; for ( idx , ( node , _ ) ) in reg_map . into_iter ( ) { if let Some ( name ) = self . ssa . regfile . get_name ( idx ) { if name == ret_reg_name { return self . datamap . var_map . get ( & node ) . cloned ( ) ; } } } return None ; }
Retrieve CCFG's return value node of function call
Retrieve CCFG ' s return value node of function call
&self
call_node
SSARef
&self
call_node
SSARef