Correctness-by-construction (CbC), traditionally based on weakest precondition semantics, and post-hoc verification (PhV) aspire to ensure functional correctness. We argue for a lightweight approach to CbC where lack of formal rigour increases productivity. In order to mitigate the risk of accidentally introducing errors during program construction, we propose to complement lightweight CbC with PhV. We introduce lightweight CbC by example and discuss strength and weaknesses of CbC and PhV and their combination, both conceptually and using a case study.
|Title of host publication||ISoLA 2016: Leveraging Applications of Formal Methods, Verification and Validation : Foundational Techniques|
|Subtitle of host publication||7th International Symposium, ISoLA 2016, Imperial, Corfu, Greece, October 10–14, 2016, Proceedings, Part I|
|Editors||T. Margaria, B. Steffen|
|Place of Publication||Dordrecht|
|ISBN (Electronic)||978-3-319-47166-2 |
|Publication status||Published - 5 Oct 2016|