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