./deagle --no-assertions --datarace --32 /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.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-C-DAC/pthread-numerical-integration.i
Converting
Type-checking pthread-numerical-integration
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 pthread-numerical-integration file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i line 499
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 pthread-numerical-integration file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i line 511
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 pthread-numerical-integration file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i line 506
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 pthread-numerical-integration file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i line 393
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 1 possible targets
Generic Property Instrumentation
Running with 8 object bits, 24 offset bits (default)
Starting Bounded Model Checking
argc''s upper bound is 1073741824
Use SV-COMP unwinding strategy: 2
Deagle's solver is set!!!!!!
**** WARNING: no body for function pthread_attr_init
aborting path on assume(false) at file <builtin-library-exit> line 7 function exit thread 0
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/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i line 1388 function main thread 0
Not unwinding loop main.0 iteration 2 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i line 1388 function main thread 0
aborting path on assume(false) at file <builtin-library-exit> line 7 function exit thread 0
Unwinding loop main.1 iteration 1 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i line 1396 function main thread 0
aborting path on assume(false) at file <builtin-library-exit> line 7 function exit thread 0
Not unwinding loop main.1 iteration 2 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i line 1396 function main thread 0
**** WARNING: no body for function pthread_attr_destroy
[Warning][Unknown] Invalidating expressions: AddrOf(Var(ret_count, NoOffset)) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1354:5)
[Warning][Unknown] Invalidating expressions: AddrOf(Var(numberOfIntervals, NoOffset)) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1366:5)
[Warning][Unknown] Unknown value in {&pta} could be an escaped pointer address! (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1374:5)
[Warning][Unknown] Spawning functions from unknown function: pta (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1374:5)
[Warning][Unknown] Not creating a thread from pta because its type is pthread_attr_t  (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1374:5)
[Warning][Unknown] Invalidating expressions: AddrOf(Var(pta, NoOffset)) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1374:5)
[Warning][Unknown] Invalidating expressions: AddrOf(Var(ret_count, NoOffset)) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1374:5)
[Warning][Unknown] Unknown value in {&pta} could be an escaped pointer address! (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1404:5)
[Warning][Unknown] Spawning functions from unknown function: pta (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1404:5)
[Warning][Unknown] Not creating a thread from pta because its type is pthread_attr_t  (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1404:5)
[Warning][Unknown] Function definition missing for pthread_attr_destroy (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1404:5)
[Warning][Unknown] INVALIDATING ALL GLOBALS! (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1404:5)
[Warning][Unknown] Invalidating expressions: AddrOf(Var(pi_mutex,
                                     NoOffset)), AddrOf(Var(area_mutex, NoOffset)), AddrOf(Var(four, NoOffset)), AddrOf(Var(distance, NoOffset)), AddrOf(Var(num_threads, NoOffset)), AddrOf(Var(iteration, NoOffset)), AddrOf(Var(iCount, NoOffset)), AddrOf(Var(interval, NoOffset)), AddrOf(Var(numberOfIntervals, NoOffset)), AddrOf(Var(area, NoOffset)), AddrOf(Var(intervalMidPoint, NoOffset)), AddrOf(Var(intervalWidth, NoOffset)), AddrOf(Var(pta, NoOffset)) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1404:5)
[Warning][Unknown] Unknown value in {&four} could be an escaped pointer address! (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1404:5)
[Warning][Unknown] Unknown value in {&distance} could be an escaped pointer address! (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1404:5)
[Warning][Unknown] Unknown value in {&area} could be an escaped pointer address! (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1404:5)
[Warning][Unknown] Unknown value in {&intervalMidPoint} could be an escaped pointer address! (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1404:5)
[Warning][Unknown] Unknown value in {&intervalWidth} could be an escaped pointer address! (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1404:5)
[Warning][Unknown] Invalidating expressions: AddrOf(Var(ret_count, NoOffset)) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1404:5)
[Warning][Unknown] Write to unknown address: privatization is unsound. (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1410:5)
[Debug][Analyzer] Base EvalInt area - 3.14159265388372456789123456789456 < 1.0E-5 query answering bot instead of Unknown (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1411:5)
[Warning][Unknown] Invariant failed: expression "<(MinusA(Lval(Var(area, NoOffset)), Const(CReal(3.141593, double, 3.14159265388372456789123456789456))), Const(CReal(0.000010, double, 1.0E-5)))" not understood. (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1411:5)
[Debug][Analyzer] Base EvalInt 3.14159265388372456789123456789456 - area < 1.0E-5 query answering bot instead of Unknown (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1411:5)
[Warning][Unknown] Invariant failed: expression "<(MinusA(Const(CReal(3.141593, double, 3.14159265388372456789123456789456)), Lval(Var(area, NoOffset))), Const(CReal(0.000010, double, 1.0E-5)))" not understood. (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1411:5)
[Warning][Unknown] Invalidating expressions: CastE(TPtr(TVoid(), ), Lval(Var(threads, NoOffset))) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1413:5)
[Warning][Deadcode] Function "__bswap_32" will never be called: 1LoC (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:71:1)
[Warning][Deadcode] Function "__bswap_64" will never be called: 1LoC (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:76:1)
[Warning][Race] Memory location area@pthread-numerical-integration.i:1324:41 (race with conf. 110):
  read with {lock:area_mutex} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1340:5)
  read with {thread:([main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1410:5)
  read with {thread:([main], {})} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1411:5)
  write with {lock:area_mutex} (conf. 110) (/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i:1340:5)

Summary for all memory locations:
	safe:            8
	vulnerable:      0
	unsafe:          1
	-------------------
	total:           9
aborting path on assume(false) at file <builtin-library-exit> line 7 function exit thread 0
pointer handling for concurrency is unsound
aborting path on assume(false) at file <builtin-library-abort> line 6 function abort thread 0
Unwinding loop myPartOfCalc.0 iteration 1 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i line 1333 function myPartOfCalc thread 1
Not unwinding loop myPartOfCalc.0 iteration 2 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i line 1333 function myPartOfCalc thread 1
aborting path on assume(false) at file <builtin-library-__spawned_thread> line 34 function __spawned_thread thread 2
Unwinding loop myPartOfCalc.0 iteration 1 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i line 1333 function myPartOfCalc thread 2
Not unwinding loop myPartOfCalc.0 iteration 2 file /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i line 1333 function myPartOfCalc 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-C-DAC/pthread-numerical-integration.i | tee goblint/goblint_output: 0
Lines where datarace may occur: 1340 1341 1404 1405 1410 1411 1412 
The number of races before goblint filter: 73
The number of races after goblint filter: 17
Race categories: 3
	1340(1) - 1340(1) area:
		area#9 area#12
		area#10 area#11
		area#10 area#12
	1410(1) - 1340(1) area:
		area#2 area#10
		area#3 area#10
		area#4 area#10
		area#2 area#12
		area#3 area#12
		area#4 area#12
	1411(1) - 1340(1) area:
		area#5 area#10
		area#6 area#10
		area#7 area#10
		area#8 area#10
		area#5 area#12
		area#6 area#12
		area#7 area#12
		area#8 area#12
Runtime Symex: 0.644156s
Adding SC constraints
Shared __CPROVER_threads_exited: 4R/3W
Shared __CPROVER_next_thread_id: 3R/3W
Shared __CPROVER_memory_leak: 1R/3W
Shared intervalWidth: 6R/2W
Shared area: 9R/3W
Shared numberOfIntervals: 10R/2W
Shared iCount: 18R/7W
Shared num_threads: 1R/2W
Shared distance: 4R/1W
Shared four: 4R/1W
Shared area_mutex: 4R/6W
Shared symex_dynamic::dynamic_object1: 5R/4W
Shared printf::format!0@11: 1R/2W
Shared printf::format!0@12: 1R/2W
Shared printf::format!0@13: 1R/2W
size of program expression: 1044 steps
no slicing due to threads
Generated 0 VCC(s), 0 remaining after simplification
Runtime Postprocess Equation: 0.00504556s
Passing problem to propositional reduction
converting SSA
Runtime Convert SSA: 0.166186s
Set Deagle solver's graph
Running propositional reduction
Post-processing
Runtime Post-process: 0.00959303s
Solving with Deagle's Closure solver
276147 variables, 1300478 clauses
ClosureSolver finishes with 519 conflicts, 258548 decisions, and 4308394 propagations. 143 theory propagations and 3 cycles included.
SAT checker: instance is UNSATISFIABLE
Runtime Solver: 0.364482s
Runtime decision procedure: 0.547064s

** Results:
/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread-C-DAC/pthread-numerical-integration.i function main
[nodatarace.assertion.0] line 1391 No data races on variable area between line 1340 and line 1340: SUCCESS
[nodatarace.assertion.1] line 1391 No data races on variable area between line 1410 and line 1340: SUCCESS
[nodatarace.assertion.2] line 1391 No data races on variable area between line 1411 and line 1340: SUCCESS

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