auto-generated-by: csdfparallel -sync 'insert;showAvailable;showPurchasable;choose;drop' examples/bmc/user_formal.puml examples/bmc/vending_machine_formal.puml
(userChoosing, vmWaitingChoosing)
product ; Product
availableProducts ; ProductSet
coins ; CoinSet
(userGonnaBuy, vmIdle)
product ; Product
availableProducts ; ProductSet
(userGonnaBuy, vmWaitingChoosing)
product ; Product
availableProducts ; ProductSet
coins ; CoinSet
(userIdle, vmIdle)
wanted ; ProductSet
availableProducts ; ProductSet
(userPaying, vmCoinsInserted)
product ; Product
availableProducts ; ProductSet
coins ; CoinSet
(userWaiting, vmDropping)
availableProducts ; ProductSet
dispensing ; Product
channel choose : Product
channel drop : Product
channel insert : Coin
channel showAvailable : ProductSet
channel showPurchasable : ProductSet
Change:
wanted
after
is empty
availableProducts
after
are products initially in the vending machine
Event:
choose!
product
Condition:
availableProducts
before
contains
product
event
Change:
dispensing
after
is
product
event
Event:
insert?
coin
Change:
product
after
is
product
before
coins
after
is the set of
coin
event
availableProducts
after
is
availableProducts
before
Event:
insert?
coin
Change:
product
after
is
product
before
coins
after
is
coins
before
with
coin
event
added
availableProducts
after
is
availableProducts
before
Event:
showPurchasable?
products
Condition:
products
event
does not contain
product
before
Change:
product
after
is
product
before
availableProducts
after
is
availableProducts
before
coins
after
is
coins
before
Event:
showAvailable!
availableProducts
Condition:
availableProducts
event
and
wanted
before
have overlap
Change:
product
after
is one of the overlap between
availableProducts
event
and
wanted
before
availableProducts
after
is
availableProducts
event
Event:
tau
Change:
wanted
after
is non-empty
Kept:
availableProducts
Event:
showPurchasable?
products
Condition:
products
event
contains
product
before
Change:
product
after
is
product
before
availableProducts
after
is
availableProducts
before
coins
after
is
coins
before
Event:
drop?
product
Condition:
product
event
is
dispensing
before
Change:
wanted
after
is empty
availableProducts
after
is
availableProducts
before
minus
product
event