[PATCH] D50488: [Analyzer] Checker for non-determinism caused by sorting of pointer-like keys

Artem Dergachev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 14 15:07:26 PDT 2018


NoQ added a comment.

I guess one of the things the analyzer could find with path-sensitive analysis is direct comparison of non-aliasing pointers. Not only this is non-deterministic, but there's a related problem that comparison for equality would always yield false and is therefore useless. However, there will be many false negatives because most of the time it's hard to figure out if pointers alias by looking at a small part of the program (a call stack of at most 3-4 functions in the middle of nowhere), as the analyzer does.


Repository:
  rC Clang

https://reviews.llvm.org/D50488





More information about the cfe-commits mailing list