From 916fa46ad7ba8ded2c1b51d523474fb9c44ad650 Mon Sep 17 00:00:00 2001 From: Daniel Kirchner Date: Fri, 13 Aug 2021 00:22:48 +0200 Subject: [PATCH] Update tests. --- test/cmdlineTests/function_debug_info/output | 4 +- .../output | 31 ++++++------- .../output | 31 ++++++------- test/libsolidity/gasTests/abiv2_optimised.sol | 10 ++-- .../gasTests/dispatch_large_optimised.sol | 46 +++++++++---------- .../gasTests/dispatch_medium_optimised.sol | 20 ++++---- .../gasTests/dispatch_small_optimised.sol | 8 ++-- test/libsolidity/gasTests/exp_optimized.sol | 12 ++--- test/libsolidity/gasTests/storage_costs.sol | 6 +-- .../abiEncoderV1/abi_decode_v2_storage.sol | 2 +- .../abi_encode_calldata_slice.sol | 4 +- .../struct/struct_storage_ptr.sol | 2 +- .../abi_encode_calldata_slice.sol | 4 +- .../abiEncoderV2/abi_encode_v2.sol | 2 +- ...2_in_function_inherited_in_v1_contract.sol | 2 +- .../abiEncoderV2/calldata_array.sol | 2 +- .../abiEncoderV2/storage_array_encoding.sol | 4 +- .../abi_decode_simple_storage.sol | 2 +- .../arrays_complex_from_and_to_storage.sol | 2 +- .../array/byte_array_storage_layout.sol | 6 +-- .../array/byte_array_transitional_2.sol | 2 +- .../array/bytes_length_member.sol | 2 +- .../copying/array_copy_calldata_storage.sol | 2 +- .../copying/array_copy_different_packing.sol | 2 +- .../copying/array_copy_including_array.sol | 4 +- .../array/copying/array_copy_nested_array.sol | 2 +- ...ray_copy_storage_storage_static_simple.sol | 2 +- .../array_copy_storage_to_memory_nested.sol | 2 +- .../copying/array_copy_target_leftover.sol | 2 +- .../copying/array_copy_target_leftover2.sol | 2 +- .../copying/array_copy_target_simple.sol | 2 +- .../copying/array_copy_target_simple_2.sol | 2 +- .../array_nested_memory_to_storage.sol | 4 +- .../copying/arrays_from_and_to_storage.sol | 2 +- .../array/copying/bytes_inside_mappings.sol | 4 +- .../copying/bytes_storage_to_storage.sol | 12 ++--- .../calldata_array_dynamic_to_storage.sol | 2 +- .../copy_byte_array_in_struct_to_storage.sol | 4 +- .../copying/copy_byte_array_to_storage.sol | 2 +- .../array/copying/copy_removes_bytes_data.sol | 2 +- .../memory_dyn_2d_bytes_to_storage.sol | 2 +- .../array/copying/storage_memory_nested.sol | 2 +- .../copying/storage_memory_nested_bytes.sol | 2 +- .../storage_memory_nested_from_pointer.sol | 2 +- .../copying/storage_memory_packed_dyn.sol | 2 +- .../array/delete/bytes_delete_element.sol | 2 +- .../array/dynamic_array_cleanup.sol | 2 +- .../array/dynamic_arrays_in_storage.sol | 2 +- .../array/fixed_array_cleanup.sol | 2 +- .../array/fixed_arrays_as_return_type.sol | 2 +- .../array/function_array_cross_calls.sol | 2 +- .../array/pop/array_pop_array_transition.sol | 2 +- .../array/pop/array_pop_uint16_transition.sol | 2 +- .../array/pop/array_pop_uint24_transition.sol | 2 +- .../array/pop/byte_array_pop_copy_long.sol | 2 +- .../pop/byte_array_pop_long_storage_empty.sol | 2 +- ...ray_pop_long_storage_empty_garbage_ref.sol | 2 +- .../array/pop/byte_array_pop_masking_long.sol | 2 +- .../push/array_push_nested_from_calldata.sol | 2 +- .../push/array_push_struct_from_calldata.sol | 2 +- .../array/push/byte_array_push_transition.sol | 2 +- .../array/push/nested_bytes_push.sol | 2 +- .../array/push/push_no_args_2d.sol | 4 +- .../array/push/push_no_args_bytes.sol | 2 +- .../semanticTests/array/reusing_memory.sol | 2 +- .../constructor/arrays_in_constructors.sol | 2 +- .../bytes_in_constructors_packer.sol | 2 +- .../events/event_dynamic_array_storage.sol | 2 +- .../events/event_dynamic_array_storage_v2.sol | 2 +- .../event_dynamic_nested_array_storage_v2.sol | 2 +- .../events/event_indexed_mixed.sol | 2 +- .../events/event_indexed_string.sol | 2 +- .../externalContracts/FixedFeeRegistrar.sol | 6 +-- .../externalContracts/deposit_contract.sol | 12 ++--- .../externalContracts/prbmath_signed.sol | 22 ++++----- .../externalContracts/prbmath_unsigned.sol | 22 ++++----- .../externalContracts/ramanujan_pi.sol | 4 +- .../semanticTests/externalContracts/snark.sol | 2 +- .../externalContracts/strings.sol | 12 ++--- .../functionCall/failed_create.sol | 4 +- .../mapping_array_internal_argument.sol | 2 +- .../functionTypes/store_function.sol | 2 +- .../immutable/multi_creation.sol | 2 +- ...ted_function_calldata_memory_interface.sol | 2 +- .../salted_create_with_value.sol | 2 +- ...ta_struct_with_nested_array_to_storage.sol | 2 +- ...truct_containing_bytes_copy_and_delete.sol | 2 +- .../semanticTests/structs/struct_copy.sol | 4 +- .../userDefinedValueType/calldata.sol | 4 +- .../userDefinedValueType/erc20.sol | 12 ++--- ...cost_abstraction_comparison_elementary.sol | 4 +- ...ost_abstraction_comparison_userdefined.sol | 4 +- .../various/destructuring_assignment.sol | 2 +- .../semanticTests/various/erc20.sol | 12 ++--- .../skip_dynamic_types_for_structs.sol | 2 +- .../viaYul/array_memory_index_access.sol | 2 +- .../viaYul/array_storage_index_access.sol | 14 +++--- .../array_storage_index_boundary_test.sol | 4 +- .../array_storage_index_zeroed_test.sol | 8 ++-- .../viaYul/array_storage_length_access.sol | 4 +- .../viaYul/array_storage_push_empty.sol | 4 +- ...rray_storage_push_empty_length_address.sol | 6 +-- .../viaYul/array_storage_push_pop.sol | 6 +-- 103 files changed, 256 insertions(+), 258 deletions(-) diff --git a/test/cmdlineTests/function_debug_info/output b/test/cmdlineTests/function_debug_info/output index 071e0076e..8289020c2 100644 --- a/test/cmdlineTests/function_debug_info/output +++ b/test/cmdlineTests/function_debug_info/output @@ -41,7 +41,7 @@ }, "abi_decode_tuple_t_uint256": { - "entryPoint": 281, + "entryPoint": 265, "parameterSlots": 2, "returnSlots": 1 }, @@ -52,7 +52,7 @@ }, "panic_error_0x32": { - "entryPoint": 306, + "entryPoint": 287, "parameterSlots": 0, "returnSlots": 0 } diff --git a/test/cmdlineTests/optimizer_inliner_dynamic_reference/output b/test/cmdlineTests/optimizer_inliner_dynamic_reference/output index ba32c364b..b6b712499 100644 --- a/test/cmdlineTests/optimizer_inliner_dynamic_reference/output +++ b/test/cmdlineTests/optimizer_inliner_dynamic_reference/output @@ -152,20 +152,26 @@ sub_0: assembly { jump // out /* "#utility.yul":196:421 */ tag_22: - /* "#utility.yul":236:239 */ - 0x00 - /* "#utility.yul":267:268 */ - dup3 /* "#utility.yul":263:269 */ + dup2 not - /* "#utility.yul":260:261 */ - dup3 /* "#utility.yul":257:270 */ + dup2 gt /* "#utility.yul":254:390 */ - iszero - tag_30 + tag_27 jumpi + /* "#utility.yul":406:415 */ + add + /* "#utility.yul":196:421 */ + swap1 + jump // out + /* "#utility.yul":279:390 */ + tag_27: + /* "#utility.yul":303:323 */ + pop + pop + pop /* "#utility.yul":312:322 */ 0x4e487b71 /* "#utility.yul":307:310 */ @@ -188,16 +194,9 @@ sub_0: assembly { 0x00 /* "#utility.yul":365:380 */ revert - /* "#utility.yul":254:390 */ - tag_30: - pop - /* "#utility.yul":406:415 */ - add - swap1 - /* "#utility.yul":196:421 */ - jump // out /* "#utility.yul":426:553 */ tag_26: + pop /* "#utility.yul":487:497 */ 0x4e487b71 /* "#utility.yul":482:485 */ diff --git a/test/cmdlineTests/optimizer_inliner_dynamic_reference_constructor/output b/test/cmdlineTests/optimizer_inliner_dynamic_reference_constructor/output index 83f06edad..7f1631868 100644 --- a/test/cmdlineTests/optimizer_inliner_dynamic_reference_constructor/output +++ b/test/cmdlineTests/optimizer_inliner_dynamic_reference_constructor/output @@ -157,20 +157,26 @@ sub_0: assembly { jump // out /* "#utility.yul":196:421 */ tag_19: - /* "#utility.yul":236:239 */ - 0x00 - /* "#utility.yul":267:268 */ - dup3 /* "#utility.yul":263:269 */ + dup2 not - /* "#utility.yul":260:261 */ - dup3 /* "#utility.yul":257:270 */ + dup2 gt /* "#utility.yul":254:390 */ - iszero - tag_26 + tag_23 jumpi + /* "#utility.yul":406:415 */ + add + /* "#utility.yul":196:421 */ + swap1 + jump // out + /* "#utility.yul":279:390 */ + tag_23: + /* "#utility.yul":303:323 */ + pop + pop + pop /* "#utility.yul":312:322 */ 0x4e487b71 /* "#utility.yul":307:310 */ @@ -193,16 +199,9 @@ sub_0: assembly { 0x00 /* "#utility.yul":365:380 */ revert - /* "#utility.yul":254:390 */ - tag_26: - pop - /* "#utility.yul":406:415 */ - add - swap1 - /* "#utility.yul":196:421 */ - jump // out /* "#utility.yul":426:553 */ tag_22: + pop /* "#utility.yul":487:497 */ 0x4e487b71 /* "#utility.yul":482:485 */ diff --git a/test/libsolidity/gasTests/abiv2_optimised.sol b/test/libsolidity/gasTests/abiv2_optimised.sol index ca344afd0..a81a5db53 100644 --- a/test/libsolidity/gasTests/abiv2_optimised.sol +++ b/test/libsolidity/gasTests/abiv2_optimised.sol @@ -17,13 +17,13 @@ contract C { // optimize-yul: true // ---- // creation: -// codeDepositCost: 660800 -// executionCost: 696 -// totalCost: 661496 +// codeDepositCost: 606600 +// executionCost: 638 +// totalCost: 607238 // external: // a(): 2285 -// b(uint256): 4652 -// f1(uint256): 307 +// b(uint256): 4641 +// f1(uint256): 296 // f2(uint256[],string[],uint16,address): infinite // f3(uint16[],string[],uint16,address): infinite // f4(uint32[],string[12],bytes[2][],address): infinite diff --git a/test/libsolidity/gasTests/dispatch_large_optimised.sol b/test/libsolidity/gasTests/dispatch_large_optimised.sol index ae38258f0..a6890856a 100644 --- a/test/libsolidity/gasTests/dispatch_large_optimised.sol +++ b/test/libsolidity/gasTests/dispatch_large_optimised.sol @@ -27,29 +27,29 @@ contract Large { // optimize-runs: 2 // ---- // creation: -// codeDepositCost: 232800 +// codeDepositCost: 232400 // executionCost: 275 -// totalCost: 233075 +// totalCost: 232675 // external: // a(): 2283 -// b(uint256): 4937 -// f0(uint256): 366 -// f1(uint256): 47006 -// f2(uint256): 24972 -// f3(uint256): 25060 -// f4(uint256): 25038 -// f5(uint256): 25016 -// f6(uint256): 24928 -// f7(uint256): 24708 -// f8(uint256): 24840 -// f9(uint256): 24862 -// g0(uint256): 606 -// g1(uint256): 46718 -// g2(uint256): 24706 -// g3(uint256): 24794 -// g4(uint256): 24772 -// g5(uint256): 24860 -// g6(uint256): 24640 -// g7(uint256): 24750 -// g8(uint256): 24728 -// g9(uint256): 24574 +// b(uint256): 4926 +// f0(uint256): 355 +// f1(uint256): 46995 +// f2(uint256): 24961 +// f3(uint256): 25049 +// f4(uint256): 25027 +// f5(uint256): 25005 +// f6(uint256): 24917 +// f7(uint256): 24697 +// f8(uint256): 24829 +// f9(uint256): 24851 +// g0(uint256): 595 +// g1(uint256): 46707 +// g2(uint256): 24695 +// g3(uint256): 24783 +// g4(uint256): 24761 +// g5(uint256): 24849 +// g6(uint256): 24629 +// g7(uint256): 24739 +// g8(uint256): 24717 +// g9(uint256): 24563 diff --git a/test/libsolidity/gasTests/dispatch_medium_optimised.sol b/test/libsolidity/gasTests/dispatch_medium_optimised.sol index fca8d2695..6f0bac1ed 100644 --- a/test/libsolidity/gasTests/dispatch_medium_optimised.sol +++ b/test/libsolidity/gasTests/dispatch_medium_optimised.sol @@ -14,16 +14,16 @@ contract Medium { // optimize-runs: 2 // ---- // creation: -// codeDepositCost: 131600 +// codeDepositCost: 131200 // executionCost: 177 -// totalCost: 131777 +// totalCost: 131377 // external: // a(): 2283 -// b(uint256): 4695 -// f1(uint256): 46786 -// f2(uint256): 24730 -// f3(uint256): 24774 -// g0(uint256): 364 -// g7(uint256): 24640 -// g8(uint256): 24618 -// g9(uint256): 24574 +// b(uint256): 4684 +// f1(uint256): 46775 +// f2(uint256): 24719 +// f3(uint256): 24763 +// g0(uint256): 353 +// g7(uint256): 24629 +// g8(uint256): 24607 +// g9(uint256): 24563 diff --git a/test/libsolidity/gasTests/dispatch_small_optimised.sol b/test/libsolidity/gasTests/dispatch_small_optimised.sol index 28ddf2af0..46fc65ee6 100644 --- a/test/libsolidity/gasTests/dispatch_small_optimised.sol +++ b/test/libsolidity/gasTests/dispatch_small_optimised.sol @@ -9,11 +9,11 @@ contract Small { // optimize-runs: 2 // ---- // creation: -// codeDepositCost: 60800 +// codeDepositCost: 60400 // executionCost: 111 -// totalCost: 60911 +// totalCost: 60511 // external: // fallback: 118 // a(): 2261 -// b(uint256): 4585 -// f1(uint256): 46720 +// b(uint256): 4574 +// f1(uint256): 46709 diff --git a/test/libsolidity/gasTests/exp_optimized.sol b/test/libsolidity/gasTests/exp_optimized.sol index c934c710e..82353afd3 100644 --- a/test/libsolidity/gasTests/exp_optimized.sol +++ b/test/libsolidity/gasTests/exp_optimized.sol @@ -19,11 +19,11 @@ contract C { // optimize-yul: true // ---- // creation: -// codeDepositCost: 37200 +// codeDepositCost: 36600 // executionCost: 87 -// totalCost: 37287 +// totalCost: 36687 // external: -// exp_neg_one(uint256): 1917 -// exp_one(uint256): 1870 -// exp_two(uint256): 1848 -// exp_zero(uint256): 1892 +// exp_neg_one(uint256): 1906 +// exp_one(uint256): 1859 +// exp_two(uint256): 1837 +// exp_zero(uint256): 1881 diff --git a/test/libsolidity/gasTests/storage_costs.sol b/test/libsolidity/gasTests/storage_costs.sol index 1e4995833..6e1d67f79 100644 --- a/test/libsolidity/gasTests/storage_costs.sol +++ b/test/libsolidity/gasTests/storage_costs.sol @@ -15,10 +15,10 @@ contract C { // optimize-yul: true // ---- // creation: -// codeDepositCost: 27200 +// codeDepositCost: 26600 // executionCost: 81 -// totalCost: 27281 +// totalCost: 26681 // external: // readX(): 2290 // resetX(): 5116 -// setX(uint256): 22312 +// setX(uint256): 22301 diff --git a/test/libsolidity/semanticTests/abiEncoderV1/abi_decode_v2_storage.sol b/test/libsolidity/semanticTests/abiEncoderV1/abi_decode_v2_storage.sol index 06f9bcbbf..ff9bdf7e5 100644 --- a/test/libsolidity/semanticTests/abiEncoderV1/abi_decode_v2_storage.sol +++ b/test/libsolidity/semanticTests/abiEncoderV1/abi_decode_v2_storage.sol @@ -26,4 +26,4 @@ contract C { // f() -> 0x20, 0x8, 0x40, 0x3, 0x9, 0xa, 0xb // gas irOptimized: 203312 // gas legacy: 206084 -// gas legacyOptimized: 203068 +// gas legacyOptimized: 202819 diff --git a/test/libsolidity/semanticTests/abiEncoderV1/abi_encode_calldata_slice.sol b/test/libsolidity/semanticTests/abiEncoderV1/abi_encode_calldata_slice.sol index ddd536a38..53f721ff0 100644 --- a/test/libsolidity/semanticTests/abiEncoderV1/abi_encode_calldata_slice.sol +++ b/test/libsolidity/semanticTests/abiEncoderV1/abi_encode_calldata_slice.sol @@ -62,8 +62,8 @@ contract C { // test_bytes() -> // gas irOptimized: 377545 // gas legacy: 423563 -// gas legacyOptimized: 331391 +// gas legacyOptimized: 319727 // test_uint256() -> // gas irOptimized: 528726 // gas legacy: 591392 -// gas legacyOptimized: 456137 +// gas legacyOptimized: 441131 diff --git a/test/libsolidity/semanticTests/abiEncoderV1/struct/struct_storage_ptr.sol b/test/libsolidity/semanticTests/abiEncoderV1/struct/struct_storage_ptr.sol index 8fe170e91..d5074dcbb 100644 --- a/test/libsolidity/semanticTests/abiEncoderV1/struct/struct_storage_ptr.sol +++ b/test/libsolidity/semanticTests/abiEncoderV1/struct/struct_storage_ptr.sol @@ -28,4 +28,4 @@ contract C { // f() -> 8, 7, 1, 2, 7, 12 // gas irOptimized: 167580 // gas legacy: 169475 -// gas legacyOptimized: 167397 +// gas legacyOptimized: 167346 diff --git a/test/libsolidity/semanticTests/abiEncoderV2/abi_encode_calldata_slice.sol b/test/libsolidity/semanticTests/abiEncoderV2/abi_encode_calldata_slice.sol index 3a4a23fef..88ef9e33a 100644 --- a/test/libsolidity/semanticTests/abiEncoderV2/abi_encode_calldata_slice.sol +++ b/test/libsolidity/semanticTests/abiEncoderV2/abi_encode_calldata_slice.sol @@ -63,8 +63,8 @@ contract C { // test_bytes() -> // gas irOptimized: 377545 // gas legacy: 423563 -// gas legacyOptimized: 331391 +// gas legacyOptimized: 319727 // test_uint256() -> // gas irOptimized: 528726 // gas legacy: 591392 -// gas legacyOptimized: 456137 +// gas legacyOptimized: 441131 diff --git a/test/libsolidity/semanticTests/abiEncoderV2/abi_encode_v2.sol b/test/libsolidity/semanticTests/abiEncoderV2/abi_encode_v2.sol index 3e9697698..26da1f24e 100644 --- a/test/libsolidity/semanticTests/abiEncoderV2/abi_encode_v2.sol +++ b/test/libsolidity/semanticTests/abiEncoderV2/abi_encode_v2.sol @@ -55,4 +55,4 @@ contract C { // f4() -> 0x20, 0x160, 0x1, 0x80, 0xc0, 0x2, 0x3, "abc", 0x7, 0x40, 0x2, 0x2, 0x3 // gas irOptimized: 113361 // gas legacy: 114900 -// gas legacyOptimized: 112606 +// gas legacyOptimized: 112680 diff --git a/test/libsolidity/semanticTests/abiEncoderV2/abi_encode_v2_in_function_inherited_in_v1_contract.sol b/test/libsolidity/semanticTests/abiEncoderV2/abi_encode_v2_in_function_inherited_in_v1_contract.sol index b730f3588..60e748919 100644 --- a/test/libsolidity/semanticTests/abiEncoderV2/abi_encode_v2_in_function_inherited_in_v1_contract.sol +++ b/test/libsolidity/semanticTests/abiEncoderV2/abi_encode_v2_in_function_inherited_in_v1_contract.sol @@ -34,4 +34,4 @@ contract C is B { // test() -> 77 // gas irOptimized: 120044 // gas legacy: 155221 -// gas legacyOptimized: 111678 +// gas legacyOptimized: 111053 diff --git a/test/libsolidity/semanticTests/abiEncoderV2/calldata_array.sol b/test/libsolidity/semanticTests/abiEncoderV2/calldata_array.sol index bf42f8776..d8bcc4a0d 100644 --- a/test/libsolidity/semanticTests/abiEncoderV2/calldata_array.sol +++ b/test/libsolidity/semanticTests/abiEncoderV2/calldata_array.sol @@ -23,4 +23,4 @@ contract C { // f(uint256[][1]): 32, 32, 8, 421, 422, 423, 424, 425, 426, 427, 428 -> true // gas irOptimized: 172204 // gas legacy: 141900 -// gas legacyOptimized: 121788 +// gas legacyOptimized: 119022 diff --git a/test/libsolidity/semanticTests/abiEncoderV2/storage_array_encoding.sol b/test/libsolidity/semanticTests/abiEncoderV2/storage_array_encoding.sol index 1f836bfaf..ad5a8beb5 100644 --- a/test/libsolidity/semanticTests/abiEncoderV2/storage_array_encoding.sol +++ b/test/libsolidity/semanticTests/abiEncoderV2/storage_array_encoding.sol @@ -21,8 +21,8 @@ contract C { // h(uint256[2][]): 0x20, 3, 123, 124, 223, 224, 323, 324 -> 32, 256, 0x20, 3, 123, 124, 223, 224, 323, 324 // gas irOptimized: 180925 // gas legacy: 184929 -// gas legacyOptimized: 181504 +// gas legacyOptimized: 181363 // i(uint256[2][2]): 123, 124, 223, 224 -> 32, 128, 123, 124, 223, 224 // gas irOptimized: 112535 // gas legacy: 115468 -// gas legacyOptimized: 112988 +// gas legacyOptimized: 112923 diff --git a/test/libsolidity/semanticTests/abiencodedecode/abi_decode_simple_storage.sol b/test/libsolidity/semanticTests/abiencodedecode/abi_decode_simple_storage.sol index b6c6ad5f0..fa868c3a7 100644 --- a/test/libsolidity/semanticTests/abiencodedecode/abi_decode_simple_storage.sol +++ b/test/libsolidity/semanticTests/abiencodedecode/abi_decode_simple_storage.sol @@ -13,4 +13,4 @@ contract C { // f(bytes): 0x20, 0x80, 0x21, 0x40, 0x7, "abcdefg" -> 0x21, 0x40, 0x7, "abcdefg" // gas irOptimized: 135918 // gas legacy: 137190 -// gas legacyOptimized: 136082 +// gas legacyOptimized: 135951 diff --git a/test/libsolidity/semanticTests/array/arrays_complex_from_and_to_storage.sol b/test/libsolidity/semanticTests/array/arrays_complex_from_and_to_storage.sol index e8d567059..60c22968e 100644 --- a/test/libsolidity/semanticTests/array/arrays_complex_from_and_to_storage.sol +++ b/test/libsolidity/semanticTests/array/arrays_complex_from_and_to_storage.sol @@ -16,7 +16,7 @@ contract Test { // 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: 189910 // gas legacy: 211149 -// gas legacyOptimized: 206054 +// gas legacyOptimized: 206821 // data(uint256,uint256): 0x02, 0x02 -> 0x09 // data(uint256,uint256): 0x05, 0x01 -> 0x11 // data(uint256,uint256): 0x06, 0x00 -> FAILURE diff --git a/test/libsolidity/semanticTests/array/byte_array_storage_layout.sol b/test/libsolidity/semanticTests/array/byte_array_storage_layout.sol index 2c238a54b..0694dd02f 100644 --- a/test/libsolidity/semanticTests/array/byte_array_storage_layout.sol +++ b/test/libsolidity/semanticTests/array/byte_array_storage_layout.sol @@ -44,14 +44,14 @@ contract c { // storageEmpty -> 1 // test_short() -> 1780731860627700044960722568376587075150542249149356309979516913770823710 // gas legacy: 59838 -// gas legacyOptimized: 58606 +// gas legacyOptimized: 58291 // storageEmpty -> 0 // test_long() -> 67 // gas irOptimized: 89148 // gas legacy: 103590 -// gas legacyOptimized: 101044 +// gas legacyOptimized: 100341 // storageEmpty -> 0 // test_pop() -> 1780731860627700044960722568376592200742329637303199754547598369979433020 // gas legacy: 61930 -// gas legacyOptimized: 59404 +// gas legacyOptimized: 58714 // storageEmpty -> 0 diff --git a/test/libsolidity/semanticTests/array/byte_array_transitional_2.sol b/test/libsolidity/semanticTests/array/byte_array_transitional_2.sol index 31879057a..53bfd1693 100644 --- a/test/libsolidity/semanticTests/array/byte_array_transitional_2.sol +++ b/test/libsolidity/semanticTests/array/byte_array_transitional_2.sol @@ -21,4 +21,4 @@ contract c { // test() -> 0 // gas irOptimized: 158143 // gas legacy: 189715 -// gas legacyOptimized: 184472 +// gas legacyOptimized: 181463 diff --git a/test/libsolidity/semanticTests/array/bytes_length_member.sol b/test/libsolidity/semanticTests/array/bytes_length_member.sol index bb4e21e16..19ece0a16 100644 --- a/test/libsolidity/semanticTests/array/bytes_length_member.sol +++ b/test/libsolidity/semanticTests/array/bytes_length_member.sol @@ -17,5 +17,5 @@ contract c { // set(): 1, 2 -> true // gas irOptimized: 110433 // gas legacy: 110726 -// gas legacyOptimized: 110567 +// gas legacyOptimized: 110563 // getLength() -> 68 diff --git a/test/libsolidity/semanticTests/array/copying/array_copy_calldata_storage.sol b/test/libsolidity/semanticTests/array/copying/array_copy_calldata_storage.sol index 2a401cd87..fcc92c056 100644 --- a/test/libsolidity/semanticTests/array/copying/array_copy_calldata_storage.sol +++ b/test/libsolidity/semanticTests/array/copying/array_copy_calldata_storage.sol @@ -24,5 +24,5 @@ contract c { // 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: 650669 // gas legacy: 694515 -// gas legacyOptimized: 694013 +// gas legacyOptimized: 693942 // retrieve() -> 9, 28, 9, 28, 4, 3, 32 diff --git a/test/libsolidity/semanticTests/array/copying/array_copy_different_packing.sol b/test/libsolidity/semanticTests/array/copying/array_copy_different_packing.sol index 81607a264..f28eeab26 100644 --- a/test/libsolidity/semanticTests/array/copying/array_copy_different_packing.sol +++ b/test/libsolidity/semanticTests/array/copying/array_copy_different_packing.sol @@ -23,4 +23,4 @@ contract c { // test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x05000000000000000000000000000000000000000000000000 // gas irOptimized: 212571 // gas legacy: 221883 -// gas legacyOptimized: 220734 +// gas legacyOptimized: 220653 diff --git a/test/libsolidity/semanticTests/array/copying/array_copy_including_array.sol b/test/libsolidity/semanticTests/array/copying/array_copy_including_array.sol index 4f7023250..fa0ee1e14 100644 --- a/test/libsolidity/semanticTests/array/copying/array_copy_including_array.sol +++ b/test/libsolidity/semanticTests/array/copying/array_copy_including_array.sol @@ -39,10 +39,10 @@ contract c { // test() -> 0x02000202 // gas irOptimized: 4652092 // gas legacy: 4578341 -// gas legacyOptimized: 4548354 +// gas legacyOptimized: 4548285 // storageEmpty -> 1 // clear() -> 0, 0 // gas irOptimized: 4483169 // gas legacy: 4410769 -// gas legacyOptimized: 4382531 +// gas legacyOptimized: 4382489 // storageEmpty -> 1 diff --git a/test/libsolidity/semanticTests/array/copying/array_copy_nested_array.sol b/test/libsolidity/semanticTests/array/copying/array_copy_nested_array.sol index 0e05c4ea8..df6160d4d 100644 --- a/test/libsolidity/semanticTests/array/copying/array_copy_nested_array.sol +++ b/test/libsolidity/semanticTests/array/copying/array_copy_nested_array.sol @@ -17,4 +17,4 @@ contract c { // test(uint256[2][]): 32, 3, 7, 8, 9, 10, 11, 12 -> 10 // gas irOptimized: 690205 // gas legacy: 686268 -// gas legacyOptimized: 685688 +// gas legacyOptimized: 685638 diff --git a/test/libsolidity/semanticTests/array/copying/array_copy_storage_storage_static_simple.sol b/test/libsolidity/semanticTests/array/copying/array_copy_storage_storage_static_simple.sol index a7dacd749..9f43d5870 100644 --- a/test/libsolidity/semanticTests/array/copying/array_copy_storage_storage_static_simple.sol +++ b/test/libsolidity/semanticTests/array/copying/array_copy_storage_storage_static_simple.sol @@ -15,4 +15,4 @@ contract C { // ---- // test() -> left(0x01), left(0x02) // gas legacy: 90001 -// gas legacyOptimized: 89085 +// gas legacyOptimized: 89055 diff --git a/test/libsolidity/semanticTests/array/copying/array_copy_storage_to_memory_nested.sol b/test/libsolidity/semanticTests/array/copying/array_copy_storage_to_memory_nested.sol index 3b2815526..c574b426a 100644 --- a/test/libsolidity/semanticTests/array/copying/array_copy_storage_to_memory_nested.sol +++ b/test/libsolidity/semanticTests/array/copying/array_copy_storage_to_memory_nested.sol @@ -19,4 +19,4 @@ contract C { // f() -> 0x20, 2, 0x40, 0xa0, 2, 0, 1, 2, 2, 3 // gas irOptimized: 161780 // gas legacy: 162278 -// gas legacyOptimized: 159955 +// gas legacyOptimized: 160051 diff --git a/test/libsolidity/semanticTests/array/copying/array_copy_target_leftover.sol b/test/libsolidity/semanticTests/array/copying/array_copy_target_leftover.sol index 1daa061a5..e620dba79 100644 --- a/test/libsolidity/semanticTests/array/copying/array_copy_target_leftover.sol +++ b/test/libsolidity/semanticTests/array/copying/array_copy_target_leftover.sol @@ -22,4 +22,4 @@ contract c { // test() -> 0xffffffff, 0x0000000000000000000000000a00090008000700060005000400030002000100, 0x0000000000000000000000000000000000000000000000000000000000000000 // gas irOptimized: 129167 // gas legacy: 186406 -// gas legacyOptimized: 166126 +// gas legacyOptimized: 163309 diff --git a/test/libsolidity/semanticTests/array/copying/array_copy_target_leftover2.sol b/test/libsolidity/semanticTests/array/copying/array_copy_target_leftover2.sol index b42b84dfe..31510010a 100644 --- a/test/libsolidity/semanticTests/array/copying/array_copy_target_leftover2.sol +++ b/test/libsolidity/semanticTests/array/copying/array_copy_target_leftover2.sol @@ -24,4 +24,4 @@ contract c { // test() -> 0x04000000000000000000000000000000000000000000000000, 0x0, 0x0 // gas irOptimized: 93858 // gas legacy: 97451 -// gas legacyOptimized: 94200 +// gas legacyOptimized: 94110 diff --git a/test/libsolidity/semanticTests/array/copying/array_copy_target_simple.sol b/test/libsolidity/semanticTests/array/copying/array_copy_target_simple.sol index c87f70244..a68eb0350 100644 --- a/test/libsolidity/semanticTests/array/copying/array_copy_target_simple.sol +++ b/test/libsolidity/semanticTests/array/copying/array_copy_target_simple.sol @@ -24,4 +24,4 @@ contract c { // test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x0 // gas irOptimized: 294772 // gas legacy: 303653 -// gas legacyOptimized: 301999 +// gas legacyOptimized: 301918 diff --git a/test/libsolidity/semanticTests/array/copying/array_copy_target_simple_2.sol b/test/libsolidity/semanticTests/array/copying/array_copy_target_simple_2.sol index c39f80275..fd4dd7c26 100644 --- a/test/libsolidity/semanticTests/array/copying/array_copy_target_simple_2.sol +++ b/test/libsolidity/semanticTests/array/copying/array_copy_target_simple_2.sol @@ -24,4 +24,4 @@ contract c { // test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x00 // gas irOptimized: 273963 // gas legacy: 276381 -// gas legacyOptimized: 275453 +// gas legacyOptimized: 275390 diff --git a/test/libsolidity/semanticTests/array/copying/array_nested_memory_to_storage.sol b/test/libsolidity/semanticTests/array/copying/array_nested_memory_to_storage.sol index 826d48b2b..5625d9e2f 100644 --- a/test/libsolidity/semanticTests/array/copying/array_nested_memory_to_storage.sol +++ b/test/libsolidity/semanticTests/array/copying/array_nested_memory_to_storage.sol @@ -42,10 +42,10 @@ contract Test { // test() -> 24 // gas irOptimized: 227167 // gas legacy: 227133 -// gas legacyOptimized: 226547 +// gas legacyOptimized: 226529 // test1() -> 3 // test2() -> 6 // test3() -> 24 // gas irOptimized: 133621 // gas legacy: 134295 -// gas legacyOptimized: 133383 +// gas legacyOptimized: 133365 diff --git a/test/libsolidity/semanticTests/array/copying/arrays_from_and_to_storage.sol b/test/libsolidity/semanticTests/array/copying/arrays_from_and_to_storage.sol index dadbceadc..c66303a80 100644 --- a/test/libsolidity/semanticTests/array/copying/arrays_from_and_to_storage.sol +++ b/test/libsolidity/semanticTests/array/copying/arrays_from_and_to_storage.sol @@ -14,7 +14,7 @@ contract Test { // 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 // gas legacy: 103563 -// gas legacyOptimized: 101397 +// gas legacyOptimized: 101161 // data(uint256): 7 -> 8 // data(uint256): 15 -> 16 // data(uint256): 18 -> FAILURE diff --git a/test/libsolidity/semanticTests/array/copying/bytes_inside_mappings.sol b/test/libsolidity/semanticTests/array/copying/bytes_inside_mappings.sol index 809ef247d..2e151969f 100644 --- a/test/libsolidity/semanticTests/array/copying/bytes_inside_mappings.sol +++ b/test/libsolidity/semanticTests/array/copying/bytes_inside_mappings.sol @@ -9,11 +9,11 @@ contract c { // set(uint256): 1, 2 -> true // gas irOptimized: 110699 // gas legacy: 111091 -// gas legacyOptimized: 110736 +// gas legacyOptimized: 110721 // set(uint256): 2, 2, 3, 4, 5 -> true // gas irOptimized: 177659 // gas legacy: 178021 -// gas legacyOptimized: 177666 +// gas legacyOptimized: 177651 // storageEmpty -> 0 // copy(uint256,uint256): 1, 2 -> true // storageEmpty -> 0 diff --git a/test/libsolidity/semanticTests/array/copying/bytes_storage_to_storage.sol b/test/libsolidity/semanticTests/array/copying/bytes_storage_to_storage.sol index 87974f053..4d76141ca 100644 --- a/test/libsolidity/semanticTests/array/copying/bytes_storage_to_storage.sol +++ b/test/libsolidity/semanticTests/array/copying/bytes_storage_to_storage.sol @@ -21,23 +21,23 @@ contract c { // f(uint256): 31 -> 0x20, 0x1f, 0x0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e00 // gas irOptimized: 121741 // gas legacy: 124364 -// gas legacyOptimized: 119898 +// gas legacyOptimized: 118790 // f(uint256): 32 -> 0x20, 0x20, 1780731860627700044960722568376592200742329637303199754547598369979440671 // gas irOptimized: 130733 // gas legacy: 135431 -// gas legacyOptimized: 130829 +// gas legacyOptimized: 129004 // f(uint256): 33 -> 0x20, 33, 1780731860627700044960722568376592200742329637303199754547598369979440671, 0x2000000000000000000000000000000000000000000000000000000000000000 // gas irOptimized: 137732 // gas legacy: 142238 -// gas legacyOptimized: 137518 +// gas legacyOptimized: 135634 // f(uint256): 63 -> 0x20, 0x3f, 1780731860627700044960722568376592200742329637303199754547598369979440671, 14532552714582660066924456880521368950258152170031413196862950297402215316992 // gas irOptimized: 152352 // gas legacy: 160728 -// gas legacyOptimized: 152168 +// gas legacyOptimized: 148634 // f(uint256): 12 -> 0x20, 0x0c, 0x0102030405060708090a0b0000000000000000000000000000000000000000 // gas legacy: 59345 -// gas legacyOptimized: 57279 +// gas legacyOptimized: 56816 // f(uint256): 129 -> 0x20, 0x81, 1780731860627700044960722568376592200742329637303199754547598369979440671, 0x202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f, 29063324697304692433803953038474361308315562010425523193971352996434451193439, 0x606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f, -57896044618658097711785492504343953926634992332820282019728792003956564819968 // gas irOptimized: 406089 // gas legacy: 423017 -// gas legacyOptimized: 406021 +// gas legacyOptimized: 398889 diff --git a/test/libsolidity/semanticTests/array/copying/calldata_array_dynamic_to_storage.sol b/test/libsolidity/semanticTests/array/copying/calldata_array_dynamic_to_storage.sol index 7c0b3bdbb..99c36a0ae 100644 --- a/test/libsolidity/semanticTests/array/copying/calldata_array_dynamic_to_storage.sol +++ b/test/libsolidity/semanticTests/array/copying/calldata_array_dynamic_to_storage.sol @@ -13,4 +13,4 @@ contract C { // f(uint256[]): 0x20, 0x03, 0x1, 0x2, 0x3 -> 0x1 // gas irOptimized: 111161 // gas legacy: 111565 -// gas legacyOptimized: 111347 +// gas legacyOptimized: 111297 diff --git a/test/libsolidity/semanticTests/array/copying/copy_byte_array_in_struct_to_storage.sol b/test/libsolidity/semanticTests/array/copying/copy_byte_array_in_struct_to_storage.sol index ed0fe8f5f..b26939fce 100644 --- a/test/libsolidity/semanticTests/array/copying/copy_byte_array_in_struct_to_storage.sol +++ b/test/libsolidity/semanticTests/array/copying/copy_byte_array_in_struct_to_storage.sol @@ -39,10 +39,10 @@ contract C { // f() -> 0x40, 0x80, 6, 0x6162636465660000000000000000000000000000000000000000000000000000, 0x49, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738390000000000000000000000000000000000000000000000 // gas irOptimized: 179952 // gas legacy: 180694 -// gas legacyOptimized: 180088 +// gas legacyOptimized: 180079 // g() -> 0x40, 0xc0, 0x49, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738390000000000000000000000000000000000000000000000, 0x11, 0x3132333435363738393233343536373839000000000000000000000000000000 // gas irOptimized: 107332 // gas legacy: 107895 -// gas legacyOptimized: 107254 +// gas legacyOptimized: 107235 // h() -> 0x40, 0x60, 0x00, 0x00 // storageEmpty -> 1 diff --git a/test/libsolidity/semanticTests/array/copying/copy_byte_array_to_storage.sol b/test/libsolidity/semanticTests/array/copying/copy_byte_array_to_storage.sol index b73f3dc44..262323611 100644 --- a/test/libsolidity/semanticTests/array/copying/copy_byte_array_to_storage.sol +++ b/test/libsolidity/semanticTests/array/copying/copy_byte_array_to_storage.sol @@ -50,4 +50,4 @@ contract C { // f() -> 0xff // gas irOptimized: 121145 // gas legacy: 128035 -// gas legacyOptimized: 123476 +// gas legacyOptimized: 123436 diff --git a/test/libsolidity/semanticTests/array/copying/copy_removes_bytes_data.sol b/test/libsolidity/semanticTests/array/copying/copy_removes_bytes_data.sol index b8ec0d97f..857f552cb 100644 --- a/test/libsolidity/semanticTests/array/copying/copy_removes_bytes_data.sol +++ b/test/libsolidity/semanticTests/array/copying/copy_removes_bytes_data.sol @@ -11,7 +11,7 @@ contract c { // set(): 1, 2, 3, 4, 5 -> true // gas irOptimized: 177417 // gas legacy: 177656 -// gas legacyOptimized: 177496 +// gas legacyOptimized: 177492 // storageEmpty -> 0 // reset() -> true // storageEmpty -> 1 diff --git a/test/libsolidity/semanticTests/array/copying/memory_dyn_2d_bytes_to_storage.sol b/test/libsolidity/semanticTests/array/copying/memory_dyn_2d_bytes_to_storage.sol index 3d4623b79..ab5bb8197 100644 --- a/test/libsolidity/semanticTests/array/copying/memory_dyn_2d_bytes_to_storage.sol +++ b/test/libsolidity/semanticTests/array/copying/memory_dyn_2d_bytes_to_storage.sol @@ -22,4 +22,4 @@ contract C { // f() -> 3 // gas irOptimized: 129916 // gas legacy: 130307 -// gas legacyOptimized: 129363 +// gas legacyOptimized: 129130 diff --git a/test/libsolidity/semanticTests/array/copying/storage_memory_nested.sol b/test/libsolidity/semanticTests/array/copying/storage_memory_nested.sol index ec58360cd..969c0f60e 100644 --- a/test/libsolidity/semanticTests/array/copying/storage_memory_nested.sol +++ b/test/libsolidity/semanticTests/array/copying/storage_memory_nested.sol @@ -21,4 +21,4 @@ contract C { // f() -> 1, 2, 3, 4, 5, 6, 7 // gas irOptimized: 207785 // gas legacy: 212325 -// gas legacyOptimized: 211486 +// gas legacyOptimized: 211450 diff --git a/test/libsolidity/semanticTests/array/copying/storage_memory_nested_bytes.sol b/test/libsolidity/semanticTests/array/copying/storage_memory_nested_bytes.sol index f94b442f3..a5e0bcf50 100644 --- a/test/libsolidity/semanticTests/array/copying/storage_memory_nested_bytes.sol +++ b/test/libsolidity/semanticTests/array/copying/storage_memory_nested_bytes.sol @@ -15,4 +15,4 @@ contract C { // f() -> 0x20, 0x02, 0x40, 0x80, 3, 0x6162630000000000000000000000000000000000000000000000000000000000, 0x99, 44048183304486788312148433451363384677562265908331949128489393215789685032262, 32241931068525137014058842823026578386641954854143559838526554899205067598957, 49951309422467613961193228765530489307475214998374779756599339590522149884499, 0x54555658595a6162636465666768696a6b6c6d6e6f707172737475767778797a, 0x4142434445464748494a4b4c4d4e4f5051525354555658595a00000000000000 // gas irOptimized: 202840 // gas legacy: 204459 -// gas legacyOptimized: 203437 +// gas legacyOptimized: 203533 diff --git a/test/libsolidity/semanticTests/array/copying/storage_memory_nested_from_pointer.sol b/test/libsolidity/semanticTests/array/copying/storage_memory_nested_from_pointer.sol index ece6f7969..232dff2f4 100644 --- a/test/libsolidity/semanticTests/array/copying/storage_memory_nested_from_pointer.sol +++ b/test/libsolidity/semanticTests/array/copying/storage_memory_nested_from_pointer.sol @@ -22,4 +22,4 @@ contract C { // f() -> 1, 2, 3, 4, 5, 6, 7 // gas irOptimized: 207785 // gas legacy: 212330 -// gas legacyOptimized: 211491 +// gas legacyOptimized: 211455 diff --git a/test/libsolidity/semanticTests/array/copying/storage_memory_packed_dyn.sol b/test/libsolidity/semanticTests/array/copying/storage_memory_packed_dyn.sol index abcd72ee1..d3ba60d3a 100644 --- a/test/libsolidity/semanticTests/array/copying/storage_memory_packed_dyn.sol +++ b/test/libsolidity/semanticTests/array/copying/storage_memory_packed_dyn.sol @@ -17,4 +17,4 @@ contract C { // f() -> 2, 3, 4 // gas irOptimized: 114120 // gas legacy: 126449 -// gas legacyOptimized: 120902 +// gas legacyOptimized: 120605 diff --git a/test/libsolidity/semanticTests/array/delete/bytes_delete_element.sol b/test/libsolidity/semanticTests/array/delete/bytes_delete_element.sol index 149e8768d..ea9af482f 100644 --- a/test/libsolidity/semanticTests/array/delete/bytes_delete_element.sol +++ b/test/libsolidity/semanticTests/array/delete/bytes_delete_element.sol @@ -20,4 +20,4 @@ contract c { // test1() -> true // gas irOptimized: 225894 // gas legacy: 255577 -// gas legacyOptimized: 248611 +// gas legacyOptimized: 244795 diff --git a/test/libsolidity/semanticTests/array/dynamic_array_cleanup.sol b/test/libsolidity/semanticTests/array/dynamic_array_cleanup.sol index 9f4be2119..d21632b10 100644 --- a/test/libsolidity/semanticTests/array/dynamic_array_cleanup.sol +++ b/test/libsolidity/semanticTests/array/dynamic_array_cleanup.sol @@ -18,7 +18,7 @@ contract c { // fill() -> // gas irOptimized: 519848 // gas legacy: 521773 -// gas legacyOptimized: 517048 +// gas legacyOptimized: 516733 // storageEmpty -> 0 // halfClear() -> // storageEmpty -> 0 diff --git a/test/libsolidity/semanticTests/array/dynamic_arrays_in_storage.sol b/test/libsolidity/semanticTests/array/dynamic_arrays_in_storage.sol index 2587442d5..e6da74238 100644 --- a/test/libsolidity/semanticTests/array/dynamic_arrays_in_storage.sol +++ b/test/libsolidity/semanticTests/array/dynamic_arrays_in_storage.sol @@ -46,7 +46,7 @@ contract c { // setLengths(uint256,uint256): 48, 49 -> // gas irOptimized: 104355 // gas legacy: 108571 -// gas legacyOptimized: 100417 +// gas legacyOptimized: 100401 // getLengths() -> 48, 49 // setIDStatic(uint256): 11 -> // getID(uint256): 2 -> 11 diff --git a/test/libsolidity/semanticTests/array/fixed_array_cleanup.sol b/test/libsolidity/semanticTests/array/fixed_array_cleanup.sol index dd131f287..1d6cf5180 100644 --- a/test/libsolidity/semanticTests/array/fixed_array_cleanup.sol +++ b/test/libsolidity/semanticTests/array/fixed_array_cleanup.sol @@ -15,7 +15,7 @@ contract c { // fill() -> // gas irOptimized: 465585 // gas legacy: 471460 -// gas legacyOptimized: 467520 +// gas legacyOptimized: 467220 // storageEmpty -> 0 // clear() -> // storageEmpty -> 1 diff --git a/test/libsolidity/semanticTests/array/fixed_arrays_as_return_type.sol b/test/libsolidity/semanticTests/array/fixed_arrays_as_return_type.sol index 5e30621af..b11a59ef0 100644 --- a/test/libsolidity/semanticTests/array/fixed_arrays_as_return_type.sol +++ b/test/libsolidity/semanticTests/array/fixed_arrays_as_return_type.sol @@ -23,4 +23,4 @@ contract B { // f() -> 2, 3, 4, 5, 6, 1000, 1001, 1002, 1003, 1004 // gas irOptimized: 130328 // gas legacy: 235199 -// gas legacyOptimized: 133119 +// gas legacyOptimized: 129450 diff --git a/test/libsolidity/semanticTests/array/function_array_cross_calls.sol b/test/libsolidity/semanticTests/array/function_array_cross_calls.sol index 95cb52f11..482c54a35 100644 --- a/test/libsolidity/semanticTests/array/function_array_cross_calls.sol +++ b/test/libsolidity/semanticTests/array/function_array_cross_calls.sol @@ -47,4 +47,4 @@ contract C { // test() -> 5, 6, 7 // gas irOptimized: 302321 // gas legacy: 462080 -// gas legacyOptimized: 294938 +// gas legacyOptimized: 293030 diff --git a/test/libsolidity/semanticTests/array/pop/array_pop_array_transition.sol b/test/libsolidity/semanticTests/array/pop/array_pop_array_transition.sol index f2a98f993..f429c9a07 100644 --- a/test/libsolidity/semanticTests/array/pop/array_pop_array_transition.sol +++ b/test/libsolidity/semanticTests/array/pop/array_pop_array_transition.sol @@ -27,5 +27,5 @@ contract c { // test() -> 1, 2, 3 // gas irOptimized: 2271482 // gas legacy: 2273722 -// gas legacyOptimized: 2262396 +// gas legacyOptimized: 2261793 // storageEmpty -> 1 diff --git a/test/libsolidity/semanticTests/array/pop/array_pop_uint16_transition.sol b/test/libsolidity/semanticTests/array/pop/array_pop_uint16_transition.sol index 4be29a15d..db2cc5aa2 100644 --- a/test/libsolidity/semanticTests/array/pop/array_pop_uint16_transition.sol +++ b/test/libsolidity/semanticTests/array/pop/array_pop_uint16_transition.sol @@ -22,5 +22,5 @@ contract c { // test() -> 38, 28, 18 // gas irOptimized: 188649 // gas legacy: 189780 -// gas legacyOptimized: 178870 +// gas legacyOptimized: 178267 // storageEmpty -> 1 diff --git a/test/libsolidity/semanticTests/array/pop/array_pop_uint24_transition.sol b/test/libsolidity/semanticTests/array/pop/array_pop_uint24_transition.sol index 08a403174..5505e5f7e 100644 --- a/test/libsolidity/semanticTests/array/pop/array_pop_uint24_transition.sol +++ b/test/libsolidity/semanticTests/array/pop/array_pop_uint24_transition.sol @@ -22,5 +22,5 @@ contract c { // test() -> 20, 10 // gas irOptimized: 159175 // gas legacy: 159459 -// gas legacyOptimized: 153281 +// gas legacyOptimized: 152903 // storageEmpty -> 1 diff --git a/test/libsolidity/semanticTests/array/pop/byte_array_pop_copy_long.sol b/test/libsolidity/semanticTests/array/pop/byte_array_pop_copy_long.sol index 387d21872..6967b2291 100644 --- a/test/libsolidity/semanticTests/array/pop/byte_array_pop_copy_long.sol +++ b/test/libsolidity/semanticTests/array/pop/byte_array_pop_copy_long.sol @@ -14,4 +14,4 @@ contract c { // test() -> 0x20, 29, 0x0303030303030303030303030303030303030303030303030303030303000000 // gas irOptimized: 109503 // gas legacy: 127309 -// gas legacyOptimized: 124136 +// gas legacyOptimized: 123625 diff --git a/test/libsolidity/semanticTests/array/pop/byte_array_pop_long_storage_empty.sol b/test/libsolidity/semanticTests/array/pop/byte_array_pop_long_storage_empty.sol index c911b1b7c..c3d54ce00 100644 --- a/test/libsolidity/semanticTests/array/pop/byte_array_pop_long_storage_empty.sol +++ b/test/libsolidity/semanticTests/array/pop/byte_array_pop_long_storage_empty.sol @@ -20,5 +20,5 @@ contract c { // test() -> true // gas irOptimized: 196545 // gas legacy: 229864 -// gas legacyOptimized: 210964 +// gas legacyOptimized: 206187 // storageEmpty -> 1 diff --git a/test/libsolidity/semanticTests/array/pop/byte_array_pop_long_storage_empty_garbage_ref.sol b/test/libsolidity/semanticTests/array/pop/byte_array_pop_long_storage_empty_garbage_ref.sol index 38c0c84d6..df42e4713 100644 --- a/test/libsolidity/semanticTests/array/pop/byte_array_pop_long_storage_empty_garbage_ref.sol +++ b/test/libsolidity/semanticTests/array/pop/byte_array_pop_long_storage_empty_garbage_ref.sol @@ -19,5 +19,5 @@ contract c { // test() -> // gas irOptimized: 142640 // gas legacy: 165363 -// gas legacyOptimized: 159446 +// gas legacyOptimized: 157534 // storageEmpty -> 1 diff --git a/test/libsolidity/semanticTests/array/pop/byte_array_pop_masking_long.sol b/test/libsolidity/semanticTests/array/pop/byte_array_pop_masking_long.sol index 6d314fb27..3aeb8e222 100644 --- a/test/libsolidity/semanticTests/array/pop/byte_array_pop_masking_long.sol +++ b/test/libsolidity/semanticTests/array/pop/byte_array_pop_masking_long.sol @@ -14,4 +14,4 @@ contract c { // test() -> 0x20, 33, 0x303030303030303030303030303030303030303030303030303030303030303, 0x0300000000000000000000000000000000000000000000000000000000000000 // gas irOptimized: 108493 // gas legacy: 126187 -// gas legacyOptimized: 123261 +// gas legacyOptimized: 122769 diff --git a/test/libsolidity/semanticTests/array/push/array_push_nested_from_calldata.sol b/test/libsolidity/semanticTests/array/push/array_push_nested_from_calldata.sol index a4be5ad90..1849b0d88 100644 --- a/test/libsolidity/semanticTests/array/push/array_push_nested_from_calldata.sol +++ b/test/libsolidity/semanticTests/array/push/array_push_nested_from_calldata.sol @@ -16,4 +16,4 @@ contract C { // f(uint120[]): 0x20, 3, 1, 2, 3 -> 1 // gas irOptimized: 113267 // gas legacy: 113686 -// gas legacyOptimized: 113499 +// gas legacyOptimized: 113449 diff --git a/test/libsolidity/semanticTests/array/push/array_push_struct_from_calldata.sol b/test/libsolidity/semanticTests/array/push/array_push_struct_from_calldata.sol index f6da6a398..b085e46fb 100644 --- a/test/libsolidity/semanticTests/array/push/array_push_struct_from_calldata.sol +++ b/test/libsolidity/semanticTests/array/push/array_push_struct_from_calldata.sol @@ -20,4 +20,4 @@ contract c { // test((uint16,uint16,uint16[3],uint16[])): 0x20, 2, 3, 0, 0, 4, 0xC0, 4, 0, 0, 5, 0, 0 -> 2, 3, 4, 5 // gas irOptimized: 138785 // gas legacy: 145150 -// gas legacyOptimized: 139171 +// gas legacyOptimized: 138980 diff --git a/test/libsolidity/semanticTests/array/push/byte_array_push_transition.sol b/test/libsolidity/semanticTests/array/push/byte_array_push_transition.sol index 78c817d44..25bcfcc7b 100644 --- a/test/libsolidity/semanticTests/array/push/byte_array_push_transition.sol +++ b/test/libsolidity/semanticTests/array/push/byte_array_push_transition.sol @@ -19,4 +19,4 @@ contract c { // test() -> 0 // gas irOptimized: 176848 // gas legacy: 218028 -// gas legacyOptimized: 205124 +// gas legacyOptimized: 201460 diff --git a/test/libsolidity/semanticTests/array/push/nested_bytes_push.sol b/test/libsolidity/semanticTests/array/push/nested_bytes_push.sol index 262ba724a..4964f8706 100644 --- a/test/libsolidity/semanticTests/array/push/nested_bytes_push.sol +++ b/test/libsolidity/semanticTests/array/push/nested_bytes_push.sol @@ -17,4 +17,4 @@ contract C { // f() -> // gas irOptimized: 179590 // gas legacy: 180620 -// gas legacyOptimized: 180403 +// gas legacyOptimized: 180359 diff --git a/test/libsolidity/semanticTests/array/push/push_no_args_2d.sol b/test/libsolidity/semanticTests/array/push/push_no_args_2d.sol index 8df809acd..2605afe31 100644 --- a/test/libsolidity/semanticTests/array/push/push_no_args_2d.sol +++ b/test/libsolidity/semanticTests/array/push/push_no_args_2d.sol @@ -31,14 +31,14 @@ contract C { // f(uint256,uint256): 42, 64 -> // gas irOptimized: 112555 // gas legacy: 108234 -// gas legacyOptimized: 102245 +// gas legacyOptimized: 101842 // l() -> 1 // ll(uint256): 0 -> 43 // a(uint256,uint256): 0, 42 -> 64 // f(uint256,uint256): 84, 128 -> // gas irOptimized: 116427 // gas legacy: 107780 -// gas legacyOptimized: 96331 +// gas legacyOptimized: 95550 // l() -> 2 // ll(uint256): 1 -> 85 // a(uint256,uint256): 0, 42 -> 64 diff --git a/test/libsolidity/semanticTests/array/push/push_no_args_bytes.sol b/test/libsolidity/semanticTests/array/push/push_no_args_bytes.sol index defbf4149..cb84ec4f0 100644 --- a/test/libsolidity/semanticTests/array/push/push_no_args_bytes.sol +++ b/test/libsolidity/semanticTests/array/push/push_no_args_bytes.sol @@ -25,7 +25,7 @@ contract C { // g(uint256): 70 -> // gas irOptimized: 184507 // gas legacy: 184991 -// gas legacyOptimized: 180608 +// gas legacyOptimized: 179307 // l() -> 70 // a(uint256): 69 -> left(69) // f() -> diff --git a/test/libsolidity/semanticTests/array/reusing_memory.sol b/test/libsolidity/semanticTests/array/reusing_memory.sol index 7d2b4d995..4002a303c 100644 --- a/test/libsolidity/semanticTests/array/reusing_memory.sol +++ b/test/libsolidity/semanticTests/array/reusing_memory.sol @@ -28,4 +28,4 @@ contract Main { // f(uint256): 0x34 -> 0x46bddb1178e94d7f2892ff5f366840eb658911794f2c3a44c450aa2c505186c1 // gas irOptimized: 113776 // gas legacy: 126852 -// gas legacyOptimized: 114079 +// gas legacyOptimized: 114015 diff --git a/test/libsolidity/semanticTests/constructor/arrays_in_constructors.sol b/test/libsolidity/semanticTests/constructor/arrays_in_constructors.sol index 63c2acbb5..79267de75 100644 --- a/test/libsolidity/semanticTests/constructor/arrays_in_constructors.sol +++ b/test/libsolidity/semanticTests/constructor/arrays_in_constructors.sol @@ -28,4 +28,4 @@ contract Creator { // f(uint256,address[]): 7, 0x40, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 -> 7, 8 // gas irOptimized: 456873 // gas legacy: 590939 -// gas legacyOptimized: 448582 +// gas legacyOptimized: 446203 diff --git a/test/libsolidity/semanticTests/constructor/bytes_in_constructors_packer.sol b/test/libsolidity/semanticTests/constructor/bytes_in_constructors_packer.sol index d4d41d80c..93f6731b9 100644 --- a/test/libsolidity/semanticTests/constructor/bytes_in_constructors_packer.sol +++ b/test/libsolidity/semanticTests/constructor/bytes_in_constructors_packer.sol @@ -28,4 +28,4 @@ contract Creator { // f(uint256,bytes): 7, 0x40, 78, "abcdefghijklmnopqrstuvwxyzabcdef", "ghijklmnopqrstuvwxyzabcdefghijkl", "mnopqrstuvwxyz" -> 7, "h" // gas irOptimized: 308702 // gas legacy: 429173 -// gas legacyOptimized: 298384 +// gas legacyOptimized: 298280 diff --git a/test/libsolidity/semanticTests/events/event_dynamic_array_storage.sol b/test/libsolidity/semanticTests/events/event_dynamic_array_storage.sol index b5db5ca2b..61247292c 100644 --- a/test/libsolidity/semanticTests/events/event_dynamic_array_storage.sol +++ b/test/libsolidity/semanticTests/events/event_dynamic_array_storage.sol @@ -17,4 +17,4 @@ contract C { // ~ emit E(uint256[]): 0x20, 0x03, 0x2a, 0x2b, 0x2c // gas irOptimized: 114746 // gas legacy: 116393 -// gas legacyOptimized: 114415 +// gas legacyOptimized: 114385 diff --git a/test/libsolidity/semanticTests/events/event_dynamic_array_storage_v2.sol b/test/libsolidity/semanticTests/events/event_dynamic_array_storage_v2.sol index f833ba37a..da617c810 100644 --- a/test/libsolidity/semanticTests/events/event_dynamic_array_storage_v2.sol +++ b/test/libsolidity/semanticTests/events/event_dynamic_array_storage_v2.sol @@ -18,4 +18,4 @@ contract C { // ~ emit E(uint256[]): 0x20, 0x03, 0x2a, 0x2b, 0x2c // gas irOptimized: 114746 // gas legacy: 116393 -// gas legacyOptimized: 114415 +// gas legacyOptimized: 114385 diff --git a/test/libsolidity/semanticTests/events/event_dynamic_nested_array_storage_v2.sol b/test/libsolidity/semanticTests/events/event_dynamic_nested_array_storage_v2.sol index 552444dd8..e71790f5f 100644 --- a/test/libsolidity/semanticTests/events/event_dynamic_nested_array_storage_v2.sol +++ b/test/libsolidity/semanticTests/events/event_dynamic_nested_array_storage_v2.sol @@ -19,4 +19,4 @@ contract C { // ~ emit E(uint256[][]): 0x20, 0x02, 0x40, 0xa0, 0x02, 0x2a, 0x2b, 0x02, 0x2c, 0x2d // gas irOptimized: 185444 // gas legacy: 187621 -// gas legacyOptimized: 184551 +// gas legacyOptimized: 184609 diff --git a/test/libsolidity/semanticTests/events/event_indexed_mixed.sol b/test/libsolidity/semanticTests/events/event_indexed_mixed.sol index 47aca1e2a..2ba2f7315 100644 --- a/test/libsolidity/semanticTests/events/event_indexed_mixed.sol +++ b/test/libsolidity/semanticTests/events/event_indexed_mixed.sol @@ -15,4 +15,4 @@ contract C { // ~ emit E(uint256,uint256,uint256,bytes): #0x02, 0x01, 0x03, 0x60, 0x03, "def" // gas irOptimized: 23709 // gas legacy: 24342 -// gas legacyOptimized: 23753 +// gas legacyOptimized: 23744 diff --git a/test/libsolidity/semanticTests/events/event_indexed_string.sol b/test/libsolidity/semanticTests/events/event_indexed_string.sol index d35db93c4..dee51918f 100644 --- a/test/libsolidity/semanticTests/events/event_indexed_string.sol +++ b/test/libsolidity/semanticTests/events/event_indexed_string.sol @@ -21,4 +21,4 @@ contract C { // ~ emit E(string,uint256[4]): #0xa7fb06bb999a5eb9aff9e0779953f4e1e4ce58044936c2f51c7fb879b85c08bd, #0xe755d8cc1a8cde16a2a31160dcd8017ac32d7e2f13215b29a23cdae40a78aa81 // gas irOptimized: 343396 // gas legacy: 390742 -// gas legacyOptimized: 376774 +// gas legacyOptimized: 372772 diff --git a/test/libsolidity/semanticTests/externalContracts/FixedFeeRegistrar.sol b/test/libsolidity/semanticTests/externalContracts/FixedFeeRegistrar.sol index 9205de434..2c557f65f 100644 --- a/test/libsolidity/semanticTests/externalContracts/FixedFeeRegistrar.sol +++ b/test/libsolidity/semanticTests/externalContracts/FixedFeeRegistrar.sol @@ -76,14 +76,14 @@ contract FixedFeeRegistrar is Registrar { // compileViaYul: also // ---- // constructor() -// gas irOptimized: 425623 +// gas irOptimized: 426283 // gas legacy: 936897 -// gas legacyOptimized: 490983 +// gas legacyOptimized: 477758 // reserve(string), 69 ether: 0x20, 3, "abc" -> // ~ emit Changed(string): #0x4e03657aea45a94fc7d47ba826c8d667c0d1e6e33a64a036ec44f58fa12d6c45 // gas irOptimized: 45967 // gas legacy: 46842 -// gas legacyOptimized: 46091 +// gas legacyOptimized: 46018 // owner(string): 0x20, 3, "abc" -> 0x1212121212121212121212121212120000000012 // reserve(string), 70 ether: 0x20, 3, "def" -> // ~ emit Changed(string): #0x34607c9bbfeb9c23509680f04363f298fdb0b5f9abe327304ecd1daca08cda9c diff --git a/test/libsolidity/semanticTests/externalContracts/deposit_contract.sol b/test/libsolidity/semanticTests/externalContracts/deposit_contract.sol index c6d7318a3..5d16256c8 100644 --- a/test/libsolidity/semanticTests/externalContracts/deposit_contract.sol +++ b/test/libsolidity/semanticTests/externalContracts/deposit_contract.sol @@ -178,9 +178,9 @@ contract DepositContract is IDepositContract, ERC165 { // compileViaYul: also // ---- // constructor() -// gas irOptimized: 1558013 +// gas irOptimized: 1558001 // gas legacy: 2580394 -// gas legacyOptimized: 1776483 +// gas legacyOptimized: 1745063 // supportsInterface(bytes4): 0x0 -> 0 // supportsInterface(bytes4): 0xffffffff00000000000000000000000000000000000000000000000000000000 -> false # defined to be false by ERC-165 # // supportsInterface(bytes4): 0x01ffc9a700000000000000000000000000000000000000000000000000000000 -> true # ERC-165 id # @@ -188,25 +188,25 @@ contract DepositContract is IDepositContract, ERC165 { // get_deposit_root() -> 0xd70a234731285c6804c2a4f56711ddb8c82c99740f207854891028af34e27e5e // gas irOptimized: 122169 // gas legacy: 150465 -// gas legacyOptimized: 122798 +// gas legacyOptimized: 122458 // get_deposit_count() -> 0x20, 8, 0 # TODO: check balance and logs after each deposit # // deposit(bytes,bytes,bytes,bytes32), 32 ether: 0 -> FAILURE # Empty input # // get_deposit_root() -> 0xd70a234731285c6804c2a4f56711ddb8c82c99740f207854891028af34e27e5e // gas irOptimized: 122169 // gas legacy: 150465 -// gas legacyOptimized: 122798 +// gas legacyOptimized: 122458 // get_deposit_count() -> 0x20, 8, 0 // deposit(bytes,bytes,bytes,bytes32), 1 ether: 0x80, 0xe0, 0x120, 0xaa4a8d0b7d9077248630f1a4701ae9764e42271d7f22b7838778411857fd349e, 0x30, 0x933ad9491b62059dd065b560d256d8957a8c402cc6e8d8ee7290ae11e8f73292, 0x67a8811c397529dac52ae1342ba58c9500000000000000000000000000000000, 0x20, 0x00f50428677c60f997aadeab24aabf7fceaef491c96a52b463ae91f95611cf71, 0x60, 0xa29d01cc8c6296a8150e515b5995390ef841dc18948aa3e79be6d7c1851b4cbb, 0x5d6ff49fa70b9c782399506a22a85193151b9b691245cebafd2063012443c132, 0x4b6c36debaedefb7b2d71b0503ffdc00150aaffd42e63358238ec888901738b8 -> # txhash: 0x7085c586686d666e8bb6e9477a0f0b09565b2060a11f1c4209d3a52295033832 # // ~ emit DepositEvent(bytes,bytes,bytes,bytes,bytes): 0xa0, 0x0100, 0x0140, 0x0180, 0x0200, 0x30, 0x933ad9491b62059dd065b560d256d8957a8c402cc6e8d8ee7290ae11e8f73292, 0x67a8811c397529dac52ae1342ba58c9500000000000000000000000000000000, 0x20, 0xf50428677c60f997aadeab24aabf7fceaef491c96a52b463ae91f95611cf71, 0x08, 0xca9a3b00000000000000000000000000000000000000000000000000000000, 0x60, 0xa29d01cc8c6296a8150e515b5995390ef841dc18948aa3e79be6d7c1851b4cbb, 0x5d6ff49fa70b9c782399506a22a85193151b9b691245cebafd2063012443c132, 0x4b6c36debaedefb7b2d71b0503ffdc00150aaffd42e63358238ec888901738b8, 0x08, 0x00 // get_deposit_root() -> 0x2089653123d9c721215120b6db6738ba273bbc5228ac093b1f983badcdc8a438 // gas irOptimized: 122148 // gas legacy: 150475 -// gas legacyOptimized: 122811 +// gas legacyOptimized: 122483 // get_deposit_count() -> 0x20, 8, 0x0100000000000000000000000000000000000000000000000000000000000000 // deposit(bytes,bytes,bytes,bytes32), 32 ether: 0x80, 0xe0, 0x120, 0xdbd986dc85ceb382708cf90a3500f500f0a393c5ece76963ac3ed72eccd2c301, 0x30, 0xb2ce0f79f90e7b3a113ca5783c65756f96c4b4673c2b5c1eb4efc22280259441, 0x06d601211e8866dc5b50dc48a244dd7c00000000000000000000000000000000, 0x20, 0x00344b6c73f71b11c56aba0d01b7d8ad83559f209d0a4101a515f6ad54c89771, 0x60, 0x945caaf82d18e78c033927d51f452ebcd76524497b91d7a11219cb3db6a1d369, 0x7595fc095ce489e46b2ef129591f2f6d079be4faaf345a02c5eb133c072e7c56, 0x0c6c3617eee66b4b878165c502357d49485326bc6b31bc96873f308c8f19c09d -> # txhash: 0x404d8e109822ce448e68f45216c12cb051b784d068fbe98317ab8e50c58304ac # // ~ emit DepositEvent(bytes,bytes,bytes,bytes,bytes): 0xa0, 0x0100, 0x0140, 0x0180, 0x0200, 0x30, 0xb2ce0f79f90e7b3a113ca5783c65756f96c4b4673c2b5c1eb4efc22280259441, 0x06d601211e8866dc5b50dc48a244dd7c00000000000000000000000000000000, 0x20, 0x344b6c73f71b11c56aba0d01b7d8ad83559f209d0a4101a515f6ad54c89771, 0x08, 0x40597307000000000000000000000000000000000000000000000000000000, 0x60, 0x945caaf82d18e78c033927d51f452ebcd76524497b91d7a11219cb3db6a1d369, 0x7595fc095ce489e46b2ef129591f2f6d079be4faaf345a02c5eb133c072e7c56, 0x0c6c3617eee66b4b878165c502357d49485326bc6b31bc96873f308c8f19c09d, 0x08, 0x0100000000000000000000000000000000000000000000000000000000000000 // get_deposit_root() -> 0x40255975859377d912c53aa853245ebd939bdd2b33a28e084babdcc1ed8238ee // gas irOptimized: 122148 // gas legacy: 150475 -// gas legacyOptimized: 122811 +// gas legacyOptimized: 122483 // get_deposit_count() -> 0x20, 8, 0x0200000000000000000000000000000000000000000000000000000000000000 diff --git a/test/libsolidity/semanticTests/externalContracts/prbmath_signed.sol b/test/libsolidity/semanticTests/externalContracts/prbmath_signed.sol index 01d2403a6..d63ba0c41 100644 --- a/test/libsolidity/semanticTests/externalContracts/prbmath_signed.sol +++ b/test/libsolidity/semanticTests/externalContracts/prbmath_signed.sol @@ -52,44 +52,44 @@ contract test { // constructor() // gas irOptimized: 1924584 // gas legacy: 2602700 -// gas legacyOptimized: 1874490 +// gas legacyOptimized: 1871526 // div(int256,int256): 3141592653589793238, 88714123 -> 35412542528203691288251815328 // gas irOptimized: 22137 // gas legacy: 22767 -// gas legacyOptimized: 22282 +// gas legacyOptimized: 22266 // exp(int256): 3141592653589793238 -> 23140692632779268978 // gas irOptimized: 24545 // gas legacy: 25203 -// gas legacyOptimized: 24357 +// gas legacyOptimized: 24346 // exp2(int256): 3141592653589793238 -> 8824977827076287620 // gas irOptimized: 24257 // gas legacy: 24864 -// gas legacyOptimized: 24110 +// gas legacyOptimized: 24099 // gm(int256,int256): 3141592653589793238, 88714123 -> 16694419339601 // gas irOptimized: 22970 // gas legacy: 23228 -// gas legacyOptimized: 22683 +// gas legacyOptimized: 22667 // log10(int256): 3141592653589793238 -> 4971498726941338506 // gas irOptimized: 30609 // gas legacy: 32934 -// gas legacyOptimized: 30323 +// gas legacyOptimized: 30303 // log2(int256): 3141592653589793238 -> 1651496129472318782 // gas irOptimized: 28819 // gas legacy: 31067 -// gas legacyOptimized: 28426 +// gas legacyOptimized: 28406 // mul(int256,int256): 3141592653589793238, 88714123 -> 278703637 // gas irOptimized: 22225 // gas legacy: 22807 -// gas legacyOptimized: 22295 +// gas legacyOptimized: 22279 // pow(int256,uint256): 3141592653589793238, 5 -> 306019684785281453040 // gas irOptimized: 22635 // gas legacy: 23508 -// gas legacyOptimized: 22921 +// gas legacyOptimized: 22905 // sqrt(int256): 3141592653589793238 -> 1772453850905516027 // gas irOptimized: 22650 // gas legacy: 22802 -// gas legacyOptimized: 22422 +// gas legacyOptimized: 22411 // benchmark(int256): 3141592653589793238 -> 998882724338592125, 1000000000000000000, 1000000000000000000 // gas irOptimized: 36630 // gas legacy: 36673 -// gas legacyOptimized: 34729 +// gas legacyOptimized: 34658 diff --git a/test/libsolidity/semanticTests/externalContracts/prbmath_unsigned.sol b/test/libsolidity/semanticTests/externalContracts/prbmath_unsigned.sol index c31664c85..57e723b91 100644 --- a/test/libsolidity/semanticTests/externalContracts/prbmath_unsigned.sol +++ b/test/libsolidity/semanticTests/externalContracts/prbmath_unsigned.sol @@ -52,44 +52,44 @@ contract test { // constructor() // gas irOptimized: 1778342 // gas legacy: 2356230 -// gas legacyOptimized: 1746528 +// gas legacyOptimized: 1741613 // div(uint256,uint256): 3141592653589793238, 88714123 -> 35412542528203691288251815328 // gas irOptimized: 22004 // gas legacy: 22497 -// gas legacyOptimized: 22010 +// gas legacyOptimized: 21994 // exp(uint256): 3141592653589793238 -> 23140692632779268978 // gas irOptimized: 24444 // gas legacy: 25104 -// gas legacyOptimized: 24258 +// gas legacyOptimized: 24247 // exp2(uint256): 3141592653589793238 -> 8824977827076287620 // gas irOptimized: 24198 // gas legacy: 24814 -// gas legacyOptimized: 24062 +// gas legacyOptimized: 24051 // gm(uint256,uint256): 3141592653589793238, 88714123 -> 16694419339601 // gas irOptimized: 22950 // gas legacy: 23269 -// gas legacyOptimized: 22724 +// gas legacyOptimized: 22708 // log10(uint256): 3141592653589793238 -> 0x44fe4fc084a52b8a // gas irOptimized: 30269 // gas legacy: 32898 -// gas legacyOptimized: 29925 +// gas legacyOptimized: 29905 // log2(uint256): 3141592653589793238 -> 1651496129472318782 // gas irOptimized: 28235 // gas legacy: 30986 -// gas legacyOptimized: 28001 +// gas legacyOptimized: 27981 // mul(uint256,uint256): 3141592653589793238, 88714123 -> 278703637 // gas irOptimized: 22048 // gas legacy: 22604 -// gas legacyOptimized: 22090 +// gas legacyOptimized: 22074 // pow(uint256,uint256): 3141592653589793238, 5 -> 306019684785281453040 // gas irOptimized: 22406 // gas legacy: 23245 -// gas legacyOptimized: 22646 +// gas legacyOptimized: 22630 // sqrt(uint256): 3141592653589793238 -> 1772453850905516027 // gas irOptimized: 22672 // gas legacy: 22820 -// gas legacyOptimized: 22440 +// gas legacyOptimized: 22429 // benchmark(uint256): 3141592653589793238 -> 998882724338592125, 1000000000000000000, 1000000000000000000 // gas irOptimized: 35603 // gas legacy: 35385 -// gas legacyOptimized: 33449 +// gas legacyOptimized: 33378 diff --git a/test/libsolidity/semanticTests/externalContracts/ramanujan_pi.sol b/test/libsolidity/semanticTests/externalContracts/ramanujan_pi.sol index 1fc85adff..65c662d6c 100644 --- a/test/libsolidity/semanticTests/externalContracts/ramanujan_pi.sol +++ b/test/libsolidity/semanticTests/externalContracts/ramanujan_pi.sol @@ -37,8 +37,8 @@ contract test { // constructor() // gas irOptimized: 465357 // gas legacy: 733634 -// gas legacyOptimized: 479606 +// gas legacyOptimized: 481376 // prb_pi() -> 3141592656369545286 // gas irOptimized: 57478 // gas legacy: 98903 -// gas legacyOptimized: 75735 +// gas legacyOptimized: 74312 diff --git a/test/libsolidity/semanticTests/externalContracts/snark.sol b/test/libsolidity/semanticTests/externalContracts/snark.sol index 8f6b939fd..9b818c806 100644 --- a/test/libsolidity/semanticTests/externalContracts/snark.sol +++ b/test/libsolidity/semanticTests/externalContracts/snark.sol @@ -299,4 +299,4 @@ contract Test { // ~ emit Verified(string): 0x20, 0x16, "Successfully verified." // gas irOptimized: 95261 // gas legacy: 114094 -// gas legacyOptimized: 83670 +// gas legacyOptimized: 82029 diff --git a/test/libsolidity/semanticTests/externalContracts/strings.sol b/test/libsolidity/semanticTests/externalContracts/strings.sol index 238ed2184..7fa1af867 100644 --- a/test/libsolidity/semanticTests/externalContracts/strings.sol +++ b/test/libsolidity/semanticTests/externalContracts/strings.sol @@ -53,24 +53,24 @@ contract test { // constructor() // gas irOptimized: 702619 // gas legacy: 1188228 -// gas legacyOptimized: 750416 +// gas legacyOptimized: 736100 // toSlice(string): 0x20, 11, "hello world" -> 11, 0xa0 // gas irOptimized: 22660 // gas legacy: 23190 -// gas legacyOptimized: 22508 +// gas legacyOptimized: 22449 // roundtrip(string): 0x20, 11, "hello world" -> 0x20, 11, "hello world" // gas irOptimized: 23408 // gas legacy: 23820 -// gas legacyOptimized: 23123 +// gas legacyOptimized: 23072 // utf8len(string): 0x20, 16, "\xf0\x9f\x98\x83\xf0\x9f\x98\x83\xf0\x9f\x98\x83\xf0\x9f\x98\x83" -> 4 # Input: "😃😃😃😃" # // gas irOptimized: 24026 // gas legacy: 25716 -// gas legacyOptimized: 24115 +// gas legacyOptimized: 23978 // multiconcat(string,uint256): 0x40, 3, 11, "hello world" -> 0x20, 0x58, 0x68656c6c6f20776f726c6468656c6c6f20776f726c6468656c6c6f20776f726c, 0x6468656c6c6f20776f726c6468656c6c6f20776f726c6468656c6c6f20776f72, 49027192869463622675296414541903001712009715982962058146354235762728281047040 # concatenating 3 times # // gas irOptimized: 28440 // gas legacy: 31621 -// gas legacyOptimized: 27914 +// gas legacyOptimized: 27691 // benchmark(string,bytes32): 0x40, 0x0842021, 8, "solidity" -> 0x2020 // gas irOptimized: 2040067 // gas legacy: 4381235 -// gas legacyOptimized: 2317529 +// gas legacyOptimized: 2166117 diff --git a/test/libsolidity/semanticTests/functionCall/failed_create.sol b/test/libsolidity/semanticTests/functionCall/failed_create.sol index b50890f55..b993fecda 100644 --- a/test/libsolidity/semanticTests/functionCall/failed_create.sol +++ b/test/libsolidity/semanticTests/functionCall/failed_create.sol @@ -20,7 +20,7 @@ contract C { // constructor(), 20 wei // gas irOptimized: 220113 // gas legacy: 288299 -// gas legacyOptimized: 177933 +// gas legacyOptimized: 174543 // f(uint256): 20 -> 1370859564726510389319704988634906228201275401179 // x() -> 1 // f(uint256): 20 -> FAILURE @@ -28,7 +28,7 @@ contract C { // stack(uint256): 1023 -> FAILURE // gas irOptimized: 345821 // gas legacy: 535367 -// gas legacyOptimized: 354656 +// gas legacyOptimized: 349920 // x() -> 1 // stack(uint256): 10 -> 693016686122178122849713379390321835634789309880 // x() -> 2 diff --git a/test/libsolidity/semanticTests/functionCall/mapping_array_internal_argument.sol b/test/libsolidity/semanticTests/functionCall/mapping_array_internal_argument.sol index f01a590eb..13bf47033 100644 --- a/test/libsolidity/semanticTests/functionCall/mapping_array_internal_argument.sol +++ b/test/libsolidity/semanticTests/functionCall/mapping_array_internal_argument.sol @@ -22,7 +22,7 @@ contract test { // set(uint8,uint8,uint8,uint8,uint8): 1, 21, 22, 42, 43 -> 0, 0, 0, 0 // gas irOptimized: 111965 // gas legacy: 113806 -// gas legacyOptimized: 111781 +// gas legacyOptimized: 111700 // get(uint8): 1 -> 21, 22, 42, 43 // set(uint8,uint8,uint8,uint8,uint8): 1, 10, 30, 11, 31 -> 21, 22, 42, 43 // get(uint8): 1 -> 10, 30, 11, 31 diff --git a/test/libsolidity/semanticTests/functionTypes/store_function.sol b/test/libsolidity/semanticTests/functionTypes/store_function.sol index c2678a91d..d063cd4d0 100644 --- a/test/libsolidity/semanticTests/functionTypes/store_function.sol +++ b/test/libsolidity/semanticTests/functionTypes/store_function.sol @@ -30,4 +30,4 @@ contract C { // t() -> 9 // gas irOptimized: 99186 // gas legacy: 159083 -// gas legacyOptimized: 108916 +// gas legacyOptimized: 108067 diff --git a/test/libsolidity/semanticTests/immutable/multi_creation.sol b/test/libsolidity/semanticTests/immutable/multi_creation.sol index cd5992ce6..aef9c0631 100644 --- a/test/libsolidity/semanticTests/immutable/multi_creation.sol +++ b/test/libsolidity/semanticTests/immutable/multi_creation.sol @@ -31,6 +31,6 @@ contract C { // f() -> 3, 7, 5 // gas irOptimized: 127592 // gas legacy: 151590 -// gas legacyOptimized: 125422 +// gas legacyOptimized: 125400 // x() -> 7 // y() -> 5 diff --git a/test/libsolidity/semanticTests/inheritance/inherited_function_calldata_memory_interface.sol b/test/libsolidity/semanticTests/inheritance/inherited_function_calldata_memory_interface.sol index 4105577f0..153729201 100644 --- a/test/libsolidity/semanticTests/inheritance/inherited_function_calldata_memory_interface.sol +++ b/test/libsolidity/semanticTests/inheritance/inherited_function_calldata_memory_interface.sol @@ -27,4 +27,4 @@ contract B { // g() -> 42 // gas irOptimized: 111913 // gas legacy: 185181 -// gas legacyOptimized: 114726 +// gas legacyOptimized: 116032 diff --git a/test/libsolidity/semanticTests/salted_create/salted_create_with_value.sol b/test/libsolidity/semanticTests/salted_create/salted_create_with_value.sol index 17edaf3eb..40b45cb15 100644 --- a/test/libsolidity/semanticTests/salted_create/salted_create_with_value.sol +++ b/test/libsolidity/semanticTests/salted_create/salted_create_with_value.sol @@ -24,4 +24,4 @@ contract A { // f(), 10 ether -> 3007, 3008, 3009 // gas irOptimized: 273275 // gas legacy: 422885 -// gas legacyOptimized: 287856 +// gas legacyOptimized: 288336 diff --git a/test/libsolidity/semanticTests/structs/calldata/calldata_struct_with_nested_array_to_storage.sol b/test/libsolidity/semanticTests/structs/calldata/calldata_struct_with_nested_array_to_storage.sol index 7b84033d8..1bd9183be 100644 --- a/test/libsolidity/semanticTests/structs/calldata/calldata_struct_with_nested_array_to_storage.sol +++ b/test/libsolidity/semanticTests/structs/calldata/calldata_struct_with_nested_array_to_storage.sol @@ -20,4 +20,4 @@ contract C { // f(uint32,(uint128,uint256[][2],uint32)): 55, 0x40, 77, 0x60, 88, 0x40, 0x40, 2, 1, 2 -> 55, 77, 1, 2, 88 // gas irOptimized: 203397 // gas legacy: 209194 -// gas legacyOptimized: 203583 +// gas legacyOptimized: 203344 diff --git a/test/libsolidity/semanticTests/structs/struct_containing_bytes_copy_and_delete.sol b/test/libsolidity/semanticTests/structs/struct_containing_bytes_copy_and_delete.sol index a677b5be8..6f486bed2 100644 --- a/test/libsolidity/semanticTests/structs/struct_containing_bytes_copy_and_delete.sol +++ b/test/libsolidity/semanticTests/structs/struct_containing_bytes_copy_and_delete.sol @@ -27,7 +27,7 @@ contract c { // set(uint256,bytes,uint256): 12, 0x60, 13, 33, "12345678901234567890123456789012", "3" -> true // gas irOptimized: 133752 // gas legacy: 134436 -// gas legacyOptimized: 133879 +// gas legacyOptimized: 133811 // test(uint256): 32 -> "3" // storageEmpty -> 0 // copy() -> true diff --git a/test/libsolidity/semanticTests/structs/struct_copy.sol b/test/libsolidity/semanticTests/structs/struct_copy.sol index 0bbb6489e..6c03c8895 100644 --- a/test/libsolidity/semanticTests/structs/struct_copy.sol +++ b/test/libsolidity/semanticTests/structs/struct_copy.sol @@ -40,12 +40,12 @@ contract c { // set(uint256): 7 -> true // gas irOptimized: 110011 // gas legacy: 110616 -// gas legacyOptimized: 110006 +// gas legacyOptimized: 109995 // retrieve(uint256): 7 -> 1, 3, 4, 2 // copy(uint256,uint256): 7, 8 -> true // gas irOptimized: 118707 // gas legacy: 119166 -// gas legacyOptimized: 118622 +// gas legacyOptimized: 118606 // retrieve(uint256): 7 -> 1, 3, 4, 2 // retrieve(uint256): 8 -> 1, 3, 4, 2 // copy(uint256,uint256): 0, 7 -> true diff --git a/test/libsolidity/semanticTests/userDefinedValueType/calldata.sol b/test/libsolidity/semanticTests/userDefinedValueType/calldata.sol index d54972842..16c51211c 100644 --- a/test/libsolidity/semanticTests/userDefinedValueType/calldata.sol +++ b/test/libsolidity/semanticTests/userDefinedValueType/calldata.sol @@ -53,11 +53,11 @@ contract C { // test_f() -> true // gas irOptimized: 122410 // gas legacy: 125037 -// gas legacyOptimized: 122605 +// gas legacyOptimized: 122470 // test_g() -> true // gas irOptimized: 95485 // gas legacy: 100586 -// gas legacyOptimized: 95996 +// gas legacyOptimized: 95778 // addresses(uint256): 0 -> 0x18 // addresses(uint256): 1 -> 0x19 // addresses(uint256): 3 -> 0x1b diff --git a/test/libsolidity/semanticTests/userDefinedValueType/erc20.sol b/test/libsolidity/semanticTests/userDefinedValueType/erc20.sol index 4db14ff73..cfb1e4aa1 100644 --- a/test/libsolidity/semanticTests/userDefinedValueType/erc20.sol +++ b/test/libsolidity/semanticTests/userDefinedValueType/erc20.sol @@ -117,7 +117,7 @@ contract ERC20 { // ~ emit Transfer(address,address,uint256): #0x00, #0x1212121212121212121212121212120000000012, 0x14 // gas irOptimized: 442239 // gas legacy: 861547 -// gas legacyOptimized: 420959 +// gas legacyOptimized: 408312 // totalSupply() -> 20 // gas irOptimized: 23415 // gas legacy: 23653 @@ -126,22 +126,22 @@ contract ERC20 { // ~ emit Transfer(address,address,uint256): #0x1212121212121212121212121212120000000012, #0x02, 0x05 // gas irOptimized: 48471 // gas legacy: 49572 -// gas legacyOptimized: 48575 +// gas legacyOptimized: 48532 // decreaseAllowance(address,uint256): 2, 0 -> true // ~ emit Approval(address,address,uint256): #0x1212121212121212121212121212120000000012, #0x02, 0x00 // gas irOptimized: 26275 // gas legacy: 27204 -// gas legacyOptimized: 26317 +// gas legacyOptimized: 26283 // decreaseAllowance(address,uint256): 2, 1 -> FAILURE, hex"4e487b71", 0x11 // gas irOptimized: 24042 // gas legacy: 24506 -// gas legacyOptimized: 24077 +// gas legacyOptimized: 24049 // transfer(address,uint256): 2, 14 -> true // ~ emit Transfer(address,address,uint256): #0x1212121212121212121212121212120000000012, #0x02, 0x0e // gas irOptimized: 28571 // gas legacy: 29672 -// gas legacyOptimized: 28675 +// gas legacyOptimized: 28632 // transfer(address,uint256): 2, 2 -> FAILURE, hex"4e487b71", 0x11 // gas irOptimized: 24071 // gas legacy: 24492 -// gas legacyOptimized: 24074 +// gas legacyOptimized: 24046 diff --git a/test/libsolidity/semanticTests/userDefinedValueType/zero_cost_abstraction_comparison_elementary.sol b/test/libsolidity/semanticTests/userDefinedValueType/zero_cost_abstraction_comparison_elementary.sol index d2d46c708..f75ef4bfd 100644 --- a/test/libsolidity/semanticTests/userDefinedValueType/zero_cost_abstraction_comparison_elementary.sol +++ b/test/libsolidity/semanticTests/userDefinedValueType/zero_cost_abstraction_comparison_elementary.sol @@ -26,7 +26,7 @@ contract C { // setX(int256): 5 -> // gas irOptimized: 43510 // gas legacy: 43724 -// gas legacyOptimized: 43516 +// gas legacyOptimized: 43505 // getX() -> 5 // gas irOptimized: 23379 // gas legacy: 23479 @@ -34,4 +34,4 @@ contract C { // add(int256,int256): 200, 99 -> 299 // gas irOptimized: 21764 // gas legacy: 22394 -// gas legacyOptimized: 21813 +// gas legacyOptimized: 21780 diff --git a/test/libsolidity/semanticTests/userDefinedValueType/zero_cost_abstraction_comparison_userdefined.sol b/test/libsolidity/semanticTests/userDefinedValueType/zero_cost_abstraction_comparison_userdefined.sol index 44d87c397..6d464e483 100644 --- a/test/libsolidity/semanticTests/userDefinedValueType/zero_cost_abstraction_comparison_userdefined.sol +++ b/test/libsolidity/semanticTests/userDefinedValueType/zero_cost_abstraction_comparison_userdefined.sol @@ -27,7 +27,7 @@ contract C { // setX(int256): 5 -> // gas irOptimized: 43510 // gas legacy: 43724 -// gas legacyOptimized: 43516 +// gas legacyOptimized: 43505 // getX() -> 5 // gas irOptimized: 23379 // gas legacy: 23608 @@ -35,4 +35,4 @@ contract C { // add(int256,int256): 200, 99 -> 299 // gas irOptimized: 21764 // gas legacy: 22523 -// gas legacyOptimized: 21813 +// gas legacyOptimized: 21780 diff --git a/test/libsolidity/semanticTests/various/destructuring_assignment.sol b/test/libsolidity/semanticTests/various/destructuring_assignment.sol index ee6f7690d..dac82a494 100644 --- a/test/libsolidity/semanticTests/various/destructuring_assignment.sol +++ b/test/libsolidity/semanticTests/various/destructuring_assignment.sol @@ -38,4 +38,4 @@ contract C { // f(bytes): 0x20, 0x5, "abcde" -> 0 // gas irOptimized: 240685 // gas legacy: 240358 -// gas legacyOptimized: 239682 +// gas legacyOptimized: 239619 diff --git a/test/libsolidity/semanticTests/various/erc20.sol b/test/libsolidity/semanticTests/various/erc20.sol index 204e620d6..fe4abc536 100644 --- a/test/libsolidity/semanticTests/various/erc20.sol +++ b/test/libsolidity/semanticTests/various/erc20.sol @@ -100,7 +100,7 @@ contract ERC20 { // ~ emit Transfer(address,address,uint256): #0x00, #0x1212121212121212121212121212120000000012, 0x14 // gas irOptimized: 437697 // gas legacy: 833310 -// gas legacyOptimized: 416135 +// gas legacyOptimized: 401976 // totalSupply() -> 20 // gas irOptimized: 23415 // gas legacy: 23524 @@ -109,22 +109,22 @@ contract ERC20 { // ~ emit Transfer(address,address,uint256): #0x1212121212121212121212121212120000000012, #0x02, 0x05 // gas irOptimized: 48471 // gas legacy: 49317 -// gas legacyOptimized: 48491 +// gas legacyOptimized: 48448 // decreaseAllowance(address,uint256): 2, 0 -> true // ~ emit Approval(address,address,uint256): #0x1212121212121212121212121212120000000012, #0x02, 0x00 // gas irOptimized: 26275 // gas legacy: 27012 -// gas legacyOptimized: 26275 +// gas legacyOptimized: 26241 // decreaseAllowance(address,uint256): 2, 1 -> FAILURE, hex"4e487b71", 0x11 // gas irOptimized: 24042 // gas legacy: 24467 -// gas legacyOptimized: 24056 +// gas legacyOptimized: 24028 // transfer(address,uint256): 2, 14 -> true // ~ emit Transfer(address,address,uint256): #0x1212121212121212121212121212120000000012, #0x02, 0x0e // gas irOptimized: 28571 // gas legacy: 29417 -// gas legacyOptimized: 28591 +// gas legacyOptimized: 28548 // transfer(address,uint256): 2, 2 -> FAILURE, hex"4e487b71", 0x11 // gas irOptimized: 24071 // gas legacy: 24453 -// gas legacyOptimized: 24053 +// gas legacyOptimized: 24025 diff --git a/test/libsolidity/semanticTests/various/skip_dynamic_types_for_structs.sol b/test/libsolidity/semanticTests/various/skip_dynamic_types_for_structs.sol index 8ef472136..8475673a9 100644 --- a/test/libsolidity/semanticTests/various/skip_dynamic_types_for_structs.sol +++ b/test/libsolidity/semanticTests/various/skip_dynamic_types_for_structs.sol @@ -24,4 +24,4 @@ contract C { // g() -> 2, 6 // gas irOptimized: 178953 // gas legacy: 180890 -// gas legacyOptimized: 179609 +// gas legacyOptimized: 179536 diff --git a/test/libsolidity/semanticTests/viaYul/array_memory_index_access.sol b/test/libsolidity/semanticTests/viaYul/array_memory_index_access.sol index b603fb786..de9539cd6 100644 --- a/test/libsolidity/semanticTests/viaYul/array_memory_index_access.sol +++ b/test/libsolidity/semanticTests/viaYul/array_memory_index_access.sol @@ -30,7 +30,7 @@ contract C { // index(uint256): 0xFF -> true // gas irOptimized: 138441 // gas legacy: 248854 -// gas legacyOptimized: 152638 +// gas legacyOptimized: 144977 // accessIndex(uint256,int256): 10, 1 -> 2 // accessIndex(uint256,int256): 10, 0 -> 1 // accessIndex(uint256,int256): 10, 11 -> FAILURE, hex"4e487b71", 0x32 diff --git a/test/libsolidity/semanticTests/viaYul/array_storage_index_access.sol b/test/libsolidity/semanticTests/viaYul/array_storage_index_access.sol index 24d0e9f14..817309a4f 100644 --- a/test/libsolidity/semanticTests/viaYul/array_storage_index_access.sol +++ b/test/libsolidity/semanticTests/viaYul/array_storage_index_access.sol @@ -20,31 +20,31 @@ contract C { // test_indices(uint256): 129 -> // gas irOptimized: 3032986 // gas legacy: 3071205 -// gas legacyOptimized: 3011873 +// gas legacyOptimized: 3007992 // test_indices(uint256): 5 -> // gas irOptimized: 367642 // gas legacy: 369241 -// gas legacyOptimized: 366149 +// gas legacyOptimized: 365988 // test_indices(uint256): 10 -> // test_indices(uint256): 15 -> // gas irOptimized: 72860 // test_indices(uint256): 0xFF -> // gas irOptimized: 3438610 // gas legacy: 3514167 -// gas legacyOptimized: 3398107 +// gas legacyOptimized: 3390446 // test_indices(uint256): 1000 -> // gas irOptimized: 18318372 // gas legacy: 18617999 -// gas legacyOptimized: 18178944 +// gas legacyOptimized: 18148933 // test_indices(uint256): 129 -> // gas irOptimized: 2733570 // gas legacy: 2772735 -// gas legacyOptimized: 2716547 +// gas legacyOptimized: 2712666 // test_indices(uint256): 128 -> // gas irOptimized: 426682 // gas legacy: 467272 -// gas legacyOptimized: 418424 +// gas legacyOptimized: 414573 // test_indices(uint256): 1 -> // gas irOptimized: 363074 // gas legacy: 363407 -// gas legacyOptimized: 361811 +// gas legacyOptimized: 361770 diff --git a/test/libsolidity/semanticTests/viaYul/array_storage_index_boundary_test.sol b/test/libsolidity/semanticTests/viaYul/array_storage_index_boundary_test.sol index 975130c51..12247b1cc 100644 --- a/test/libsolidity/semanticTests/viaYul/array_storage_index_boundary_test.sol +++ b/test/libsolidity/semanticTests/viaYul/array_storage_index_boundary_test.sol @@ -20,10 +20,10 @@ contract C { // test_boundary_check(uint256,uint256): 256, 256 -> FAILURE, hex"4e487b71", 0x32 // gas irOptimized: 137849 // gas legacy: 131830 -// gas legacyOptimized: 112054 +// gas legacyOptimized: 112040 // test_boundary_check(uint256,uint256): 256, 255 -> 0 // gas irOptimized: 140028 // gas legacy: 134149 -// gas legacyOptimized: 114233 +// gas legacyOptimized: 114217 // test_boundary_check(uint256,uint256): 256, 0xFFFF -> FAILURE, hex"4e487b71", 0x32 // test_boundary_check(uint256,uint256): 256, 2 -> 0 diff --git a/test/libsolidity/semanticTests/viaYul/array_storage_index_zeroed_test.sol b/test/libsolidity/semanticTests/viaYul/array_storage_index_zeroed_test.sol index b2e0cb546..2471ef16c 100644 --- a/test/libsolidity/semanticTests/viaYul/array_storage_index_zeroed_test.sol +++ b/test/libsolidity/semanticTests/viaYul/array_storage_index_zeroed_test.sol @@ -56,16 +56,16 @@ contract C { // test_zeroed_indicies(uint256): 5 -> // gas irOptimized: 131197 // gas legacy: 132367 -// gas legacyOptimized: 129586 +// gas legacyOptimized: 129458 // test_zeroed_indicies(uint256): 10 -> // gas irOptimized: 174805 // gas legacy: 177329 -// gas legacyOptimized: 172224 +// gas legacyOptimized: 171961 // test_zeroed_indicies(uint256): 15 -> // gas irOptimized: 198055 // gas legacy: 201954 -// gas legacyOptimized: 194604 +// gas legacyOptimized: 194206 // test_zeroed_indicies(uint256): 0xFF -> // gas irOptimized: 6098185 // gas legacy: 6163149 -// gas legacyOptimized: 6029474 +// gas legacyOptimized: 6022596 diff --git a/test/libsolidity/semanticTests/viaYul/array_storage_length_access.sol b/test/libsolidity/semanticTests/viaYul/array_storage_length_access.sol index c5af58449..924fea26f 100644 --- a/test/libsolidity/semanticTests/viaYul/array_storage_length_access.sol +++ b/test/libsolidity/semanticTests/viaYul/array_storage_length_access.sol @@ -16,9 +16,9 @@ contract C { // set_get_length(uint256): 0xFF -> 0xFF // gas irOptimized: 96690 // gas legacy: 126722 -// gas legacyOptimized: 107818 +// gas legacyOptimized: 107807 // set_get_length(uint256): 0xFFF -> 0xFFF // gas irOptimized: 1217857 // gas legacy: 1702119 -// gas legacyOptimized: 1398420 +// gas legacyOptimized: 1398409 // set_get_length(uint256): 0xFFFFF -> FAILURE # Out-of-gas # diff --git a/test/libsolidity/semanticTests/viaYul/array_storage_push_empty.sol b/test/libsolidity/semanticTests/viaYul/array_storage_push_empty.sol index 5c7c4cba8..d90b6c697 100644 --- a/test/libsolidity/semanticTests/viaYul/array_storage_push_empty.sol +++ b/test/libsolidity/semanticTests/viaYul/array_storage_push_empty.sol @@ -15,11 +15,11 @@ contract C { // pushEmpty(uint256): 128 // gas irOptimized: 412570 // gas legacy: 417287 -// gas legacyOptimized: 399048 +// gas legacyOptimized: 397885 // pushEmpty(uint256): 256 // gas irOptimized: 702558 // gas legacy: 715083 -// gas legacyOptimized: 688908 +// gas legacyOptimized: 686593 // pushEmpty(uint256): 38869 -> FAILURE # out-of-gas # // gas irOptimized: 100000000 // gas legacy: 100000000 diff --git a/test/libsolidity/semanticTests/viaYul/array_storage_push_empty_length_address.sol b/test/libsolidity/semanticTests/viaYul/array_storage_push_empty_length_address.sol index 5e5d1c962..858a4aed5 100644 --- a/test/libsolidity/semanticTests/viaYul/array_storage_push_empty_length_address.sol +++ b/test/libsolidity/semanticTests/viaYul/array_storage_push_empty_length_address.sol @@ -20,15 +20,15 @@ contract C { // set_get_length(uint256): 0 -> 0 // gas irOptimized: 77628 // gas legacy: 77730 -// gas legacyOptimized: 77162 +// gas legacyOptimized: 77151 // set_get_length(uint256): 0xFF -> 0xFF // gas irOptimized: 141805 // gas legacy: 678237 -// gas legacyOptimized: 115104 +// gas legacyOptimized: 115093 // set_get_length(uint256): 0xFFF -> 0xFFF // gas irOptimized: 1801672 // gas legacy: 9873774 -// gas legacyOptimized: 1398546 +// gas legacyOptimized: 1398535 // set_get_length(uint256): 0xFFFFF -> FAILURE # Out-of-gas # // gas irOptimized: 100000000 // gas legacyOptimized: 100000000 diff --git a/test/libsolidity/semanticTests/viaYul/array_storage_push_pop.sol b/test/libsolidity/semanticTests/viaYul/array_storage_push_pop.sol index e802e3687..6605334d3 100644 --- a/test/libsolidity/semanticTests/viaYul/array_storage_push_pop.sol +++ b/test/libsolidity/semanticTests/viaYul/array_storage_push_pop.sol @@ -17,13 +17,13 @@ contract C { // set_get_length(uint256): 20 -> 0 // gas irOptimized: 86331 // gas legacy: 85822 -// gas legacyOptimized: 83608 +// gas legacyOptimized: 83597 // set_get_length(uint256): 0xFF -> 0 // gas irOptimized: 821881 // gas legacy: 810327 -// gas legacyOptimized: 786258 +// gas legacyOptimized: 786247 // set_get_length(uint256): 0xFFF -> 0 // gas irOptimized: 12841093 // gas legacy: 12649059 -// gas legacyOptimized: 12267870 +// gas legacyOptimized: 12267859 // set_get_length(uint256): 0xFFFF -> FAILURE # Out-of-gas #