File tree Expand file tree Collapse file tree 4 files changed +22
-0
lines changed Expand file tree Collapse file tree 4 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -314,6 +314,9 @@ inline void pthread_exit(void *value_ptr)
314
314
#endif
315
315
__CPROVER_threads_exited [__CPROVER_thread_id ]= 1 ;
316
316
__CPROVER_assume (0 );
317
+ #ifdef LIBRARY_CHECK
318
+ __builtin_unreachable ();
319
+ #endif
317
320
}
318
321
319
322
/* FUNCTION: pthread_join */
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ inline void longjmp(jmp_buf env, int val)
13
13
(void )val ;
14
14
__CPROVER_assert (0 , "longjmp requires instrumentation" );
15
15
__CPROVER_assume (0 );
16
+ #ifdef LIBRARY_CHECK
17
+ __builtin_unreachable ();
18
+ #endif
16
19
}
17
20
18
21
/* FUNCTION: _longjmp */
@@ -29,6 +32,9 @@ inline void _longjmp(jmp_buf env, int val)
29
32
(void )val ;
30
33
__CPROVER_assert (0 , "_longjmp requires instrumentation" );
31
34
__CPROVER_assume (0 );
35
+ #ifdef LIBRARY_CHECK
36
+ __builtin_unreachable ();
37
+ #endif
32
38
}
33
39
34
40
/* FUNCTION: siglongjmp */
@@ -47,6 +53,9 @@ inline void siglongjmp(sigjmp_buf env, int val)
47
53
(void )val ;
48
54
__CPROVER_assert (0 , "siglongjmp requires instrumentation" );
49
55
__CPROVER_assume (0 );
56
+ #ifdef LIBRARY_CHECK
57
+ __builtin_unreachable ();
58
+ #endif
50
59
}
51
60
52
61
#endif
Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ inline void exit(int status)
36
36
{
37
37
(void )status ;
38
38
__CPROVER_assume (0 );
39
+ #ifdef LIBRARY_CHECK
40
+ __builtin_unreachable ();
41
+ #endif
39
42
}
40
43
41
44
/* FUNCTION: _Exit */
@@ -46,6 +49,9 @@ inline void _Exit(int status)
46
49
{
47
50
(void )status ;
48
51
__CPROVER_assume (0 );
52
+ #ifdef LIBRARY_CHECK
53
+ __builtin_unreachable ();
54
+ #endif
49
55
}
50
56
51
57
/* FUNCTION: abort */
@@ -55,6 +61,9 @@ inline void _Exit(int status)
55
61
inline void abort (void )
56
62
{
57
63
__CPROVER_assume (0 );
64
+ #ifdef LIBRARY_CHECK
65
+ __builtin_unreachable ();
66
+ #endif
58
67
}
59
68
60
69
/* FUNCTION: calloc */
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ for f in "$@"; do
7
7
echo " Checking ${f} "
8
8
cp " ${f} " __libcheck.c
9
9
perl -p -i -e ' s/(__builtin_[^v])/s$1/' __libcheck.c
10
+ perl -p -i -e ' s/s(__builtin_unreachable)/$1/' __libcheck.c
10
11
perl -p -i -e ' s/(_mm_.fence)/s$1/' __libcheck.c
11
12
perl -p -i -e ' s/(__sync_)/s$1/' __libcheck.c
12
13
perl -p -i -e ' s/(__atomic_)/s$1/' __libcheck.c
You can’t perform that action at this time.
0 commit comments