adds branch decisions for passed program flags