source:
CIVL/mods/dev.civl.abc/examples/equiv/test2_0.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 213 bytes | |
| Rev | Line | |
|---|---|---|
| [aad342c] | 1 | /* |
| 2 | * test2_0.c and test2_1.c are not equivalent because | |
| 3 | * they access different element of b at the last line. | |
| 4 | */ | |
| 5 | ||
| 6 | void main(){ | |
| 7 | int a = 10; | |
| 8 | int b[5]; | |
| 9 | ||
| 10 | b[0] = 1; | |
| 11 | b[1] = 2; | |
| 12 | a = a + 1; | |
| 13 | a = a + b[0]; | |
| 14 | } |
Note:
See TracBrowser
for help on using the repository browser.
