mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove empty settings.
This commit is contained in:
@@ -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
|
||||
|
||||
-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() ->
|
||||
|
||||
-1
@@ -16,7 +16,6 @@ contract c {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// test() -> 5, 4
|
||||
// gas irOptimized: 272736
|
||||
|
||||
-1
@@ -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
|
||||
|
||||
-1
@@ -43,7 +43,6 @@ contract C {
|
||||
internalArray0[2] == internalArray1[2];
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// copyExternalStorageArrayOfFunctionType() -> true
|
||||
// gas irOptimized: 104659
|
||||
|
||||
-1
@@ -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
|
||||
|
||||
-1
@@ -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"
|
||||
|
||||
@@ -33,7 +33,6 @@ contract C {
|
||||
return (data.a, data.b);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f() -> 0x40, 0x80, 6, 0x6162636465660000000000000000000000000000000000000000000000000000, 0x49, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738390000000000000000000000000000000000000000000000
|
||||
// gas irOptimized: 179895
|
||||
|
||||
@@ -44,7 +44,6 @@ contract C {
|
||||
return 0xff;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f() -> 0xff
|
||||
// gas irOptimized: 121123
|
||||
|
||||
@@ -14,7 +14,6 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// test() -> 7
|
||||
// gas irOptimized: 124034
|
||||
|
||||
@@ -5,7 +5,6 @@ contract c {
|
||||
bytes data1;
|
||||
bytes data2;
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// set(): 1, 2, 3, 4, 5 -> true
|
||||
// gas irOptimized: 177386
|
||||
|
||||
@@ -22,7 +22,6 @@ contract C {
|
||||
return data[0];
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// fromMemory() -> 0x00
|
||||
// fromCalldata(bytes): 0x40, 0x60, 0x00, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff -> 0x00
|
||||
|
||||
@@ -16,7 +16,6 @@ contract C {
|
||||
return s.length;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f() -> 3
|
||||
// gas irOptimized: 129910
|
||||
|
||||
@@ -11,6 +11,5 @@ contract C {
|
||||
return (s.length, s[0], s[1], s[2]);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f() -> 3, "abcd", "bcde", "cdef"
|
||||
|
||||
@@ -15,7 +15,6 @@ contract C {
|
||||
return (m[0][0], m[0][3], m[1][1], m[1][4], m[2][0], m[3][2], m[3][3]);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f() -> 1, 2, 3, 4, 5, 6, 7
|
||||
// gas irOptimized: 207781
|
||||
|
||||
@@ -9,7 +9,6 @@ contract C {
|
||||
return m;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f() -> 0x20, 0x02, 0x40, 0x80, 3, 0x6162630000000000000000000000000000000000000000000000000000000000, 0x99, 44048183304486788312148433451363384677562265908331949128489393215789685032262, 32241931068525137014058842823026578386641954854143559838526554899205067598957, 49951309422467613961193228765530489307475214998374779756599339590522149884499, 0x54555658595a6162636465666768696a6b6c6d6e6f707172737475767778797a, 0x4142434445464748494a4b4c4d4e4f5051525354555658595a00000000000000
|
||||
// gas irOptimized: 202840
|
||||
|
||||
@@ -16,7 +16,6 @@ contract C {
|
||||
return (m[0][0], m[0][3], m[1][1], m[1][4], m[2][0], m[3][2], m[3][3]);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f() -> 1, 2, 3, 4, 5, 6, 7
|
||||
// gas irOptimized: 207781
|
||||
|
||||
@@ -22,7 +22,6 @@ contract C {
|
||||
);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f() -> 11, 0x0c, 1, 0x15, 22, 4
|
||||
// gas irOptimized: 291848
|
||||
|
||||
@@ -11,7 +11,6 @@ contract C {
|
||||
return (m[0], m[16], m[32]);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f() -> 2, 3, 4
|
||||
// gas irOptimized: 114114
|
||||
|
||||
@@ -3,6 +3,5 @@ contract C {
|
||||
return bytes(s);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(string): 0x20, 3, "abc" -> 0x20, 3, "abc"
|
||||
|
||||
@@ -16,7 +16,6 @@ contract C {
|
||||
return (x[199], y[203][1], z[170].a[1], z[170].b[99]);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f() -> "A", 8, 4, "B"
|
||||
// gas irOptimized: 130592
|
||||
|
||||
@@ -6,6 +6,5 @@ contract C {
|
||||
return (x[34]);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f() -> "A"
|
||||
|
||||
@@ -14,7 +14,6 @@ contract c {
|
||||
uint8(data[97]) == 97;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// test1() -> true
|
||||
// gas irOptimized: 225890
|
||||
|
||||
@@ -30,7 +30,6 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// f() -> 0
|
||||
// g() -> 0
|
||||
|
||||
@@ -11,6 +11,5 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// len() -> 0
|
||||
|
||||
@@ -16,6 +16,5 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// f() -> true # This code interprets x as an array length and thus will go out of gas. neither of the two should throw due to out-of-bounds access #
|
||||
|
||||
@@ -3,7 +3,6 @@ contract c {
|
||||
function del() public returns (bool) { delete data; return true; }
|
||||
bytes data;
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// (): 7 ->
|
||||
// storageEmpty -> 0
|
||||
|
||||
@@ -33,7 +33,6 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// len() -> 0
|
||||
// val() -> 0
|
||||
|
||||
@@ -12,7 +12,6 @@ contract C {
|
||||
return (data[0], data[1], data[2]);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f() -> 0, 0, 0
|
||||
// gas irOptimized: 90992
|
||||
|
||||
@@ -9,6 +9,5 @@ contract Test {
|
||||
return x;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// del() -> 0, 1, 2, 0, 0, 0, 0x20, 0x21, 0x22, 0x30, 0x31, 0
|
||||
|
||||
@@ -11,7 +11,6 @@ contract c {
|
||||
}
|
||||
function fullClear() public { delete dynamic; }
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// storageEmpty -> 1
|
||||
// fill() ->
|
||||
|
||||
@@ -39,7 +39,6 @@ contract c {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// getLengths() -> 0, 0
|
||||
// setLengths(uint256,uint256): 48, 49 ->
|
||||
|
||||
@@ -13,7 +13,6 @@ contract c {
|
||||
}
|
||||
function clear() public { delete data; }
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// storageEmpty -> 1
|
||||
// fill() -> 8
|
||||
|
||||
@@ -20,7 +20,6 @@ contract c {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// length() -> 0
|
||||
// get(uint256): 3 -> FAILURE, hex"4e487b71", 0x32
|
||||
|
||||
@@ -12,7 +12,6 @@ contract A {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// test() -> false
|
||||
// testIt() -> FAILURE, hex"4e487b71", 0x32
|
||||
|
||||
@@ -17,7 +17,6 @@ contract B {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// f() -> 2, 3, 4, 5, 6, 1000, 1001, 1002, 1003, 1004
|
||||
// gas irOptimized: 127910
|
||||
|
||||
@@ -7,7 +7,6 @@ contract Creator {
|
||||
ch = s[2];
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// constructor(): 1, 2, 3, 4 ->
|
||||
// gas irOptimized: 129013
|
||||
|
||||
@@ -41,7 +41,6 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// test() -> 5, 6, 7
|
||||
// gas irOptimized: 292502
|
||||
|
||||
-1
@@ -7,6 +7,5 @@ contract Test {
|
||||
e = _data[a][b];
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// set(uint24[3][],uint256,uint256): 0x60, 0x03, 0x02, 0x06, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12 -> 0x06, 0x0c
|
||||
|
||||
@@ -19,7 +19,6 @@ contract c {
|
||||
return uint(uint8(data[30])) * 0x100 | uint(uint8(data[31])) * 0x10 | uint(uint8(data[32]));
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// direct(bytes,uint256): 0x40, 33, 34, 0x000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F, left(0x2021) -> 0x21
|
||||
// storageCopyRead(bytes,uint256): 0x40, 33, 34, 0x000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F, left(0x2021) -> 0x21
|
||||
|
||||
@@ -11,6 +11,5 @@ contract Main {
|
||||
return _s1;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(bytes,uint256,uint256,uint256): 0x80, 3, 4, 5, 78, "abcdefghijklmnopqrstuvwxyzabcdef", "ghijklmnopqrstuvwxyzabcdefghijkl", "mnopqrstuvwxyz" -> "d", "e", "f"
|
||||
|
||||
@@ -7,6 +7,5 @@ contract Test {
|
||||
c = _data[i];
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// set(bytes,uint256): 0x40, 0x03, 0x08, "abcdefgh" -> 0x08, "d"
|
||||
|
||||
@@ -11,7 +11,6 @@ contract C {
|
||||
return uint256(uint8(data[0][4]));
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(bytes32): "789" -> "9"
|
||||
// g(bytes32): "789" -> 0x35
|
||||
|
||||
-1
@@ -15,6 +15,5 @@ contract Test {
|
||||
return set(data)[1];
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f() -> 0x20, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x07
|
||||
|
||||
@@ -23,7 +23,6 @@ contract C {
|
||||
function arrayPushEmpty() public { x.push(); }
|
||||
function del() public { delete x; }
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// x() -> 0x20, 3, 0x6162630000000000000000000000000000000000000000000000000000000000
|
||||
// abiEncode() -> 0x20, 3, 0x6162630000000000000000000000000000000000000000000000000000000000
|
||||
|
||||
@@ -10,7 +10,6 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// h(uint256[4]): 1, 2, 3, 4 -> 10
|
||||
// i(uint256[4]): 1, 2, 3, 4 -> 20
|
||||
|
||||
@@ -11,7 +11,6 @@ contract C {
|
||||
return rows[n][k - 1];
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// f(uint256,uint256): 3, 1 -> 1
|
||||
// f(uint256,uint256): 9, 5 -> 70
|
||||
|
||||
@@ -11,6 +11,5 @@ contract c {
|
||||
l = data.length;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// test() -> 1, 0
|
||||
|
||||
@@ -21,7 +21,6 @@ contract c {
|
||||
delete inner;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// test() -> 1, 2, 3
|
||||
// gas irOptimized: 2271044
|
||||
|
||||
@@ -5,7 +5,6 @@ contract c {
|
||||
data.pop();
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// test() ->
|
||||
// storageEmpty -> 1
|
||||
|
||||
@@ -16,7 +16,6 @@ contract c {
|
||||
data.pop();
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// test() -> 38, 28, 18
|
||||
// gas irOptimized: 188649
|
||||
|
||||
@@ -16,7 +16,6 @@ contract c {
|
||||
data.pop();
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// test() -> 20, 10
|
||||
// gas irOptimized: 159169
|
||||
|
||||
@@ -8,7 +8,6 @@ contract c {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// test() -> 0x20, 29, 0x0303030303030303030303030303030303030303030303030303030303000000
|
||||
// gas irOptimized: 109499
|
||||
|
||||
@@ -14,7 +14,6 @@ contract c {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// test() -> true
|
||||
// gas irOptimized: 196541
|
||||
|
||||
-1
@@ -13,7 +13,6 @@ contract c {
|
||||
}
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// ----
|
||||
// test() ->
|
||||
// gas irOptimized: 142639
|
||||
|
||||
@@ -8,7 +8,6 @@ contract c {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// ----
|
||||
// test() -> 0x20, 33, 0x303030303030303030303030303030303030303030303030303030303030303, 0x0300000000000000000000000000000000000000000000000000000000000000
|
||||
// gas irOptimized: 108487
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user