source:
CIVL/mods/dev.civl.abc/examples/side-effects/out_nestedLoop.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 484 bytes | |
| Rev | Line | |
|---|---|---|
| [aad342c] | 1 | //====================== nestedLoop.c ====================== |
| 2 | int fun(int a) | |
| 3 | { | |
| 4 | return 0; | |
| 5 | } | |
| 6 | int main() | |
| 7 | { | |
| 8 | int data[1]; | |
| 9 | { | |
| 10 | int i = 0; | |
| 11 | for (; i < 3; i = i + 1) | |
| 12 | { | |
| 13 | int j = 0; | |
| 14 | for (; 1; j = j - 1) | |
| 15 | { | |
| 16 | int $sef$0; | |
| 17 | if (!(j > 0)) | |
| 18 | $sef$0 = 0; | |
| 19 | else | |
| 20 | { | |
| 21 | int $sef$1 = fun(data[j - 1]); | |
| 22 | $sef$0 = $sef$1 > 0; | |
| 23 | } | |
| 24 | if (!$sef$0) | |
| 25 | break; | |
| 26 | return 0; | |
| 27 | } | |
| 28 | } | |
| 29 | } | |
| 30 | return 0; | |
| 31 | } |
Note:
See TracBrowser
for help on using the repository browser.
