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_2.c_safe_1.i |
Line in file: | 19 |
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_2.c" 2# 1 "<built-in>" 3# 1 "<command-line>" 4# 1 "files/alias_of_return_2.c" 5 6 7 8 9 10 11 12 13 14 15 16 17 18void err() 19{ ERROR: goto ERROR; } 20 21int __VERIFIER_nondet_int(); 22 23int * return_self (int * p) 24{ 25 if (__VERIFIER_nondet_int()){ 26 return p; 27 }else{ 28 return p; 29 } 30} 31 32int main() 33{ 34 int a,*q; 35 36 a = 1; 37 38 q = &a; 39 40 41 42 43 *q = 2; 44 45 if (a != 2) err(); 46}