ir_new_ir_flat function

Creates an object of class ir_flat