You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
267 B
17 lines
267 B
dtmc
|
|
|
|
const double p;
|
|
|
|
module test
|
|
|
|
// local state
|
|
s : [0..4] init 0;
|
|
|
|
[] s=0 -> p*(1-p) : (s'=1) + (1-p*(1-p)) : (s'=2);
|
|
[] s=1 -> p : (s'=3) + (1-p) : (s'=4);
|
|
[] s=2 -> (1-p) : (s'=3) + (p) : (s'=4);
|
|
[] s=3 -> 1 : (s'=3);
|
|
[] s=4 -> 1 : (s'=4);
|
|
|
|
endmodule
|
|
|