Assignment: NuSMV tutorial
- Inlämningsdatum 26 okt 2021 av 18:00
- Poäng 1
- Lämnar in en textimatningsruta eller en filuppladdning
Introductory NuSMV exercise
The goal of these exercises is to make you familiar with NuSMV.
See the lecture slides Download lecture slides for more information on the exercises. If you like, you can watch the following lecture video that walks you through the example problem (vending machine):
This is an individual exercise; the goal is that everyone masters the basics of NuSMV before continuing in your group with Part 3, Project.
How to upload
You can upload the final .smv file as a text file. Comments can be written in lines starting with --.
Vending machine
Start with vending1.smv. Download vending1.smv.
- Use NuSMV on vending1.smv .
- Study error trace. Copy it as a multi-line comment to the bottom of the model, and add explanations.
- Refine transition ( case condition). The new model should have no property violations anymore.
- Study error trace. Copy it as a multi-line comment to the bottom of the model, and add explanations.
- Counting remaining items.
- Add a counter n_items (see above).
- Write LTL or CTL properties for these three new properties:
- Number of items should always be ≥0.
- Payment should only be accepted if number of items > 0.
- If an item is dispensed, the counter of items is always reduced by 1.
- Ensure your model fulfills all properties.
Upload the commented source file with your solution.