Skip to content

Invert bitwise assignments

Invert bitwise assignments will perform inversions on basic bit operations, and it assigns the result of the two left and right operands to the left operand.

Mutation table

Original Mutated
&= |=
|= &=
^= &=
&^= &=
>>= <<=
<<= >>=

Examples

a := 1
a &= 1
a := 1
a |= 1