From 2fc0832a0457eed5398ba2b4e8b370fdedf9f45c Mon Sep 17 00:00:00 2001 From: Gethin Norman Date: Mon, 8 Dec 2008 12:39:06 +0000 Subject: [PATCH] updated rabin files to coorespond with web git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@883 bbc10eb1-c90d-0410-af57-cb519fbb1720 --- prism-examples/rabin/.rabinN.nm.pp | 7 +++---- prism-examples/rabin/rabin10.nm | 24 +++++++++--------------- prism-examples/rabin/rabin3.nm | 24 +++++++++--------------- prism-examples/rabin/rabin4.nm | 24 +++++++++--------------- prism-examples/rabin/rabin5.nm | 24 +++++++++--------------- prism-examples/rabin/rabin6.nm | 24 +++++++++--------------- prism-examples/rabin/rabin7.nm | 24 +++++++++--------------- prism-examples/rabin/rabin8.nm | 24 +++++++++--------------- prism-examples/rabin/rabin9.nm | 24 +++++++++--------------- 9 files changed, 75 insertions(+), 124 deletions(-) diff --git a/prism-examples/rabin/.rabinN.nm.pp b/prism-examples/rabin/.rabinN.nm.pp index 8e357b64..85cc9242 100644 --- a/prism-examples/rabin/.rabinN.nm.pp +++ b/prism-examples/rabin/.rabinN.nm.pp @@ -3,7 +3,8 @@ // N-processor mutual exclusion [Rab82] // gxn/dxp 03/12/08 -// to remove the need for fairness constraints we have also removed the self loops from the model +// to remove the need for fairness constraints for this model it is sufficent +// to remove the self loops from the model // the step corresponding to a process making a draw has been split into two steps // to allow us to identify states where a process will draw without knowing the value @@ -19,12 +20,10 @@ mdp const int K = #K#; // 4+ceil(log_2 N) // global variables (all modules can read and write) - - global c : [0..1]; // 0/1 critical section free/taken global b : [0..K]; // current highest draw global r : [1..2]; // current round - + // formula for process 1 drawing formula draw = p1=1 & (b