

def _update_zf(self, tb, oprnd0, oprnd1, result):
    zf = self._flags['zf']
    imm0 = tb.immediate(((2 ** oprnd0.size) - 1), result.size)
    tmp0 = tb.temporal(oprnd0.size)
    tb.add(self._builder.gen_and(result, imm0, tmp0))
    tb.add(self._builder.gen_bisz(tmp0, zf))

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