source:
CIVL/examples/experimental/sequential/test.c@
aa6457c
| Last change on this file since aa6457c was 631a953, checked in by , 10 years ago | |
|---|---|
|
|
| File size: 361 bytes | |
| Line | |
|---|---|
| 1 | #include <civlc.cvh> |
| 2 | |
| 3 | int dummy() { |
| 4 | return 1; |
| 5 | } |
| 6 | |
| 7 | int incr(int *x) |
| 8 | $requires {*x == 0} |
| 9 | { |
| 10 | int ret = dummy(); |
| 11 | return ret; |
| 12 | } |
| 13 | |
| 14 | int main() { |
| 15 | /* This is a dummy main function, this main function will be |
| 16 | ignored, when CIVL is in the Contract System Mode. Functions have |
| 17 | to be called in order to not be pruned. */ |
| 18 | incr((void *)-1); |
| 19 | return 0; |
| 20 | } |
Note:
See TracBrowser
for help on using the repository browser.
