File tree 1 file changed +6
-9
lines changed 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -523,22 +523,19 @@ extern __CPROVER_thread_local unsigned long __CPROVER_thread_id;
523
523
extern unsigned long __CPROVER_next_thread_id ;
524
524
525
525
inline int pthread_create (
526
- pthread_t * thread ,
527
- const pthread_attr_t * attr ,
528
- void * (* start_routine )(void * ),
529
- void * arg )
526
+ pthread_t * thread , // must not be null
527
+ const pthread_attr_t * attr , // may be null
528
+ void * (* start_routine )(void * ), // must not be null
529
+ void * arg ) // may be null
530
530
{
531
531
__CPROVER_HIDE :;
532
532
unsigned long this_thread_id ;
533
533
__CPROVER_atomic_begin ();
534
534
this_thread_id = ++ __CPROVER_next_thread_id ;
535
535
__CPROVER_atomic_end ();
536
536
537
- if (thread )
538
- {
539
- // pthread_t is a pointer type on some systems
540
- * thread = (pthread_t )this_thread_id ;
541
- }
537
+ // pthread_t is a pointer type on some systems
538
+ * thread = (pthread_t )this_thread_id ;
542
539
543
540
#ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
544
541
__CPROVER_set_must (thread , "pthread-id" );
You can’t perform that action at this time.
0 commit comments