./deagle --no-assertions --datarace --32 /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/bigshot_s2.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/bigshot_s2.i
Converting
Type-checking bigshot_s2
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 bigshot_s2 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/bigshot_s2.i line 720
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][Unknown] Spawning functions from unknown function: (alloc@sid:18) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/bigshot_s2.i:1116:10)
[Warning][Unknown] Not creating a thread from (alloc@sid:18) because its type is char  (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/bigshot_s2.i:1116:10)
[Warning][Unknown] Invalidating expressions: CastE(TPtr(TInt(char,
                                     ),  __restrict  ), Lval(Var(v, NoOffset))) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/bigshot_s2.i:1116:10)
[Warning][Behavior > Undefined > NullPointerDereference][CWE-476] May dereference NULL pointer (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/bigshot_s2.i:1126:3)
[Warning][Deadcode] Function "__bswap_32" will never be called: 1LoC (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/bigshot_s2.i:179:1)
[Warning][Deadcode] Function "__bswap_64" will never be called: 1LoC (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/bigshot_s2.i:184:1)
[Warning][Deadcode] Function "__uint16_identity" will never be called: 1LoC (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/bigshot_s2.i:189:1)
[Warning][Deadcode] Function "__uint32_identity" will never be called: 1LoC (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/bigshot_s2.i:194:1)
[Warning][Deadcode] Function "__uint64_identity" will never be called: 1LoC (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/bigshot_s2.i:199:1)
[Warning][Race] Memory location v@bigshot_s2.i:1108:6 (race with conf. 110):
  read with {thread:([thread2@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/bigshot_s2.i:1125:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/bigshot_s2.i:1116:3)
  read with {thread:([thread2@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/bigshot_s2.i:1125:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/bigshot_s2.i:1116:10)
  read with {thread:([main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/bigshot_s2.i:1126:3)
  write with {thread:([thread1@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/bigshot_s2.i:1123:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/bigshot_s2.i:1111:3)

Summary for all memory locations:
	safe:            2
	vulnerable:      0
	unsafe:          1
	-------------------
	total:           3
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
pointer handling for concurrency is unsound
Unwinding loop strcpy.0 iteration 1 file <builtin-library-strcpy> line 32 function strcpy thread 2
Not unwinding loop strcpy.0 iteration 2 file <builtin-library-strcpy> line 32 function strcpy 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/bigshot_s2.i | tee goblint/goblint_output: 0
Lines where datarace may occur: 1111 1112 1116 1117 1126 1127 
The number of races before goblint filter: 12
The number of races after goblint filter: 4
Race categories: 2
	1111(1) - 1116(1) v:
		v#3 v#4
		v#3 v#5
		v#3 v#6
	1126(1) - 1111(1) v:
		v#2 v#3
Runtime Symex: 0.196491s
Adding SC constraints
Shared __CPROVER_threads_exited: 4R/3W
Shared __CPROVER_next_thread_id: 3R/3W
Shared __CPROVER_deallocated: 2R/2W
Shared __CPROVER_malloc_is_new_array: 1R/2W
Shared __CPROVER_memory_leak: 1R/2W
Shared v: 4R/2W
Shared main::1::t1!0@1: 2R/2W
Shared main::1::t2!0@1: 2R/2W
Shared symex_dynamic::dynamic_object1[[0]]: 1R/3W
Shared symex_dynamic::dynamic_object1[[1]]: 1R/3W
size of program expression: 348 steps
no slicing due to threads
Generated 0 VCC(s), 0 remaining after simplification
Runtime Postprocess Equation: 0.00151541s
Passing problem to propositional reduction
converting SSA
Runtime Convert SSA: 0.00164343s
Set Deagle solver's graph
Running propositional reduction
Post-processing
Runtime Post-process: 0.000763383s
Solving with Deagle's Closure solver
2672 variables, 5841 clauses
ClosureSolver finishes with 2 conflicts, 24 decisions, and 1262 propagations. 22 theory propagations and 0 cycles included.
SAT checker: instance is UNSATISFIABLE
Runtime Solver: 0.00127025s
Runtime decision procedure: 0.00986881s

** Results:
/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/bigshot_s2.i function main
[nodatarace.assertion.0] line 1125 No data races on variable v between line 1111 and line 1116: SUCCESS
[nodatarace.assertion.1] line 1125 No data races on variable v between line 1126 and line 1111: SUCCESS

** 0 of 2 failed (1 iterations)
VERIFICATION SUCCESSFUL
