source: CIVL/examples/pthread/cprover/45_monabsex1_vs_true.c@ 42e12a0

1.23 2.0 main test-branch
Last change on this file since 42e12a0 was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 309 bytes
Line 
1#include <pthread.h>
2
3#define assert(e) { if(!(e)) { ERROR: goto ERROR; (void)0; } }
4
5int s;
6
7void* thr1(void* arg)
8{
9 int l = __VERIFIER_nondet_int();
10 l = 4;
11 s = l;
12 assert(s == l);
13
14 return 0;
15}
16
17int main()
18{
19 s = __VERIFIER_nondet_int();
20
21 pthread_t t;
22
23 while(1) pthread_create(&t, 0, thr1, 0);
24}
25
Note: See TracBrowser for help on using the repository browser.