Reputation: 851
Currently I am reading a lot about static code analysis. There are several terms that confuses me because I can't really tell what the difference is.
What is the difference (if any) between them?
Upvotes: 4
Views: 693
Reputation: 484
Pointer analysis
or points-to analysis
is a static program analysis that
determines information on the values of pointer variables or expressions.
Although the literature is not entirely consistent on terminology, pointer analysis
is a near-synonym of alias analysis
.
Whereas, however, pointer/points-to analysis
typically tries to model heap objects and asks “what objects
can a variable point to?”, alias analysis
algorithms focus on the question of “can a pair of variables/expressions point to the same object (aliases) ?”
Upvotes: 4