Skip to content

Commit fb02b92

Browse files
committed
f
1 parent 202d90f commit fb02b92

22 files changed

+56
-31
lines changed

libsolidity/codegen/ArrayUtils.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,12 +320,8 @@ void ArrayUtils::copyArrayToStorage(ArrayType const& _targetType, ArrayType cons
320320

321321
auto const nTargetCopyCarryOver = nTargetPerSlot - targetCopyRemainder;
322322
auto const nSourceCarryOver = nSourcePerSlot - sourceRemainder;
323-
324-
fmt::print("\n\n\nnSourceCarryOver = {}, targetCopyRemainder = {}, copyTargetEndSlot = {}, mod = {}, targetEndSlot = {}\n", nSourceCarryOver.str(), targetCopyRemainder.str(), targetCopyEndSlot.str(), ((nSourceCarryOver - targetCopyRemainder) / nTargetPerSlot).str(), targetEndSlot.str());
325-
fmt::print("nSourcePerSlot = {}, nTargetPerSlot = {}\n", nSourcePerSlot, nTargetPerSlot);
326323
if (nSourceCarryOver > nTargetCopyCarryOver && targetCopyEndSlot + (nSourceCarryOver - nTargetCopyCarryOver) / nTargetPerSlot > targetEndSlot)
327324
{
328-
fmt::print("skipping clearStorageLoop\n");
329325
_context << Instruction::POP << Instruction::POP;
330326
return;
331327
}
@@ -816,7 +812,7 @@ void ArrayUtils::clearStorageLoop(Type const* _type, bool _canOverflow) const
816812
{
817813
solAssert(_type->storageBytes() >= 32, "");
818814
m_context.callLowLevelFunction(
819-
"$clearStorageLoop_" + _type->identifier(),
815+
"$clearStorageLoop_" + _type->identifier() + (_canOverflow ? "_canOverflow" : "cannotOverflow"),
820816
2,
821817
1,
822818
[_type, _canOverflow](CompilerContext& _context)

test/libsolidity/SemanticTest.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ SemanticTest::SemanticTest(
106106
BOOST_THROW_EXCEPTION(std::runtime_error("Invalid compileViaYul value: " + compileViaYul + "."));
107107
m_testCaseWantsYulRun = util::contains(yulRunTriggers, compileViaYul);
108108
m_testCaseWantsLegacyRun = util::contains(legacyRunTriggers, compileViaYul);
109-
m_testCaseWantsYulRun = false;
110109

111110
auto revertStrings = revertStringsFromString(m_reader.stringSetting("revertStrings", "default"));
112111
soltestAssert(revertStrings, "Invalid revertStrings setting.");

test/libsolidity/semanticTests/abiEncoderV2/calldata_overlapped_dynamic_arrays.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ contract C {
3434
// f_which(uint256[],uint256[2],uint256): 0x40, 1, 2, 1 -> FAILURE
3535
// f_storage(uint256[],uint256[2]): 0x20, 1, 2 -> 0x20, 0x60, 0x20, 1, 2
3636
// gas irOptimized: 111409
37-
// gas legacy: 112707
37+
// gas legacy: 112704
3838
// gas legacyOptimized: 111845
3939
// f_storage(uint256[],uint256[2]): 0x40, 1, 2, 5, 6 -> 0x20, 0x80, 0x20, 2, 5, 6
4040
// f_storage(uint256[],uint256[2]): 0x40, 1, 2, 5 -> FAILURE

test/libsolidity/semanticTests/abiEncoderV2/storage_array_encoding.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ contract C {
2323
// gas legacyOptimized: 180856
2424
// i(uint256[2][2]): 123, 124, 223, 224 -> 32, 128, 123, 124, 223, 224
2525
// gas irOptimized: 112031
26-
// gas legacy: 115085
26+
// gas legacy: 115082
2727
// gas legacyOptimized: 112657

test/libsolidity/semanticTests/array/copying/array_copy_calldata_storage.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ contract c {
2121
// ----
2222
// 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
2323
// gas irOptimized: 647725
24-
// gas legacy: 694354
24+
// gas legacy: 694351
2525
// gas legacyOptimized: 693849
2626
// retrieve() -> 9, 28, 9, 28, 4, 3, 32

test/libsolidity/semanticTests/array/copying/array_copy_including_array.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ contract c {
3636
// ----
3737
// test() -> 0x02000202
3838
// gas irOptimized: 4549676
39-
// gas legacy: 4473477
39+
// gas legacy: 4473198
4040
// gas legacyOptimized: 4445748
4141
// storageEmpty -> 1
4242
// clear() -> 0, 0

test/libsolidity/semanticTests/array/copying/array_copy_nested_array.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ contract c {
1313
// ----
1414
// test(uint256[2][]): 32, 3, 7, 8, 9, 10, 11, 12 -> 10
1515
// gas irOptimized: 689552
16-
// gas legacy: 686176
16+
// gas legacy: 686086
1717
// gas legacyOptimized: 685611

test/libsolidity/semanticTests/array/copying/array_copy_target_simple_2.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ contract c {
1919
// ----
2020
// test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x00
2121
// gas irOptimized: 232995
22-
// gas legacy: 235694
22+
// gas legacy: 235688
2323
// gas legacyOptimized: 235193

test/libsolidity/semanticTests/array/copying/array_of_function_external_storage_to_storage_dynamic_different_mutability.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ contract C {
4949
// ----
5050
// copyExternalStorageArraysOfFunctionType() -> true
5151
// gas irOptimized: 104238
52-
// gas legacy: 108235
52+
// gas legacy: 108295
5353
// gas legacyOptimized: 102162
5454
// copyInternalArrayOfFunctionType() -> true
5555
// gas legacy: 104178

test/libsolidity/semanticTests/array/copying/array_to_mapping.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ contract C {
3838
// ----
3939
// from_storage() -> 0x20, 2, 0x40, 0xa0, 2, 10, 11, 3, 12, 13, 14
4040
// gas irOptimized: 147755
41-
// gas legacy: 148772
41+
// gas legacy: 148892
4242
// gas legacyOptimized: 146917
4343
// from_storage_ptr() -> 0x20, 2, 0x40, 0xa0, 2, 10, 11, 3, 12, 13, 14
4444
// from_memory() -> 0x20, 2, 0x40, 0xa0, 2, 10, 11, 3, 12, 13, 14

0 commit comments

Comments
 (0)