P(s) ≡ ‹ await s > 0 → s := s-1 › V(s) ≡ ‹ s := s+1 ›
nP ≤ nV + initValue s = initValue + nV - nP SEM: s ≥ 0
{R and B} S {Q} {R} ‹await B → S › {Q}
(R and s > 0) ⇒ Qss-1 {R} P(s) {Q}
R ⇒ Qss+1 {R} V(s) {Q}
2012 Prabhaker Mateti