llvm-cov json file issue

Hi all,

I’m Ruikang Shi, an intern working on fuzzbench in Google. Lately, I encountered an issue with the json file generated by llvm-cov export.

The problem is that when I counted the covered regions from the functions field in the json file, the aggregated number is a bit smaller than the summary count in the totals field.

I would be thrilled if you happen to know why this happened.

A reproducer is here https://github.com/Shadoom7/Parsing-llvm-json-file.

Thanks for your time! Have a wonderful day!

Bests,
Ruikang Shi