Phase Transitions in Logic Networks