User: | Jiri Slaby |
Error type: | Reachable Error Location |
Error type description: | A specified error location is reachable in some program path |
File location: | ldv-regression/alias_of_return.c_safe.i |
Line in file: | 11 |
Project: | SV-COMP 2013 |
Project version: | 2.6.28 |
Tools: |
Manual Work
|
Entered: | 2013-01-17 16:57:54 UTC |
1# 1 "files/alias_of_return.c" 2# 1 "<built-in>" 3# 1 "<command-line>" 4# 1 "files/alias_of_return.c" 5# 9 "files/alias_of_return.c" 6 7 8 9 10void err() 11{ ERROR: goto ERROR; } 12 13 14int * return_self (int * p) 15{ 16 return p; 17} 18 19int main() 20{ 21 int a,*q; 22 23 a = 1; 24 25 26 27 q = return_self(&a); 28 29 30 *q = 2; 31 32 if (a != 2) err(); 33}