draw UML diagram of new IR