./deagle --no-assertions --datarace --32 /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i


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


Deagle version 2.1 64-bit x86_64 linux
which contains:
CBMC version 5.67.0 (SVCOMP2023_221122-2-g2121ef1a2) 64-bit x86_64 linux
Parsing /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i
Converting
Type-checking dekker-b
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 dekker-b file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i line 408
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 *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 2 possible targets
Generic Property Instrumentation
Running with 8 object bits, 24 offset bits (default)
Starting Bounded Model Checking
[Warning][Deadcode] Function "__bswap_32" will never be called: 1LoC (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:71:1)
[Warning][Deadcode] Function "__bswap_64" will never be called: 1LoC (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:76:1)
[Warning][Deadcode] Function "__uint16_identity" will never be called: 1LoC (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:81:1)
[Warning][Deadcode] Function "__uint32_identity" will never be called: 1LoC (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:86:1)
[Warning][Deadcode] Function "__uint64_identity" will never be called: 1LoC (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:91:1)
[Warning][Race] Memory location flag1@dekker-b.i:688:5 (race with conf. 110):
  read with {thread:([thr2@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:726:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:708:3)
  write with {thread:([thr1@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:725:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:692:3)
  write with {thread:([thr1@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:725:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:695:7)
  write with {thread:([thr1@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:725:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:697:7)
  write with {thread:([thr1@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:725:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:703:3)
[Warning][Race] Memory location x@dekker-b.i:690:5 (race with conf. 110):
  read with {thread:([thr1@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:725:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:701:3)
  read with {thread:([thr2@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:726:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:716:3)
  write with {thread:([thr1@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:725:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:700:3)
  write with {thread:([thr2@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:726:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:715:3)
[Warning][Race] Memory location turn@dekker-b.i:689:5 (race with conf. 110):
  read with {thread:([thr1@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:725:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:694:5)
  read with {thread:([thr1@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:725:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:696:7)
  read with {thread:([thr2@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:726:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:709:5)
  read with {thread:([thr2@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:726:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:711:7)
  write with {thread:([thr1@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:725:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:702:3)
  write with {thread:([thr2@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:726:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:717:3)
[Warning][Race] Memory location flag2@dekker-b.i:688:16 (race with conf. 110):
  read with {thread:([thr1@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:725:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:693:3)
  write with {thread:([thr2@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:726:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:707:3)
  write with {thread:([thr2@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:726:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:710:7)
  write with {thread:([thr2@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:726:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:712:7)
  write with {thread:([thr2@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:726:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i:718:3)

Summary for all memory locations:
	safe:            0
	vulnerable:      0
	unsafe:          4
	-------------------
	total:           4
turn's upper bound is 1
Use SV-COMP unwinding strategy: 2
Deagle's solver is set!!!!!!
replacing self-loop at file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i line 696 function thr1 by assume(!TRUE)
Unwinding loop thr1.1 iteration 1 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i line 693 function thr1 thread 1
replacing self-loop at file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i line 696 function thr1 by assume(!TRUE)
Not unwinding loop thr1.1 iteration 2 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i line 693 function thr1 thread 1
aborting path on assume(false) at file <builtin-library-abort> line 6 function abort thread 1
replacing self-loop at file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i line 711 function thr2 by assume(!TRUE)
Unwinding loop thr2.1 iteration 1 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i line 708 function thr2 thread 2
replacing self-loop at file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i line 711 function thr2 by assume(!TRUE)
Not unwinding loop thr2.1 iteration 2 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i line 708 function thr2 thread 2
aborting path on assume(false) at file <builtin-library-abort> line 6 function abort thread 2
Handling datarace, passing the problem to goblint first
getcwd: /mnt/goblint-svcomp/benchexec/tools-pldi/deagle
/mnt/goblint-svcomp/benchexec/tools-pldi/deagle/goblint/goblint /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i | tee goblint/goblint_output: 0
Lines where datarace may occur: 692 693 694 695 696 697 698 700 701 702 703 704 707 708 709 710 711 712 713 715 716 717 718 719 
The number of races before goblint filter: 66
The number of races after goblint filter: 36
Race categories: 16
	692(1) - 708(1) flag1:
		flag1#2 flag1#8
		flag1#2 flag1#9
	695(1) - 708(1) flag1:
		flag1#3 flag1#8
		flag1#3 flag1#9
		flag1#5 flag1#8
		flag1#5 flag1#9
	697(1) - 708(1) flag1:
		flag1#4 flag1#8
		flag1#4 flag1#9
		flag1#6 flag1#8
		flag1#6 flag1#9
	703(1) - 708(1) flag1:
		flag1#7 flag1#8
		flag1#7 flag1#9
	693(1) - 707(1) flag2:
		flag2#2 flag2#4
		flag2#3 flag2#4
	693(1) - 710(1) flag2:
		flag2#2 flag2#5
		flag2#2 flag2#7
		flag2#3 flag2#5
		flag2#3 flag2#7
	693(1) - 712(1) flag2:
		flag2#2 flag2#6
		flag2#2 flag2#8
		flag2#3 flag2#6
		flag2#3 flag2#8
	693(1) - 718(1) flag2:
		flag2#2 flag2#9
		flag2#3 flag2#9
	694(1) - 717(1) turn:
		turn#2 turn#11
		turn#4 turn#11
	696(1) - 717(1) turn:
		turn#3 turn#11
		turn#5 turn#11
	702(1) - 709(1) turn:
		turn#6 turn#7
		turn#6 turn#9
	702(1) - 711(1) turn:
		turn#6 turn#8
		turn#6 turn#10
	702(1) - 717(1) turn:
		turn#6 turn#11
	700(1) - 715(1) x:
		x#2 x#4
	700(1) - 716(1) x:
		x#2 x#5
	701(1) - 715(1) x:
		x#3 x#4
Runtime Symex: 0.273453s
Adding SC constraints
Shared __CPROVER_threads_exited: 4R/3W
Shared __CPROVER_next_thread_id: 3R/3W
Shared flag1: 2R/7W
Shared flag2: 2R/7W
Shared turn: 8R/3W
Shared x: 2R/3W
Shared main::1::t1!0@1: 2R/2W
Shared main::1::t2!0@1: 2R/2W
size of program expression: 437 steps
no slicing due to threads
Generated 0 VCC(s), 0 remaining after simplification
Runtime Postprocess Equation: 0.00182557s
Passing problem to propositional reduction
converting SSA
Runtime Convert SSA: 0.00238951s
Set Deagle solver's graph
Running propositional reduction
Post-processing
Runtime Post-process: 0.000676002s
Solving with Deagle's Closure solver
2941 variables, 7489 clauses
ClosureSolver finishes with 14 conflicts, 1065 decisions, and 3362 propagations. 11 theory propagations and 0 cycles included.
SAT checker: instance is SATISFIABLE
Runtime Solver: 0.00134413s
Runtime decision procedure: 0.0108139s
Running propositional reduction
Solving with Deagle's Closure solver
2941 variables, 5527 clauses
ClosureSolver finishes with 15 conflicts, 2068 decisions, and 5405 propagations. 11 theory propagations and 0 cycles included.
SAT checker: instance is SATISFIABLE
Runtime Solver: 0.000235975s
Runtime decision procedure: 0.000250915s
Running propositional reduction
Solving with Deagle's Closure solver
2941 variables, 5528 clauses
ClosureSolver finishes with 16 conflicts, 3005 decisions, and 7455 propagations. 11 theory propagations and 0 cycles included.
SAT checker: instance is SATISFIABLE
Runtime Solver: 0.000224204s
Runtime decision procedure: 0.000237484s
Running propositional reduction
Solving with Deagle's Closure solver
2941 variables, 5529 clauses
ClosureSolver finishes with 17 conflicts, 3974 decisions, and 9667 propagations. 11 theory propagations and 0 cycles included.
SAT checker: instance is SATISFIABLE
Runtime Solver: 0.000252545s
Runtime decision procedure: 0.000265155s
Running propositional reduction
Solving with Deagle's Closure solver
2941 variables, 5529 clauses
ClosureSolver finishes with 17 conflicts, 4859 decisions, and 11684 propagations. 11 theory propagations and 0 cycles included.
SAT checker: instance is SATISFIABLE
Runtime Solver: 0.000231315s
Runtime decision procedure: 0.000258955s

** Results:
/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-atomic/dekker-b.i function main
[nodatarace.assertion.0] line 726 No data races on variable flag1 between line 692 and line 708: FAILURE
[nodatarace.assertion.1] line 726 No data races on variable flag1 between line 695 and line 708: FAILURE
[nodatarace.assertion.2] line 726 No data races on variable flag1 between line 697 and line 708: FAILURE
[nodatarace.assertion.3] line 726 No data races on variable flag1 between line 703 and line 708: FAILURE
[nodatarace.assertion.4] line 726 No data races on variable flag2 between line 693 and line 707: FAILURE
[nodatarace.assertion.5] line 726 No data races on variable flag2 between line 693 and line 710: FAILURE
[nodatarace.assertion.6] line 726 No data races on variable flag2 between line 693 and line 712: FAILURE
[nodatarace.assertion.7] line 726 No data races on variable flag2 between line 693 and line 718: FAILURE
[nodatarace.assertion.8] line 726 No data races on variable turn between line 694 and line 717: FAILURE
[nodatarace.assertion.9] line 726 No data races on variable turn between line 696 and line 717: FAILURE
[nodatarace.assertion.10] line 726 No data races on variable turn between line 702 and line 709: FAILURE
[nodatarace.assertion.11] line 726 No data races on variable turn between line 702 and line 711: FAILURE
[nodatarace.assertion.12] line 726 No data races on variable turn between line 702 and line 717: FAILURE
[nodatarace.assertion.13] line 726 No data races on variable x between line 700 and line 715: FAILURE
[nodatarace.assertion.14] line 726 No data races on variable x between line 700 and line 716: FAILURE
[nodatarace.assertion.15] line 726 No data races on variable x between line 701 and line 715: FAILURE

** 16 of 16 failed (6 iterations)
VERIFICATION FAILED
