mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[isoltest] Replace storage command with 'storage_empty' builtin.
This commit is contained in:
@@ -41,17 +41,17 @@ contract c {
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
// test_short() -> 1780731860627700044960722568376587075150542249149356309979516913770823710
|
||||
// gas legacy: 110938
|
||||
// gas legacyOptimized: 109706
|
||||
// storage: nonempty
|
||||
// storageEmpty -> 0
|
||||
// test_long() -> 67
|
||||
// gas irOptimized: 134320
|
||||
// gas legacy: 213590
|
||||
// gas legacyOptimized: 211044
|
||||
// storage: nonempty
|
||||
// storageEmpty -> 0
|
||||
// test_pop() -> 1780731860627700044960722568376592200742329637303199754547598369979433020
|
||||
// gas legacy: 176030
|
||||
// gas legacyOptimized: 173504
|
||||
// storage: nonempty
|
||||
// storageEmpty -> 0
|
||||
|
||||
@@ -40,9 +40,9 @@ contract c {
|
||||
// gas irOptimized: 2470372
|
||||
// gas legacy: 2288641
|
||||
// gas legacyOptimized: 2258654
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
// clear() -> 0, 0
|
||||
// gas irOptimized: 1852821
|
||||
// gas legacy: 1727169
|
||||
// gas legacyOptimized: 1698931
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
|
||||
@@ -21,4 +21,4 @@ contract c {
|
||||
// setData1(uint256,uint256,uint256): 0, 0, 0 ->
|
||||
// copyStorageStorage() ->
|
||||
// getData2(uint256): 0 -> 0, 0
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
|
||||
@@ -22,4 +22,4 @@ contract c {
|
||||
// gas irOptimized: 257752
|
||||
// gas legacy: 255936
|
||||
// gas legacyOptimized: 254359
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
|
||||
@@ -14,10 +14,10 @@ contract c {
|
||||
// gas irOptimized: 163929
|
||||
// gas legacy: 164121
|
||||
// gas legacyOptimized: 163766
|
||||
// storage: nonempty
|
||||
// storageEmpty -> 0
|
||||
// copy(uint256,uint256): 1, 2 -> true
|
||||
// storage: nonempty
|
||||
// storageEmpty -> 0
|
||||
// copy(uint256,uint256): 99, 1 -> true
|
||||
// storage: nonempty
|
||||
// storageEmpty -> 0
|
||||
// copy(uint256,uint256): 99, 2 -> true
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
|
||||
+1
-1
@@ -43,4 +43,4 @@ contract C {
|
||||
// g() -> 0x40, 0xc0, 0x49, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738390000000000000000000000000000000000000000000000, 0x11, 0x3132333435363738393233343536373839000000000000000000000000000000
|
||||
// gas legacy: 100595
|
||||
// h() -> 0x40, 0x60, 0x00, 0x00
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
|
||||
@@ -12,6 +12,6 @@ contract c {
|
||||
// gas irOptimized: 163680
|
||||
// gas legacy: 163756
|
||||
// gas legacyOptimized: 163596
|
||||
// storage: nonempty
|
||||
// storageEmpty -> 0
|
||||
// reset() -> true
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
|
||||
@@ -7,6 +7,6 @@ contract c {
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// (): 7 ->
|
||||
// storage: nonempty
|
||||
// storageEmpty -> 0
|
||||
// del(): 7 -> true
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
|
||||
@@ -14,13 +14,13 @@ contract c {
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
// fill() ->
|
||||
// gas irOptimized: 535098
|
||||
// gas legacy: 504373
|
||||
// gas legacyOptimized: 499648
|
||||
// storage: nonempty
|
||||
// storageEmpty -> 0
|
||||
// halfClear() ->
|
||||
// storage: nonempty
|
||||
// storageEmpty -> 0
|
||||
// fullClear() ->
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
|
||||
@@ -16,11 +16,11 @@ contract c {
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
// fill() -> 8
|
||||
// gas irOptimized: 168980
|
||||
// gas legacy: 165456
|
||||
// gas legacyOptimized: 164387
|
||||
// storage: nonempty
|
||||
// storageEmpty -> 0
|
||||
// clear() ->
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
|
||||
@@ -11,11 +11,11 @@ contract c {
|
||||
// compileToEwasm: also
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
// fill() ->
|
||||
// gas irOptimized: 423878
|
||||
// gas legacy: 429460
|
||||
// gas legacyOptimized: 425520
|
||||
// storage: nonempty
|
||||
// storageEmpty -> 0
|
||||
// clear() ->
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
|
||||
@@ -28,4 +28,4 @@ contract c {
|
||||
// gas irOptimized: 2455497
|
||||
// gas legacy: 2416722
|
||||
// gas legacyOptimized: 2405396
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
|
||||
@@ -9,4 +9,4 @@ contract c {
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// test() ->
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
|
||||
@@ -23,4 +23,4 @@ contract c {
|
||||
// gas irOptimized: 527367
|
||||
// gas legacy: 454080
|
||||
// gas legacyOptimized: 443170
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
|
||||
@@ -23,4 +23,4 @@ contract c {
|
||||
// gas irOptimized: 367121
|
||||
// gas legacy: 320859
|
||||
// gas legacyOptimized: 314681
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
|
||||
@@ -21,4 +21,4 @@ contract c {
|
||||
// gas irOptimized: 445718
|
||||
// gas legacy: 552064
|
||||
// gas legacyOptimized: 533164
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
|
||||
+1
-1
@@ -20,4 +20,4 @@ contract c {
|
||||
// gas irOptimized: 291114
|
||||
// gas legacy: 372763
|
||||
// gas legacyOptimized: 366846
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
|
||||
@@ -14,4 +14,4 @@ contract c {
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// test() ->
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
|
||||
@@ -11,8 +11,8 @@ contract c {
|
||||
// compileToEwasm: also
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
// fill() ->
|
||||
// storage: nonempty
|
||||
// storageEmpty -> 0
|
||||
// clear() ->
|
||||
// storage: empty
|
||||
// storageEmpty -> 1
|
||||
|
||||
Reference in New Issue
Block a user