added if without else in IR