bb_terminated
if (active && !bb_terminated(active)) { // missing return
if (!bb_terminated(bb))
if (!bb_terminated(ep->active))