source:
CIVL/examples/arithmetic/quadratic1.cvl@
7c66e72
| Last change on this file since 7c66e72 was 869af89, checked in by , 12 years ago | |
|---|---|
|
|
| File size: 182 bytes | |
| Rev | Line | |
|---|---|---|
| [51ce19d] | 1 | #include <stdio.h> |
| 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(){ | |
| [869af89] | 11 | assert(1 < n && n <= 9); |
| [51ce19d] | 12 | } |
Note:
See TracBrowser
for help on using the repository browser.
