Constructing a Safety Case for Automatically Generated Code from Formal Program Verification Information

  • Authors:
  • Nurlida Basir;Ewen Denney;Bernd Fischer

  • Affiliations:
  • ECS, University of Southampton, Southampton, UK SO17 1BJ;NASA Ames Research Center, USRA/RIACS, Mountain View, USA CA 94035;ECS, University of Southampton, Southampton, UK SO17 1BJ

  • Venue:
  • SAFECOMP '08 Proceedings of the 27th international conference on Computer Safety, Reliability, and Security
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

Formal methods can in principle provide the highest levels of assurance of code safety by providing formal proofs as explicit evidence for the assurance claims. However, the proofs are often complex and difficult to relate to the code, in particular if it has been generated automatically. They may also be based on assumptions and reasoning principles that are not justified. This causes concerns about the trustworthiness of the proofs and thus the assurance claims. Here we present an approach to systematically construct safety cases from information collected during a formal verification of the code, in particular from the construction of the logical annotations necessary for a formal, Hoare-style safety certification. Our approach combines a generic argument that is instantiated with respect to the certified safety property (i.e., safety claims) with a detailed, program-specific argument that can be derived systematically because its structure directly follows the course the annotation construction takes through the code. The resulting safety cases make explicit the formal and informal reasoning principles, and reveal the top-level assumptions and external dependencies that must be taken into account. However, the evidence still comes from the formal safety proofs. Our approach is independent of the given safety property and program, and consequently also independent of the underlying code generator. Here, we illustrate it for the AutoFilter system developed at NASA Ames.