

def _translate_test(self, tb, instruction):
    oprnd0 = tb.read(instruction.operands[0])
    oprnd1 = tb.read(instruction.operands[1])
    tmp0 = tb.temporal(oprnd0.size)
    tb.add(self._builder.gen_and(oprnd0, oprnd1, tmp0))
    self._clear_flag(tb, self._flags['of'])
    self._clear_flag(tb, self._flags['cf'])
    self._update_sf(tb, oprnd0, oprnd1, tmp0)
    self._update_zf(tb, oprnd0, oprnd1, tmp0)
    self._update_pf(tb, oprnd0, oprnd1, tmp0)
    self._undefine_flag(tb, self._flags['af'])

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