DocumentCode
2769752
Title
Annotation Inference for Safety Certification of Automatically Generated Code (Extended Abstract)
Author
Denney, Ewen ; Fischer, Bernd
Author_Institution
USRA/RIACS, NASA Ames, Mountain View, CA
fYear
2006
fDate
18-22 Sept. 2006
Firstpage
265
Lastpage
268
Abstract
Automated code generation is an enabling technology for model-based software development and promises many benefits, including higher quality and reduced turn-around times. However, the key to realizing these benefits is generator correctness: nothing is gained from replacing manual coding errors with automatic coding errors. In this paper, we describe an alternative technique that uses a generic post-generation annotation inference algorithm. We exploit both the highly idiomatic structure of automatically generated code and the restriction to specific safety properties. Since generated code only constitutes a limited subset of all possible programs, the new "eureka" insights required in general remain rare in our case. Since safety properties are simpler than full functional correctness, the required annotations are also simpler and more regular. We can thus use patterns to describe all code constructs that require annotations and templates to describe the required annotations. We use techniques similar to aspect-oriented programming to add the annotations to the generated code: the patterns correspond to (static) point-cut descriptors, while the introduced annotations correspond to advice. The annotation inference algorithm can run completely separately from the generator and is generic with respect to the safety property, although we use initialization safety as running example here. It has been implemented and applied to certify initialization safety for code generated by Auto-Bayes and AutoFilter
Keywords
certification; program compilers; reasoning about programs; security of data; type theory; annotation inference; automated code generation; coding errors; functional correctness; idiomatic structure; initialization safety; model-based software development; safety certification; static point-cut descriptors; Aerospace safety; Certification; Error correction; Inference algorithms; NASA; Programming; Software safety; Space technology; Testing; Virtual colonoscopy;
fLanguage
English
Publisher
ieee
Conference_Titel
Automated Software Engineering, 2006. ASE '06. 21st IEEE/ACM International Conference on
Conference_Location
Tokyo
ISSN
1938-4300
Print_ISBN
0-7695-2579-2
Type
conf
DOI
10.1109/ASE.2006.15
Filename
4019583
Link To Document