Count to Ten
In this exercise we will model a simple counter.
Variables
The spec should contain a single variable i.
Initial State
Initially the value of i should be 0.
Transitions
- If the value of
iis less than10then transitionitoi + 1. - If the value of
iis10then resetito0.