The Journal of Object Technology · 2004 · 21 citations · 3 references
ComputingComputer ScienceCompilersFormal MethodsProgramming LanguagesControl-flow AnalysisData-flow AnalysisStatic AnalysisStatic Code AnalysisType CheckingType SystemsBinary Control-flow AnalysisData Flow PatternsData-flow EquationsFlow AnalysisStatic Control-flow AnalysisStatic Initialization AnalysisType SafetyUninitialized Memory Access
The compilation of C requires a flow analysis to ensure that every local variable is definitely assigned when any access to its value occurs. A variable is definitely assigned at a use of its value if every execution path leading to that use contains an assignment to the variable. Since local variables are uninitialized by default, this prevents access to uninitialized memory which is a crucial ingredient for the type safety of C . We formalize the rules of the definite assignment analysis of C with data flow equations and we prove the correctness of the analysis, i.e. if the analysis will infer a local variable as definitely assigned at a certain program point, then the variable will actually be initialized at that point during every execution of the program. We actually prove more than correctness: we show that the solution of the analysis is a perfect solution (and not only a safe approximation).
3
Egon Börger, Nicu G. Fruja, Vincenzo Gervasi et al. · Theoretical Computer Science · 2004 · 70 citations
Language Studies, Computer Science, Programming Languages +6