MutagenEx.Mutators.Boolean (mutagen_ex v0.2.0)

Copy Markdown View Source

Swaps boolean operators and drops boolean negations: and ↔ or, && ↔ ||, not x → x, !x → x.

Per mutagen.mutators catalog entry 3. The binary swaps are symmetric. The negation drops are NOT symmetric — once not/! is gone, applying mutate/1 again does not restore it because mutate/1 only knows how to drop a wrapper, not add one. The symmetric-swap property (r5) is therefore restricted to binary forms; negation drops are covered by unit tests instead.