llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

analyzer doesn't track instance variables within methods

Open llvmbot opened this issue 18 years ago • 3 comments

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

llvmbot avatar Jul 07 '08 21:07 llvmbot

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 :)

haoNoQ avatar Dec 23 '18 14:12 haoNoQ

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.

tkremenek avatar Jul 09 '08 22:07 tkremenek

assigned to @tkremenek

llvmbot avatar Jul 07 '08 21:07 llvmbot