Implemented print_ir