Bernoulli_sum_evalue: exploit integer bounds to reduce the number of cases