mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Test updates.
This commit is contained in:
parent
7a84e9c875
commit
5989f45e9e
@ -23,5 +23,5 @@ contract C {
|
||||
// ----
|
||||
// f() -> 0x20, 0x8, 0x40, 0x3, 0x9, 0xa, 0xb
|
||||
// gas irOptimized: 203172
|
||||
// gas legacy: 206075
|
||||
// gas legacyOptimized: 203059
|
||||
// gas legacy: 206343
|
||||
// gas legacyOptimized: 203162
|
||||
|
@ -10,5 +10,5 @@ contract C {
|
||||
// ----
|
||||
// f(bytes): 0x20, 0x80, 0x21, 0x40, 0x7, "abcdefg" -> 0x21, 0x40, 0x7, "abcdefg"
|
||||
// gas irOptimized: 135787
|
||||
// gas legacy: 137181
|
||||
// gas legacyOptimized: 136073
|
||||
// gas legacy: 137377
|
||||
// gas legacyOptimized: 136125
|
||||
|
@ -14,6 +14,6 @@ contract c {
|
||||
// getLength() -> 0
|
||||
// set(): 1, 2 -> true
|
||||
// gas irOptimized: 110402
|
||||
// gas legacy: 110723
|
||||
// gas legacyOptimized: 110564
|
||||
// gas legacy: 110968
|
||||
// gas legacyOptimized: 110585
|
||||
// getLength() -> 68
|
||||
|
@ -6,12 +6,12 @@ contract c {
|
||||
// ----
|
||||
// set(uint256): 1, 2 -> true
|
||||
// gas irOptimized: 110576
|
||||
// gas legacy: 111088
|
||||
// gas legacyOptimized: 110733
|
||||
// gas legacy: 111333
|
||||
// gas legacyOptimized: 110750
|
||||
// set(uint256): 2, 2, 3, 4, 5 -> true
|
||||
// gas irOptimized: 177527
|
||||
// gas legacy: 178018
|
||||
// gas legacyOptimized: 177663
|
||||
// gas legacy: 178335
|
||||
// gas legacyOptimized: 177725
|
||||
// storageEmpty -> 0
|
||||
// copy(uint256,uint256): 1, 2 -> true
|
||||
// storageEmpty -> 0
|
||||
|
@ -18,24 +18,24 @@ contract c {
|
||||
// f(uint256): 0 -> 0x20, 0x00
|
||||
// f(uint256): 31 -> 0x20, 0x1f, 0x0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e00
|
||||
// gas irOptimized: 108395
|
||||
// gas legacy: 123884
|
||||
// gas legacyOptimized: 119139
|
||||
// gas legacy: 124322
|
||||
// gas legacyOptimized: 119141
|
||||
// f(uint256): 32 -> 0x20, 0x20, 1780731860627700044960722568376592200742329637303199754547598369979440671
|
||||
// gas irOptimized: 117480
|
||||
// gas legacy: 134936
|
||||
// gas legacyOptimized: 130046
|
||||
// gas legacy: 135259
|
||||
// gas legacyOptimized: 130089
|
||||
// f(uint256): 33 -> 0x20, 33, 1780731860627700044960722568376592200742329637303199754547598369979440671, 0x2000000000000000000000000000000000000000000000000000000000000000
|
||||
// gas irOptimized: 124117
|
||||
// gas legacy: 141728
|
||||
// gas legacyOptimized: 136711
|
||||
// gas legacy: 142861
|
||||
// gas legacyOptimized: 137030
|
||||
// f(uint256): 63 -> 0x20, 0x3f, 1780731860627700044960722568376592200742329637303199754547598369979440671, 14532552714582660066924456880521368950258152170031413196862950297402215316992
|
||||
// gas irOptimized: 126467
|
||||
// gas legacy: 159768
|
||||
// gas legacyOptimized: 150641
|
||||
// gas legacy: 160901
|
||||
// gas legacyOptimized: 150960
|
||||
// f(uint256): 12 -> 0x20, 0x0c, 0x0102030405060708090a0b0000000000000000000000000000000000000000
|
||||
// gas legacy: 59345
|
||||
// gas legacyOptimized: 57279
|
||||
// f(uint256): 129 -> 0x20, 0x81, 1780731860627700044960722568376592200742329637303199754547598369979440671, 0x202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f, 29063324697304692433803953038474361308315562010425523193971352996434451193439, 0x606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f, -57896044618658097711785492504343953926634992332820282019728792003956564819968
|
||||
// gas irOptimized: 353326
|
||||
// gas legacy: 421067
|
||||
// gas legacyOptimized: 402910
|
||||
// gas legacy: 421700
|
||||
// gas legacyOptimized: 402999
|
||||
|
@ -36,11 +36,11 @@ contract C {
|
||||
// ----
|
||||
// f() -> 0x40, 0x80, 6, 0x6162636465660000000000000000000000000000000000000000000000000000, 0x49, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738390000000000000000000000000000000000000000000000
|
||||
// gas irOptimized: 179880
|
||||
// gas legacy: 180676
|
||||
// gas legacyOptimized: 180070
|
||||
// gas legacy: 181099
|
||||
// gas legacyOptimized: 180073
|
||||
// g() -> 0x40, 0xc0, 0x49, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738390000000000000000000000000000000000000000000000, 0x11, 0x3132333435363738393233343536373839000000000000000000000000000000
|
||||
// gas irOptimized: 107211
|
||||
// gas legacy: 107877
|
||||
// gas legacyOptimized: 107236
|
||||
// gas legacy: 110253
|
||||
// gas legacyOptimized: 107397
|
||||
// h() -> 0x40, 0x60, 0x00, 0x00
|
||||
// storageEmpty -> 1
|
||||
|
@ -47,5 +47,5 @@ contract C {
|
||||
// ----
|
||||
// f() -> 0xff
|
||||
// gas irOptimized: 119584
|
||||
// gas legacy: 128005
|
||||
// gas legacyOptimized: 123446
|
||||
// gas legacy: 132274
|
||||
// gas legacyOptimized: 123756
|
||||
|
@ -8,8 +8,8 @@ contract c {
|
||||
// ----
|
||||
// set(): 1, 2, 3, 4, 5 -> true
|
||||
// gas irOptimized: 177386
|
||||
// gas legacy: 177653
|
||||
// gas legacyOptimized: 177493
|
||||
// gas legacy: 177970
|
||||
// gas legacyOptimized: 177559
|
||||
// storageEmpty -> 0
|
||||
// reset() -> true
|
||||
// storageEmpty -> 1
|
||||
|
@ -21,8 +21,8 @@ contract sender {
|
||||
// ----
|
||||
// (): 7 ->
|
||||
// gas irOptimized: 110826
|
||||
// gas legacy: 111071
|
||||
// gas legacyOptimized: 111016
|
||||
// gas legacy: 111408
|
||||
// gas legacyOptimized: 111078
|
||||
// val() -> 0
|
||||
// forward(bool): true -> true
|
||||
// val() -> 0x80
|
||||
|
@ -16,4 +16,4 @@ contract C {
|
||||
// ====
|
||||
// compileViaYul: false
|
||||
// ----
|
||||
// f() -> 0x6465616462656566313564656164000000000000000000000000000000000010
|
||||
// f() -> 0x6465616462656566000000000000000000000000000000000000000000000010
|
||||
|
@ -19,5 +19,5 @@ contract C {
|
||||
// ----
|
||||
// f() -> 3
|
||||
// gas irOptimized: 128172
|
||||
// gas legacy: 130181
|
||||
// gas legacyOptimized: 129198
|
||||
// gas legacy: 130757
|
||||
// gas legacyOptimized: 129144
|
||||
|
@ -12,5 +12,5 @@ contract C {
|
||||
// ----
|
||||
// f() -> 0x20, 0x02, 0x40, 0x80, 3, 0x6162630000000000000000000000000000000000000000000000000000000000, 0x99, 44048183304486788312148433451363384677562265908331949128489393215789685032262, 32241931068525137014058842823026578386641954854143559838526554899205067598957, 49951309422467613961193228765530489307475214998374779756599339590522149884499, 0x54555658595a6162636465666768696a6b6c6d6e6f707172737475767778797a, 0x4142434445464748494a4b4c4d4e4f5051525354555658595a00000000000000
|
||||
// gas irOptimized: 202952
|
||||
// gas legacy: 204441
|
||||
// gas legacyOptimized: 203419
|
||||
// gas legacy: 204912
|
||||
// gas legacyOptimized: 203437
|
||||
|
@ -17,5 +17,5 @@ contract c {
|
||||
// ----
|
||||
// test1() -> true
|
||||
// gas irOptimized: 207928
|
||||
// gas legacy: 254650
|
||||
// gas legacyOptimized: 247384
|
||||
// gas legacy: 254905
|
||||
// gas legacyOptimized: 247415
|
||||
|
@ -14,5 +14,5 @@ contract C {
|
||||
// ----
|
||||
// f() ->
|
||||
// gas irOptimized: 179173
|
||||
// gas legacy: 180602
|
||||
// gas legacyOptimized: 180385
|
||||
// gas legacy: 181066
|
||||
// gas legacyOptimized: 180435
|
||||
|
@ -28,7 +28,7 @@ contract C {
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// constructor() ->
|
||||
// gas irOptimized: 520903
|
||||
// gas irOptimized: 521983
|
||||
// gas legacy: 731840
|
||||
// gas legacyOptimized: 494859
|
||||
// h() -> 0x20, 0x40, 0x00, 0
|
||||
|
@ -11,8 +11,8 @@ contract c {
|
||||
// ----
|
||||
// (): 1, 2, 3, 4, 5 ->
|
||||
// gas irOptimized: 155158
|
||||
// gas legacy: 155249
|
||||
// gas legacyOptimized: 155212
|
||||
// gas legacy: 155483
|
||||
// gas legacyOptimized: 155303
|
||||
// checkIfDataIsEmpty() -> false
|
||||
// sendMessage() -> true, 0x40, 0
|
||||
// checkIfDataIsEmpty() -> true
|
||||
|
@ -25,5 +25,5 @@ contract Creator {
|
||||
// ----
|
||||
// f(uint256,bytes): 7, 0x40, 78, "abcdefghijklmnopqrstuvwxyzabcdef", "ghijklmnopqrstuvwxyzabcdefghijkl", "mnopqrstuvwxyz" -> 7, "h"
|
||||
// gas irOptimized: 282398
|
||||
// gas legacy: 428711
|
||||
// gas legacyOptimized: 297922
|
||||
// gas legacy: 429047
|
||||
// gas legacyOptimized: 297958
|
||||
|
@ -9,7 +9,7 @@ contract Test {
|
||||
// ----
|
||||
// constructor(): 7, 0x40, 78, "abcdefghijklmnopqrstuvwxyzabcdef", "ghijklmnopqrstuvwxyzabcdefghijkl", "mnopqrstuvwxyz" ->
|
||||
// gas irOptimized: 273340
|
||||
// gas legacy: 309607
|
||||
// gas legacyOptimized: 260566
|
||||
// gas legacy: 317746
|
||||
// gas legacyOptimized: 262368
|
||||
// m_x() -> 7
|
||||
// m_s() -> 0x20, 78, "abcdefghijklmnopqrstuvwxyzabcdef", "ghijklmnopqrstuvwxyzabcdefghijkl", "mnopqrstuvwxyz"
|
||||
|
@ -24,8 +24,8 @@ contract c {
|
||||
// storageEmpty -> 1
|
||||
// set(uint256,bytes,uint256): 12, 0x60, 13, 33, "12345678901234567890123456789012", "3" -> true
|
||||
// gas irOptimized: 133599
|
||||
// gas legacy: 134433
|
||||
// gas legacyOptimized: 133876
|
||||
// gas legacy: 134654
|
||||
// gas legacyOptimized: 133882
|
||||
// test(uint256): 32 -> "3"
|
||||
// storageEmpty -> 0
|
||||
// copy() -> true
|
||||
|
@ -17,8 +17,8 @@ contract C {
|
||||
// ----
|
||||
// constructor() ->
|
||||
// gas irOptimized: 177507
|
||||
// gas legacy: 240889
|
||||
// gas legacyOptimized: 155314
|
||||
// gas legacy: 249207
|
||||
// gas legacyOptimized: 157489
|
||||
// initCode() -> 0x20, 0
|
||||
// f() -> true
|
||||
// g() -> 0
|
||||
|
@ -35,5 +35,5 @@ contract C {
|
||||
// ----
|
||||
// f(bytes): 0x20, 0x5, "abcde" -> 0
|
||||
// gas irOptimized: 239194
|
||||
// gas legacy: 240349
|
||||
// gas legacyOptimized: 239673
|
||||
// gas legacy: 240541
|
||||
// gas legacyOptimized: 239654
|
||||
|
@ -21,5 +21,5 @@ contract C {
|
||||
// ----
|
||||
// g() -> 2, 6
|
||||
// gas irOptimized: 178677
|
||||
// gas legacy: 180753
|
||||
// gas legacyOptimized: 179472
|
||||
// gas legacy: 180945
|
||||
// gas legacyOptimized: 179460
|
||||
|
Loading…
Reference in New Issue
Block a user