1.23
2.0
main
test-branch
| Rev | Line | |
|---|
| [793cfc2] | 1 | #include <civlc.h>
|
|---|
| 2 | $input int x;
|
|---|
| 3 | $input int y;
|
|---|
| 4 |
|
|---|
| 5 | void main() {
|
|---|
| 6 | int z0 = x*x + 2*x*y + y*y;
|
|---|
| 7 | int z1 = (x + y) * (x + y);
|
|---|
| 8 | int z2 = x*x - y*y;
|
|---|
| 9 | int z3 = (x + y) * (x - y);
|
|---|
| 10 | int z4 = x*x*x - y*y*y;
|
|---|
| 11 | int z5 = (x - y) * (x*x + x*y + y*y);
|
|---|
| 12 | int z6 = x*x*x + y*y*y;
|
|---|
| 13 | int z7 = (x + y) * (x*x - x*y + y*y);
|
|---|
| 14 |
|
|---|
| 15 | $assert z0 == z1;
|
|---|
| 16 | $assert z2 == z3;
|
|---|
| 17 | $assert z4 == z5;
|
|---|
| 18 | $assert z6 == z7;
|
|---|
| 19 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.