Browse Source

Test case for parametric model checking (and constants).

accumulation-v4.7
Dave Parker 6 years ago
parent
commit
a358ab8d1f
  1. 18
      prism-tests/functionality/verify/param/param-consts.prism
  2. 5
      prism-tests/functionality/verify/param/param-consts.prism.props
  3. 1
      prism-tests/functionality/verify/param/param-consts.prism.props.args

18
prism-tests/functionality/verify/param/param-consts.prism

@ -0,0 +1,18 @@
// Test of constants in parametric model checking
// (specifically, when a parameter is used indirectly,
// within the definition of another constant)
dtmc
const double p;
const double q = 1 - p;
module M
// local state
s : [0..7] init 0;
[] s=0 -> q : (s'=1) + 1-q : (s'=2);
[] s>0 -> true;
endmodule

5
prism-tests/functionality/verify/param/param-consts.prism.props

@ -0,0 +1,5 @@
// RESULT: 1-p
P=? [ F s=1 ];
// RESULT: p
P=? [ F s=2 ];

1
prism-tests/functionality/verify/param/param-consts.prism.props.args

@ -0,0 +1 @@
-param p
Loading…
Cancel
Save