%0 Book Section
%B Static Analysis
%D 2008
%T Flow Analysis, Linearity, and PTIME
%A David Van Horn
%A Mairson, Harry G.
%E Alpuente, María
%E Vidal, Germán
%K Logics and Meanings of Programs
%K Mathematical Logic and Formal Languages
%K Programming Languages, Compilers, Interpreters
%K Programming Techniques
%K software engineering
%X Flow analysis is a ubiquitous and much-studied component of compiler technology—and its variations abound. Amongst the most well known is Shivers’ 0CFA; however, the best known algorithm for 0CFA requires time cubic in the size of the analyzed program and is unlikely to be improved. Consequently, several analyses have been designed to approximate 0CFA by trading precision for faster computation. Henglein’s simple closure analysis, for example, forfeits the notion of directionality in flows and enjoys an “almost linear” time algorithm. But in making trade-offs between precision and complexity, what has been given up and what has been gained? Where do these analyses differ and where do they coincide? We identify a core language—the linear λ-calculus—where 0CFA, simple closure analysis, and many other known approximations or restrictions to 0CFA are rendered identical. Moreover, for this core language, analysis corresponds with (instrumented) evaluation. Because analysis faithfully captures evaluation, and because the linear λ-calculus is complete for ptime, we derive ptime-completeness results for all of these analyses.
%B Static Analysis
%S Lecture Notes in Computer Science
%I Springer Berlin Heidelberg
%P 255 - 269
%8 2008/01/01/
%@ 978-3-540-69163-1, 978-3-540-69166-2
%G eng
%U http://link.springer.com/chapter/10.1007/978-3-540-69166-2_17