I hadn't bothered to understand what it was doing, I just recognized the if logic; breaks only if both conditionals are true, if f_vco is less than or equal to min_vco then it's less than max_vco, as min_vco is less than max_vco, so either checking f_vco < max_vco is unecessary or it's supposed to be checking >=.