/***************************************************************************** * SOURCE: This is a translation of a Pthread program from * the Pthread benchmarks of SV-COMP 2014. * https://svn.sosy-lab.org/software/sv-benchmarks/tags/svcomp14/ * FILE: fib_bench_false.cvl * DESCRIPTION: * * Command line execution: * civl verify fib_bench_false.cvl ******************************************************************************/ #include #include int i=1, j=1; #define NUM 5 void *t1(void* arg) { int k = 0; for (k = 0; k < NUM; k++) i+=j; pthread_exit(NULL); } void *t2(void* arg) { int k = 0; for (k = 0; k < NUM; k++) j+=i; pthread_exit(NULL); } int main(int argc, char **argv) { pthread_t id1, id2; pthread_create(&id1, NULL, t1, NULL); pthread_create(&id2, NULL, t2, NULL); if (i >= 144 || j >= 144) { ERROR: goto ERROR; } return 0; }