analyzer doesn't track instance variables within methods
| Bugzilla Link | 2527 |
| Resolution | WORKSFORME |
| Resolved on | Dec 23, 2018 06:37 |
| Version | unspecified |
| OS | MacOS X |
| Attachments | test case |
| Reporter | LLVM Bugzilla Contributor |
| CC | @tkremenek,@haoNoQ |
Extended Description
I have seen several false-positives due to code structured that way. The analyzer evaluates the variable to begin TRUE and FALSE while it is not modified.
See the attachment.
Using checker-57.
Thanks
The underlying problem was fixed long ago, and i cannot reproduce the false positive anymore. I guess i'll close but feel free to re-open if it is still a problem :)
This false path results from the analyzer not tracking state for instance variables. We plan on supporting this, and it is tied to our lack of field-sensitivity (not tracking field values). This is an important feature, and it ties in with my current plans to enhance the "symbolic memory" used by the analyzer to reason about the values of variables, etc. In short, this isn't a quick fix, but it is a priority item to get implemented.
assigned to @tkremenek