

def test_add(self):
    asm_instrs = self._asm_parser.parse('add eax, ebx')
    self.__set_address(3735928559, [asm_instrs])
    reil_instrs = self._translator.translate(asm_instrs)
    regs_initial = {
        'eax': 1,
        'ebx': 2,
    }
    (regs_final, _) = asm_instrs._emulator.execute_lite(reil_instrs, context=regs_initial)
    self.assertEqual(regs_final['eax'], 3)
    self.assertEqual(regs_final['ebx'], 2)

dataset/ETHPy150Open programa-stic/barf-project/barf/tests/core/reil/test_reilemulator.py ReilEmulatorTests.test_add/VarMisuse@65/106 `self`->`asm_instrs`