AntiPattern
Off-By-Sequence Invariants
off-by-sequence-invariants
Incorrectly defined iteration/selection invariants (e.g., doubling or bit-scanning bounds, distinct-order constraints, or array length assumptions) cause algorithms to miss required states or loop forever, yielding wrong counts or non-terminating execution under edge inputs.