201. Linear Approximation of Execution-Time Constraints
- Author
-
Ian J. Hayes, Karl Lermer, and Colin J. Fidge
- Subjects
Predicate transformer semantics ,Correctness ,Theoretical computer science ,Worst-case execution time ,Linear programming ,Semantics (computer science) ,Presburger arithmetic ,Algorithm ,Software ,Theoretical Computer Science ,Mathematics ,Decidability ,Precondition - Abstract
This paper defines an algorithm for predicting worst-case and best-case execution times, and determining execution-time constraints of control-flow paths through real-time programs using their partial correctness semantics. The algorithm produces a linear approximation of path traversal conditions, worst-case and best-case execution times and strongest postconditions for timed paths in abstract real-time programs. Also shown are techniques for determining the set of control-flow paths with decidable worst-case and best-case execution times. The approach is based on a weakest liberal precondition semantics and relies on supremum and infimum calculations similar to standard computations from linear programming and Presburger arithmetic. The methodology is applicable to any executable language with a predicate transformer semantics and hence provides a verification basis for both high-level language and assembly code execution-time analysis.
- Published
- 2003