./deagle /mnt/goblint-svcomp/goblint-bench/bench/concrat/properties/no-data-race.prp /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i --32


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


./deagle_exe --svcomp --graphml-witness error-witness.graphml --no-assertions --datarace /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.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-array-const-race-3.i
Converting
Type-checking thread-join-array-const-race-3
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-array-const-race-3 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.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-array-const-race-3 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.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-array-const-race-3 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.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: 5
Deagle's solver is set!!!!!!
Unwinding loop main.0 iteration 1 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i line 685 function main thread 0
Unwinding loop main.0 iteration 2 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i line 685 function main thread 0
Unwinding loop main.0 iteration 3 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i line 685 function main thread 0
Unwinding loop main.0 iteration 4 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i line 685 function main thread 0
Unwinding loop main.1 iteration 1 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i line 689 function main thread 0
Unwinding loop main.1 iteration 2 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i line 689 function main thread 0
Unwinding loop main.1 iteration 3 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i line 689 function main thread 0
Unwinding loop main.1 iteration 4 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i line 689 function main thread 0
Start removing dummy accesses: 548 steps before removal
main::1::tids!0@1#4[[0]] is dummy and removed
main::1::tids!0@1#3[[1]] is dummy and removed
main::1::tids!0@1#3[[2]] is dummy and removed
main::1::tids!0@1#3[[3]] is dummy and removed
main::1::tids!0@1#4[[1]] is dummy and removed
main::1::tids!0@1#4[[2]] is dummy and removed
main::1::tids!0@1#4[[3]] is dummy and removed
main::1::tids!0@1#6[[0]] is dummy and removed
main::1::tids!0@1#5[[1]] is dummy and removed
main::1::tids!0@1#5[[2]] is dummy and removed
main::1::tids!0@1#5[[3]] is dummy and removed
main::1::tids!0@1#7[[0]] is dummy and removed
main::1::tids!0@1#6[[2]] is dummy and removed
main::1::tids!0@1#6[[3]] is dummy and removed
main::1::tids!0@1#8[[0]] is dummy and removed
main::1::tids!0@1#7[[1]] is dummy and removed
main::1::tids!0@1#7[[2]] is dummy and removed
main::1::tids!0@1#7[[3]] is dummy and removed
main::1::tids!0@1#9[[0]] is dummy and removed
main::1::tids!0@1#8[[1]] is dummy and removed
main::1::tids!0@1#8[[3]] is dummy and removed
main::1::tids!0@1#10[[0]] is dummy and removed
main::1::tids!0@1#9[[1]] is dummy and removed
main::1::tids!0@1#9[[2]] is dummy and removed
main::1::tids!0@1#9[[3]] is dummy and removed
main::1::tids!0@1#11[[0]] is dummy and removed
main::1::tids!0@1#10[[1]] is dummy and removed
main::1::tids!0@1#10[[2]] is dummy and removed
520 steps after removal
Handling datarace with no aid
The number of races before filter: 40
The number of races after filter: 40
The number of race categories before filter: 5
The number of race categories after filter: 5
	674(1) - 678(1) data
	678(1) - 678(1) data
	692(1) - 678(1) data
	675(1) - 40(1) data_mutex
	675(1) - 42(1) data_mutex
Races between line 674 - line 678:
	data#1 data#3
	data#1 data#4
	data#1 data#5
	data#1 data#6
	data#1 data#7
Races between line 678 - line 678:
	data#3 data#4
	data#3 data#5
	data#3 data#6
	data#3 data#7
	data#4 data#5
	data#4 data#6
	data#4 data#7
	data#5 data#6
	data#5 data#7
	data#6 data#7
Races between line 692 - line 678:
	data#2 data#3
	data#2 data#4
	data#2 data#5
	data#2 data#6
	data#2 data#7
Races between line 675 - 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
	data_mutex#1 data_mutex#26
	data_mutex#1 data_mutex#28
Races between line 675 - 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
	data_mutex#1 data_mutex#29
	data_mutex#1 data_mutex#31
Runtime Symex: 0.283608s
Adding SC constraints
Shared __CPROVER_threads_exited: 9R/6W
Shared __CPROVER_next_thread_id: 8R/6W
Shared data: 1R/6W
Shared data_mutex: 10R/11W
Shared main::1::tids!0@1[[0]]: 1R/2W
Shared main::1::tids!0@1[[1]]: 1R/2W
Shared main::1::tids!0@1[[2]]: 1R/2W
Shared main::1::tids!0@1[[3]]: 1R/2W
size of program expression: 822 steps
no slicing due to threads
Generated 0 VCC(s), 0 remaining after simplification
Runtime Postprocess Equation: 0.00386427s
Passing problem to propositional reduction
converting SSA
Runtime Convert SSA: 0.0144345s
Set Deagle solver's graph
Running propositional reduction
Post-processing
Runtime Post-process: 0.00658939s
Solving with Deagle's Closure Solver
27994 variables, 104762 clauses
ClosureSolver finishes with 861 conflicts, 12508 decisions, and 979870 propagations. 2084 theory propagations and 310 cycles included.
SAT checker: instance is SATISFIABLE
Runtime Solver: 0.0924203s
Runtime decision procedure: 0.11565s
Building error trace

** Results:
[nodatarace.assertion.0] No data races on variable data between line 674 and line 678: UNKNOWN
[nodatarace.assertion.1] No data races on variable data between line 678 and line 678: UNKNOWN
[nodatarace.assertion.2] No data races on variable data between line 692 and line 678: FAILURE
[nodatarace.assertion.3] No data races on variable data_mutex between line 675 and line 40: UNKNOWN
[nodatarace.assertion.4] No data races on variable data_mutex between line 675 and line 42: UNKNOWN
Counterexample:

State 24 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 683 thread 0
----------------------------------------------------
  threads_total=4 (00000000 00000000 00000000 00000100)

State 25 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 684 thread 0
----------------------------------------------------
  tids={ 0u, 0u, 0u, 0u } ({ 00000000 00000000 00000000 00000000, 00000000 00000000 00000000 00000000, 00000000 00000000 00000000 00000000, 00000000 00000000 00000000 00000000 })

State 27 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 685 thread 0
----------------------------------------------------
  i=0 (00000000 00000000 00000000 00000000)

State 31 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 686 thread 0
----------------------------------------------------
  pthread_create$$thread=tids!0@1 (00000010 00000000 00000000 00000000)

State 32 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 686 thread 0
----------------------------------------------------
  attr=((const pthread_attr_t *)NULL) (00000000 00000000 00000000 00000000)

State 33 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 686 thread 0
----------------------------------------------------
  start_routine=thread (00000011 00000000 00000000 00000000)

State 34 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 686 thread 0
----------------------------------------------------
  arg=NULL (00000000 00000000 00000000 00000000)

State 55 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 685 thread 0
----------------------------------------------------
  i=1 (00000000 00000000 00000000 00000001)

State 60 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 686 thread 0
----------------------------------------------------
  pthread_create$$thread=tids!0@1 + 1 (00000010 00000000 00000000 00000100)

State 61 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 686 thread 0
----------------------------------------------------
  attr=((const pthread_attr_t *)NULL) (00000000 00000000 00000000 00000000)

State 62 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 686 thread 0
----------------------------------------------------
  start_routine=thread (00000011 00000000 00000000 00000000)

State 63 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 686 thread 0
----------------------------------------------------
  arg=NULL (00000000 00000000 00000000 00000000)

State 84 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 685 thread 0
----------------------------------------------------
  i=2 (00000000 00000000 00000000 00000010)

State 89 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 686 thread 0
----------------------------------------------------
  pthread_create$$thread=tids!0@1 + 2 (00000010 00000000 00000000 00001000)

State 90 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 686 thread 0
----------------------------------------------------
  attr=((const pthread_attr_t *)NULL) (00000000 00000000 00000000 00000000)

State 91 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 686 thread 0
----------------------------------------------------
  start_routine=thread (00000011 00000000 00000000 00000000)

State 92 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 686 thread 0
----------------------------------------------------
  arg=NULL (00000000 00000000 00000000 00000000)

State 113 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 685 thread 0
----------------------------------------------------
  i=3 (00000000 00000000 00000000 00000011)

State 118 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 686 thread 0
----------------------------------------------------
  pthread_create$$thread=tids!0@1 + 3 (00000010 00000000 00000000 00001100)

State 119 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 686 thread 0
----------------------------------------------------
  attr=((const pthread_attr_t *)NULL) (00000000 00000000 00000000 00000000)

State 120 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 686 thread 0
----------------------------------------------------
  start_routine=thread (00000011 00000000 00000000 00000000)

State 121 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 686 thread 0
----------------------------------------------------
  arg=NULL (00000000 00000000 00000000 00000000)

State 142 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 685 thread 0
----------------------------------------------------
  i=4 (00000000 00000000 00000000 00000100)

State 147 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 688 thread 0
----------------------------------------------------
  pthread_create$$thread=tids!0@1 (00000010 00000000 00000000 00000000)

State 148 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 688 thread 0
----------------------------------------------------
  attr=((const pthread_attr_t *)NULL) (00000000 00000000 00000000 00000000)

State 149 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 688 thread 0
----------------------------------------------------
  start_routine=thread (00000011 00000000 00000000 00000000)

State 150 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 688 thread 0
----------------------------------------------------
  arg=NULL (00000000 00000000 00000000 00000000)

State 172 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 689 thread 0
----------------------------------------------------
  i=0 (00000000 00000000 00000000 00000000)

State 176 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 690 thread 0
----------------------------------------------------
  pthread_join$$thread=5u (00000000 00000000 00000000 00000101)

State 177 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 690 thread 0
----------------------------------------------------
  value_ptr=((const void **)NULL) (00000000 00000000 00000000 00000000)

State 184 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function thread line 678 thread 4
----------------------------------------------------
  data=0 (00000000 00000000 00000000 00000000)

State 187 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function thread line 679 thread 4
----------------------------------------------------
  mutex=(pthread_mutex_t *)&data_mutex (00000100 00000000 00000000 00000000)

State 196 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function thread line 678 thread 5
----------------------------------------------------
  data=32 (00000000 00000000 00000000 00100000)

State 199 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function thread line 679 thread 5
----------------------------------------------------
  mutex=(pthread_mutex_t *)&data_mutex (00000100 00000000 00000000 00000000)

State 208 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function thread line 678 thread 3
----------------------------------------------------
  data=64 (00000000 00000000 00000000 01000000)

State 211 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function thread line 679 thread 3
----------------------------------------------------
  mutex=(pthread_mutex_t *)&data_mutex (00000100 00000000 00000000 00000000)

State 220 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function thread line 678 thread 2
----------------------------------------------------
  data=0 (00000000 00000000 00000000 00000000)

State 223 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function thread line 679 thread 2
----------------------------------------------------
  mutex=(pthread_mutex_t *)&data_mutex (00000100 00000000 00000000 00000000)

State 232 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function thread line 678 thread 1
----------------------------------------------------
  data=0 (00000000 00000000 00000000 00000000)

State 235 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function thread line 679 thread 1
----------------------------------------------------
  mutex=(pthread_mutex_t *)&data_mutex (00000100 00000000 00000000 00000000)

Violated property:
  file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-3.i function main line 689 thread 5
  No data races on variable data between line 692 and line 678


VERIFICATION FAILED
