2019-05-06 16:55:10 +00:00
|
|
|
contract Medium {
|
|
|
|
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 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); }
|
|
|
|
}
|
|
|
|
// ====
|
|
|
|
// optimize: true
|
|
|
|
// optimize-runs: 2
|
|
|
|
// ----
|
2019-05-06 12:31:49 +00:00
|
|
|
// creation:
|
2019-04-16 11:14:13 +00:00
|
|
|
// codeDepositCost: 140800
|
|
|
|
// executionCost: 183
|
|
|
|
// totalCost: 140983
|
2019-05-06 16:55:10 +00:00
|
|
|
// external:
|
|
|
|
// a(): 398
|
|
|
|
// b(uint256): 863
|
2019-04-16 11:14:13 +00:00
|
|
|
// f1(uint256): 40654
|
|
|
|
// f2(uint256): 20698
|
|
|
|
// f3(uint256): 20742
|
2019-05-06 16:55:10 +00:00
|
|
|
// g0(uint256): 332
|
2019-04-16 11:14:13 +00:00
|
|
|
// g7(uint256): 20608
|
|
|
|
// g8(uint256): 20586
|
|
|
|
// g9(uint256): 20542
|