./deagle /mnt/goblint-svcomp/goblint-bench/bench/concrat/properties/no-data-race.prp /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/semaphore-posix-race.i --32


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


./deagle_exe --svcomp --graphml-witness error-witness.graphml --no-assertions --datarace /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/semaphore-posix-race.i
Deagle version 2.2 64-bit x86_64 linux
which contains:
CBMC version 5.67.0 (svcomp24-1-g36d91faca) 64-bit x86_64 linux
Parsing /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/semaphore-posix-race.i
Converting
Type-checking semaphore-posix-race
Generating GOTO Program
Adding CPROVER library (x86_64)
file <builtin-library-pthread_create> line 20: warning: pointer parameter types differ between declaration and definition "pthread_create"
old definition in module semaphore-posix-race file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/semaphore-posix-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
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/semaphore-posix-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/semaphore-posix-race.i line 1048 function main thread 0
Unwinding loop main.1 iteration 1 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/semaphore-posix-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/semaphore-posix-race.i line 1052 function main thread 0
pointer handling for concurrency is unsound
aborting path on assume(false) at file <builtin-library-__spawned_thread> line 34 function __spawned_thread thread 2
Start removing dummy accesses: 298 steps before removal
symex_dynamic::dynamic_object1#5 is dummy and removed
symex_dynamic::dynamic_object1#7 is dummy and removed
296 steps after removal
Handling datarace with no aid
The number of races before filter: 3
The number of races after filter: 3
The number of race categories before filter: 2
The number of race categories after filter: 2
	1035(1) - 1039(1) data
	1039(1) - 1039(1) data
Races between line 1035 - line 1039:
	data#1 data#2
	data#1 data#3
Races between line 1039 - line 1039:
	data#2 data#3
Runtime Symex: 0.0620304s
Adding SC constraints
Shared __CPROVER_threads_exited: 4R/3W
Shared __CPROVER_next_thread_id: 3R/3W
Shared __CPROVER_memory_leak: 1R/3W
Shared symex_dynamic::dynamic_object1: 3R/3W
size of program expression: 340 steps
no slicing due to threads
Generated 0 VCC(s), 0 remaining after simplification
Runtime Postprocess Equation: 0.000686052s
Passing problem to propositional reduction
converting SSA
Runtime Convert SSA: 0.00178725s
Set Deagle solver's graph
Running propositional reduction
Post-processing
Runtime Post-process: 0.00178254s
Solving with Deagle's Closure Solver
4501 variables, 9570 clauses
ClosureSolver finishes with 7 conflicts, 973 decisions, and 4744 propagations. 4 theory propagations and 1 cycles included.
SAT checker: instance is SATISFIABLE
Runtime Solver: 0.00278852s
Runtime decision procedure: 0.00911563s
Building error trace

** Results:
[nodatarace.assertion.0] No data races on variable data between line 1035 and line 1039: UNKNOWN
[nodatarace.assertion.1] No data races on variable data between line 1039 and line 1039: FAILURE
Counterexample:

State 25 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/semaphore-posix-race.i function main line 1044 thread 0
----------------------------------------------------
  sem=&data_sem (00000010 00000000 00000000 00000000)

State 26 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/semaphore-posix-race.i function main line 1044 thread 0
----------------------------------------------------
  pshared=0 (00000000 00000000 00000000 00000000)

State 27 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/semaphore-posix-race.i function main line 1044 thread 0
----------------------------------------------------
  value=1u (00000000 00000000 00000000 00000001)

State 32 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/semaphore-posix-race.i function main line 1045 thread 0
----------------------------------------------------
  threads_total=1073741824 (01000000 00000000 00000000 00000000)

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

State 42 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/semaphore-posix-race.i function main line 1047 thread 0
----------------------------------------------------
  malloc_size=0u (00000000 00000000 00000000 00000000)

State 65 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/semaphore-posix-race.i function main line 1047 thread 0
----------------------------------------------------
  tids=dynamic_object1 (00000011 00000000 00000000 00000000)

State 67 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/semaphore-posix-race.i function main line 1048 thread 0
----------------------------------------------------
  i=0 (00000000 00000000 00000000 00000000)

State 71 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/semaphore-posix-race.i function main line 1049 thread 0
----------------------------------------------------
  pthread_create$$thread=dynamic_object1 (00000011 00000000 00000000 00000000)

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

State 73 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/semaphore-posix-race.i function main line 1049 thread 0
----------------------------------------------------
  start_routine=thread (00000100 00000000 00000000 00000000)

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

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

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

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

State 102 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/semaphore-posix-race.i function main line 1049 thread 0
----------------------------------------------------
  start_routine=thread (00000100 00000000 00000000 00000000)

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

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

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

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

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

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

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

State 140 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/semaphore-posix-race.i function thread line 1038 thread 1
----------------------------------------------------
  sem=&data_sem (00000010 00000000 00000000 00000000)

State 142 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/semaphore-posix-race.i function thread line 1039 thread 2
----------------------------------------------------
  data=0 (00000000 00000000 00000000 00000000)

State 145 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/semaphore-posix-race.i function thread line 1040 thread 2
----------------------------------------------------
  sem=&data_sem (00000010 00000000 00000000 00000000)

State 149 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/semaphore-posix-race.i function thread line 1039 thread 1
----------------------------------------------------
  data=0 (00000000 00000000 00000000 00000000)

State 152 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/semaphore-posix-race.i function thread line 1040 thread 1
----------------------------------------------------
  sem=&data_sem (00000010 00000000 00000000 00000000)

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

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

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

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

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

State 173 file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/semaphore-posix-race.i function thread line 1038 thread 2
----------------------------------------------------
  sem=&data_sem (00000010 00000000 00000000 00000000)

Violated property:
  file /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/semaphore-posix-race.i function main line 1048 thread 2
  No data races on variable data between line 1039 and line 1039


VERIFICATION FAILED
