Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions test/TestCase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,19 +144,8 @@ void EVMVersionRestrictedTestCase::processEVMVersionSetting()
m_shouldRun = false;
}

void EVMVersionRestrictedTestCase::processBytecodeFormatSetting()
{
std::string bytecodeFormatString = m_reader.stringSetting("bytecodeFormat", "legacy");
if (bytecodeFormatString == "legacy")
return;

if (bytecodeFormatString != "legacy")
BOOST_THROW_EXCEPTION(std::runtime_error{"Invalid bytecodeFormat flag: \"" + bytecodeFormatString + "\""});
}

EVMVersionRestrictedTestCase::EVMVersionRestrictedTestCase(std::string const& _filename):
TestCase(_filename)
{
processEVMVersionSetting();
processBytecodeFormatSetting();
}
1 change: 0 additions & 1 deletion test/TestCase.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ class EVMVersionRestrictedTestCase: public TestCase
{
private:
void processEVMVersionSetting();
void processBytecodeFormatSetting();

protected:
EVMVersionRestrictedTestCase(std::string const& _filename);
Expand Down
1 change: 0 additions & 1 deletion test/libevmasm/EVMAssemblyTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ namespace solidity::evmasm::test
///
/// Available settings:
/// - EVMVersion: The range of EVM versions to run the test for. Inherited from EVMVersionRestrictedTestCase.
/// - bytecodeFormat: Bytecode format setting (only "legacy" is currently supported). Inherited from EVMVersionRestrictedTestCase.
/// - outputs: List of outputs to include in the test. The order of values does NOT determine the order
/// in which the outputs are printed. Supported outputs: InputAssemblyJSON, Assembly, Bytecode, Opcodes, SourceMappings.
/// The default is to print all outputs except InputAssemblyJSON.
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion test/libsolidity/gasTests/abiv2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ contract C {
}
// ====
// EVMVersion: =current
// bytecodeFormat: legacy
// ----
// creation:
// codeDepositCost: 1208000
Expand Down
1 change: 0 additions & 1 deletion test/libsolidity/gasTests/abiv2_optimised.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ contract C {
}
// ====
// EVMVersion: =current
// bytecodeFormat: legacy
// optimize: true
// optimize-yul: true
// ----
Expand Down
1 change: 0 additions & 1 deletion test/libsolidity/gasTests/data_storage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ contract C {
}
// ====
// EVMVersion: =current
// bytecodeFormat: legacy
// ----
// creation:
// codeDepositCost: 377800
Expand Down
1 change: 0 additions & 1 deletion test/libsolidity/gasTests/dispatch_large.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ contract Large {
}
// ====
// EVMVersion: =current
// bytecodeFormat: legacy
// ----
// creation:
// codeDepositCost: 618400
Expand Down
1 change: 0 additions & 1 deletion test/libsolidity/gasTests/dispatch_large_optimised.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ contract Large {
}
// ====
// EVMVersion: =current
// bytecodeFormat: legacy
// optimize: true
// optimize-runs: 2
// ----
Expand Down
1 change: 0 additions & 1 deletion test/libsolidity/gasTests/dispatch_medium.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ contract Medium {
}
// ====
// EVMVersion: =current
// bytecodeFormat: legacy
// ----
// creation:
// codeDepositCost: 259600
Expand Down
1 change: 0 additions & 1 deletion test/libsolidity/gasTests/dispatch_medium_optimised.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ contract Medium {
}
// ====
// EVMVersion: =current
// bytecodeFormat: legacy
// ====
// optimize: true
// optimize-runs: 2
Expand Down
1 change: 0 additions & 1 deletion test/libsolidity/gasTests/dispatch_small.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ contract Small {
}
// ====
// EVMVersion: =current
// bytecodeFormat: legacy
// ----
// creation:
// codeDepositCost: 103800
Expand Down
1 change: 0 additions & 1 deletion test/libsolidity/gasTests/dispatch_small_optimised.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ contract Small {
// EVMVersion: =current
// optimize: true
// optimize-runs: 2
// bytecodeFormat: legacy
// ----
// creation:
// codeDepositCost: 58200
Expand Down
1 change: 0 additions & 1 deletion test/libsolidity/gasTests/exp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ contract C {
}
// ====
// EVMVersion: =current
// bytecodeFormat: legacy
// optimize: false
// optimize-yul: false
// ----
Expand Down
1 change: 0 additions & 1 deletion test/libsolidity/gasTests/exp_optimized.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ contract C {
}
// ====
// EVMVersion: =current
// bytecodeFormat: legacy
// optimize: true
// optimize-yul: true
// ----
Expand Down
1 change: 0 additions & 1 deletion test/libsolidity/gasTests/storage_costs.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ contract C {
// EVMVersion: =current
// optimize: true
// optimize-yul: true
// bytecodeFormat: legacy
// ----
// creation:
// codeDepositCost: 25600
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ contract Creator {
}
}
// ====
// bytecodeFormat: legacy
// ----
// f(uint256,address[]): 7, 0x40, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 -> 7, 8
// gas irOptimized: 327784
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ contract Derived is Base {
}
}
// ====
// bytecodeFormat: legacy
// ----
// getA() -> 49
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ contract Creator {
}
}
// ====
// bytecodeFormat: legacy
// ----
// f(uint256,bytes): 7, 0x40, 78, "abcdefghijklmnopqrstuvwxyzabcdef", "ghijklmnopqrstuvwxyzabcdefghijkl", "mnopqrstuvwxyz" -> 7, "h"
// gas irOptimized: 169297
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ contract Test {
}
}
// ====
// bytecodeFormat: legacy
// ----
// constructor(): 7, 0x40, 78, "abcdefghijklmnopqrstuvwxyzabcdef", "ghijklmnopqrstuvwxyzabcdefghijkl", "mnopqrstuvwxyz" ->
// gas irOptimized: 181629
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ contract C {
}
// ====
// EVMVersion: >homestead
// bytecodeFormat: legacy
// ----
// f(uint256), 2000 ether: 0 -> true
// f(uint256), 2000 ether: 100 -> false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ contract Main {
}
}
// ====
// bytecodeFormat: legacy
// ----
// constructor(): "abc", true
// gas irOptimized: 80174
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ contract Main {
}
}
// ====
// bytecodeFormat: legacy
// ----
// getFlag() -> true
// getName() -> "abc"
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ contract D {
}
}
// ====
// bytecodeFormat: legacy
// ----
// constructor(): 0xfdd67305928fcac8d213d1e47bfa6165cd0b87b946644cd0000000000000000 ->
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ contract C {
}
}
// ====
// bytecodeFormat: legacy
// ----
// f() -> 16
// gas legacy: 78477
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ contract C {
}
}
// ====
// bytecodeFormat: legacy
// ----
// constructor(): 1, 2, 3, 4 ->
// gas irOptimized: 148129
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ contract B {
}
}
// ====
// bytecodeFormat: legacy
// ----
// testIt() ->
// test() -> 2
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ contract Derived is Base {
}
}
// ====
// bytecodeFormat: legacy
// ----
// getA() -> 2
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ contract Test {
}
}
// ====
// bytecodeFormat: legacy
// ----
// getName() -> "abc"
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,5 @@ contract Test {
}
}
// ====
// bytecodeFormat: legacy
// ----
// getName() -> "def\x00\x00\x00"
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ contract Derived is Base {
}
}
// ====
// bytecodeFormat: legacy
// ----
// getBMember() -> 5
// getDMember() -> 6
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@ contract X is D, C, B, A {
constructor() A(f(1)) C(f(2)) B(f(3)) D(f(4)) {}
}
// ====
// bytecodeFormat: legacy
// ----
// g() -> 0x20, 4, 1, 3, 2, 4
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ contract C {
constructor() payable {}
}
// ====
// bytecodeFormat: legacy
// ----
// constructor(), 27 wei ->
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ contract C {
}
}
// ====
// bytecodeFormat: legacy
// ----
// use(uint256): 3 -> 6
// result_in_constructor() -> 4
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ contract C {
}
}
// ====
// bytecodeFormat: legacy
// ----
// use(uint16): 3 -> 0xfff9
// result_in_constructor() -> 0xfffb
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ contract C {
}
}
// ====
// bytecodeFormat: legacy
// ----
// t() -> 7
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ contract C {
}
}
// ====
// bytecodeFormat: legacy
// ----
// t() -> 7
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ contract C {

// ====
// EVMVersion: >=cancun
// bytecodeFormat: legacy
// ----
// f() -> 100
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,5 @@ contract C {
}
}
// ====
// bytecodeFormat: legacy
// ----
// test() -> true
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,5 @@ contract C {
}
}
// ====
// bytecodeFormat: legacy
// ----
// test() -> true
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,5 @@ contract C {
}
}
// ====
// bytecodeFormat: legacy
// ----
// test() -> true
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,5 @@ contract C is S {
}
}
// ====
// bytecodeFormat: legacy
// ----
// test() -> true
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ contract C {
}
}
// ====
// bytecodeFormat: legacy
// ----
// test() -> true
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,5 @@ contract C is S {
}
}
// ====
// bytecodeFormat: legacy
// ----
// test() -> true
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,5 @@ contract C is X {
}
}
// ====
// bytecodeFormat: legacy
// ----
// test() -> true
1 change: 0 additions & 1 deletion test/libsolidity/semanticTests/ecrecover/ecrecover.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ contract test {
}
}
// ====
// bytecodeFormat: legacy
// ----
// a(bytes32,uint8,bytes32,bytes32):
// 0x18c547e4f7b0f325ad1e56f57e26c745b09a3e503d86e00e5255ff7f715d3d1c,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ contract C {
}
}
// ====
// bytecodeFormat: legacy
// ----
// constructor() ->
// gas irOptimized: 113970
Expand Down
1 change: 0 additions & 1 deletion test/libsolidity/semanticTests/experimental/stub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ contract C {
// EVMVersion: >=constantinople
// ====
// compileViaYul: true
// bytecodeFormat: legacy
// ----
// (): 0 -> 0
// (): 1 -> 544
1 change: 0 additions & 1 deletion test/libsolidity/semanticTests/experimental/type_class.sol
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,5 @@ contract C {
// experimental: true
// EVMVersion: >=constantinople
// compileViaYul: true
// bytecodeFormat: legacy
// ----
// () -> 1, 0
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ contract D {
}
}
// ====
// bytecodeFormat: legacy
// ----
// f() -> true
Loading