Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

The way static analyzers fight against false positives, and why they do it

13 views
Skip to first unread message

Andrey Karpov

unread,
Mar 20, 2017, 8:20:04 AM3/20/17
to
In my previous article I wrote (https://www.viva64.com/en/b/0471/) that I don't like the approach of evaluating the efficiency of static analyzers with the help of synthetic tests. In that article, I give the example of a code fragment that the analyzer treats as a special case, and deliberately doesn't issue a warning for. To be honest, I didn't expect such an overflow of comments regarding the fact that an analyzer may not issue warnings because of the mechanisms of false positive elimination. In general the topic of battling against false positives is such a huge part of any static analyzer that it's really not clear what we can discuss here; but still, let's talk about it. Such mechanisms exist not only in our analyzer but also in another analyzers/compilers. Nevertheless, if this topic brought about so much discussion, I think it's worth talking about, and so I wrote this explanatory article: https://www.viva64.com/en/b/0488/
0 new messages