2018-12-06 11:32:32 +00:00
|
|
|
contract Large {
|
|
|
|
uint public a;
|
|
|
|
uint[] public b;
|
|
|
|
function f1(uint x) public returns (uint) { a = x; b[uint8(msg.data[0])] = x; }
|
|
|
|
function f2(uint x) public returns (uint) { b[uint8(msg.data[1])] = x; }
|
|
|
|
function f3(uint x) public returns (uint) { b[uint8(msg.data[2])] = x; }
|
|
|
|
function f4(uint x) public returns (uint) { b[uint8(msg.data[3])] = x; }
|
|
|
|
function f5(uint x) public returns (uint) { b[uint8(msg.data[4])] = x; }
|
|
|
|
function f6(uint x) public returns (uint) { b[uint8(msg.data[5])] = x; }
|
|
|
|
function f7(uint x) public returns (uint) { b[uint8(msg.data[6])] = x; }
|
|
|
|
function f8(uint x) public returns (uint) { b[uint8(msg.data[7])] = x; }
|
|
|
|
function f9(uint x) public returns (uint) { b[uint8(msg.data[8])] = x; }
|
|
|
|
function f0(uint x) public pure returns (uint) { require(x > 10); }
|
|
|
|
function g1(uint x) public payable returns (uint) { a = x; b[uint8(msg.data[0])] = x; }
|
|
|
|
function g2(uint x) public payable returns (uint) { b[uint8(msg.data[1])] = x; }
|
|
|
|
function g3(uint x) public payable returns (uint) { b[uint8(msg.data[2])] = x; }
|
|
|
|
function g4(uint x) public payable returns (uint) { b[uint8(msg.data[3])] = x; }
|
|
|
|
function g5(uint x) public payable returns (uint) { b[uint8(msg.data[4])] = x; }
|
|
|
|
function g6(uint x) public payable returns (uint) { b[uint8(msg.data[5])] = x; }
|
|
|
|
function g7(uint x) public payable returns (uint) { b[uint8(msg.data[6])] = x; }
|
|
|
|
function g8(uint x) public payable returns (uint) { b[uint8(msg.data[7])] = x; }
|
|
|
|
function g9(uint x) public payable returns (uint) { b[uint8(msg.data[8])] = x; }
|
|
|
|
function g0(uint x) public payable returns (uint) { require(x > 10); }
|
|
|
|
}
|
2019-05-06 16:55:10 +00:00
|
|
|
// ====
|
|
|
|
// optimize: true
|
|
|
|
// optimize-runs: 2
|
|
|
|
// ----
|
2019-05-06 12:31:49 +00:00
|
|
|
// creation:
|
2020-12-02 13:15:26 +00:00
|
|
|
// codeDepositCost: 270600
|
|
|
|
// executionCost: 312
|
|
|
|
// totalCost: 270912
|
2019-05-06 16:55:10 +00:00
|
|
|
// external:
|
2020-12-02 13:15:26 +00:00
|
|
|
// a(): 1028
|
|
|
|
// b(uint256): 2370
|
|
|
|
// f0(uint256): 399
|
|
|
|
// f1(uint256): 41539
|
|
|
|
// f2(uint256): 21605
|
|
|
|
// f3(uint256): 21693
|
|
|
|
// f4(uint256): 21671
|
|
|
|
// f5(uint256): 21649
|
|
|
|
// f6(uint256): 21561
|
|
|
|
// f7(uint256): 21341
|
|
|
|
// f8(uint256): 21473
|
|
|
|
// f9(uint256): 21495
|
|
|
|
// g0(uint256): 639
|
|
|
|
// g1(uint256): 41251
|
|
|
|
// g2(uint256): 21339
|
|
|
|
// g3(uint256): 21427
|
|
|
|
// g4(uint256): 21405
|
|
|
|
// g5(uint256): 21493
|
|
|
|
// g6(uint256): 21273
|
|
|
|
// g7(uint256): 21383
|
|
|
|
// g8(uint256): 21361
|
|
|
|
// g9(uint256): 21207
|