Showing error 1426

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


Source:

 1# 1 "files/test_union_cast.c"
 2# 1 "<built-in>"
 3# 1 "<command-line>"
 4# 1 "files/test_union_cast.c"
 5# 1 "./assert.h" 1
 6
 7void __blast_assert()
 8{
 9 ERROR: goto ERROR;
10}
11# 2 "files/test_union_cast.c" 2
12
13
14
15
16
17
18
19
20
21union X
22{
23  int y;
24  double z;
25};
26
27
28
29
30
31
32
33int main(void) {
34
35 union X var;
36 var.z = 0x1.4p+4;
37 var.y = 10u;
38 ((var.y==10u) ? (0) : __blast_assert ());
39
40
41
42
43
44
45 return 0;
46}