Replaces either a || b with !(!a && !b) or a && b with !(!a || !b) inside boolean expression.