add print predecessor and successor information for each IR node