Showing error 1380

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/nested_structure.c_safe.i
Line in file: 12
Project: SV-COMP 2013
Project version: 2.6.28
Tools: Manual Work
Entered: 2013-01-17 16:57:54 UTC


Source:

 1# 1 "files/nested_structure.c"
 2# 1 "<built-in>"
 3# 1 "<command-line>"
 4# 1 "files/nested_structure.c"
 5
 6
 7
 8# 1 "./assert.h" 1
 9
10void __blast_assert()
11{
12 ERROR: goto ERROR;
13}
14# 5 "files/nested_structure.c" 2
15
16
17
18typedef struct Toplev {
19 int a;
20 struct Inner {
21  int b;
22  struct Innermost{
23   int c;
24  } *y;
25 } *x;
26} Stuff;
27
28int main()
29{
30 struct Innermost im = {3};
31 struct Inner inner = {2, &im};
32 struct Toplev good = { 1, &inner};
33 good.x->y->c = 4;
34 ((good.x->y->c == 4) ? (0) : __blast_assert ());
35 return 0;
36}