./deagle --no-assertions --datarace --32 /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.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/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i
Converting
Type-checking thread-local-value-race
Generating GOTO Program
Adding CPROVER library (x86_64)
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 thread-local-value-race file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i line 845
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_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 thread-local-value-race file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i line 840
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_create> line 20: warning: pointer parameter types differ between declaration and definition "pthread_create"
old definition in module thread-local-value-race file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i line 727
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 *pthread_create$$thread, const pthread_attr_t *attr, void * (*start_routine)(void *), void *arg)
Removal of function pointers and virtual functions
file <builtin-library-__spawned_thread> line 34 function __spawned_thread: replacing function pointer by 1 possible targets
Generic Property Instrumentation
Running with 8 object bits, 24 offset bits (default)
Starting Bounded Model Checking
[Warning][Unknown] Invalidating expressions: AddrOf(Var(tmp, NoOffset)) (/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i:1046:3)
[Warning][Behavior > Undefined > NullPointerDereference][CWE-476] May dereference NULL pointer (/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i:1038:3)
[Warning][Unknown] Invalidating expressions: CastE(TPtr(TVoid(),
                                ), Lval(Var(tids, NoOffset))) (/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i:1055:3)
[Warning][Deadcode] Function "__bswap_16" will never be called: 1LoC (/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i:163:1)
[Warning][Deadcode] Function "__bswap_32" will never be called: 1LoC (/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i:168:1)
[Warning][Deadcode] Function "__bswap_64" will never be called: 1LoC (/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i:173:15)
[Warning][Deadcode] Function "__uint16_identity" will never be called: 1LoC (/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i:178:1)
[Warning][Deadcode] Function "__uint32_identity" will never be called: 1LoC (/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i:183:1)
[Warning][Deadcode] Function "__uint64_identity" will never be called: 1LoC (/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i:188:1)
[Warning][Deadcode] Function "reach_error" will never be called: 1LoC (/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i:1022:1)
[Warning][Deadcode] Function "__VERIFIER_assert" will never be called: 3LoC (/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i:1023:1)
[Warning][Race] Memory location data@thread-local-value-race.i:1030:14 (race with conf. 110):
  write with {lock:ptr_mutex} (conf. 110) (/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i:1038:3)
  write with {} (conf. 110) (/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i:1041:5)

Summary for all memory locations:
	safe:            3
	vulnerable:      0
	unsafe:          1
	-------------------
	total:           4
Use SV-COMP unwinding strategy: 2
Deagle's solver is set!!!!!!
aborting path on assume(false) at file <builtin-library-abort> line 6 function abort thread 0
Unwinding loop main.0 iteration 1 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i line 1049 function main thread 0
Not unwinding loop main.0 iteration 2 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i line 1049 function main thread 0
Unwinding loop main.1 iteration 1 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i line 1052 function main thread 0
Not unwinding loop main.1 iteration 2 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i line 1052 function main thread 0
pointer handling for concurrency is unsound
Unwinding loop thread.0 iteration 1 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i line 1040 function thread thread 1
Not unwinding loop thread.0 iteration 2 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i line 1040 function thread thread 1
aborting path on assume(false) at file <builtin-library-__spawned_thread> line 34 function __spawned_thread thread 2
Unwinding loop thread.0 iteration 1 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i line 1040 function thread thread 2
Not unwinding loop thread.0 iteration 2 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i line 1040 function thread 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/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i | tee goblint/goblint_output: 0
Lines where datarace may occur: 1038 1039 1041 1042 1055 1056 
The number of races before goblint filter: 53
The number of races after goblint filter: 10
Race categories: 3
	1038(1) - 1038(1) data!1:
		data!1#2 data!1#7
		data!1#3 data!1#6
		data!1#3 data!1#7
	1041(1) - 1038(1) data!1:
		data!1#4 data!1#6
		data!1#4 data!1#7
		data!1#5 data!1#6
		data!1#5 data!1#7
	1038(1) - 1038(1) ptr$object:
		ptr$object#1 ptr$object#4
		ptr$object#2 ptr$object#3
		ptr$object#2 ptr$object#4
Runtime Symex: 0.375496s
Adding SC constraints
Shared __CPROVER_threads_exited: 2R/1W
Shared __CPROVER_next_thread_id: 3R/3W
Shared __CPROVER_memory_leak: 1R/3W
Shared ptr: 12R/3W
Shared ptr_mutex: 8R/9W
Shared ptr$object: 2R/3W
Shared symex_dynamic::dynamic_object1: 5R/3W
Shared data!1: 2R/5W
Shared data!2: 1R/4W
size of program expression: 571 steps
no slicing due to threads
Generated 0 VCC(s), 0 remaining after simplification
Runtime Postprocess Equation: 0.00355501s
Passing problem to propositional reduction
converting SSA
Runtime Convert SSA: 0.00883243s
Set Deagle solver's graph
Running propositional reduction
Post-processing
Runtime Post-process: 0.00126555s
Solving with Deagle's Closure solver
16470 variables, 58888 clauses
ClosureSolver finishes with 27 conflicts, 3350 decisions, and 39961 propagations. 118 theory propagations and 8 cycles included.
SAT checker: instance is SATISFIABLE
Runtime Solver: 0.00543282s
Runtime decision procedure: 0.0227529s
Running propositional reduction
Solving with Deagle's Closure solver
16470 variables, 56823 clauses
ClosureSolver finishes with 31 conflicts, 3359 decisions, and 41938 propagations. 144 theory propagations and 8 cycles included.
SAT checker: instance is UNSATISFIABLE
Runtime Solver: 0.000354277s
Runtime decision procedure: 0.000362956s

** Results:
/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function main
[nodatarace.assertion.0] line 1049 No data races on variable data!1 between line 1038 and line 1038: SUCCESS
[nodatarace.assertion.1] line 1049 No data races on variable data!1 between line 1041 and line 1038: FAILURE
[nodatarace.assertion.2] line 1049 No data races on variable ptr$object between line 1038 and line 1038: SUCCESS

** 1 of 3 failed (2 iterations)
VERIFICATION FAILED
