// This file is part of the SV-Benchmarks collection of verification tasks: // https://gitlab.com/sosy-lab/benchmarking/sv-benchmarks // // SPDX-FileCopyrightText: 2005-2021 University of Tartu & Technische Universität München // // SPDX-License-Identifier: MIT #include #include int myglobal; void *t_fun(void *arg) { myglobal=myglobal+1; // RACE! return NULL; } int main(void) { pthread_t id; pthread_create(&id, NULL, t_fun, NULL); scanf("%d", &myglobal); // RACE! return 0; }