Classification of generic integral diagrams and first order ordinary differential equations