1- use std:: collections:: BTreeMap ;
2-
31use super :: operation:: * ;
42use super :: { MediumLevelILFunction , MediumLevelInstructionIndex } ;
53use crate :: architecture:: CoreIntrinsic ;
64use crate :: rc:: Ref ;
75use crate :: variable:: { ConstantData , SSAVariable , Variable } ;
6+ use std:: collections:: BTreeMap ;
7+ use std:: fmt:: { Debug , Formatter } ;
88
99#[ derive( Clone ) ]
1010pub enum MediumLevelILLiftedOperand {
@@ -23,7 +23,7 @@ pub enum MediumLevelILLiftedOperand {
2323 InstructionIndex ( MediumLevelInstructionIndex ) ,
2424}
2525
26- #[ derive( Clone , Debug , PartialEq ) ]
26+ #[ derive( Clone , PartialEq ) ]
2727pub struct MediumLevelILLiftedInstruction {
2828 pub function : Ref < MediumLevelILFunction > ,
2929 pub address : u64 ,
@@ -32,6 +32,17 @@ pub struct MediumLevelILLiftedInstruction {
3232 pub kind : MediumLevelILLiftedInstructionKind ,
3333}
3434
35+ impl Debug for MediumLevelILLiftedInstruction {
36+ fn fmt ( & self , f : & mut Formatter < ' _ > ) -> std:: fmt:: Result {
37+ f. debug_struct ( "MediumLevelILLiftedInstruction" )
38+ . field ( "address" , & self . address )
39+ . field ( "index" , & self . index )
40+ . field ( "size" , & self . size )
41+ . field ( "kind" , & self . kind )
42+ . finish ( )
43+ }
44+ }
45+
3546#[ derive( Clone , Debug , PartialEq ) ]
3647pub enum MediumLevelILLiftedInstructionKind {
3748 Nop ,
0 commit comments