[PATCH] D110927: [analyzer] Access stored value of a constant array  through a pointer to another type
    Artem Dergachev via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Tue Nov 16 18:04:54 PST 2021
    
    
  
NoQ added a comment.
Taking advantage of strict aliasing is good as long as it produces strictly smaller analysis space (less paths, more constrained states). I.e., we can use it for eliminating possibilities, but not for discovering possibilities.
If we ever prove that strict aliasing is violated on a given execution path (while being enabled), the ideal thing to do is to terminate the analysis immediately by generating a sink. We can then optionally develop a checker that emits a warning in such cases.
For the cases where you eliminate possibilities through recognizing strict aliasing, I wonder if a note can be added to the bug report to notify the user that the strict aliasing rule was invoked to add a certain assumption.
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110927/new/
https://reviews.llvm.org/D110927
    
    
More information about the cfe-commits
mailing list