| java.lang.Object | |
| ↳ | com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.simulator.CEnvironment |
Simulation environment. Serves as a proxy to access outside method world. In particular it provides:
clearState()).
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| CEnvironment(INativeCodeUnit<?> nativeUnit) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static boolean | areEquivalent(CEnvironment env1, CEnvironment env2) | ||||||||||
| void |
clearState()
This method should be called before re-using the environment for another simulation.
| ||||||||||
| static CEnvironment | copy(CEnvironment copy) | ||||||||||
| int |
getBaseTypeSize(ICType type)
Get base type size in bytes, i.e.
| ||||||||||
| Integer |
getDefaultPointedSize()
Gets the default size for memory reads through pointers, in bytes.
| ||||||||||
| Long | getGlobalVarValue(ICIdentifier gvar, boolean readInMemory) | ||||||||||
| Long | getParameterValue(ICIdentifier param, boolean autoGenerate) | ||||||||||
| Long | getParameterValue(ICIdentifier param) | ||||||||||
| long | getPassedParameterValue(ICIdentifier arg) | ||||||||||
| Long | getRoutineDefaultReturnValue() | ||||||||||
| Long | getRoutineReturnValue(ICMethod calledRoutine, boolean autoGenerate) | ||||||||||
| int |
getTypeSize(ICType type)
Get type size in bytes
| ||||||||||
| Long | getVarAddress(ICIdentifier var) | ||||||||||
| boolean | isAutoGenerateUndefinedIdentifierValue() | ||||||||||
| boolean | isParameterValueSet(ICIdentifier param) | ||||||||||
| Long | readMemory(long address, int bytesToRead) | ||||||||||
| void | setAutoGenerateUndefinedIdentifierValue(boolean autoGenerateUndefinedIdentifierValue) | ||||||||||
| void | setAutoGeneratedParameterValue(ICIdentifier param) | ||||||||||
| void | setAutoGeneratedRoutineReturnValue(ICMethod calledRoutine) | ||||||||||
| void | setDefaultPointedSize(Integer defaultPointedSize) | ||||||||||
| void | setGlobalVarValue(ICIdentifier gvar, long value) | ||||||||||
| void | setParameterValue(ICIdentifier param, long value) | ||||||||||
| void | setRoutineReturnValue(ICMethod calledRoutine, long retVal) | ||||||||||
| void | setVarAddress(ICIdentifier var, long address) | ||||||||||
| String | toString() | ||||||||||
| void | writeMemory(long address, long value) | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
This method should be called before re-using the environment for another simulation.
Get base type size in bytes, i.e. the size of TYPE in 'TYPE *'
Gets the default size for memory reads through pointers, in bytes.