B2R2


TranslationContext Type

A high-level interface for the translation context, which stores several states for translating/lifting instructions.

Constructors

Constructor Description

TranslationContext(isa)

Full Usage: TranslationContext(isa)

Parameters:
Returns: TranslationContext
isa : ISA
Returns: TranslationContext

Instance members

Instance member Description

this.Endianness

Full Usage: this.Endianness

Returns: Endian

The endianness.

Returns: Endian

this.GetPseudoRegVar(id) (idx)

Full Usage: this.GetPseudoRegVar(id) (idx)

Parameters:
    id : RegisterID - Register ID.
    idx : int - Register index.

Returns: Expr Returns an IR expression of a pseudo-register.
Modifiers: abstract

Get pseudo register expression from a given register ID and an index.

id : RegisterID

Register ID.

idx : int

Register index.

Returns: Expr

Returns an IR expression of a pseudo-register.

this.GetRegVar(id)

Full Usage: this.GetRegVar(id)

Parameters:
Returns: Expr Returns an IR expression of a register.
Modifiers: abstract

Get register expression from a given register ID.

id : RegisterID

Register ID.

Returns: Expr

Returns an IR expression of a register.

this.WordBitSize

Full Usage: this.WordBitSize

Returns: RegType

Word size in bits (RegType).

Returns: RegType