source:
CIVL/mods/dev.civl.com/examples/direct/fullvsdirect.c@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 219 bytes | |
| Line | |
|---|---|
| 1 | #include <civlc.cvh> |
| 2 | |
| 3 | // x, y are symbolic |
| 4 | $input int x; |
| 5 | $input int y; |
| 6 | |
| 7 | int main() { |
| 8 | int z = 0; |
| 9 | if (x>0) { |
| 10 | z = z + x; |
| 11 | } |
| 12 | if (y>0) { |
| 13 | z = z + y; |
| 14 | } |
| 15 | if (y==x) { |
| 16 | z = z - 2*x; |
| 17 | } |
| 18 | $assert(z == 0); |
| 19 | } |
Note:
See TracBrowser
for help on using the repository browser.
