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