mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove empty settings.
This commit is contained in:
parent
58d21f1e9d
commit
a2f768d29a
@ -4,6 +4,5 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// f(bytes): 0x20, 0xc0, 0x20, 0x4, 0x3, 0x4, 0x5, 0x6 -> 0x20, 0x4, 0x3, 0x4, 0x5, 0x6
|
||||
|
@ -4,6 +4,5 @@ contract C {
|
||||
return (a[i], b[j][k]);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(uint16[3],uint16[2][3],uint256,uint256,uint256): 1, 2, 3, 11, 12, 21, 22, 31, 32, 1, 2, 1 -> 2, 32
|
||||
|
@ -8,6 +8,5 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// f(bytes): 0x20, 0xc0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6 -> 1, 2, 3, 4, 5, 6
|
||||
|
@ -11,6 +11,5 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// f(bytes): 0x20, 0xc0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6 -> 1, 2, 3, 4, 5, 6
|
||||
|
@ -4,6 +4,5 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// f(bytes): 0x20, 0x20, 0x21 -> 33
|
||||
|
@ -18,6 +18,5 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// f() -> 0x20, 0x8, 0x40, 0x3, 0x9, 0xa, 0xb
|
||||
|
@ -12,6 +12,5 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// f(bytes): 0x20, 0xe0, 0x20, 0x21, 0x40, 0x3, 0xa, 0xb, 0xc -> 0x20, 0x21, 0x40, 0x3, 0xa, 0xb, 0xc
|
||||
|
@ -20,7 +20,6 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// f() -> 0x20, 0x8, 0x40, 0x3, 0x9, 0xa, 0xb
|
||||
// gas irOptimized: 203310
|
||||
|
@ -22,6 +22,5 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// f() -> true
|
||||
|
@ -9,7 +9,6 @@ contract C {
|
||||
return (a, b.length, b[3], c);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(uint256,bytes,uint256): 6, 0x60, 9, 7, "abcdefg" -> 6, 7, "d", 9
|
||||
// f_external(uint256,bytes,uint256): 6, 0x60, 9, 7, "abcdefg" -> 6, 7, "d", 9
|
||||
|
@ -4,6 +4,5 @@ contract C {
|
||||
return (b.length, b[a], c);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(uint256,uint16[],uint256): 6, 0x60, 9, 7, 11, 12, 13, 14, 15, 16, 17 -> 7, 17, 9
|
||||
|
@ -19,7 +19,6 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// test(bytes): 0x20, 0x80, 0x40, 0x60, 0, 0 -> false, false
|
||||
// test(bytes): 0x20, 0xC0, 0x40, 0x80, 1, 0x42, 1, 0x42 -> false, false
|
||||
|
@ -12,6 +12,5 @@ contract C {
|
||||
return this.f("abc", "def", x);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// g() -> 3, 0x6200000000000000000000000000000000000000000000000000000000000000, 3, 0x6600000000000000000000000000000000000000000000000000000000000000, 4, 7
|
||||
|
@ -21,7 +21,6 @@ contract C {
|
||||
return (r[2], s.x, a, b, c, d);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// library: L
|
||||
// f() -> 8, 7, 1, 2, 7, 12
|
||||
|
@ -45,7 +45,6 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// f0() -> 0x20, 0x0
|
||||
// f1() -> 0x20, 0x40, 0x1, 0x2
|
||||
|
@ -28,7 +28,6 @@ contract C is B {
|
||||
return foo(new A());
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// test() -> 77
|
||||
// gas irOptimized: 119711
|
||||
|
@ -36,7 +36,6 @@ contract C is B {
|
||||
return (x, y);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// test() -> 5, 10
|
||||
// gas irOptimized: 87337
|
||||
|
@ -11,7 +11,6 @@ contract C {
|
||||
return (a, b.length, b[3], c);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(uint256,bytes,uint256): 6, 0x60, 9, 7, "abcdefg" -> 6, 7, "d", 9
|
||||
// f_external(uint256,bytes,uint256): 6, 0x60, 9, 7, "abcdefg" -> 6, 7, "d", 9
|
||||
|
@ -7,7 +7,6 @@ contract C {
|
||||
return this.f(x);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// g(uint256[][2][]): 0x20, 0x01, 0x20, 0x40, 0x60, 0x00, 0x00 -> 42
|
||||
// g(uint256[][2][]): 0x20, 0x01, 0x20, 0x00, 0x00 -> 42
|
||||
|
@ -25,7 +25,6 @@ contract C {
|
||||
return reenc ? this.f_reenc(a) : this.f(a);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// g(bool): false -> 23, 37, 71
|
||||
// g(bool): true -> 23, 37, 71
|
||||
|
@ -1,7 +1,6 @@
|
||||
contract C {
|
||||
function f(uint[] calldata) public {}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(uint256[]): 0x20, 0 ->
|
||||
// f(uint256[]): 0x20, 1 -> FAILURE
|
||||
|
@ -11,7 +11,6 @@ contract C {
|
||||
abi.encode(a);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(uint256[3][]): 0x20, 1, 0x01 -> FAILURE
|
||||
// f(uint256[3][]): 0x20, 1, 0x01, 0x02 -> FAILURE
|
||||
|
@ -19,6 +19,5 @@ contract C {
|
||||
return (b.b, this.g(b));
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f() -> 11, 11
|
||||
|
@ -10,7 +10,6 @@ contract C {
|
||||
return this.g(x);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(uint256): 0 -> 0
|
||||
// g(address): 0 -> 0 # test validation as well as sanity check #
|
||||
|
@ -10,7 +10,6 @@ contract C {
|
||||
return this.gggg(x);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(uint256): 0 -> false
|
||||
// gggg(bool): 0 -> false # test validation as well as sanity check #
|
||||
|
@ -42,7 +42,6 @@ contract C {
|
||||
return this.g16(x);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f1(bytes32): left(0) -> left(0)
|
||||
// gg1(bytes1): left(0) -> left(0) # test validation as well as sanity check #
|
||||
|
@ -16,7 +16,6 @@ contract C {
|
||||
return (this.ggg(s.f), this.h(s));
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// ffff(uint256): 0 -> 0, 0
|
||||
// ggg(function): 0 -> 0
|
||||
|
@ -42,7 +42,6 @@ contract C {
|
||||
return this.g128(x);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f8(int256): 0 -> 0
|
||||
// ggg8(int8): 0 -> 0 # test validation as well as sanity check #
|
||||
|
@ -42,7 +42,6 @@ contract C {
|
||||
return this.g128(x);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f8(uint256): 0 -> 0
|
||||
// ggg8(uint8): 0 -> 0 # test validation as well as sanity check #
|
||||
|
@ -6,6 +6,5 @@ contract C {
|
||||
return (b.length, b[a], c);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(uint256,uint16[],uint256): 6, 0x60, 9, 7, 11, 12, 13, 14, 15, 16, 17 -> 7, 17, 9
|
||||
|
@ -25,7 +25,6 @@ contract C {
|
||||
return this.f(12, b, c, 13);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// test() -> 12, 3, 4, 0x66, 5, 0x85, 13
|
||||
// f(uint256,uint16[][],uint256[2][][3],uint256): 12, 0x80, 0x220, 13, 3, 0x60, 0xC0, 0x160, 2, 85, 86, 4, 101, 102, 103, 104, 0, 0x60, 0xC0, 0x220, 1, 0, 117, 5, 0, 0, 0, 133, 0, 0, 0, 0, 0, 0, 0 -> 12, 3, 4, 0x66, 5, 0x85, 13
|
||||
|
@ -14,6 +14,5 @@ contract C {
|
||||
return this.f("abc", "def", x);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// g() -> 3, 0x6200000000000000000000000000000000000000000000000000000000000000, 3, 0x6600000000000000000000000000000000000000000000000000000000000000, 4, 7
|
||||
|
@ -8,6 +8,5 @@ contract C {
|
||||
r3 = b;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(uint256,(address,uint256[])[2],uint256): 7, 0x60, 8, 0x40, 0xE0, 0x0, 0x40, 2, 0x11, 0x12, 0x99, 0x40, 4, 0x31, 0x32, 0x34, 0x35 -> 7, 0x0, 8
|
||||
|
@ -8,6 +8,5 @@ contract C {
|
||||
r3 = b;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(uint256,(address)[2],uint256): 7, 0, 0, 8 -> 7, 0, 8
|
||||
|
@ -10,6 +10,5 @@ contract C {
|
||||
}
|
||||
function g() public returns (uint) { return 7; }
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// test() -> 7, 3
|
||||
|
@ -8,6 +8,5 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// f(bytes): 0x20, 0x80, 0x21, 0x40, 0x7, "abcdefg" -> 0x21, 0x40, 0x7, "abcdefg"
|
||||
|
@ -4,6 +4,5 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// f(bytes): 0x20, 0x80, 0x21, 0x40, 0x7, "abcdefg" -> 0x21, 0x40, 0x7, "abcdefg"
|
||||
|
@ -7,7 +7,6 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// f(bytes): 0x20, 0x80, 0x21, 0x40, 0x7, "abcdefg" -> 0x21, 0x40, 0x7, "abcdefg"
|
||||
// gas irOptimized: 135918
|
||||
|
@ -45,6 +45,5 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// callExternal() -> true
|
||||
|
@ -49,7 +49,6 @@ contract C {
|
||||
assert(keccak256(fReturnedFunctionPointer()) == keccak256(fSignatureFromLiteral()));
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// assertConsistentSelectors() ->
|
||||
// fSignatureFromLiteral() -> 0x20, 0x84, 23450202028776381066253055403048136312616272755117076566855971503345107992576, 26959946667150639794667015087019630673637144422540572481103610249216, 1725436586697640946858688965569256363112777243042596638790631055949824, 86060793054017993816230018372407419485142305772921726565498526629888, 0
|
||||
|
@ -22,6 +22,5 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// test() -> 0xa7a0d53700000000000000000000000000000000000000000000000000000000
|
||||
|
@ -36,7 +36,6 @@ contract C {
|
||||
assert(keccak256(fSignatureFromLiteralUint()) == keccak256(fPointerUint()));
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// assertConsistentSelectors() ->
|
||||
// fSignatureFromLiteralNoArgs() -> 0x20, 0x04, 12200448252684243758085936796735499259670113115893304444050964496075123064832
|
||||
|
@ -25,7 +25,6 @@ contract C {
|
||||
ar = new uint[](2);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f0() -> 0x20, 4, -34435155370463444793260793355178157075203752403645521721995013737368954863616
|
||||
// f1() -> 0x20, 0x64, -34435155370463444793260793355178157075203752403645521721995013737368954863616, 862718293348820473429344482784628181556388621521298319395315527974912, 91135606241822717681769169345594720818313984248279388438121731325952, 0
|
||||
|
@ -33,7 +33,6 @@ contract C {
|
||||
return abi.encodeWithSignature(s.b, type(uint).max, s, uint(3));
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f0() -> 0x20, 4, -34435155370463444793260793355178157075203752403645521721995013737368954863616
|
||||
// f1() -> 0x20, 0x64, -34435155370463444793260793355178157075203752403645521721995013737368954863616, 862718293348820473429344482784628181556388621521298319395315527974912, 91135606241822717681769169345594720818313984248279388438121731325952, 0
|
||||
|
@ -10,7 +10,6 @@ contract C {
|
||||
return abi.encode(c);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(bytes): 0x20, 0xA0, 0x20, 3, 0x01, 0x02, 0x03 -> 0x20, 3, 0x01, 0x02, 0x03
|
||||
// g() -> 0x20, 0xa0, 0x20, 3, 0x42, 0x21, 0x23
|
||||
|
@ -11,7 +11,6 @@ contract C {
|
||||
return abi.encode(c);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(bytes): 0x20, 0xA0, 0x20, 3, 0x01, 0x02, 0x03 -> 0x20, 3, 0x01, 0x02, 0x03
|
||||
// f(bytes): 0x20, 0x60, 0x20, 1, 0x0102030405060708090a0b0c0d0e0f1011121314 -> 0x20, 1, 0x0102030405060708090a0b0c0d0e0f1011121314
|
||||
|
@ -13,7 +13,6 @@ contract D {
|
||||
return (new C{value: 11}()).x();
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f() -> FAILURE, hex"4e487b71", 0x11
|
||||
// g(), 100 wei -> 1
|
||||
|
@ -4,7 +4,6 @@ contract C {
|
||||
return a + b;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(uint16,uint16): 65534, 0 -> 0xfffe
|
||||
// f(uint16,uint16): 65536, 0 -> FAILURE
|
||||
|
@ -30,7 +30,6 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// test_hardcode1(uint256,uint256,uint256): 2, 3, 4 -> 2417851639229258349412352
|
||||
// test_hardcode2(uint256,uint256,uint256,uint256): 3, 2, 2, 2 -> 43046721
|
||||
|
@ -10,7 +10,6 @@ contract Test {
|
||||
return data;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// set(uint24[3][]): 0x20, 0x06, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12 -> 0x06
|
||||
// gas irOptimized: 189800
|
||||
|
@ -38,7 +38,6 @@ contract c {
|
||||
}
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// storageEmpty -> 1
|
||||
// test_short() -> 1780731860627700044960722568376587075150542249149356309979516913770823710
|
||||
|
@ -15,7 +15,6 @@ contract c {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// test() -> 0
|
||||
// gas irOptimized: 157949
|
||||
|
@ -10,7 +10,6 @@ contract c {
|
||||
|
||||
bytes data;
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// getLength() -> 0
|
||||
// set(): 1, 2 -> true
|
||||
|
@ -18,7 +18,6 @@ contract C {
|
||||
return bytes8(c[1:9]);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// fromMemory(bytes): 0x20, 16, "abcdefghabcdefgh" -> "abcdefghabcdefgh"
|
||||
// fromCalldata(bytes): 0x20, 16, "abcdefghabcdefgh" -> "abcdefghabcdefgh"
|
||||
|
@ -14,7 +14,6 @@ contract C {
|
||||
return bytes32(c[0:33]);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// fromMemory(bytes): 0x20, 33, "abcdefghabcdefghabcdefghabcdefgh", "a" -> "abcdefghabcdefghabcdefghabcdefgh"
|
||||
// fromCalldata(bytes): 0x20, 33, "abcdefghabcdefghabcdefghabcdefgh", "a" -> "abcdefghabcdefghabcdefghabcdefgh"
|
||||
|
@ -16,7 +16,6 @@ contract C {
|
||||
return 42;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(uint256[][1][]): 0x20, 0x0 -> 42 # valid access stub #
|
||||
// f(uint256[][1][]): 0x20, 0x1 -> FAILURE # invalid on argument decoding #
|
||||
|
@ -13,7 +13,6 @@ contract C {
|
||||
return this.test(a, i, j);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// test(uint256[][2]): 0x20, 0x40, 0xC0, 3, 0x0A01, 0x0A02, 0x0A03, 4, 0x0B01, 0x0B02, 0x0B03, 0x0B04 -> 2
|
||||
// test(uint256[][2],uint256): 0x40, 0, 0x40, 0xC0, 3, 0x0A01, 0x0A02, 0x0A03, 4, 0x0B01, 0x0B02, 0x0B03, 0x0B04 -> 3
|
||||
|
@ -13,7 +13,6 @@ contract C {
|
||||
return this.test(a, i, j);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// test(uint256[][]): 0x20, 2, 0x40, 0xC0, 3, 0x0A01, 0x0A02, 0x0A03, 4, 0x0B01, 0x0B02, 0x0B03, 0x0B04 -> 2
|
||||
// test(uint256[][],uint256): 0x40, 0, 2, 0x40, 0xC0, 3, 0x0A01, 0x0A02, 0x0A03, 4, 0x0B01, 0x0B02, 0x0B03, 0x0B04 -> 3
|
||||
|
@ -4,7 +4,6 @@ contract C {
|
||||
return uint8(a[0][i]);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(bytes[],uint256): 0x40, 0, 1, 0x20, 2, 0x6162000000000000000000000000000000000000000000000000000000000000 -> 0x61
|
||||
// f(bytes[],uint256): 0x40, 1, 1, 0x20, 2, 0x6162000000000000000000000000000000000000000000000000000000000000 -> 0x62
|
||||
|
@ -3,7 +3,6 @@ contract C {
|
||||
return bytes.concat(a, b);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(bytes,bytes): 0x40, 0x80, 32, "abcdabcdabcdabcdabcdabcdabcdabcd", 5, "bcdef" -> 0x20, 37, "abcdabcdabcdabcdabcdabcdabcdabcd", "bcdef"
|
||||
//
|
||||
|
@ -3,7 +3,6 @@ contract C {
|
||||
return bytes.concat(a, b, c);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(bytes,bytes,bytes): 0x60, 0xa0, 0xe0, 32, "abcdabcdabcdabcdabcdabcdabcdabcd", 5, "bcdef", 3, "abc" -> 0x20, 40, "abcdabcdabcdabcdabcdabcdabcdabcd", "bcdefabc"
|
||||
// f(bytes,bytes,bytes): 0x60, 0xa0, 0xe0, 3, "abc", 2, "de", 3, "fgh" -> 0x20, 8, "abcdefgh"
|
||||
|
@ -11,7 +11,6 @@ contract C {
|
||||
return h(bytes.concat(a, b));
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(bytes,bytes): 0x40, 0x80, 32, "abcdabcdabcdabcdabcdabcdabcdabcd", 5, "bcdef" -> 0x1106e19b6f06d1cce71c2d816754f83dfa5b95df958c5cbf12b7c472320c427c
|
||||
// g(bytes,bytes): 0x40, 0x80, 32, "abcdabcdabcdabcdabcdabcdabcdabcd", 5, "bcdef" -> 37
|
||||
|
@ -3,6 +3,5 @@ contract C {
|
||||
return bytes.concat(bytes.concat(a, b), c);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(bytes,bytes,bytes): 0x60, 0x60, 0x60, 2, "ab" -> 0x20, 6, "ababab"
|
||||
|
@ -7,7 +7,6 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// constructor(): 1, 2, 3 ->
|
||||
// gas irOptimized: 142640
|
||||
|
@ -18,7 +18,6 @@ contract c {
|
||||
g = m_byte_data[3][1];
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// store(uint256[9],uint8[3][]): 21, 22, 23, 24, 25, 26, 27, 28, 29, 0x140, 4, 1, 2, 3, 11, 12, 13, 21, 22, 23, 31, 32, 33 -> 32
|
||||
// gas irOptimized: 650608
|
||||
|
@ -19,7 +19,6 @@ contract C {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f() -> true
|
||||
// gas irOptimized: 92740
|
||||
|
@ -44,7 +44,6 @@ contract C {
|
||||
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f() -> true
|
||||
// gas irOptimized: 153260
|
||||
|
@ -11,7 +11,6 @@ contract C {
|
||||
return x[3];
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f() -> 0
|
||||
// gas irOptimized: 135098
|
||||
|
@ -38,7 +38,6 @@ contract C {
|
||||
return x2[1];
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f() -> 0
|
||||
// gas irOptimized: 92800
|
||||
|
@ -17,7 +17,6 @@ contract c {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x05000000000000000000000000000000000000000000000000
|
||||
// gas irOptimized: 212564
|
||||
|
@ -33,7 +33,6 @@ contract c {
|
||||
return (small.length, large.length);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// test() -> 0x02000202
|
||||
// gas irOptimized: 4652048
|
||||
|
@ -23,7 +23,6 @@ contract C {
|
||||
return (a[0], b[1], a[2]);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f() -> 1, 3
|
||||
// g() -> 1, 2, 3
|
||||
|
@ -11,7 +11,6 @@ contract c {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// test(uint256[2][]): 32, 3, 7, 8, 9, 10, 11, 12 -> 10
|
||||
// gas irOptimized: 690203
|
||||
|
@ -16,6 +16,5 @@ contract c {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// test() -> 0x20, 0x8, -1, -1, 8, -16, -2, 6, 8, -1
|
||||
|
@ -15,7 +15,6 @@ contract c {
|
||||
y = data2[4];
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// test() -> 5, 4
|
||||
// gas irOptimized: 225954
|
||||
|
@ -12,7 +12,6 @@ contract c {
|
||||
len = data2.length; if (index < len) val = data2[index];
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// setData1(uint256,uint256,uint256): 10, 5, 4 ->
|
||||
// copyStorageStorage() ->
|
||||
|
@ -16,7 +16,6 @@ contract c {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// test() -> 5, 4
|
||||
// gas irOptimized: 272736
|
||||
|
@ -10,7 +10,6 @@ contract c {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// test() -> 9, 4
|
||||
// gas irOptimized: 123162
|
||||
|
@ -15,7 +15,6 @@ contract c {
|
||||
data2 = data1;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// test() -> 4, 5
|
||||
// gas irOptimized: 238799
|
||||
|
@ -6,6 +6,5 @@ contract C {
|
||||
return (b[0], b.length);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f() -> 1, 3
|
||||
|
@ -13,7 +13,6 @@ contract C {
|
||||
return m;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f() -> 0x20, 2, 0x40, 0xa0, 2, 0, 1, 2, 2, 3
|
||||
// gas irOptimized: 161780
|
||||
|
@ -29,7 +29,6 @@ contract c {
|
||||
return (a4[0][0] + a4[1][1]);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// test1(uint256[][]): 0x20, 2, 0x40, 0x40, 2, 23, 42 -> 2, 65
|
||||
// test2(uint256[][2]): 0x20, 0x40, 0x40, 2, 23, 42 -> 2, 65
|
||||
|
@ -36,7 +36,6 @@ contract Test {
|
||||
return a[0][0] + a[1][0] + a[2][1];
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// test() -> 24
|
||||
// gas irOptimized: 227133
|
||||
|
@ -43,7 +43,6 @@ contract C {
|
||||
internalArray0[2] == internalArray1[2];
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// copyExternalStorageArrayOfFunctionType() -> true
|
||||
// gas irOptimized: 104659
|
||||
|
@ -46,7 +46,6 @@ contract C {
|
||||
internalArray0[2] == internalArray1[2];
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// copyExternalStorageArraysOfFunctionType() -> true
|
||||
// gas irOptimized: 104332
|
||||
|
@ -15,7 +15,6 @@ contract C {
|
||||
return (m[2].a, m[1].b, m[0].c);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f((uint128,uint64,uint128)[3]): 0, 0, 12, 0, 11, 0, 10, 0, 0 -> 10, 11, 12
|
||||
// g((uint128,uint64,uint128)[]): 0x20, 3, 0, 0, 12, 0, 11, 0, 10, 0, 0 -> 10, 11, 12
|
||||
|
@ -17,6 +17,5 @@ contract C {
|
||||
return (s[1].a.length, s[1].a[0]);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f((uint256[])[]): 0x20, 3, 0x60, 0x60, 0x60, 0x20, 3, 1, 2, 3 -> 3, 1
|
||||
|
@ -8,7 +8,6 @@ contract Test {
|
||||
return data;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// set(uint24[]): 0x20, 18, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 -> 18
|
||||
// gas irOptimized: 99616
|
||||
|
@ -3,6 +3,5 @@ contract C {
|
||||
return string(c);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(bytes): 0x20, 3, "abc" -> 0x20, 3, "abc"
|
||||
|
@ -3,7 +3,6 @@ contract c {
|
||||
function copy(uint from, uint to) public returns (bool) { data[to] = data[from]; return true; }
|
||||
mapping(uint => bytes) data;
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// set(uint256): 1, 2 -> true
|
||||
// gas irOptimized: 110604
|
||||
|
@ -14,7 +14,6 @@ contract c {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(uint256): 0 -> 0x20, 0x00
|
||||
// f(uint256): 31 -> 0x20, 0x1f, 0x0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e00
|
||||
|
@ -8,6 +8,5 @@ contract C {
|
||||
return g(c);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(bytes[2]): 0x20, 0x40, 0x40, 2, "ab" -> 0x20, 2, "ab"
|
||||
|
@ -11,7 +11,6 @@ contract C {
|
||||
g(c);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(bytes[2]): 0x20, 0x40, 0x40, 2, "ab" ->
|
||||
// f(bytes[2]): 0x20, 0x40, 0x40, 1, "a" -> FAILURE, hex"4e487b71", 0x01
|
||||
|
@ -7,7 +7,6 @@ contract C {
|
||||
return s[0];
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(uint256[]): 0x20, 0x03, 0x1, 0x2, 0x3 -> 0x1
|
||||
// gas irOptimized: 111159
|
||||
|
@ -21,6 +21,5 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// f((uint256,uint256)[]): 0x20, 0x2, 0x1, 0x2, 0x3, 0x4 -> 2, 1, 2, 3, 4
|
||||
|
@ -10,7 +10,6 @@ contract C {
|
||||
return (a.length, m.length, m);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(bytes[]): 0x20, 0x1, 0x20, 0x2, hex"6162000000000000000000000000000000000000000000000000000000000000" -> 0x1, 0x2, 0x60, 0x2, hex"6162000000000000000000000000000000000000000000000000000000000000"
|
||||
// f(bytes[]): 0x20, 0x1, 0x20, 0x20, hex"7878787878787878787878787878787878787878787878787878787878787878" -> 0x1, 0x20, 0x60, 0x20, hex"7878787878787878787878787878787878787878787878787878787878787878"
|
||||
|
@ -5,6 +5,5 @@ contract C {
|
||||
return c;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(bytes[]): 0x20, 2, 0x60, 0x60, 0x20, 2, "ab" -> 0x20, 2, 0x40, 0x80, 2, "ab", 2, "ab"
|
||||
|
@ -11,6 +11,5 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// f(uint256[][]): 0x20, 0x1, 0x20, 0x2, 0x17, 0x2a -> 0x1, 0x40, 0x2, 0x17, 0x2a
|
||||
|
@ -8,6 +8,5 @@ contract Test {
|
||||
return shouldBug(weapon);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// killer(uint256[][2]): 0x20, 0x40, 0x40, 2, 1, 2 -> 0x20, 0x20, 0x40, 0xa0, 2, 1, 2, 2, 1, 2
|
||||
|
@ -7,6 +7,5 @@ contract C {
|
||||
return (s.length, s[0], s[1], s[2]);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(bytes8[]): 0x20, 3, "abcd", "bcde", "cdef" -> 3, "abcd", "bcde", "cdef"
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user