LiftingUnit Type
Represents a basic unit for lifting binaries, which can be used to parse, disassemble, and lift instructions. To lift a binary in parallel, one needs to create multiple lifting units.
Constructors
| Constructor | Description | 
            
                
              
              
                  Full Usage: 
                   
              LiftingUnit(binFile, regFactory, parser)
                  Parameters: 
 IBinFile
                    
                    regFactory : IRegisterFactory
                    
                    parser : IInstructionParsable
                    
                    Returns: LiftingUnit
                  
                   | 
          
            
 
  | 
        
Instance members
| Instance member | Description | 
            
                
              
              
                  Full Usage: 
                   
              this.ConfigureDisassembly
                  Parameters: 
 bool
                    
                    showSymbol : bool
                    
                     | 
          |
            
                
              
              
                  Full Usage: 
                   
              this.ConfigureDisassembly
                  Parameters: 
 bool
                    
                     | 
          |
            
                
              
              
                  Full Usage: 
                   
              this.DecomposeInstruction
                  Parameters: 
 BinFilePointer
                       - 
                      The binary file pointer.
                    
                    Returns: AsmWord[]
                  
                  
 Decomposed AsmWords.
 
                   | 
          |
            
                
              
              
             | 
          |
            
                
              
              
                  Full Usage: 
                   
              this.DecomposeInstruction
                  Parameters: 
 IInstruction
                       - 
                      The instruction to decompose.
                    
                    Returns: AsmWord[]
                  
                  
 Decomposed AsmWords.
 
                   | 
          |
            
                
              
              
                  Full Usage: 
                   
              this.DisasmInstruction
                  Parameters: 
 BinFilePointer
                       - 
                      The binary file pointer.
                    
                    Returns: string
                  
                  
 Disassembled string.
 
                   | 
          |
            
                
              
              
                  Full Usage: 
                   
              this.DisasmInstruction
                  Parameters: 
 Addr
                       - 
                      The instruction address.
                    
                    Returns: string
                  
                  
 Disassembled string.
 
                   | 
          |
            
                
              
              
                  Full Usage: 
                   
              this.DisasmInstruction
                  Parameters: 
 IInstruction
                       - 
                      The instruction to disassemble.
                    
                    Returns: string
                  
                  
 Disassembled string.
 
                   | 
          |
            
  | 
        |
            
                
              
              
                  Full Usage: 
                   
              this.InstructionAlignment
                  Returns: int
                  
                   | 
          |
            
                
              
              
                  Full Usage: 
                   
              this.LiftBBlock
                  Parameters: 
 BinFilePointer
                       - 
                      The binary file pointer.
                    
                    Returns: Result<Stmt[] array, Stmt[] array>
                  
                  
 Array of lifted IR statements, grouped by instructions.
 
                   | 
          
            
  | 
        
            
                
              
              
             | 
          
            
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.LiftInstruction
                  Parameters: 
 IInstruction
                       - 
                      The instruction to be lifted.
                    
                    optimize : bool
                       - 
                      
 Whether to optimize the lifted IR statements or not.
 
                    
                    Returns: Stmt array
                  
                  
 Lifted IR statements.
 
                   | 
          
            
 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.LiftInstruction
                  Parameters: 
 IInstruction
                       - 
                      The instruction to be lifted.
                    
                    Returns: Stmt[]
                  
                  
 Lifted IR statements.
 
                   | 
          |
            
                
              
              
                  Full Usage: 
                   
              this.LiftInstruction
                  Parameters: 
 BinFilePointer
                       - 
                      The binary file pointer.
                    
                    optimize : bool
                       - 
                      
 Whether to optimize the lifted IR statements or not.
 
                    
                    Returns: Stmt array
                  
                  
 Lifted IR statements.
 
                   | 
          
            
 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.LiftInstruction
                  Parameters: 
 BinFilePointer
                       - 
                      The binary file pointer.
                    
                    Returns: Stmt[]
                  
                  
 Lifted IR statements.
 
                   | 
          |
            
                
              
              
             | 
          |
            
                
              
              
             | 
          |
            
                
              
              
                  Full Usage: 
                   
              this.ParseBBlock
                  Parameters: 
 BinFilePointer
                       - 
                      The binary file pointer.
                    
                    Returns: Result<IInstruction array, IInstruction array>
                  
                  
 Parsed basic block (i.e., an array of instructions).
 
                   | 
          
            
 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.ParseBBlock
                  Parameters: 
 Addr
                       - 
                      The basic block address.
                    
                    Returns: Result<IInstruction array, IInstruction array>
                  
                  
 Parsed basic block (i.e., an array of instructions).
 
                   | 
          
            
 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.ParseInstruction
                  Parameters: 
 BinFilePointer
                       - 
                      BinFilePointer.
                    
                    Returns: IInstruction
                  
                  
 Parsed instruction.
 
                   | 
          |
            
                
              
              
                  Full Usage: 
                   
              this.ParseInstruction
                  Parameters: 
 Addr
                       - 
                      The instruction address.
                    
                    Returns: IInstruction
                  
                  
 Parsed instruction.
 
                   | 
          |
            
                
              
               | 
          
            
  | 
        
            
                
              
               | 
          
            
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.TryParseInstruction
                  Parameters: 
 BinFilePointer
                       - 
                      BinFilePointer.
                    
                    Returns: Result<IInstruction, ErrorCase>
                  
                  
 Parsed instruction if succeeded, ErrorCase if otherwise.
 
                   | 
          
            
 
  | 
        
            
                
              
              
                  Full Usage: 
                   
              this.TryParseInstruction
                  Parameters: 
 Addr
                       - 
                      The instruction address.
                    
                    Returns: Result<IInstruction, ErrorCase>
                  
                  
 Parsed instruction if succeeded, ErrorCase if otherwise.
 
                   | 
          
            
 
  | 
        
            B2R2