source: CIVL/examples/concurrency/outOfOrderLocks.cvl@ 2b5dc93

1.23 2.0 main test-branch
Last change on this file since 2b5dc93 was 5252db6, checked in by Stephen Siegel <siegel@…>, 13 years ago

Transforming to find multiple errors and to use log functionality in GMC.

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

  • Property mode set to 100644
File size: 276 bytes
Line 
1
2int lock0 = 0;
3int lock1 = 0;
4
5void proc0() {
6 $when (lock0==0) lock0=1;
7 $when (lock1==0) lock1=1;
8 lock0=0;
9 lock1=0;
10}
11
12void proc1() {
13 $when (lock1==0) lock1=1;
14 $when (lock0==0) lock0=1;
15 lock0=0;
16 lock1=0;
17}
18
19void main() {
20 $spawn proc0();
21 $spawn proc1();
22}
Note: See TracBrowser for help on using the repository browser.