Changed hasLabelBeforeStatement to pred function