Count overlap from merged inclusive intervals instead of enumerating every
covered line. Preserve the overlap coefficient and whole-file behavior.
Cover equivalence, input immutability and billion-line spans under a bounded
child heap.
Related: #3018
Signed-off-by: Bortlesboat <169967362+Bortlesboat@users.noreply.github.com>