// A counter whose declared range its steps leave, to check how a range check is reported.
struct State {
x: 0..3,
}
impl State {
action init() -> State {
State { x: 0 }
}
action next(self) -> State {
self with { x = self.x + 1 }
}
}
model m {
init = State::init;
next = State::next;
}