Translating RSML to SMV
MODULE mainVAR
state:{ON,OFF};
on_event: boolean;
off_event: boolean;
ASSIGN
init(state) := OFF;
next(state) := case state = ON & off_event: OFF;
state = OFF & on_event: ON; 1 : state;
esac;
Previous slide
Next slide
Back to first slide
View graphic version