To demonstrate non-inferiority of SAR341402 versus NovoLog/NovoRapid in glycated hemoglobin A1c (HbA1c) change from baseline to Week 26 in patients with type 1 or type 2 diabetes mellitus (T1DM or T2DM) also using Lantus®.