NASA Logo

NTRS

NTRS - NASA Technical Reports Server

Back to Results
Generating Customized Verifiers for Automatically Generated CodeProgram verification using Hoare-style techniques requires many logical annotations. We have previously developed a generic annotation inference algorithm that weaves in all annotations required to certify safety properties for automatically generated code. It uses patterns to capture generator- and property-specific code idioms and property-specific meta-program fragments to construct the annotations. The algorithm is customized by specifying the code patterns and integrating them with the meta-program fragments for annotation construction. However, this is difficult since it involves tedious and error-prone low-level term manipulations. Here, we describe an annotation schema compiler that largely automates this customization task using generative techniques. It takes a collection of high-level declarative annotation schemas tailored towards a specific code generator and safety property, and generates all customized analysis functions and glue code required for interfacing with the generic algorithm core, thus effectively creating a customized annotation inference algorithm. The compiler raises the level of abstraction and simplifies schema development and maintenance. It also takes care of some more routine aspects of formulating patterns and schemas, in particular handling of irrelevant program fragments and irrelevant variance in the program structure, which reduces the size, complexity, and number of different patterns and annotation schemas that are required. The improvements described here make it easier and faster to customize the system to a new safety property or a new generator, and we demonstrate this by customizing it to certify frame safety of space flight navigation code that was automatically generated from Simulink models by MathWorks' Real-Time Workshop.
Document ID
20100036452
Acquisition Source
Ames Research Center
Document Type
Conference Paper
Authors
Denney, Ewen
(Research Inst. for Advanced Computer Science Moffett Field, CA, United States)
Fischer, Bernd
(Southampton Univ. United Kingdom)
Date Acquired
August 25, 2013
Publication Date
October 19, 2008
Subject Category
Mathematical And Computer Sciences (General)
Report/Patent Number
ARC-E-DAA-TN129
Report Number: ARC-E-DAA-TN129
Meeting Information
Meeting: International Conference on Generative Programming and Component Engineering
Location: Nashville, TN
Country: United States
Start Date: October 19, 2008
End Date: October 23, 2008
Funding Number(s)
CONTRACT_GRANT: NNA07BB97C
CONTRACT_GRANT: NCC2-1426
CONTRACT_GRANT: EP/F052669/1
Distribution Limits
Public
Copyright
Public Use Permitted.
No Preview Available