contract C { uint public i; constructor(uint newI) { i = newI; } } contract D { C c; constructor(uint v) { c = new C(v); } function f() public returns (uint r) { return c.i(); } } // ---- // constructor(): 2 -> // gas irOptimized: 193999 // gas legacy: 241234 // gas legacyOptimized: 192961 // f() -> 2