(j3.2006) (SC22WG5.3930) Two requirements for critical software at JPL

Van Snyder Van.Snyder
Wed Jan 28 21:43:58 UTC 2009


I have just gotten a document frou the JPL Laboratory for Reliable
Software, specifying coding requirements and recommendations to increase
the reliability of critical software in C.  Most of these are to work
around defects in C, but two (which are requirements, not
recommendations) are germane to Fortran development:

1.  Declare data objects at smallest possible level of scope.

We've added the BLOCK construct.  The facility it provides to
encapsulate declarations in a region smaller than a scoping unit would
more likely be used if a specification part were allowed in every
<block>, not just a BLOCK construct.

2.  Use static and dynamic assertions as sanity checks.

These were on the J3 list in 2005, but didn't make it to WG5.

One of the justifications for this requirement was a study reported in
http://research.microsoft.com/apps/pubs/default.aspx?id=70290
("Assessing the relationship between software assertions and code
quality").  The abstract remarks "... with an increase in the assertion
density in a file there is a statistically significant decrease in fault
density. Further, the usage of software assertions in these components
found a large percentage of the faults in the bug database."






More information about the J3 mailing list