2015 · 16 citations · 10 references
ComputingComputer ScienceAlgorithmsProgramming LanguagesTheory Of ComputationAlgorithm AnalysisAlgorithmic ComplexityAmortized AnalysisComputational ComplexityStatic AnalysisTermination AnalysisAbstractionAmortized ComplexityCode Complexity AnalysisComplexityComplexity AnalysisDifference ConstraintsProgram TerminationTermination Of Imperative Programs
Difference constraints have been used for termination analysis in the literature, where they denote relational inequalities of the form x' ≤ y + c, and describe that the value of x in the current state is at most the value of y in the previous state plus some constant c ∈ ℤ. In this paper, we argue that the complexity of imperative programs typically arises from counter increments and resets, which can be modeled naturally by difference constraints.We present the first practical algorithm for the analysis of difference constraint programs and describe how C programs can be abstracted to difference constraint programs. Our approach contributes to the field of automated complexity and (resource) bound analysis by enabling automated amortized complexity analysis for a new class of programs and providing a conceptually simple program model that relates invariant- and bound analysis.We demonstrate the effectiveness of our approach through a thorough experimental comparison on real world C code: our tool Loopus computes the complexity for considerably more functions in less time than related tools from the literature.
10
Amortized Computational Complexity
Robert E. Tarjan · SIAM Journal on Algebraic and Discrete Methods · 1985 · 525 citations
Cost analysis of object-oriented bytecode programs
Elvira Albert, Puri Arenas, Samir Genaim et al. · Theoretical Computer Science · 2011 · 121 citations
The reachability-bound problem
Sumit Gulwani, Florian Zuleger · 2010 · 116 citations