.
The use case you are suggesting is probably beyond the idea of
aggregating associated values on overlap. Moreover the value you
intend to associate to intervals, their size, is already available via
the icl::size function on intervals.
I think the behavior that you intend can be obtained using an
icl::split_interval_set in the following way: