1990 · 47 citations · 29 references
ComputingComputer ScienceAlgorithmsCompilersProgramming LanguagesAbstract Syntax TreesControl-flow AnalysisStatic AnalysisStatic Code AnalysisType CheckingType SystemsEfficiencyPointer AnalysisStatic Type CheckingType Analysis
Static type determination involves compile time calculation of the type of object a pointer may point to at a particular program point during some execution. We show that the problem of precise interprocedural type determination is NP-hard in the presence of inheritance, virtual methods and pointers. We highlight the signicance of type determination in improving code eciency and precision of other static analyses. We present a safe, approximate algorithm for C++ programs with single level pointers, using the conditional analysis technique [LR91]. We discuss the generalization of our approach to analyze programs with multiple levels of pointer dereferencing.
29
Mark Weiser · IEEE Transactions on Software Engineering · 1984 · 3.2K citations
A safe approximate algorithm for interprocedural aliasing
William Landi, Barbara G. Ryder · 1992 · 335 citations · Full text