analyzer icon indicating copy to clipboard operation
analyzer copied to clipboard

Analysis coverage reports

Open sim642 opened this issue 2 years ago • 3 comments

In larger programs and real-world projects it's often difficult to know whether a certain part of code was actually analyzed or not. Dead code warnings provide only partial information because the lack of them does not ensure live code. When some code happens to be disabled by preprocessing or missing from input files (either manually listed or from compilation database), Goblint will never even see it and thus not output dead code warnings about it either.

A possibly more convenient way would be to generate code coverage reports based on analyzed lines in some standard code coverage formats. These could be viewed using existing IDE extensions along with the actual source code to quickly get an overview.

sim642 avatar Sep 22 '23 09:09 sim642

@sim642: I see you added the unsound tag here. In what sense is the analysis unsound here?

michael-schwarz avatar Sep 23 '23 14:09 michael-schwarz

It's not an unsoundness bug but an usability feature regarding unsoundness.

sim642 avatar Sep 25 '23 07:09 sim642

I added a new tag for it, as I quite often show the list of issues tagged with unsound to demonstrate that where we still fall short of being sound, and this issue would make that list longer.

michael-schwarz avatar Sep 25 '23 08:09 michael-schwarz