mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-10-09 14:31:13 +00:00
Added medium syndication metadata
This commit is contained in:
parent
79329aae66
commit
387dd491b1
30 changed files with 175 additions and 134 deletions
|
@ -1,10 +1,12 @@
|
|||
---
|
||||
title: "Reasoning through Loops in Dafny"
|
||||
date: 2022-02-05T00:22:58-05:00
|
||||
date: 2022-02-05 00:22:58-05:00
|
||||
draft: false
|
||||
tags: ["Formal Methods"]
|
||||
math: true
|
||||
medium_enabled: true
|
||||
medium_post_id: c0e16f8cd368
|
||||
tags:
|
||||
- Formal Methods
|
||||
title: Reasoning through Loops in Dafny
|
||||
---
|
||||
|
||||
Dafny treats loops like a black box. It could be annoying the first time you experience this and have no clue why the code is not verifying properly. There are two properties that Dafny needs you to prove: partial correctness and termination. Together these form *total correctness*.
|
||||
|
@ -111,7 +113,4 @@ method fact(x: int) returns (y: int)
|
|||
y := y * z;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue