./deagle --no-assertions --datarace --32 /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i


--------------------------------------------------------------------------------


Deagle version 2.1 64-bit x86_64 linux
which contains:
CBMC version 5.67.0 (SVCOMP2023_221122-2-g2121ef1a2) 64-bit x86_64 linux
Parsing /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i
Converting
Type-checking sync01
Generating GOTO Program
Adding CPROVER library (x86_64)
file <builtin-library-pthread_mutex_init> line 27: 
reason for conflict at #this.__data: number of members is different (6/8)

struct __pthread_mutex_s {
  signed int __lock;
  unsigned int __count;
  signed int __owner;
  signed int __kind;
  unsigned int __nusers;
  union $anon0;
}
struct __pthread_mutex_s {
  signed int __lock;
  unsigned int __count;
  signed int __owner;
  unsigned int __nusers;
  signed int __kind;
  signed short int __spins;
  signed short int __elision;
  __pthread_list_t __list;
}
warning: pointer parameter types differ between declaration and definition "pthread_mutex_init"
old definition in module sync01 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i line 756
signed int (pthread_mutex_t *, const pthread_mutexattr_t *)
new definition in module <built-in-library> file <builtin-library-pthread_mutex_init> line 27
signed int (pthread_mutex_t *mutex, const pthread_mutexattr_t *mutexattr)
file <builtin-library-pthread_mutex_unlock> line 17: 
reason for conflict at #this.__data: number of members is different (6/8)

struct __pthread_mutex_s {
  signed int __lock;
  unsigned int __count;
  signed int __owner;
  signed int __kind;
  unsigned int __nusers;
  union $anon0;
}
struct __pthread_mutex_s {
  signed int __lock;
  unsigned int __count;
  signed int __owner;
  unsigned int __nusers;
  signed int __kind;
  signed short int __spins;
  signed short int __elision;
  __pthread_list_t __list;
}
warning: pointer parameter types differ between declaration and definition "pthread_mutex_unlock"
old definition in module sync01 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i line 768
signed int (pthread_mutex_t *)
new definition in module <built-in-library> file <builtin-library-pthread_mutex_unlock> line 17
signed int (pthread_mutex_t *mutex)
file <builtin-library-pthread_cond_init> line 7: 
reason for conflict at #this.__data: names of member 0 differ ($anon0/__wseq)

struct __pthread_cond_s {
  union $anon0;
  union $anon1;
  unsigned int [2] __g_refs;
  unsigned int [2] __g_size;
  unsigned int __g1_orig_size;
  unsigned int __wrefs;
  unsigned int [2] __g_signals;
}
struct __pthread_cond_s {
  __atomic_wide_counter __wseq;
  __atomic_wide_counter __g1_start;
  unsigned int [2] __g_refs;
  unsigned int [2] __g_size;
  unsigned int __g1_orig_size;
  unsigned int __wrefs;
  unsigned int [2] __g_signals;
}
warning: pointer parameter types differ between declaration and definition "pthread_cond_init"
old definition in module sync01 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i line 854
signed int (pthread_cond_t *, const pthread_condattr_t *)
new definition in module <built-in-library> file <builtin-library-pthread_cond_init> line 7
signed int (pthread_cond_t *cond, const pthread_condattr_t *attr)
file <builtin-library-pthread_create> line 20: warning: pointer parameter types differ between declaration and definition "pthread_create"
old definition in module sync01 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i line 650
signed int (pthread_t *, const pthread_attr_t *, void * (*)(void *), void *)
new definition in module <built-in-library> file <builtin-library-pthread_create> line 20
signed int (pthread_t *thread, const pthread_attr_t *attr, void * (*start_routine)(void *), void *arg)
file <builtin-library-pthread_mutex_lock> line 17: 
reason for conflict at #this.__data: number of members is different (6/8)

struct __pthread_mutex_s {
  signed int __lock;
  unsigned int __count;
  signed int __owner;
  signed int __kind;
  unsigned int __nusers;
  union $anon0;
}
struct __pthread_mutex_s {
  signed int __lock;
  unsigned int __count;
  signed int __owner;
  unsigned int __nusers;
  signed int __kind;
  signed short int __spins;
  signed short int __elision;
  __pthread_list_t __list;
}
warning: pointer parameter types differ between declaration and definition "pthread_mutex_lock"
old definition in module sync01 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i line 763
signed int (pthread_mutex_t *)
new definition in module <built-in-library> file <builtin-library-pthread_mutex_lock> line 17
signed int (pthread_mutex_t *mutex)
file <builtin-library-pthread_cond_signal> line 7: 
reason for conflict at #this.__data: names of member 0 differ ($anon0/__wseq)

struct __pthread_cond_s {
  union $anon0;
  union $anon1;
  unsigned int [2] __g_refs;
  unsigned int [2] __g_size;
  unsigned int __g1_orig_size;
  unsigned int __wrefs;
  unsigned int [2] __g_signals;
}
struct __pthread_cond_s {
  __atomic_wide_counter __wseq;
  __atomic_wide_counter __g1_start;
  unsigned int [2] __g_refs;
  unsigned int [2] __g_size;
  unsigned int __g1_orig_size;
  unsigned int __wrefs;
  unsigned int [2] __g_signals;
}
warning: pointer parameter types differ between declaration and definition "pthread_cond_signal"
old definition in module sync01 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i line 859
signed int (pthread_cond_t *)
new definition in module <built-in-library> file <builtin-library-pthread_cond_signal> line 7
signed int (pthread_cond_t *cond)
file <builtin-library-pthread_cond_wait> line 7: 
reason for conflict at #this.__data: names of member 0 differ ($anon0/__wseq)

struct __pthread_cond_s {
  union $anon0;
  union $anon1;
  unsigned int [2] __g_refs;
  unsigned int [2] __g_size;
  unsigned int __g1_orig_size;
  unsigned int __wrefs;
  unsigned int [2] __g_signals;
}
struct __pthread_cond_s {
  __atomic_wide_counter __wseq;
  __atomic_wide_counter __g1_start;
  unsigned int [2] __g_refs;
  unsigned int [2] __g_size;
  unsigned int __g1_orig_size;
  unsigned int __wrefs;
  unsigned int [2] __g_signals;
}
warning: pointer parameter types differ between declaration and definition "pthread_cond_wait"
old definition in module sync01 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i line 863
signed int (pthread_cond_t *, pthread_mutex_t *)
new definition in module <built-in-library> file <builtin-library-pthread_cond_wait> line 7
signed int (pthread_cond_t *cond, pthread_mutex_t *mutex)
Removal of function pointers and virtual functions
file <builtin-library-__spawned_thread> line 34 function __spawned_thread: replacing function pointer by 2 possible targets
Generic Property Instrumentation
Running with 8 object bits, 24 offset bits (default)
Starting Bounded Model Checking
[Warning][Deadcode] Function "__bswap_32" will never be called: 1LoC (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i:314:1)
[Warning][Deadcode] Function "__bswap_64" will never be called: 1LoC (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i:319:1)
[Warning][Deadcode] Function "__uint16_identity" will never be called: 1LoC (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i:324:1)
[Warning][Deadcode] Function "__uint32_identity" will never be called: 1LoC (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i:329:1)
[Warning][Deadcode] Function "__uint64_identity" will never be called: 1LoC (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i:334:1)
[Warning][Race] Memory location num@sync01.i:930:5 (race with conf. 110):
  read with {lock:m, thread:([thread1@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i:961:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i:936:3)
  read with {lock:m, thread:([thread1@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i:961:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i:938:3)
  read with {lock:m, thread:([thread2@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i:962:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i:946:3)
  read with {lock:m, thread:([thread2@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i:962:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i:948:3)
  read with {thread:([main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i:964:3)
  write with {lock:m, thread:([thread1@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i:961:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i:938:3)
  write with {lock:m, thread:([thread2@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i:962:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i:948:3)

Summary for all memory locations:
	safe:           26
	vulnerable:      0
	unsafe:          1
	-------------------
	total:          27
set limit type 3
Use SV-COMP unwinding strategy: 6
Deagle's solver is set!!!!!!
aborting path on assume(false) at file <builtin-library-abort> line 6 function abort thread 0
Unwinding loop thread1.0 iteration 1 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i line 936 function thread1 thread 1
Unwinding loop thread1.0 iteration 2 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i line 936 function thread1 thread 1
Unwinding loop thread1.0 iteration 3 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i line 936 function thread1 thread 1
Unwinding loop thread1.0 iteration 4 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i line 936 function thread1 thread 1
Unwinding loop thread1.0 iteration 5 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i line 936 function thread1 thread 1
Not unwinding loop thread1.0 iteration 6 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i line 936 function thread1 thread 1
Unwinding loop thread2.0 iteration 1 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i line 946 function thread2 thread 2
Unwinding loop thread2.0 iteration 2 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i line 946 function thread2 thread 2
Unwinding loop thread2.0 iteration 3 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i line 946 function thread2 thread 2
Unwinding loop thread2.0 iteration 4 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i line 946 function thread2 thread 2
Unwinding loop thread2.0 iteration 5 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i line 946 function thread2 thread 2
Not unwinding loop thread2.0 iteration 6 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i line 946 function thread2 thread 2
Handling datarace, passing the problem to goblint first
getcwd: /mnt/goblint-svcomp/benchexec/tools-pldi/deagle
/mnt/goblint-svcomp/benchexec/tools-pldi/deagle/goblint/goblint /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i | tee goblint/goblint_output: 0
Lines where datarace may occur: 936 937 938 939 946 947 948 949 964 965 
The number of races before goblint filter: 121
The number of races after goblint filter: 17
Race categories: 5
	936(1) - 948(1) num:
		num#4 num#19
		num#5 num#19
		num#6 num#19
		num#7 num#19
		num#8 num#19
		num#9 num#19
	938(1) - 946(1) num:
		num#11 num#12
		num#11 num#13
		num#11 num#14
		num#11 num#15
		num#11 num#16
		num#11 num#17
	938(1) - 948(1) num:
		num#10 num#19
		num#11 num#18
		num#11 num#19
	964(1) - 938(1) num:
		num#3 num#11
	964(1) - 948(1) num:
		num#3 num#19
Runtime Symex: 0.431144s
Adding SC constraints
Shared empty: 7R/9W
Shared __CPROVER_threads_exited: 4R/3W
Shared __CPROVER_next_thread_id: 3R/3W
Shared num: 15R/4W
Shared m: 4R/6W
Shared full: 7R/9W
Shared main::1::t1!0@1: 2R/2W
Shared main::1::t2!0@1: 2R/2W
size of program expression: 745 steps
no slicing due to threads
Generated 0 VCC(s), 0 remaining after simplification
Runtime Postprocess Equation: 0.00465715s
Passing problem to propositional reduction
converting SSA
Runtime Convert SSA: 0.024451s
Set Deagle solver's graph
Running propositional reduction
Post-processing
Runtime Post-process: 0.00106277s
Solving with Deagle's Closure solver
35283 variables, 143067 clauses
ClosureSolver finishes with 45 conflicts, 9231 decisions, and 148657 propagations. 143 theory propagations and 13 cycles included.
SAT checker: instance is UNSATISFIABLE
Runtime Solver: 0.0149484s
Runtime decision procedure: 0.0513154s

** Results:
/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i function main
[nodatarace.assertion.0] line 962 No data races on variable num between line 936 and line 948: SUCCESS
[nodatarace.assertion.1] line 962 No data races on variable num between line 938 and line 946: SUCCESS
[nodatarace.assertion.2] line 962 No data races on variable num between line 938 and line 948: SUCCESS
[nodatarace.assertion.3] line 962 No data races on variable num between line 964 and line 938: SUCCESS
[nodatarace.assertion.4] line 962 No data races on variable num between line 964 and line 948: SUCCESS

** 0 of 5 failed (1 iterations)
VERIFICATION SUCCESSFUL
