source:
CIVL/mods/dev.civl.abc/examples/side-effects/out_for-se.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 261 bytes | |
| Rev | Line | |
|---|---|---|
| [aad342c] | 1 | int f(int* x) |
| 2 | { | |
| 3 | int $sef$0 = *x; | |
| 4 | ||
| 5 | *x = (*x) + 1; | |
| 6 | return $sef$0; | |
| 7 | } | |
| 8 | int main() | |
| 9 | { | |
| 10 | int y = 0; | |
| 11 | ||
| 12 | { | |
| 13 | int i = 0; | |
| 14 | for(; 1; f(&y)) | |
| 15 | { | |
| 16 | int $sef$1 = i < 10; | |
| 17 | ||
| 18 | i = i + 1; | |
| 19 | if(!$sef$1) | |
| 20 | break; | |
| 21 | y = 2 * y; | |
| 22 | } | |
| 23 | } | |
| 24 | } |
Note:
See TracBrowser
for help on using the repository browser.
