Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Benoit Barbot
WordGen
Commits
d70efc13
Commit
d70efc13
authored
Dec 05, 2019
by
Nicolas Basset
Browse files
Update example/driving_NFM_v2.prism
parent
52f9ee7a
Pipeline
#1500
failed with stage
in 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
example/driving_NFM_v2.prism
0 → 100644
View file @
d70efc13
pta
module m
s : [0..3] init 0;
x : clock;
y : clock;
invariant
(y<15)
endinvariant
//Coasting to see, save fuel
[a] (s=0) & (y>2) & (y<15) -> (s'=3) & (x'=0) & (y'=0); //acceleration to coasting 00
[b] (s=3) & (y>1) & (y<15) -> (s'=2) & (x'=0) & (y'=0); //coasting to brake 01
[c] (s=3) & (y>1) & (y<15) -> (s'=0) & (x'=0) & (y'=0); //coasting to acceleration 10
//Braking cycle
[d] (s=0) & (y>2) & (y<15) -> (s'=2) & (x'=0) & (y'=0); //acceleration to braking 01
[e] (s=1) & (y>1) & (y<2) & (x<10) -> (s'=2) & (y'=0); //coasting to brake 01
[f] (s=2) & (y>1) & (y<2) & (x<10) -> (s'=1) & (y'=0); //brake to coasting 00
[g] (s=2) & (y>1) & (x>3) & (x<10) -> (s'=0) & (x'=0) & (y'=0); //brake to acceleration 10
[h] (s=1) & (y>1) & (x>3) & (x<10) -> (s'=0) & (x'=0) & (y'=0); //coasting to acceleration 10
endmodule
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment