SLIDE 29 15-Oct-11 Copyleft (GPL) P.H.Welch and J.B.Pedersen 29
What’s happening with the sizes? What What’ ’s happening with the sizes? s happening with the sizes?
VERIFY PROC VERIFY PROC Chain Chain ( (VAL VERIFY VAL VERIFY INT INT length length, ,
assume >= 1 BARRIER BARRIER eatBarRight eatBarRight, , eatBarLeft eatBarLeft) ) IF IF length = 1 length = 1 PhilFork PhilFork. . ( (eatBarRight eatBarRight, , eatBarLeft eatBarLeft) ) TRUE TRUE NORMALISE NORMALISE BARRIER BARRIER eatBarMiddle eatBarMiddle: : PAR PAR Chain Chain ( (length length – – 1 1, , eatBarRight eatBarRight, , eatBarMiddle eatBarMiddle) ) PhilFork PhilFork. . ( (eatBarMiddle eatBarMiddle, , eatBarLeft eatBarLeft) ) : : VERIFY SIZE VERIFY SIZE Chain Chain ( (1 1, , _ _, , _ _) ) VERIFY SIZE VERIFY SIZE Chain Chain ( (2 2, , _ _, , _ _) ) VERIFY SIZE VERIFY SIZE Chain Chain ( (3 3, , _ _, , _ _) ) VERIFY SIZE VERIFY SIZE Chain Chain ( (4 4, , _ _, , _ _) ) VERIFY SIZE VERIFY SIZE Chain Chain ( (5 5, , _ _, , _ _) ) VERIFY PROC VERIFY PROC Chain Chain ( (VAL VERIFY VAL VERIFY INT INT length length, ,
assume >= 1 BARRIER BARRIER eatBarRight eatBarRight, , eatBarLeft eatBarLeft) ) IF IF length = 1 length = 1 PhilFork PhilFork. . ( (eatBarRight eatBarRight, , eatBarLeft eatBarLeft) ) TRUE TRUE NORMALISE NORMALISE BARRIER BARRIER eatBarMiddle eatBarMiddle: : PAR PAR Chain Chain ( (length length – – 1 1, , eatBarRight eatBarRight, , eatBarMiddle eatBarMiddle) ) PhilFork PhilFork. . ( (eatBarMiddle eatBarMiddle, , eatBarLeft eatBarLeft) ) : : VERIFY SIZE VERIFY SIZE Chain Chain ( (1 1, , _ _, , _ _) ) --
- -> 3 states, 4 transitions
> 3 states, 4 transitions VERIFY SIZE VERIFY SIZE Chain Chain ( (2 2, , _ _, , _ _) ) --
- -> 4 states, 8 transitions
> 4 states, 8 transitions VERIFY SIZE VERIFY SIZE Chain Chain ( (3 3, , _ _, , _ _) ) --
- -> 4 states, 8 transitions
> 4 states, 8 transitions VERIFY SIZE VERIFY SIZE Chain Chain ( (4 4, , _ _, , _ _) ) --
- -> 1 state, 2 transitions
> 1 state, 2 transitions VERIFY SIZE VERIFY SIZE Chain Chain ( (5 5, , _ _, , _ _) ) --
- -> 1 state, 2 transitions
> 1 state, 2 transitions