Alias Analysis On Type Inference For Class Hierarchy In Java.

Conference Paper (PDF Available) · January 2001with13 Reads
DOI: 10.1109/ACSC.2001.906644 · Source: DBLP
Conference: 24th Australasian Computer Science Conference (ACSC 2001), 29 January - 1 February 2001, Gold Coast, Queensland, Australia
The integration of alias analysis with type information increases the precision of alias detection, especially for inheritance among classes. The paper presents a compile-time flow-sensitive context-insensitive alias analysis algorithm with type information for Java. First, we propose an aliased element representation for an object to compute aliases efficiently. Second, the algorithm computes aliases for shadowed variables by regarding constructors as functions. Third, it performs type inference for each reference variable. The inferred type information increases the precision of subsequent alias analysis by building a complete calling graph, not only for overridden methods but also for both shadowed variables and constructors. Fourth, it presents algorithms to compute aliases for each statement. As a result, the precision and efficiency of the algorithm is improved