Replaces an if-else statement with an equivalent statement with a negated condition and swapped branches.