Related Experiment Video
Updated: Feb 7, 2026

Flow Cytometric Analysis of Particle-bound Bet v 1 Allergen in PM10
Published on: November 19, 2016
Complexity and Resource Bound Analysis of Imperative Programs Using Difference Constraints
Moritz Sinn1, Florian Zuleger1, Helmut Veith1
1Institut für Informationssysteme, TU Wien, Favoritenstr. 9-11, Wien, Austria.
Abstract:
Difference constraints have been used for termination analysis in the literature, where they denote relational inequalities of the form , 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 . We believe that difference constraints are also a good choice for complexity and resource bound analysis because the complexity of imperative programs typically arises from counter increments and resets, which can be modeled naturally by difference constraints. In this article we propose a bound analysis based on difference constraints. We make the following contributions: (1) our analysis handles bound analysis problems of high practical relevance which current approaches cannot handle: we extend the range of bound analysis to a class of challenging but natural loop iteration patterns which typically appear in parsing and string-matching routines. (2) We advocate the idea of using bound analysis to infer invariants: our soundness proven algorithm obtains invariants through bound analysis, the inferred invariants are in turn used for obtaining bounds. Our bound analysis therefore does not rely on external techniques for invariant generation. (3) We demonstrate that difference constraints are a suitable abstract program model for automatic complexity and resource bound analysis: we provide efficient abstraction techniques for obtaining difference constraint programs from imperative code. (4) We report on a thorough experimental comparison of state-of-the-art bound analysis tools: we set up a tool comparison on (a) a large benchmark of real-world C code, (b) a benchmark built of examples taken from the bound analysis literature and (c) a benchmark of challenging iteration patterns which we found in real source code. (5) Our analysis is more scalable than existing approaches: we discuss how we achieve scalability.
Related Concept Videos
Constraints and Statical Determinacy
Short-distance Transport of Resources
Mass Spectrometry: Complex Analysis
GC–MS is a powerful hyphenated method commonly used in forensics and environmental...
Electric Potential and Potential Difference
When a test charge moves from the initial to the final position, the electric potential difference between those positions is defined as the ratio of the change in the potential energy to the charge on the...
Difference from Background: Limit of Detection
The LOD indicates the presence or absence...
Identifying Statistically Significant Differences: The F-Test

