source:
CIVL/mods/dev.civl.com/examples/arithmetic/sqrtBad1.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 171 bytes | |
| Line | |
|---|---|
| 1 | #include <civlc.cvh> |
| 2 | #include <math.h> |
| 3 | #include <assert.h> |
| 4 | |
| 5 | $input double x; |
| 6 | $assume(x >= 0.0); |
| 7 | |
| 8 | int main() { |
| 9 | double y = sqrt(x) + 1; |
| 10 | |
| 11 | assert(y >= 1.1); |
| 12 | return 0; |
| 13 | } |
Note:
See TracBrowser
for help on using the repository browser.
