Class CMethodSimulatorUtils
java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.simulator.CMethodSimulatorUtils
Utility methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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)
-
Constructor Details
-
CMethodSimulatorUtils
public CMethodSimulatorUtils()
-
-
Method Details
-
getDereferencedExpression
-
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
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
-