Targeting Completeness: Automated Complexity Analysis of Integer Programs

📅 2024-11-15
🏛️ arXiv.org
📈 Citations: 1
Influential: 0
📄 PDF
🤖 AI Summary
This work addresses automatic runtime and variable-size bound analysis for integer programs, focusing on the decidable subclass of periodic rational-solvable loops (PRS-loops). The proposed method introduces a modular analysis framework: it first derives local bounds for PRS-loops, then lifts them to global bounds via program transformation and inductive reasoning. Crucially, it extends the decidability of PRS-loop analysis to arbitrary integer programs by designing a synergistic synthesis mechanism combining abstract interpretation with rational linear algebra. The approach is fully automated in the tool KoAT, supporting precise derivation of polynomial and exponential complexity bounds as well as variable growth bounds. Experimental evaluation demonstrates effectiveness on diverse nontrivial integer programs, significantly improving the completeness, precision, and practicality of automated complexity analysis.

Technology Category

Application Category

📝 Abstract
There exist several approaches to infer runtime or resource bounds for integer programs automatically. In this paper, we study the subclass of periodic rational solvable loops (prs-loops), where questions regarding the runtime and the size of variable values are decidable. We show how to use these results for the complexity analysis of full integer programs. To this end, we present a modular approach which computes local runtime and size bounds for subprograms which correspond to prs-loops. These local bounds are then lifted to global runtime and size bounds for the whole integer program. Furthermore, we introduce several techniques to transform larger programs into prs-loops to increase the scope of our approach. The power of our procedure is shown by our implementation in the complexity analysis tool KoAT.
Problem

Research questions and friction points this paper is trying to address.

Automated complexity analysis for integer programs
Decidable runtime and variable size for prs-loops
Transform general programs into analyzable prs-loops
Innovation

Methods, ideas, or system contributions that make the work stand out.

Modular approach for local runtime bounds
Transforms programs into prs-loops
Lifts local bounds to global analysis
🔎 Similar Papers
No similar papers found.
N
Nils Lommen
RWTH Aachen University, Germany
É
Éléanore Meyer
RWTH Aachen University, Germany
Jürgen Giesl
Jürgen Giesl
Professor of Computer Science, RWTH Aachen University
Program AnalysisVerificationRewritingAutomated Deduction