© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
B. SitnikovskiIntroducing Software Verification with Dafny Languagehttps://doi.org/10.1007/978-1-4842-7978-6_1

1. Our First Program

Boro Sitnikovski1  
(1)
Skopje, North Macedonia
 

Dafny is an imperative programming language that allows software to be verified through preconditions, postconditions, and invariants. Designed by Rustan Leino and developed by Microsoft since 2009, Dafny is used in academia and the industry and is regularly used in software verification competitions.

As a programming language, Dafny shares many features with languages from the “imperative” family or paradigm, such as C, C++, and Java. There are functions and procedures (methods), ...

Get Introducing Software Verification with Dafny Language: Proving Program Correctness now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.