def _translate_not(self, tb, instruction):
        # Flags Affected
        # None.

        oprnd0 = tb.read(instruction.operands[0])

        tmp0 = tb.temporal(oprnd0.size*2)

        imm0 = tb.immediate((2**oprnd0.size)-1, oprnd0.size)

        tb.add(self._builder.gen_xor(oprnd0, imm0, tmp0))

        tb.write(instruction.operands[0], tmp0)

# "Shift and Rotate Instructions"
# ============================================================================ #
dataset/ETHPy150Open programa-stic/barf-project/barf/barf/arch/x86/x86translator.py/X86Translator._translate_not/original