view a13/smv/test7.smv @ 407:c7ad8d2dc157

safe halt.agda
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 09 Nov 2023 18:04:55 +0900
parents 0e8a0e50ed26
children
line wrap: on
line source

MODULE main
VAR
  request : boolean;
state : {ready,busy}; ASSIGN
  init(state) := ready;
  next(state) := case
                   state = ready & request : busy;
TRUE : {ready,busy}; esac;