./deagle /mnt/goblint-svcomp/goblint-bench/bench/concrat/properties/no-data-race.prp /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i --32


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


./deagle_exe --svcomp --graphml-witness error-witness.graphml --no-assertions --datarace /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-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-join-counter-outer-race.i
Converting
Type-checking thread-join-counter-outer-race
Generating GOTO Program
Adding CPROVER library (x86_64)
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-join-counter-outer-race file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i line 505
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-join-counter-outer-race file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i line 392
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_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-join-counter-outer-race file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i line 510
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)
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
**** WARNING: no body for function pthread_detach
Unwinding loop main.0 iteration 1 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i line 691 function main thread 0
Not unwinding loop main.0 iteration 2 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i line 691 function main thread 0
replacing self-loop at file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i line 697 function main by assume(!TRUE)
aborting path on assume(false) at file <builtin-library-__spawned_thread> line 34 function __spawned_thread thread 2
Start removing dummy accesses: 246 steps before removal
main::1::1::1::tid!0@1#3 is dummy and removed
main::1::1::1::tid!0@2#3 is dummy and removed
244 steps after removal
Handling datarace with no aid
The number of races before filter: 32
The number of races after filter: 32
The number of race categories before filter: 9
The number of race categories after filter: 9
	679(1) - 683(1) data
	683(1) - 683(1) data
	698(1) - 683(1) data
	680(1) - 40(1) data_mutex
	680(1) - 42(1) data_mutex
	678(1) - 685(1) threads_alive
	685(1) - 685(1) threads_alive
	692(1) - 685(1) threads_alive
	697(1) - 685(1) threads_alive
Races between line 679 - line 683:
	data#1 data#3
	data#1 data#4
Races between line 683 - line 683:
	data#3 data#4
Races between line 698 - line 683:
	data#2 data#3
	data#2 data#4
Races between line 680 - line 40:
	data_mutex#1 data_mutex#2
	data_mutex#1 data_mutex#4
	data_mutex#1 data_mutex#8
	data_mutex#1 data_mutex#10
Races between line 680 - line 42:
	data_mutex#1 data_mutex#5
	data_mutex#1 data_mutex#7
	data_mutex#1 data_mutex#11
	data_mutex#1 data_mutex#13
Races between line 678 - line 685:
	threads_alive#1 threads_alive#6
	threads_alive#1 threads_alive#7
	threads_alive#1 threads_alive#8
	threads_alive#1 threads_alive#9
Races between line 685 - line 685:
	threads_alive#6 threads_alive#9
	threads_alive#7 threads_alive#8
	threads_alive#7 threads_alive#9
Races between line 692 - line 685:
	threads_alive#2 threads_alive#6
	threads_alive#2 threads_alive#7
	threads_alive#3 threads_alive#7
	threads_alive#4 threads_alive#6
	threads_alive#4 threads_alive#7
	threads_alive#2 threads_alive#8
	threads_alive#2 threads_alive#9
	threads_alive#3 threads_alive#9
	threads_alive#4 threads_alive#8
	threads_alive#4 threads_alive#9
Races between line 697 - line 685:
	threads_alive#5 threads_alive#7
	threads_alive#5 threads_alive#9
Runtime Symex: 0.104236s
Adding SC constraints
Shared __CPROVER_threads_exited: 2R/3W
Shared __CPROVER_next_thread_id: 1R/3W
Shared data: 1R/3W
Shared threads_alive: 4R/5W
Shared data_mutex: 4R/5W
size of program expression: 366 steps
no slicing due to threads
Generated 0 VCC(s), 0 remaining after simplification
Runtime Postprocess Equation: 0.00115469s
Passing problem to propositional reduction
converting SSA
Runtime Convert SSA: 0.00336836s
Set Deagle solver's graph
Running propositional reduction
Post-processing
Runtime Post-process: 0.000287516s
Solving with Deagle's Closure Solver
5534 variables, 15990 clauses
ClosureSolver finishes with 9 conflicts, 1713 decisions, and 9528 propagations. 29 theory propagations and 1 cycles included.
SAT checker: instance is SATISFIABLE
Runtime Solver: 0.00129539s
Runtime decision procedure: 0.0097055s
Building error trace

** Results:
[nodatarace.assertion.0] No data races on variable data between line 679 and line 683: UNKNOWN
[nodatarace.assertion.1] No data races on variable data between line 683 and line 683: UNKNOWN
[nodatarace.assertion.2] No data races on variable data between line 698 and line 683: UNKNOWN
[nodatarace.assertion.3] No data races on variable data_mutex between line 680 and line 40: UNKNOWN
[nodatarace.assertion.4] No data races on variable data_mutex between line 680 and line 42: UNKNOWN
[nodatarace.assertion.5] No data races on variable threads_alive between line 678 and line 685: UNKNOWN
[nodatarace.assertion.6] No data races on variable threads_alive between line 685 and line 685: UNKNOWN
[nodatarace.assertion.7] No data races on variable threads_alive between line 692 and line 685: FAILURE
[nodatarace.assertion.8] No data races on variable threads_alive between line 697 and line 685: UNKNOWN
Counterexample:

State 27 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i function main line 689 thread 0
----------------------------------------------------
  breads_total=1073741824 (01000000 00000000 00000000 00000000)

State 30 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i function main line 690 thread 0
----------------------------------------------------
  cond=1 (00000000 00000000 00000000 00000001)

State 34 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i function main line 691 thread 0
----------------------------------------------------
  i=0 (00000000 00000000 00000000 00000000)

State 36 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i function main line 692 thread 0
----------------------------------------------------
  threads_alive=1 (00000000 00000000 00000000 00000001)

State 37 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i function main line 693 thread 0
----------------------------------------------------
  tid=0u (00000000 00000000 00000000 00000000)

State 40 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i function main line 694 thread 0
----------------------------------------------------
  pthread_create$$thread=&tid!0@1 (00000010 00000000 00000000 00000000)

State 41 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i function main line 694 thread 0
----------------------------------------------------
  attr=((const pthread_attr_t *)NULL) (00000000 00000000 00000000 00000000)

State 42 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i function main line 694 thread 0
----------------------------------------------------
  start_routine=thread (00000011 00000000 00000000 00000000)

State 43 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i function main line 694 thread 0
----------------------------------------------------
  arg=NULL (00000000 00000000 00000000 00000000)

State 67 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i function main line 691 thread 0
----------------------------------------------------
  i=1 (00000000 00000000 00000000 00000001)

State 73 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i function thread line 683 thread 1
----------------------------------------------------
  data=65 (00000000 00000000 00000000 01000001)

State 76 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i function thread line 684 thread 1
----------------------------------------------------
  mutex=(pthread_mutex_t *)&data_mutex (00000101 00000000 00000000 00000000)

State 80 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i function main line 692 thread 0
----------------------------------------------------
  threads_alive=1073741824 (01000000 00000000 00000000 00000000)

State 81 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i function main line 693 thread 0
----------------------------------------------------
  tid=0u (00000000 00000000 00000000 00000000)

State 84 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i function main line 694 thread 0
----------------------------------------------------
  pthread_create$$thread=&tid!0@2 (00000100 00000000 00000000 00000000)

State 85 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i function main line 694 thread 0
----------------------------------------------------
  attr=((const pthread_attr_t *)NULL) (00000000 00000000 00000000 00000000)

State 86 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i function main line 694 thread 0
----------------------------------------------------
  start_routine=thread (00000011 00000000 00000000 00000000)

State 87 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i function main line 694 thread 0
----------------------------------------------------
  arg=NULL (00000000 00000000 00000000 00000000)

State 111 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i function main line 691 thread 0
----------------------------------------------------
  i=2 (00000000 00000000 00000000 00000010)

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

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

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

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

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

State 127 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i function thread line 682 thread 1
----------------------------------------------------
  mutex=(pthread_mutex_t *)&data_mutex (00000101 00000000 00000000 00000000)

State 128 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i function thread line 685 thread 1
----------------------------------------------------
  threads_alive=0 (00000000 00000000 00000000 00000000)

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

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

State 138 file <builtin-library-pthread_create> function pthread_create line 49 thread 2
----------------------------------------------------
  start_routine=((const void * (*)(const void *))NULL) (00000000 00000000 00000000 00000000)

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

Violated property:
  file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-outer-race.i function main line 695 thread 2
  No data races on variable threads_alive between line 692 and line 685


VERIFICATION FAILED
