Checking Strong Specifications Using an Extensible Software Model Checking Framework [chapter]

Robby, Edwin Rodríguez, Matthew B. Dwyer, John Hatcliff
2004 Lecture Notes in Computer Science  
The use of assertions to express correctness properties of programs is growing in practice. Assertions provide a form of checkable redundancy that can be very effective in finding defects in programs and in guiding developers to the cause of a defect. A wide variety of assertion languages and associated validation techniques have been developed, but run-time monitoring is commonly thought to be the only practical solution. In this paper, we describe how specifications written in the Java
more » ... g Language (JML), a general purpose behavioral specification language for Java, can be validated using a customized model checking framework. Our experience illustrates the need for customized state-space representations and reduction strategies in model checking frameworks in order to effectively check the kind of strong behavioral specifications that can be written in JML. We discuss the advantages of model checking relative to other specification validation techniques and present data that suggest that the cost of model checking strong program specifications is practical for several real programs.
doi:10.1007/978-3-540-24730-2_31 fatcat:2f2jwgmjtfbp7d7kfm4wzclpse