• Home
  • Search
  • Relating complexity and precision in control flow analysis
  • Open Access IconOpen Access
  • Cite Icon2
  • https://doi.org/10.1145/1291220.1291166Copy DOI Icon

Relating complexity and precision in control flow analysis

Show More
  • Abstract
  • Highlights & Summary
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

We analyze the computational complexity of k CFA, a hierarchy of control flow analyses that determine which functions may be applied at a given call-site. This hierarchy specifies related decision problems, quite apart from any algorithms that may implement their solutions. We identify a simple decision problem answered by this analysis and prove that in the 0CFA case, the problem is complete for polynomial time. The proof is based on a nonstandard, symmetric implementation of Boolean logic within multiplicative linear logic (MLL). We also identify a simpler version of 0CFA related to η-expansion, and prove that it is complete for logarithmic space, using arguments based on computing paths and permutations. For any fixed k >0, it is known that k CFA (and the analogous decision problem) can be computed in time exponential in the program size. For k =1, we show that the decision problem is NP-hard, and sketch why this remains true for larger fixed values of k . The proof technique depends on using the approximation of CFA as an essentially nondeterministic computing mechanism, as distinct from the exactness of normalization. When k = n , so that the "depth" of the control flow analysis grows linearly in the program length, we show that the decision problem is complete for exponential time. In addition, we sketch how the analysis presented here may be extended naturally to languages with control operators. All of the insights presented give clear examples of how straightforward observations about linearity, and linear logic, may in turn be used to give a greater understanding of functional programming and program analysis.

Similar Papers
  • Conference Article
  • Citations21

Relating complexity and precision in control flow analysis

  • Oct 01, 2007
  • David Van Horn +1
  • Book Chapter
  • Citations53

On the Computational Complexity of Cut-Elimination in Linear Logic

  • Jan 01, 2003
  • Harry G Mairson +1
  • Research Article

Editorial

  • Sep 01, 2008
  • Journal of Functional Programming
  • Julia Lawall
  • Research Article
  • Citations4

On the π-calculus and Co-intuitionistic Logic. Notes on Logic for Concurrency and λP Systems

  • Feb 01, 2014
  • Fundamenta Informaticae
  • Gianluigi Bellin +1
  • Conference Article
  • Citations9

Decision problems for second-order linear logic

  • Jun 26, 1995
  • P Lincoln +2
  • Research Article

Linear logic and the Hilbert scheme

  • Jan 01, 2026
  • Mathematical Structures in Computer Science
  • Daniel Murfet +1
  • Research Article
  • Citations50

Constant-only multiplicative linear logic is NP-complete

  • Dec 01, 1994
  • Theoretical Computer Science
  • Patrick Lincoln +1
  • Research Article
  • Citations22

Towards a typed Geometry of Interaction

  • Apr 21, 2010
  • Mathematical Structures in Computer Science
  • Esfandiar Haghverdi +1
  • Book Chapter

Lower and Upper Bounds for the Length of Joins in the Lambek Calculus

  • Jan 01, 2013
  • Alexey Sorokin
  • Conference Article
  • Citations34

Dominator trees and fast verification of proof nets

  • Nov 07, 2002
  • A.S Murawski +1
  • Research Article
  • Citations2

Individual resource games and resource redistributions

  • May 28, 2020
  • Journal of Logic and Computation
  • Nicolas Troquard
  • Research Article
  • Citations8

Fast verification of MLL proof nets via IMLL

  • Jul 01, 2006
  • ACM Transactions on Computational Logic
  • Andrzej S Murawski +1
  • Book Chapter
  • Citations8

Automated deduction in additive and multiplicative linear logic

  • Jul 20, 1992
  • Didier Galmiche +1
  • Book Chapter

Object Oriented Software Testing with Genetic Programming and Program Analysis

  • Jan 26, 2012
  • Arjan Seesing +1
  • Book Chapter

Object Oriented Software Testing with Genetic Programming and Program Analysis

  • May 03, 2013
  • Arjan Seesing +1
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.