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:
|
2021-04-21 14:44:32 +00:00
|
|
|
// codeDepositCost: 256400
|
2021-02-11 08:46:25 +00:00
|
|
|
// executionCost: 300
|
2021-04-21 14:44:32 +00:00
|
|
|
// totalCost: 256700
|
2019-05-06 16:55:10 +00:00
|
|
|
// external:
|
2021-04-13 07:34:23 +00:00
|
|
|
// a(): 2283
|
|
|
|
// b(uint256): 4937
|
2021-01-14 12:02:14 +00:00
|
|
|
// f0(uint256): 366
|
2021-04-13 07:34:23 +00:00
|
|
|
// f1(uint256): 47006
|
|
|
|
// f2(uint256): 24972
|
|
|
|
// f3(uint256): 25060
|
|
|
|
// f4(uint256): 25038
|
|
|
|
// f5(uint256): 25016
|
|
|
|
// f6(uint256): 24928
|
|
|
|
// f7(uint256): 24708
|
|
|
|
// f8(uint256): 24840
|
|
|
|
// f9(uint256): 24862
|
2021-01-14 12:02:14 +00:00
|
|
|
// g0(uint256): 606
|
2021-04-13 07:34:23 +00:00
|
|
|
// g1(uint256): 46718
|
|
|
|
// g2(uint256): 24706
|
|
|
|
// g3(uint256): 24794
|
|
|
|
// g4(uint256): 24772
|
|
|
|
// g5(uint256): 24860
|
|
|
|
// g6(uint256): 24640
|
|
|
|
// g7(uint256): 24750
|
|
|
|
// g8(uint256): 24728
|
|
|
|
// g9(uint256): 24574
|