states = {
  'b/undefined': [[p0], 'b'],
  'b/0': [[r,r,p1], 'b'],
  'b/1': [[r,r,p0], 'b']
}
machine.state = 'b'
