Static Public Member Functions

com.google.security.zynamics.binnavi.API.reil.ReilTranslator Class Reference

List of all members.

Static Public Member Functions

static ReilGraph translate (final BasicBlock block) throws InternalTranslationException
static ReilFunction translate (final Function function) throws InternalTranslationException
static ReilFunction translate (final View view) throws InternalTranslationException
static List< ReilInstructiontranslateInstruction (final NativeArchitecture architecture, final Instruction instruction) throws InternalTranslationException

Detailed Description

Translator class that can be used to translate native assembler code into REIL code.


Member Function Documentation

static ReilGraph com.google.security.zynamics.binnavi.API.reil.ReilTranslator.translate ( final BasicBlock  block  )  throws InternalTranslationException [static]

Translates a single native code block to REIL code.

Parameters:
block The input block.
Returns:
The REIL code of the input block.
Exceptions:
InternalTranslationException Thrown if something goes wrong during translation.
static ReilFunction com.google.security.zynamics.binnavi.API.reil.ReilTranslator.translate ( final Function  function  )  throws InternalTranslationException [static]

Translates a complete function to REIL code.

Parameters:
function The function to translate.
Returns:
The translated REIL function object.
Exceptions:
InternalTranslationException Thrown if something goes wrong during translation.
static ReilFunction com.google.security.zynamics.binnavi.API.reil.ReilTranslator.translate ( final View  view  )  throws InternalTranslationException [static]

Translates a complete view to REIL code.

Parameters:
view The view to translate.
Returns:
The translated REIL function object.
Exceptions:
InternalTranslationException Thrown if something goes wrong during translation.
static List<ReilInstruction> com.google.security.zynamics.binnavi.API.reil.ReilTranslator.translateInstruction ( final NativeArchitecture  architecture,
final Instruction  instruction 
) throws InternalTranslationException [static]

Translates a single instruction to REIL code.

Parameters:
architecture The source architecture of the instruction.
instruction The instruction to translate.
Returns:
The generated REIL code for that instruction.
Exceptions:
InternalTranslationException Thrown if something goes wrong during translation.