[tz] [PATCH 4/5] Refactor zic overflow checking