Mercurial > hg > Members > nobuyasu > Spin
view Samples/App.F.fserver.h @ 2:a2dac3fa7383 draft default tip
add Makefile
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 29 Jun 2012 06:22:47 +0900 |
parents | 86e67be8bc5f |
children |
line wrap: on
line source
/* * File Server Validation Model */ proctype fserver(bit n) { end: do :: ses_to_fsrv[n]?create -> /* incoming */ if :: fsrv_to_ses[n]!reject :: fsrv_to_ses[n]!accept -> do :: ses_to_fsrv[n]?data :: ses_to_fsrv[n]?eof -> break :: ses_to_fsrv[n]?close -> break od fi :: ses_to_fsrv[n]?open -> /* outgoing */ if :: fsrv_to_ses[n]!reject :: fsrv_to_ses[n]!accept -> do :: fsrv_to_ses[n]!data -> progress: skip :: ses_to_fsrv[n]?close -> break :: fsrv_to_ses[n]!eof -> break od fi od }