source:
CIVL/mods/dev.civl.abc/examples/contract/result.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 146 bytes | |
| Rev | Line | |
|---|---|---|
| [c6e7aaf] | 1 | #include<assert.h> |
| 2 | ||
| [aad342c] | 3 | /*@ |
| 4 | @ ensures \result == 1; | |
| 5 | @ | |
| 6 | */ | |
| 7 | int gimmeOne() { | |
| [c6e7aaf] | 8 | return 1; |
| 9 | } | |
| 10 | ||
| 11 | int main() { | |
| 12 | int x = gimmeOne(); | |
| 13 | ||
| 14 | assert(x == 1); | |
| 15 | } |
Note:
See TracBrowser
for help on using the repository browser.
