source: CIVL/examples/translation/pthread/cprover/45_monabsex1_vs_true.c@ 2d462bf

1.23 2.0 acw/focus-triggers main test-branch
Last change on this file since 2d462bf was 2c4cc44, checked in by John Edenhofner <johneden@…>, 12 years ago

Added new folders for examples and created test for error in casting (VoidCastTest)

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@1277 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.