[PATCH v2 13/30] ide: Refactor confusing loop code