source:
CIVL/examples/experimental/quadratic.c@
5d390d68
| Last change on this file since 5d390d68 was 51ce19d, checked in by , 12 years ago | |
|---|---|
|
|
| File size: 192 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(){ | |
| 11 | elaborate(n); | |
| 12 | printf("%d\n", n); | |
| 13 | } |
Note:
See TracBrowser
for help on using the repository browser.
