Remove anti-loop patterns that may result in false positives