Mercurial > hg > Members > nobuyasu > Spin
view Samples/p330.pml @ 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
/* * PROMELA Validation Model * FLOW CONTROL LAYER VALIDATION */ #define LOSS 0 /* message loss */ #define DUPS 0 /* duplicate msgs */ #define QSZ 2 /* queue size */ mtype = { red, white, blue, abort, accept, ack, sync_ack, close, connect, create, data, eof, open, reject, sync, transfer, FATAL, NON_FATAL, COMPLETE } chan ses_to_flow[2] = [QSZ] of { byte, byte }; chan flow_to_ses[2] = [QSZ] of { byte, byte }; chan dll_to_flow[2] = [QSZ] of { byte, byte }; chan flow_to_dll[2]; #include "App.F.flow_cl.h" #include "p327.upper.h" init { atomic { flow_to_dll[0] = dll_to_flow[1]; flow_to_dll[1] = dll_to_flow[0]; run fc(0); run fc(1); run upper() } }