Skip to main content
QUICK REVIEW

[Paper Review] Control software analysis, Part I Open-loop properties

Éric Féron, Fernando Alegre|ArXiv.org|Sep 28, 2008
Real-Time Systems SchedulingComputer Science7 references15 citations
TL;DR

This paper proposes a formal verification framework for control software by translating Lyapunov stability theory into invariant-based analysis of C code implementations. It demonstrates how control system stability properties can be preserved and verified through symbolic execution and ellipsoidal invariants in compiled control software, ensuring correctness of real-time control implementations beyond high-level specifications.

ABSTRACT

As the digital world enters further into everyday life, questions are raised about the increasing challenges brought by the interaction of real-time software with physical devices. Many accidents and incidents encountered in areas as diverse as medical systems, transportation systems or weapon systems are ultimately attributed to "software failures". Since real-time software that interacts with physical systems might as well be called control software, the long litany of accidents due to real-time software failures might be taken as an equally long list of opportunities for control systems engineering. In this paper, we are interested only in run-time errors in those pieces of software that are a direct implementation of control system specifications: For well-defined and well-understood control architectures such as those present in standard textbooks on digital control systems, the current state of theoretical computer science is well-equipped enough to address and analyze control algorithms. It appears that a central element to these analyses is Lyapunov stability theory, which translate into invariant theory in computer implementations.

Motivation & Objective

  • To address the gap in verifying low-level control software implementations despite correct high-level control specifications.
  • To formalize the translation of control system stability properties into software invariants for run-time verification.
  • To enable independent analysis of compiled control software, especially when generated by autocoders or compilers with opaque transformations.
  • To demonstrate that formal methods can verify correctness of embedded control code beyond textbook stability analysis.

Proposed method

  • Using Lyapunov stability theory as a foundation for deriving invariants in control software implementations.
  • Applying symbolic execution to analyze C code at the instruction level, tracking variable states via ellipsoidal invariants.
  • Representing variable states using ellipsoids defined by matrix inequalities, even when singular, via the generalized ellipsoid set ${\cal G}_R$.
  • Constructing pre- and postconditions for each C statement using matrix transformations of the state ellipsoid.
  • Verifying consistency between successive statements by checking that the postcondition of one line implies the precondition of the next using matrix inverse and positive semidefiniteness.
  • Extending the method to handle floating-point arithmetic and compiler-dependent evaluation orders through conservative invariant propagation.

Experimental results

Research questions

  • RQ1Can Lyapunov stability properties of a continuous-time controller be formally preserved and verified in its compiled C implementation?
  • RQ2How can formal invariants be constructed and propagated through low-level C code to verify correctness of control software?
  • RQ3What role do compiler-dependent evaluation orders play in the correctness of real-time control computations, and how can they be analyzed?
  • RQ4Can symbolic execution with ellipsoidal invariants provide a sound and scalable method for verifying control software beyond high-level specifications?
  • RQ5How can the interaction between input saturation and numerical precision be formally analyzed in embedded control code?

Key findings

  • The method successfully verifies that the postcondition of line 19 in the C code implies the precondition of line 20, ensuring consistency through the loop.
  • The matrix $ U^{-1} \geq P $ is shown to hold, confirming that the final state remains within the required invariant ellipsoid.
  • The generalized ellipsoid $ {\cal G}_R $ allows invariant representation even for singular transformations, enabling analysis of state copying and reassignment.
  • The analysis reveals that compiler-dependent evaluation order in line 18 may affect intermediate values, highlighting the need for conservative invariant propagation.
  • The framework is extensible to higher-order linear controllers with input saturation, demonstrating broad applicability.
  • Formal verification at the C code level detects potential numerical inconsistencies missed by high-level control theory alone.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.