extern void __VERIFIER_error() __attribute__ ((__noreturn__)); #include #include #include void __VERIFIER_assert(int expression) { if (!expression) { ERROR: __VERIFIER_error();}; return; } const int SIGMA = 16; int *array; int array_index=-1; void *thread(void * arg) { array[array_index] = 1; return 0; } int main() { int tid, sum; pthread_t *t; t = (pthread_t *)malloc(sizeof(pthread_t) * SIGMA); array = (int *)malloc(sizeof(int) * SIGMA); __VERIFIER_assume(t); __VERIFIER_assume(array); for (tid=0; tid