int (int bn) { if (bn >= 10000) return 88; // Maia, 9x builds if (bn >= 9500) return 85; // 8.1 builds if (bn >= 9100) return 81; // 8.0.x builds if (bn >= 8000) return 80; // 8.0, including pre-release builds if (bn >= 7500) return 75; // 7.0.2+ if (bn >= 7200) return 72; // 7.0 final if (bn >= 6900) return 69; // 7.0 pre-M2 if (bn >= 6500) return 65; // 7.0 pre-M1 if (bn >= 6000) return 60; // 6.0.2+ if (bn >= 5000) return 55; // 6.0 branch, including all 6.0 EAP builds if (bn >= 4000) return 50; // 5.1 branch return 40; }