source:
CIVL/mods/dev.civl.abc/examples/c/pointsToAnalysis/recursive.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 192 bytes | |
| Line | |
|---|---|
| 1 | struct T { |
| 2 | int x; |
| 3 | int y; |
| 4 | } t; |
| 5 | |
| 6 | void f(int ** p, int ** q) { |
| 7 | *q = &t.y; |
| 8 | f(q, p); |
| 9 | } |
| 10 | |
| 11 | void g(int ** p, int ** q) { |
| 12 | *p = &t.x; |
| 13 | f(p, q); |
| 14 | } |
| 15 | |
| 16 | int main() { |
| 17 | int *x, *y; |
| 18 | |
| 19 | g(&x, &y); |
| 20 | } |
Note:
See TracBrowser
for help on using the repository browser.
