./deagle --no-assertions --datarace --32 /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.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/stateful01-1.i
Converting
Type-checking stateful01-1
Generating GOTO Program
Adding CPROVER library (x86_64)
file <builtin-library-pthread_mutex_init> line 27: 
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_init"
old definition in module stateful01-1 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i line 518
signed int (pthread_mutex_t *, const pthread_mutexattr_t *)
new definition in module <built-in-library> file <builtin-library-pthread_mutex_init> line 27
signed int (pthread_mutex_t *mutex, const pthread_mutexattr_t *mutexattr)
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 stateful01-1 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i line 530
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)
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 stateful01-1 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i line 525
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 stateful01-1 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i line 412
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/stateful01-1.i:75:1)
[Warning][Deadcode] Function "__bswap_64" will never be called: 1LoC (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i:80:1)
[Warning][Deadcode] Function "__uint16_identity" will never be called: 1LoC (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i:85:1)
[Warning][Deadcode] Function "__uint32_identity" will never be called: 1LoC (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i:90:1)
[Warning][Deadcode] Function "__uint64_identity" will never be called: 1LoC (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i:95:1)
[Warning][Race] Memory location data1@stateful01-1.i:693:5 (race with conf. 110):
  read with {lock:ma, thread:([thread1@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i:722:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i:697:3)
  read with {lock:ma, thread:([thread2@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i:723:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i:707:3)
  read with {thread:([main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i:725:3)
  write with {lock:ma, thread:([thread1@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i:722:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i:697:3)
  write with {lock:ma, thread:([thread2@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i:723:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i:707:3)
[Warning][Race] Memory location data2@stateful01-1.i:693:12 (race with conf. 110):
  read with {lock:ma, thread:([thread1@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i:722:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i:700:3)
  read with {lock:ma, thread:([thread2@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i:723:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i:710:3)
  read with {thread:([main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i:725:3)
  write with {lock:ma, thread:([thread1@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i:722:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i:700:3)
  write with {lock:ma, thread:([thread2@/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i:723:3, main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i:710:3)

Summary for all memory locations:
	safe:            0
	vulnerable:      0
	unsafe:          2
	-------------------
	total:           2
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
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/stateful01-1.i | tee goblint/goblint_output: 0
Lines where datarace may occur: 697 698 700 701 707 708 710 711 725 726 
The number of races before goblint filter: 58
The number of races after goblint filter: 10
Race categories: 6
	697(1) - 707(1) data1:
		data1#4 data1#7
		data1#5 data1#6
		data1#5 data1#7
	725(1) - 697(1) data1:
		data1#3 data1#5
	725(1) - 707(1) data1:
		data1#3 data1#7
	700(1) - 710(1) data2:
		data2#4 data2#7
		data2#5 data2#6
		data2#5 data2#7
	725(1) - 700(1) data2:
		data2#3 data2#5
	725(1) - 710(1) data2:
		data2#3 data2#7
Runtime Symex: 0.224443s
Adding SC constraints
Shared __CPROVER_threads_exited: 4R/3W
Shared __CPROVER_next_thread_id: 3R/3W
Shared ma: 8R/10W
Shared data1: 3R/4W
Shared data2: 3R/4W
Shared main::1::t1!0@1: 2R/2W
Shared main::1::t2!0@1: 2R/2W
size of program expression: 462 steps
no slicing due to threads
Generated 0 VCC(s), 0 remaining after simplification
Runtime Postprocess Equation: 0.00284253s
Passing problem to propositional reduction
converting SSA
Runtime Convert SSA: 0.00899873s
Set Deagle solver's graph
Running propositional reduction
Post-processing
Runtime Post-process: 0.000758714s
Solving with Deagle's Closure solver
13553 variables, 53369 clauses
ClosureSolver finishes with 81 conflicts, 4698 decisions, and 75760 propagations. 283 theory propagations and 21 cycles included.
SAT checker: instance is UNSATISFIABLE
Runtime Solver: 0.00778798s
Runtime decision procedure: 0.0235513s

** Results:
/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/stateful01-1.i function main
[nodatarace.assertion.0] line 723 No data races on variable data1 between line 697 and line 707: SUCCESS
[nodatarace.assertion.1] line 723 No data races on variable data1 between line 725 and line 697: SUCCESS
[nodatarace.assertion.2] line 723 No data races on variable data1 between line 725 and line 707: SUCCESS
[nodatarace.assertion.3] line 723 No data races on variable data2 between line 700 and line 710: SUCCESS
[nodatarace.assertion.4] line 723 No data races on variable data2 between line 725 and line 700: SUCCESS
[nodatarace.assertion.5] line 723 No data races on variable data2 between line 725 and line 710: SUCCESS

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