A Controlled Experiment on the Effects of Formal Specifications in Software Quality
Abstract
We report on the results of an experiment involving software developers concerning the effects of formal specifications in software quality. The formal methods (FM) community has advocated for years that the inclusion of formal specifications in the software development process produces better software without incurring in significant delays---particularly when it comes to critical software. There exists a large number of industrial projects and case studies where FM deliver high quality software. Nevertheless, there is only a handful of reports on controlled experiments where the inclusion of FM is tested against the lack of them. Hence, we have conducted a controlled experiment involving 28 software developers divided into two groups who were required to implement the same program. The experimental group is given a formal specification whereas the Control group receives informal requirements. The statistical outcome of the experiment is null: the average quality of the programs delivered by both groups is statistically indistinguishable. However, when other development activities (e.g. testing) are considered the inclusion of FM would definitely yield better software.
Create a lesson
Related papers
Verification by design for AI-generated scientific software: a controlled experiment
Shared title terminologycs.SECristiano Malica
Do Causal-Inspired Optimizers Improve Optimization Quality and Consistency? A Negative Result in Software Optimization
Shared title terminologycs.SEAmirali Rayegan, Lunxiao Li, Tim Menzies
SpecBridge: Learning Natural-Language Formalization Plans for the Formal Specification Synthesis Task
Shared title terminologycs.SEWenjie Zhang, Yun Lin, Zining He et al.
Everything but the Software: Stable Retention, Missing Features and the Cost of Consolidation. An Exploratory Case Study and Experiment
Shared title terminologycs.SEJuan Manuel Servera Bondroit, Isabel Cabezas Martin
Quantifying the Risk of Software Attacks Using Formal Verification
Shared title terminologycs.SEFlorian Lanzinger, Frederik Reiche, Felix Dörre et al.
ImReq: An LLM-Powered Tool for Assessing and Improving Software Requirements Quality
Shared title terminologycs.SEThanakorn Inthongsuk, Pantaree Balee, Jaosub Pongthawechai et al.