source:
CIVL/examples/arithmetic/quadratic1.cvl
| Last change on this file was b689afd, checked in by , 4 weeks ago | |
|---|---|
|
|
| File size: 165 bytes | |
| Rev | Line | |
|---|---|---|
| [51ce19d] | 1 | #include <assert.h> |
| 2 | ||
| 3 | $input int x; | |
| [3ff27cf] | 4 | $assume(1 < x && x <= 3); |
| [51ce19d] | 5 | $input int y; |
| [3ff27cf] | 6 | $assume(1 < y && y <= 3); |
| [51ce19d] | 7 | $input int n = x * y; |
| 8 | ||
| 9 | int main(){ | |
| [869af89] | 10 | assert(1 < n && n <= 9); |
| [51ce19d] | 11 | } |
Note:
See TracBrowser
for help on using the repository browser.
