public class

CMethodSimulatorUtils

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

Class Overview

Utility methods.

Summary

Public Constructors
CMethodSimulatorUtils()
Public Methods
static ICIdentifier getBasePointer(ICOperation operation)
Get the base pointer in a pointer arithmetic operation.
static Long getDereferencedAddress(ICElement element, CMethodState state, CEnvironment environment)
Get the dereferenced address from an expression, i.e.
static ICExpression getDereferencedExpression(ICElement element)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CMethodSimulatorUtils ()

Public Methods

public static ICIdentifier getBasePointer (ICOperation operation)

Get the base pointer in a pointer arithmetic operation. Simple check for the first identifier in the operation.

Returns
  • base pointer, null if cannot be found

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

public static ICExpression getDereferencedExpression (ICElement element)