java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.simulator.CMethodSimulatorUtils

public class CMethodSimulatorUtils extends Object
Utility methods.
  • Constructor Details

    • CMethodSimulatorUtils

      public CMethodSimulatorUtils()
  • Method Details

    • getDereferencedExpression

      public static ICExpression getDereferencedExpression(ICElement element)
    • getDereferencedAddress

      public static Long getDereferencedAddress(ICElement element, CMethodState state, CEnvironment environment)
      Get the dereferenced address from an expression, i.e. the value of EXP in '*(EXP)'.
      Returns:
      derefenced address, null if cannot be found
    • getBasePointer

      public static ICIdentifier getBasePointer(ICOperation operation)
      Get the base pointer in a pointer arithmetic operation. Simple check for the first identifier in the operation.
      Parameters:
      operation -
      Returns:
      base pointer, null if cannot be found