[PATCH] D36471: [StaticAnalyzer] Try to calculate arithmetic result when operand has a range of possible values

Daniel Marjamäki via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 8 09:42:26 PDT 2017


danielmarjamaki added a comment.

In https://reviews.llvm.org/D36471#835410, @xazax.hun wrote:

> Can't you reuse somehow some machinery already available to evaluate the arithmetic operators? Those should already handle most of your TODOs and overflows.


Sounds good.. I have not seen that machinery.. I will look around.

To me it seems it would be nice if this machinery was builtin in APSInt so I could calculate (x+y) even if x and y did not have the same signedness and that the result would be unsigned.


Repository:
  rL LLVM

https://reviews.llvm.org/D36471





More information about the cfe-commits mailing list