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.
15 lines
403 B
15 lines
403 B
// test case for exact handling of floating point literals
|
|
|
|
dtmc
|
|
|
|
// in exact mode, this literal should be kept with full precision
|
|
// and not be approximated by 0.5, which would happen if it's converted to a double first
|
|
const double p = 0.500000000000000000000000000000001;
|
|
|
|
const double x; // dummy, for parametric mode
|
|
|
|
module M1
|
|
s: [0..2] init 0;
|
|
|
|
[] s=0 -> p:(s'=1) + (1-p):(s'=2);
|
|
endmodule
|