File tree Expand file tree Collapse file tree 8 files changed +30
-2
lines changed
__atomic_always_lock_free-01 Expand file tree Collapse file tree 8 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 11#include <assert.h>
22
3+ #ifndef __GNUC__
4+ _Bool __atomic_always_lock_free (__CPROVER_size_t , void * );
5+ #endif
6+
37int main ()
48{
59 assert (__atomic_always_lock_free (sizeof (int ), 0 ));
Original file line number Diff line number Diff line change 11#include <assert.h>
22
3+ #ifndef __GNUC__
4+ void __atomic_clear (_Bool * , int );
5+ #endif
6+
37int main ()
48{
59 _Bool n ;
Original file line number Diff line number Diff line change 11#include <assert.h>
22
3+ #ifndef __GNUC__
4+ _Bool __atomic_is_lock_free (__CPROVER_size_t , void * );
5+ #endif
6+
37int main ()
48{
59 assert (__atomic_is_lock_free (sizeof (int ), 0 ));
Original file line number Diff line number Diff line change 11#include <assert.h>
22
3+ #ifndef __GNUC__
4+ void __atomic_signal_fence (int );
5+ #endif
6+
37int main ()
48{
59 __atomic_signal_fence (0 );
Original file line number Diff line number Diff line change 11#include <assert.h>
22
3+ #ifndef __GNUC__
4+ _Bool __atomic_test_and_set (void * , int );
5+ #endif
6+
37int main ()
48{
59 char c = 0 ;
Original file line number Diff line number Diff line change 11#include <assert.h>
22
3+ #ifndef __GNUC__
4+ void __atomic_thread_fence (int );
5+ #endif
6+
37int main ()
48{
59 __atomic_thread_fence (0 );
Original file line number Diff line number Diff line change 11#include <setjmp.h>
22
3+ #ifndef __GNUC__
4+ # define _longjmp (a , b ) longjmp(a, b)
5+ #endif
6+
37static jmp_buf env ;
48
59int main ()
Original file line number Diff line number Diff line change 11CORE
22main.c
33--pointer-check --bounds-check
4- ^\[_longjmp .assertion.1\] line 12 _longjmp requires instrumentation: FAILURE$
5- ^\[main.assertion.1\] line 8 unreachable: SUCCESS$
4+ ^\[_?longjmp .assertion.1\] line 12 _?longjmp requires instrumentation: FAILURE$
5+ ^\[main.assertion.1\] line 12 unreachable: SUCCESS$
66^VERIFICATION FAILED$
77^EXIT=10$
88^SIGNAL=0$
You can’t perform that action at this time.
0 commit comments