

def __init__(self, architecture_mode=ARCH_X86_MODE_32, translation_mode=FULL_TRANSLATION):
    self._arch_mode = architecture_mode
    self._arch_info = X86ArchitectureInformation(architecture_mode)
    self._translation_mode = translation_mode
    self._ir_name_generator = VariableNamer('t', separator='')
    self._builder = ReilInstructionBuilder()
    self._flags = {
        'af': ReilRegisterOperand('af', 1),
        'cf': ReilRegisterOperand('cf', 1),
        'df': ReilRegisterOperand('df', 1),
        'of': ReilRegisterOperand('of', 1),
        'pf': ReilRegisterOperand('pf', 1),
        'sf': ReilRegisterOperand('sf', 1),
        'zf': ReilRegisterOperand('zf', 1),
    }
    if (self._arch_mode == ARCH_X86_MODE_32):
        self._sp = ReilRegisterOperand('esp', 32)
        self._bp = ReilRegisterOperand('ebp', 32)
        self._ip = ReilRegisterOperand('eip', 32)
        self._ws = ReilImmediateOperand(4, 32)
    elif (self._arch_mode == ARCH_X86_MODE_64):
        self._sp = ReilRegisterOperand('rsp', 64)
        self._bp = ReilRegisterOperand('rbp', 64)
        self._ip = ReilRegisterOperand('rip', 64)
        self._ws = ReilImmediateOperand(8, 64)

dataset/ETHPy150Open programa-stic/barf-project/barf/barf/arch/x86/x86translator.py X86Translator.__init__/original