./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-inner-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-inner-race.i
Deagle version 2.2 64-bit x86_64 linux
which contains:
CBMC version 5.67.0 (93c63ce) 64-bit x86_64 linux
Parsing /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-inner-race.i
Converting
Type-checking thread-join-counter-inner-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-inner-race file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-inner-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-inner-race file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-inner-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-inner-race file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-inner-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-inner-race.i line 700 function main thread 0
Not unwinding loop main.0 iteration 2 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-inner-race.i line 700 function main thread 0
replacing self-loop at file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-inner-race.i line 705 function main by assume(!TRUE)
replacing self-loop at file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-inner-race.i line 709 function main by assume(!TRUE)
Unwinding loop thread.0 iteration 1 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-inner-race.i line 686 function thread thread 1
Not unwinding loop thread.0 iteration 2 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-inner-race.i line 686 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-join-counter-inner-race.i line 686 function thread thread 2
Not unwinding loop thread.0 iteration 2 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-inner-race.i line 686 function thread thread 2
Start removing dummy accesses: 475 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
473 steps after removal
Handling datarace with no aid
The number of races before filter: 88
The number of races after filter: 88
The number of race categories before filter: 19
The number of race categories after filter: 19
	681(1) - 689(1) data
	689(1) - 689(1) data
	710(1) - 689(1) data
	682(1) - 40(1) data_mutex
	682(1) - 42(1) data_mutex
	679(1) - 686(1) keep_alive
	707(1) - 686(1) keep_alive
	680(1) - 40(1) keep_alive_mutex
	680(1) - 42(1) keep_alive_mutex
	678(1) - 684(1) threads_alive
	678(1) - 694(1) threads_alive
	684(1) - 684(1) threads_alive
	684(1) - 694(1) threads_alive
	694(1) - 684(1) threads_alive
	694(1) - 694(1) threads_alive
	705(1) - 684(1) threads_alive
	705(1) - 694(1) threads_alive
	709(1) - 684(1) threads_alive
	709(1) - 694(1) threads_alive
Races between line 681 - line 689:
	data#1 data#3
	data#1 data#4
	data#1 data#5
	data#1 data#6
Races between line 689 - line 689:
	data#3 data#5
	data#3 data#6
	data#4 data#5
	data#4 data#6
Races between line 710 - line 689:
	data#2 data#3
	data#2 data#4
	data#2 data#5
	data#2 data#6
Races between line 682 - 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
	data_mutex#1 data_mutex#14
	data_mutex#1 data_mutex#16
	data_mutex#1 data_mutex#20
	data_mutex#1 data_mutex#22
Races between line 682 - 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
	data_mutex#1 data_mutex#17
	data_mutex#1 data_mutex#19
	data_mutex#1 data_mutex#23
	data_mutex#1 data_mutex#25
Races between line 679 - line 686:
	keep_alive#1 keep_alive#3
	keep_alive#1 keep_alive#4
	keep_alive#1 keep_alive#5
	keep_alive#1 keep_alive#6
Races between line 707 - line 686:
	keep_alive#2 keep_alive#3
	keep_alive#2 keep_alive#4
	keep_alive#2 keep_alive#5
	keep_alive#2 keep_alive#6
Races between line 680 - line 40:
	keep_alive_mutex#1 keep_alive_mutex#8
	keep_alive_mutex#1 keep_alive_mutex#10
	keep_alive_mutex#1 keep_alive_mutex#14
	keep_alive_mutex#1 keep_alive_mutex#16
	keep_alive_mutex#1 keep_alive_mutex#20
	keep_alive_mutex#1 keep_alive_mutex#22
	keep_alive_mutex#1 keep_alive_mutex#26
	keep_alive_mutex#1 keep_alive_mutex#28
	keep_alive_mutex#1 keep_alive_mutex#32
	keep_alive_mutex#1 keep_alive_mutex#34
	keep_alive_mutex#1 keep_alive_mutex#38
	keep_alive_mutex#1 keep_alive_mutex#40
Races between line 680 - line 42:
	keep_alive_mutex#1 keep_alive_mutex#11
	keep_alive_mutex#1 keep_alive_mutex#13
	keep_alive_mutex#1 keep_alive_mutex#17
	keep_alive_mutex#1 keep_alive_mutex#19
	keep_alive_mutex#1 keep_alive_mutex#23
	keep_alive_mutex#1 keep_alive_mutex#25
	keep_alive_mutex#1 keep_alive_mutex#29
	keep_alive_mutex#1 keep_alive_mutex#31
	keep_alive_mutex#1 keep_alive_mutex#35
	keep_alive_mutex#1 keep_alive_mutex#37
	keep_alive_mutex#1 keep_alive_mutex#41
	keep_alive_mutex#1 keep_alive_mutex#43
Races between line 678 - line 684:
	threads_alive#1 threads_alive#4
	threads_alive#1 threads_alive#5
	threads_alive#1 threads_alive#8
	threads_alive#1 threads_alive#9
Races between line 678 - line 694:
	threads_alive#1 threads_alive#6
	threads_alive#1 threads_alive#7
	threads_alive#1 threads_alive#10
	threads_alive#1 threads_alive#11
Races between line 684 - line 684:
	threads_alive#4 threads_alive#9
	threads_alive#5 threads_alive#8
	threads_alive#5 threads_alive#9
Races between line 684 - line 694:
	threads_alive#4 threads_alive#11
	threads_alive#5 threads_alive#10
	threads_alive#5 threads_alive#11
Races between line 694 - line 684:
	threads_alive#6 threads_alive#9
	threads_alive#7 threads_alive#8
	threads_alive#7 threads_alive#9
Races between line 694 - line 694:
	threads_alive#6 threads_alive#11
	threads_alive#7 threads_alive#10
	threads_alive#7 threads_alive#11
Races between line 705 - line 684:
	threads_alive#2 threads_alive#5
	threads_alive#2 threads_alive#9
Races between line 705 - line 694:
	threads_alive#2 threads_alive#7
	threads_alive#2 threads_alive#11
Races between line 709 - line 684:
	threads_alive#3 threads_alive#5
	threads_alive#3 threads_alive#9
Races between line 709 - line 694:
	threads_alive#3 threads_alive#7
	threads_alive#3 threads_alive#11
Runtime Symex: 0.385159s
Adding SC constraints
Shared __CPROVER_threads_exited: 2R/3W
Shared __CPROVER_next_thread_id: 1R/3W
Shared data: 1R/5W
Shared threads_alive: 6R/5W
Shared keep_alive: 4R/2W
Shared keep_alive_mutex: 14R/15W
Shared data_mutex: 8R/9W
size of program expression: 961 steps
no slicing due to threads
Generated 0 VCC(s), 0 remaining after simplification
Runtime Postprocess Equation: 0.00961592s
Passing problem to propositional reduction
converting SSA
Runtime Convert SSA: 0.0308982s
Set Deagle solver's graph
Running propositional reduction
Post-processing
Runtime Post-process: 0.000212543s
Solving with Deagle's Closure Solver
46848 variables, 201225 clauses
ClosureSolver finishes with 88 conflicts, 301058 decisions, and 501020 propagations. 125 theory propagations and 12 cycles included.
SAT checker: instance is SATISFIABLE
Runtime Solver: 0.044126s
Runtime decision procedure: 0.0857472s
Building error trace

** Results:
[nodatarace.assertion.0] No data races on variable data between line 681 and line 689: UNKNOWN
[nodatarace.assertion.1] No data races on variable data between line 689 and line 689: UNKNOWN
[nodatarace.assertion.2] No data races on variable data between line 710 and line 689: UNKNOWN
[nodatarace.assertion.3] No data races on variable data_mutex between line 682 and line 40: UNKNOWN
[nodatarace.assertion.4] No data races on variable data_mutex between line 682 and line 42: UNKNOWN
[nodatarace.assertion.5] No data races on variable keep_alive between line 679 and line 686: UNKNOWN
[nodatarace.assertion.6] No data races on variable keep_alive between line 707 and line 686: UNKNOWN
[nodatarace.assertion.7] No data races on variable keep_alive_mutex between line 680 and line 40: UNKNOWN
[nodatarace.assertion.8] No data races on variable keep_alive_mutex between line 680 and line 42: UNKNOWN
[nodatarace.assertion.9] No data races on variable threads_alive between line 678 and line 684: UNKNOWN
[nodatarace.assertion.10] No data races on variable threads_alive between line 678 and line 694: UNKNOWN
[nodatarace.assertion.11] No data races on variable threads_alive between line 684 and line 684: UNKNOWN
[nodatarace.assertion.12] No data races on variable threads_alive between line 684 and line 694: UNKNOWN
[nodatarace.assertion.13] No data races on variable threads_alive between line 694 and line 684: UNKNOWN
[nodatarace.assertion.14] No data races on variable threads_alive between line 694 and line 694: UNKNOWN
[nodatarace.assertion.15] No data races on variable threads_alive between line 705 and line 684: FAILURE
[nodatarace.assertion.16] No data races on variable threads_alive between line 705 and line 694: UNKNOWN
[nodatarace.assertion.17] No data races on variable threads_alive between line 709 and line 684: UNKNOWN
[nodatarace.assertion.18] No data races on variable threads_alive between line 709 and line 694: UNKNOWN
Counterexample:

State 29 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-inner-race.i function main line 698 thread 0
----------------------------------------------------
  threads_total=1 (00000000 00000000 00000000 00000001)

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

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

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

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

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

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

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

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

State 74 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-inner-race.i function main line 706 thread 0
----------------------------------------------------
  mutex=(pthread_mutex_t *)&keep_alive_mutex (00000101 00000000 00000000 00000000)

State 75 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-inner-race.i function thread line 684 thread 1
----------------------------------------------------
  threads_alive=1 (00000000 00000000 00000000 00000001)

State 78 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-inner-race.i function thread line 685 thread 1
----------------------------------------------------
  mutex=(pthread_mutex_t *)&keep_alive_mutex (00000101 00000000 00000000 00000000)

State 85 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-inner-race.i function thread line 687 thread 1
----------------------------------------------------
  mutex=(pthread_mutex_t *)&keep_alive_mutex (00000101 00000000 00000000 00000000)

State 91 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-inner-race.i function thread line 688 thread 1
----------------------------------------------------
  mutex=(pthread_mutex_t *)&data_mutex (00000110 00000000 00000000 00000000)

State 95 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-inner-race.i function main line 707 thread 0
----------------------------------------------------
  keep_alive=FALSE (00000000)

State 98 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-inner-race.i function main line 708 thread 0
----------------------------------------------------
  mutex=(pthread_mutex_t *)&keep_alive_mutex (00000101 00000000 00000000 00000000)

State 103 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-inner-race.i function thread line 689 thread 1
----------------------------------------------------
  data=0 (00000000 00000000 00000000 00000000)

State 106 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-inner-race.i function thread line 690 thread 1
----------------------------------------------------
  mutex=(pthread_mutex_t *)&data_mutex (00000110 00000000 00000000 00000000)

State 112 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-inner-race.i function thread line 691 thread 1
----------------------------------------------------
  mutex=(pthread_mutex_t *)&keep_alive_mutex (00000101 00000000 00000000 00000000)

Violated property:
  file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-counter-inner-race.i function main line 703 thread 2
  No data races on variable threads_alive between line 705 and line 684


VERIFICATION FAILED
