./sv-sanitizers.py -j 4 --property /mnt/goblint-svcomp/goblint-bench/bench/concrat/properties/no-data-race.prp --data-model ILP32 /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/per-thread-index-inc-race.i


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


/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/per-thread-index-inc-race.i:424:14: warning: conflicting types for built-in function ‘malloc’; expected ‘void *(long unsigned int)’ [-Wbuiltin-declaration-mismatch]
  424 | extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__))
      |              ^~~~~~
/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/per-thread-index-inc-race.i:1: note: ‘malloc’ is declared in header ‘<stdlib.h>’
    1 | typedef unsigned int size_t;
/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/per-thread-index-inc-race.i:426:14: warning: conflicting types for built-in function ‘calloc’; expected ‘void *(long unsigned int,  long unsigned int)’ [-Wbuiltin-declaration-mismatch]
  426 | extern void *calloc (size_t __nmemb, size_t __size)
      |              ^~~~~~
/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/per-thread-index-inc-race.i:426:14: note: ‘calloc’ is declared in header ‘<stdlib.h>’
/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/per-thread-index-inc-race.i:428:14: warning: conflicting types for built-in function ‘realloc’; expected ‘void *(void *, long unsigned int)’ [-Wbuiltin-declaration-mismatch]
  428 | extern void *realloc (void *__ptr, size_t __size)
      |              ^~~~~~~
/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/per-thread-index-inc-race.i:428:14: note: ‘realloc’ is declared in header ‘<stdlib.h>’
/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/per-thread-index-inc-race.i:438:14: warning: conflicting types for built-in function ‘alloca’; expected ‘void *(long unsigned int)’ [-Wbuiltin-declaration-mismatch]
  438 | extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__));
      |              ^~~~~~
/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/per-thread-index-inc-race.i:442:12: warning: conflicting types for built-in function ‘posix_memalign’; expected ‘int(void **, long unsigned int,  long unsigned int)’ [-Wbuiltin-declaration-mismatch]
  442 | extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
      |            ^~~~~~~~~~~~~~
/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/per-thread-index-inc-race.i:444:14: warning: conflicting types for built-in function ‘aligned_alloc’; expected ‘void *(long unsigned int,  long unsigned int)’ [-Wbuiltin-declaration-mismatch]
  444 | extern void *aligned_alloc (size_t __alignment, size_t __size)
      |              ^~~~~~~~~~~~~
/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/per-thread-index-inc-race.i:444:14: note: ‘aligned_alloc’ is declared in header ‘<stdlib.h>’
/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/per-thread-index-inc-race.i:598:15: warning: conflicting types for built-in function ‘strftime’; expected ‘long unsigned int(char *, long unsigned int,  const char *, const void *)’ [-Wbuiltin-declaration-mismatch]
  598 | extern size_t strftime (char *__restrict __s, size_t __maxsize,
      |               ^~~~~~~~
/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/per-thread-index-inc-race.i:1: note: ‘strftime’ is declared in header ‘<time.h>’
    1 | typedef unsigned int size_t;
/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/per-thread-index-inc-race.i:1009:12: warning: conflicting types for built-in function ‘bcmp’; expected ‘int(const void *, const void *, long unsigned int)’ [-Wbuiltin-declaration-mismatch]
 1009 | extern int bcmp (const void *__s1, const void *__s2, size_t __n)
      |            ^~~~
/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/per-thread-index-inc-race.i:1011:13: warning: conflicting types for built-in function ‘bcopy’; expected ‘void(const void *, void *, long unsigned int)’ [-Wbuiltin-declaration-mismatch]
 1011 | extern void bcopy (const void *__src, void *__dest, size_t __n)
      |             ^~~~~
/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/per-thread-index-inc-race.i:1013:13: warning: conflicting types for built-in function ‘bzero’; expected ‘void(void *, long unsigned int)’ [-Wbuiltin-declaration-mismatch]
 1013 | extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
      |             ^~~~~
/mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/per-thread-index-inc-race.i:1024:12: warning: conflicting types for built-in function ‘strncasecmp’; expected ‘int(const char *, const char *, long unsigned int)’ [-Wbuiltin-declaration-mismatch]
 1024 | extern int strncasecmp (const char *__s1, const char *__s2, size_t __n)
      |            ^~~~~~~~~~~
......==================
WARNING: ThreadSanitizer: data race (pid=17)
  Read of size 4 at 0x55ce49970070 by thread T2:
    #0 thread /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/per-thread-index-inc-race.i:1041 (a.out+0x1bfd)

  Previous write of size 4 at 0x55ce49970070 by thread T1:
    #0 thread /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/per-thread-index-inc-race.i:1042 (a.out+0x1c2d)

  Location is global 'next_j' of size 4 at 0x55ce49970070 (a.out+0x000000004070)

  Thread T2 (tid=29, running) created by main thread at:
    #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:969 (libtsan.so.0+0x605b8)
    #1 main /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/per-thread-index-inc-race.i:1052 (a.out+0x1d2d)

  Thread T1 (tid=28, finished) created by main thread at:
    #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:969 (libtsan.so.0+0x605b8)
    #1 main /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/per-thread-index-inc-race.i:1052 (a.out+0x1d2d)

SUMMARY: ThreadSanitizer: data race /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/per-thread-index-inc-race.i:1041 in thread
==================
ThreadSanitizer: reported 1 warnings

SV-COMP result: false
