source: CIVL/examples/fairness/unfair3.cvl

main
Last change on this file was 19b94fb, checked in by Stephen Siegel <siegel@…>, 3 years ago

Fixed the fair cycle detection algorithm to deal properly with atomics. Added new test.

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

  • Property mode set to 100644
File size: 193 bytes
RevLine 
[19b94fb]1/* All fair executions terminate. */
2#include <stdio.h>
3
4int x=0;
5
6void f() {
7 while (x==0) {
8 $atomic{ printf("Hi\n"); }
9 }
10}
11
12int main() {
13 $proc p1 = $spawn f();
14 x=1;
15 $wait(p1);
16}
Note: See TracBrowser for help on using the repository browser.