[If Converter] Convert recursion to iteration.