Likelihood calculations can go out of range even for long double in theory. This rarely happens in practice, but the code exits if it happens. E.g. packets dropped: 877, packets sent: 5369 for p_g = 2.0e-4, p_b = 7.0e-3, prior = -250