pub(super) fn unhandled_intrinsic(
    bytes: &[u8],
    control_flow_graph: &mut il::ControlFlowGraph,
    instruction: &bad64::Instruction,
) {
    let block_index = {
        let block = control_flow_graph.new_block().unwrap();

        block.intrinsic(il::Intrinsic::new(
            instruction.op().to_string(),
            instruction.to_string(),
            Vec::new(),
            None,
            None,
            bytes.to_vec(),
        ));

        block.index()
    };

    control_flow_graph.set_entry(block_index).unwrap();
    control_flow_graph.set_exit(block_index).unwrap();
}
/// A convenience function for turning unhandled instructions into intrinsics
A convenience function for turning unhandled instructions into intrinsics
A convenience function for turning unhandled instructions into intrinsics
pub(super) fn unhandled_intrinsic(
    bytes: &[u8],
    control_flow_graph: &mut il::ControlFlowGraph,
    instruction: &bad64::Instruction,
) {
    let block_index = {
        let block = control_flow_graph.new_block().unwrap();
        block.intrinsic(il::Intrinsic::new(
            instruction.op().to_string(),
            instruction.to_string(),
            Vec::new(),
            None,
            None,
            bytes.to_vec(),
        ));
        block.index()
    };
    control_flow_graph.set_entry(block_index).unwrap();
    control_flow_graph.set_exit(block_index).unwrap();
}
pub ( super ) fn unhandled_intrinsic ( bytes : & [ u8 ] , control_flow_graph : & mut il :: ControlFlowGraph , instruction : & bad64 :: Instruction , ) { let block_index = { let block = control_flow_graph . new_block ( ) . unwrap ( ) ; block . intrinsic ( il :: Intrinsic :: new ( instruction . op ( ) . to_string ( ) , instruction . to_string ( ) , Vec :: new ( ) , None , None , bytes . to_vec ( ) , ) ) ; block . index ( ) } ; control_flow_graph . set_entry ( block_index ) . unwrap ( ) ; control_flow_graph . set_exit ( block_index ) . unwrap ( ) ; }
A convenience function for turning unhandled instructions into intrinsics
A convenience function for turning unhandled instructions into intrinsics
bytes
&[u8]
control_flow_graph
&mut il::ControlFlowGraph
instruction
&bad64::Instruction
bytes
&[u8]
control_flow_graph
&mut il::ControlFlowGraph
instruction
&bad64::Instruction