An algorithmic look at phase-controlled branching processes