source:
CIVL/mods/dev.civl.com/examples/svcomp17/int2pointerOnSymConst.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 210 bytes | |
| Rev | Line | |
|---|---|---|
| [368903b1] | 1 | int foo(void *p) { |
| 2 | void * q[5]; | |
| 3 | ||
| 4 | q[0] = p; // where bug happens | |
| 5 | ||
| 6 | return (int*)q[0] - (int*)p; // ignore this, just for not pruning | |
| 7 | ||
| 8 | } | |
| 9 | ||
| 10 | int main() { | |
| 11 | int a; | |
| 12 | ||
| 13 | $havoc(&a); | |
| 14 | return foo((void*)a); | |
| 15 | } |
Note:
See TracBrowser
for help on using the repository browser.
