Browse Source
Digital clocks: manage translation of properties/file properly (+ test cases).
accumulation-v4.7
Digital clocks: manage translation of properties/file properly (+ test cases).
accumulation-v4.7
8 changed files with 73 additions and 19 deletions
-
10prism-tests/functionality/verify/ptas/reach/propconst.nm
-
17prism-tests/functionality/verify/ptas/reach/propconst.nm.props
-
2prism-tests/functionality/verify/ptas/reach/propconst.nm.props.args
-
11prism-tests/functionality/verify/ptas/reach/zeroconf.nm.props
-
8prism-tests/functionality/verify/ptas/reach/zeroconf.nm.props.args
-
1prism/src/parser/ast/PropertiesFile.java
-
4prism/src/prism/Prism.java
-
39prism/src/pta/DigitalClocks.java
@ -0,0 +1,10 @@ |
|||
pta |
|||
|
|||
module M |
|||
|
|||
s : [0..1]; |
|||
x : clock; |
|||
|
|||
[a] x>=4 -> (s'=1); |
|||
|
|||
endmodule |
|||
@ -0,0 +1,17 @@ |
|||
const int K = 2; |
|||
const int L; |
|||
|
|||
// This tests clocks appearing in the property |
|||
// (the use of digital clocks with -ex means that the expression |
|||
// is evaluated and all the types have to be correct) |
|||
// RESULT: 1.0 |
|||
Pmax=? [ F x>=2 ]; |
|||
|
|||
// This tests (defined) constants from the prop file |
|||
// RESULT: 1.0 |
|||
Pmax=? [ F x>=K ]; |
|||
|
|||
// This tests (undefined) constants from the prop file |
|||
// RESULT: 1.0 |
|||
Pmax=? [ F x>=L ]; |
|||
|
|||
@ -0,0 +1,2 @@ |
|||
-ptamethod digital -const L=2 |
|||
-ptamethod digital -const L=2 -ex |
|||
@ -1,3 +1,14 @@ |
|||
const int K=2; |
|||
const int L; |
|||
|
|||
// Maximum probability of configuring IP address incorrectly |
|||
// RESULT: 130321/100130321 |
|||
"incorrect": Pmax=? [ F s=2 & ip=2 ]; |
|||
|
|||
// As above but testing using constants |
|||
// RESULT: 130321/100130321 |
|||
Pmax=? [ F s=2 & ip=K ]; |
|||
|
|||
// As above but testing using (undefined) constants |
|||
// RESULT: 130321/100130321 |
|||
Pmax=? [ F s=2 & ip=L ]; |
|||
@ -1,4 +1,4 @@ |
|||
-ptamethod digital -e 1e-8 |
|||
-ptamethod digital -e 1e-8 -ex |
|||
-ptamethod games |
|||
-ptamethod backwards |
|||
-const L=2 -ptamethod digital -e 1e-8 |
|||
-const L=2 -ptamethod digital -e 1e-8 -ex |
|||
-const L=2 -ptamethod games |
|||
-const L=2 -ptamethod backwards |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue