public class

AddressConversionLists

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.asm.decompiler.ir.AddressConversionLists

Summary

Fields
public Map<Integer, Long> interToNative
public Map<Long, Integer> nativeToInter
Public Constructors
AddressConversionLists()
AddressConversionLists(Map<Long, Integer> nativeToInter, Map<Integer, Long> interToNative)
Public Methods
Long convertIntermediateOffset(int offset)
Integer convertNativeAddress(long address)
static String formatConversionLists(Map<Integer, Long> interToNative, Map<Long, Integer> nativeToInter)
static AddressConversionLists generateFromCFG(CFG<IEStatement> cfg)
Generate conversion lists from a CFG.
Map<Integer, Long> getInterToNative()
List<Integer> getIntermediateOffsetsMappingToNativeAddress(long address)
List<Long> getNativeAddressesMappingToIntermediateOffset(int offset)
Map<Long, Integer> getNativeToInter()
void record(long nativeAddress, int irOffset)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public Map<Integer, Long> interToNative

public Map<Long, Integer> nativeToInter

Public Constructors

public AddressConversionLists ()

public AddressConversionLists (Map<Long, Integer> nativeToInter, Map<Integer, Long> interToNative)

Public Methods

public Long convertIntermediateOffset (int offset)

public Integer convertNativeAddress (long address)

public static String formatConversionLists (Map<Integer, Long> interToNative, Map<Long, Integer> nativeToInter)

public static AddressConversionLists generateFromCFG (CFG<IEStatement> cfg)

Generate conversion lists from a CFG.

Parameters
cfg a CFG
Returns
  • a conversion-lists object containing IR<>Native mapping information
Throws
IllegalStateException in DEBUG mode only, if the CFG and/or its statements contain inconsistencies

public Map<Integer, Long> getInterToNative ()

public List<Integer> getIntermediateOffsetsMappingToNativeAddress (long address)

public List<Long> getNativeAddressesMappingToIntermediateOffset (int offset)

public Map<Long, Integer> getNativeToInter ()

public void record (long nativeAddress, int irOffset)

public String toString ()