source:
CIVL/mods/dev.civl.com/examples/loop_invariants/dev/plan@
8553be8
| Last change on this file since 8553be8 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 177 bytes | |
| Line | |
|---|---|
| 1 | loop init; |
| 2 | assert( invari ); |
| 3 | if (cond) |
| 4 | while(true) { |
| 5 | assume_push(cond && invari); |
| 6 | body; |
| 7 | increment; |
| 8 | assert |
| 9 | havoc |
| 10 | if (!cond) break; |
| 11 | assume_pop(); |
| 12 | } |
Note:
See TracBrowser
for help on using the repository browser.
