source:
CIVL/mods/dev.civl.abc/examples/svcomp/function.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 362 bytes | |
| Line | |
|---|---|
| 1 | |
| 2 | /*int f(); |
| 3 | int g(); |
| 4 | void h(int k); |
| 5 | */ |
| 6 | //void fi(int x); |
| 7 | |
| 8 | /* |
| 9 | fnoreturn(int a){ |
| 10 | return a*a; |
| 11 | }*/ |
| 12 | |
| 13 | //int add(int, int); |
| 14 | |
| 15 | int main() { |
| 16 | //volatile int t; |
| 17 | int x; |
| 18 | |
| 19 | (x); |
| 20 | x=add(1,2); |
| 21 | //fnoreturn(10); |
| 22 | /* f(); |
| 23 | g(); |
| 24 | //t=add(1,2); |
| 25 | h(t);*/ |
| 26 | } |
| 27 | |
| 28 | int add(int x, int y){ |
| 29 | return x+y; |
| 30 | } |
| 31 | |
| 32 | /* |
| 33 | void h(int x){ |
| 34 | x++; |
| 35 | } |
| 36 | inline void fi(int x){ |
| 37 | x++; |
| 38 | return; |
| 39 | }*/ |
Note:
See TracBrowser
for help on using the repository browser.
