[PATCH] D49074: [Analyzer] [WIP] Basic support for multiplication and division in the constraint manager

George Karpenkov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 11 14:20:38 PDT 2018


george.karpenkov added a comment.

> The imprecision in the built in solver might result in failure to constrain a value to zero while the Z3 might be able to do that.

Ah right, that's a good point, we only throw a null-pointer deref/division by zero when the pointer/value is definitely zero.

Do you have *motivating* examples though, like an actual code samples where you got a bug and the analyzer does not warn?
In my experience, we almost never warn about division by zero anyway,
and the null pointer dereference check is too noisy if anything.


https://reviews.llvm.org/D49074





More information about the cfe-commits mailing list