/** Concurrency: State Models and Java Programs
 *             Jeff Magee and Jeff Kramer
 *  
 */

TWOCOIN = (pick->COIN|pick->TRICK),
TRICK   = (toss->heads->TRICK),
COIN    = (toss->heads->COIN|toss->tails->COIN).

compose ||TC = TWOCOIN.

||RUN = TC.

progress HEADS = {heads}
progress TAILS = {tails}
progress HEADSorTAILS = {heads,tails}
