DocumentCode
3460789
Title
Using invariants to optimize formal specifications before code synthesis
Author
Jeffords, Ralph D. ; Leonard, Elizabeth I.
Author_Institution
Naval Res. Lab., Washington, DC, USA
fYear
2004
fDate
23-25 June 2004
Firstpage
73
Lastpage
82
Abstract
Formal specifications of required system behavior can be analyzed, verified, and validated, giving high confidence that the specification captures the desired behavior Transferring this confidence to the system implementation depends on a formal link between requirements and implementation. The automatic generation of probably correct code provides just such a link. While optimization is usually performed on code to achieve efficiency, we propose to optimize the formal specification before generating code, thus providing optimization independent of the particular code generation method. This paper investigates the use of invariants in optimizing code generated from formal specifications in the software cost reduction (SCR) tabular notation. We show that invariants (1) provide the basis for simplifying expressions that otherwise cannot be improved using traditional compiler optimization techniques, and (2) allow detection and elimination of parts of the specification that would lead to unreachable code.
Keywords
formal specification; optimising compilers; code generation; code optimization; code synthesis; formal specifications; invariants; software cost reduction; Analytical models; Cost function; Design engineering; Formal specifications; Laboratories; Optimization methods; Optimizing compilers; Safety; Security; Thyristors;
fLanguage
English
Publisher
ieee
Conference_Titel
Formal Methods and Models for Co-Design, 2004. MEMOCODE '04. Proceedings. Second ACM and IEEE International Conference on
Print_ISBN
0-7803-8509-8
Type
conf
DOI
10.1109/MEMCOD.2004.1459821
Filename
1459821
Link To Document