./deagle /mnt/goblint-svcomp/goblint-bench/bench/concrat/properties/no-data-race.prp /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i --32


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


./deagle_exe --svcomp --graphml-witness error-witness.graphml --no-assertions --datarace /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i
Deagle version 2.2 64-bit x86_64 linux
which contains:
CBMC version 5.67.0 (svcomp24-11-gfd1b965b5-dirty) 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 844
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_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 726
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)
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 839
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)
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
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 1048 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 1048 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 1051 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 1051 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 1039 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 1039 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 1039 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 1039 function thread thread 2
Start removing dummy accesses: 398 steps before removal
symex_dynamic::dynamic_object1#5 is dummy and removed
symex_dynamic::dynamic_object1#7 is dummy and removed
ptr#3 is dummy and removed
ptr#8 is dummy and removed
394 steps after removal
Handling datarace with no aid
The number of races before filter: 49
The number of races after filter: 49
The number of race categories before filter: 10
The number of race categories after filter: 10
	1037(1) - 1037(1) data!1
	1040(1) - 1037(1) data!1
	1030(1) - 1034(1) ptr
	1030(1) - 1037(1) ptr
	1034(1) - 1034(1) ptr
	1034(1) - 1037(1) ptr
	1037(1) - 1034(1) ptr
	1037(1) - 1037(1) ptr$object
	1031(1) - 40(1) ptr_mutex
	1031(1) - 42(1) ptr_mutex
Races between line 1037 - line 1037:
	data!1#2 data!1#7
	data!1#3 data!1#6
	data!1#3 data!1#7
Races between line 1040 - line 1037:
	data!1#4 data!1#6
	data!1#4 data!1#7
	data!1#5 data!1#6
	data!1#5 data!1#7
Races between line 1030 - line 1034:
	ptr#1 ptr#2
	ptr#1 ptr#7
Races between line 1030 - line 1037:
	ptr#1 ptr#4
	ptr#1 ptr#5
	ptr#1 ptr#6
	ptr#1 ptr#9
	ptr#1 ptr#10
	ptr#1 ptr#11
	ptr#1 ptr#12
	ptr#1 ptr#13
	ptr#1 ptr#14
	ptr#1 ptr#15
Races between line 1034 - line 1034:
	ptr#2 ptr#7
Races between line 1034 - line 1037:
	ptr#2 ptr#9
	ptr#2 ptr#10
	ptr#2 ptr#11
	ptr#2 ptr#12
	ptr#2 ptr#13
	ptr#2 ptr#14
	ptr#2 ptr#15
Races between line 1037 - line 1034:
	ptr#4 ptr#7
	ptr#5 ptr#7
	ptr#6 ptr#7
Races between line 1037 - line 1037:
	ptr$object#1 ptr$object#4
	ptr$object#2 ptr$object#3
	ptr$object#2 ptr$object#4
Races between line 1031 - line 40:
	ptr_mutex#1 ptr_mutex#2
	ptr_mutex#1 ptr_mutex#4
	ptr_mutex#1 ptr_mutex#8
	ptr_mutex#1 ptr_mutex#10
	ptr_mutex#1 ptr_mutex#14
	ptr_mutex#1 ptr_mutex#16
	ptr_mutex#1 ptr_mutex#20
	ptr_mutex#1 ptr_mutex#22
Races between line 1031 - line 42:
	ptr_mutex#1 ptr_mutex#5
	ptr_mutex#1 ptr_mutex#7
	ptr_mutex#1 ptr_mutex#11
	ptr_mutex#1 ptr_mutex#13
	ptr_mutex#1 ptr_mutex#17
	ptr_mutex#1 ptr_mutex#19
	ptr_mutex#1 ptr_mutex#23
	ptr_mutex#1 ptr_mutex#25
Runtime Symex: 0.280822s
Adding SC constraints
Shared __CPROVER_threads_exited: 2R/1W
Shared __CPROVER_next_thread_id: 3R/3W
Shared __CPROVER_memory_leak: 1R/3W
Shared ptr: 10R/3W
Shared ptr_mutex: 8R/9W
Shared ptr$object: 2R/3W
Shared symex_dynamic::dynamic_object1: 3R/3W
Shared data!1: 2R/5W
Shared data!2: 1R/4W
size of program expression: 657 steps
no slicing due to threads
Generated 0 VCC(s), 0 remaining after simplification
Runtime Postprocess Equation: 0.00363035s
Passing problem to propositional reduction
converting SSA
Runtime Convert SSA: 0.00891189s
Set Deagle solver's graph
Running propositional reduction
Post-processing
Runtime Post-process: 0.000909616s
Solving with Deagle's Closure Solver
15960 variables, 56906 clauses
ClosureSolver finishes with 60 conflicts, 7361 decisions, and 66777 propagations. 400 theory propagations and 6 cycles included.
SAT checker: instance is SATISFIABLE
Runtime Solver: 0.00871061s
Runtime decision procedure: 0.0258024s
Building error trace

** Results:
[nodatarace.assertion.0] No data races on variable data!1 between line 1037 and line 1037: UNKNOWN
[nodatarace.assertion.1] No data races on variable data!1 between line 1040 and line 1037: FAILURE
[nodatarace.assertion.2] No data races on variable ptr between line 1030 and line 1034: UNKNOWN
[nodatarace.assertion.3] No data races on variable ptr between line 1030 and line 1037: UNKNOWN
[nodatarace.assertion.4] No data races on variable ptr between line 1034 and line 1034: UNKNOWN
[nodatarace.assertion.5] No data races on variable ptr between line 1034 and line 1037: UNKNOWN
[nodatarace.assertion.6] No data races on variable ptr between line 1037 and line 1034: UNKNOWN
[nodatarace.assertion.7] No data races on variable ptr$object between line 1037 and line 1037: UNKNOWN
[nodatarace.assertion.8] No data races on variable ptr_mutex between line 1031 and line 40: UNKNOWN
[nodatarace.assertion.9] No data races on variable ptr_mutex between line 1031 and line 42: UNKNOWN
Counterexample:

State 25 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function main line 1045 thread 0
----------------------------------------------------
  breads_total=16777216 (00000001 00000000 00000000 00000000)

State 28 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function main line 1046 thread 0
----------------------------------------------------
  cond=1 (00000000 00000000 00000000 00000001)

State 35 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function main line 1047 thread 0
----------------------------------------------------
  malloc_size=67108864u (00000100 00000000 00000000 00000000)

State 58 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function main line 1047 thread 0
----------------------------------------------------
  tids=dynamic_object1 (00000100 00000000 00000000 00000000)

State 60 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function main line 1048 thread 0
----------------------------------------------------
  i=0 (00000000 00000000 00000000 00000000)

State 64 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function main line 1049 thread 0
----------------------------------------------------
  pthread_create$$thread=dynamic_object1 (00000100 00000000 00000000 00000000)

State 65 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function main line 1049 thread 0
----------------------------------------------------
  attr=((const pthread_attr_t *)NULL) (00000000 00000000 00000000 00000000)

State 66 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function main line 1049 thread 0
----------------------------------------------------
  start_routine=thread (00000101 00000000 00000000 00000000)

State 67 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function main line 1049 thread 0
----------------------------------------------------
  arg=NULL (00000000 00000000 00000000 00000000)

State 89 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function main line 1048 thread 0
----------------------------------------------------
  i=1 (00000000 00000000 00000000 00000001)

State 94 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function main line 1049 thread 0
----------------------------------------------------
  pthread_create$$thread=dynamic_object1 + 1 (00000100 00000000 00000000 00000100)

State 95 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function main line 1049 thread 0
----------------------------------------------------
  attr=((const pthread_attr_t *)NULL) (00000000 00000000 00000000 00000000)

State 96 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function main line 1049 thread 0
----------------------------------------------------
  start_routine=thread (00000101 00000000 00000000 00000000)

State 97 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function main line 1049 thread 0
----------------------------------------------------
  arg=NULL (00000000 00000000 00000000 00000000)

State 119 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function main line 1048 thread 0
----------------------------------------------------
  i=2 (00000000 00000000 00000000 00000010)

State 123 file <builtin-library-pthread_create> function pthread_create line 49 thread 1
----------------------------------------------------
  this_thread_id=1u (00000000 00000000 00000000 00000001)

State 124 file <builtin-library-pthread_create> function pthread_create line 49 thread 1
----------------------------------------------------
  next_thread_key=0u (00000000 00000000 00000000 00000000)

State 125 file <builtin-library-pthread_create> function pthread_create line 49 thread 1
----------------------------------------------------
  start_routine=thread (00000101 00000000 00000000 00000000)

State 126 file <builtin-library-pthread_create> function pthread_create line 49 thread 1
----------------------------------------------------
  arg=NULL (00000000 00000000 00000000 00000000)

State 132 file <builtin-library-__spawned_thread> function __spawned_thread line 34 thread 1
----------------------------------------------------
  arg=NULL (00000000 00000000 00000000 00000000)

State 135 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function thread line 1033 thread 1
----------------------------------------------------
  mutex=(pthread_mutex_t *)&ptr_mutex (00000110 00000000 00000000 00000000)

State 141 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function thread line 1034 thread 2
----------------------------------------------------
  ptr=&data!2 (00000011 00000000 00000000 00000000)

State 144 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function thread line 1035 thread 2
----------------------------------------------------
  mutex=(pthread_mutex_t *)&ptr_mutex (00000110 00000000 00000000 00000000)

State 150 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function thread line 1036 thread 2
----------------------------------------------------
  mutex=(pthread_mutex_t *)&ptr_mutex (00000110 00000000 00000000 00000000)

State 154 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function thread line 1034 thread 1
----------------------------------------------------
  ptr=&data!1 (00000010 00000000 00000000 00000000)

State 157 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function thread line 1035 thread 1
----------------------------------------------------
  mutex=(pthread_mutex_t *)&ptr_mutex (00000110 00000000 00000000 00000000)

State 163 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function thread line 1036 thread 1
----------------------------------------------------
  mutex=(pthread_mutex_t *)&ptr_mutex (00000110 00000000 00000000 00000000)

State 167 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function thread line 1037 thread 1
----------------------------------------------------
  data=2 (00000000 00000000 00000000 00000010)

State 170 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function thread line 1038 thread 1
----------------------------------------------------
  mutex=(pthread_mutex_t *)&ptr_mutex (00000110 00000000 00000000 00000000)

State 178 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function thread line 1040 thread 1
----------------------------------------------------
  data=1 (00000000 00000000 00000000 00000001)

State 181 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function thread line 1040 thread 1
----------------------------------------------------
  data=1 (00000000 00000000 00000000 00000001)

State 185 file <builtin-library-pthread_create> function pthread_create line 49 thread 2
----------------------------------------------------
  this_thread_id=0u (00000000 00000000 00000000 00000000)

State 186 file <builtin-library-pthread_create> function pthread_create line 49 thread 2
----------------------------------------------------
  next_thread_key=0u (00000000 00000000 00000000 00000000)

State 187 file <builtin-library-pthread_create> function pthread_create line 49 thread 2
----------------------------------------------------
  start_routine=thread (00000101 00000000 00000000 00000000)

State 188 file <builtin-library-pthread_create> function pthread_create line 49 thread 2
----------------------------------------------------
  arg=NULL (00000000 00000000 00000000 00000000)

State 194 file <builtin-library-__spawned_thread> function __spawned_thread line 34 thread 2
----------------------------------------------------
  arg=NULL (00000000 00000000 00000000 00000000)

State 197 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function thread line 1033 thread 2
----------------------------------------------------
  mutex=(pthread_mutex_t *)&ptr_mutex (00000110 00000000 00000000 00000000)

State 198 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function thread line 1037 thread 2
----------------------------------------------------
  data=2 (00000000 00000000 00000000 00000010)

State 201 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function thread line 1038 thread 2
----------------------------------------------------
  mutex=(pthread_mutex_t *)&ptr_mutex (00000110 00000000 00000000 00000000)

State 206 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function thread line 1040 thread 2
----------------------------------------------------
  data=1 (00000000 00000000 00000000 00000001)

State 209 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function thread line 1040 thread 2
----------------------------------------------------
  data=1 (00000000 00000000 00000000 00000001)

Violated property:
  file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-local-value-race.i function main line 1048 thread 2
  No data races on variable data!1 between line 1040 and line 1037


VERIFICATION FAILED
