source:
CIVL/mods/dev.civl.abc/examples/side-effects/shortCircuit.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 284 bytes | |
| Line | |
|---|---|
| 1 | |
| 2 | int f(int); |
| 3 | int g(int); |
| 4 | |
| 5 | int main(){ |
| 6 | int i=0, j=0; |
| 7 | |
| 8 | /*if((f(5)==(++i)) && (g(6)>=(j--))){ |
| 9 | i=i+j; |
| 10 | }*/ |
| 11 | |
| 12 | if((i>5 && f(i)<i++) && ((j++)<3 || g(4)>(--i)) || j==10) |
| 13 | i=i-j; |
| 14 | |
| 15 | /*_Bool t; |
| 16 | if(!(f(5)==(++i))) |
| 17 | t=$false; |
| 18 | else |
| 19 | t=(g(6)>=(j--)); |
| 20 | if(t) |
| 21 | i=i+j;*/ |
| 22 | } |
Note:
See TracBrowser
for help on using the repository browser.
