Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and refill EOF Tests according to default retesteth configuration #1349

Merged
merged 13 commits into from
Apr 8, 2024
2,000 changes: 1,349 additions & 651 deletions EIPTests/BlockchainTests/StateTests/stEOF/stEIP3540/EOF1_Calls.json

Large diffs are not rendered by default.

3,448 changes: 327 additions & 3,121 deletions EIPTests/BlockchainTests/StateTests/stEOF/stEIP3540/EOF1_Execution.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

116 changes: 69 additions & 47 deletions EIPTests/StateTests/stEOF/stEIP3540/EOF1_Calls.json

Large diffs are not rendered by default.

187 changes: 27 additions & 160 deletions EIPTests/StateTests/stEOF/stEIP3540/EOF1_Execution.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions EIPTests/StateTests/stEOF/stEIP4750/CALLF_RETF_Execution.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
"CALLF_RETF_Execution" : {
"_info" : {
"comment" : "",
"filling-rpc-server" : "evmone-t8n 0.12.0-dev+commit.14ba7529",
"filling-tool-version" : "retesteth-0.3.2-cancun+commit.9d793abd.Linux.g++",
"generatedTestHash" : "feac012123fdfd5f3cb6ca7eed121ecb74b88e9d8d254f80e814dff6b96d62f0",
"filling-rpc-server" : "evmone-t8n 0.12.0-dev+commit.dabc0fb0",
"filling-tool-version" : "retesteth-0.3.2-cancun+commit.a7cdb586.Linux.g++",
"generatedTestHash" : "9a462bcbbcd01a2b81ac191e3673c2f30677364e85c8a01156834b90182511bd",
"labels" : {
"0" : "simple_callf_retf",
"1" : "callf_retf_fac",
"2" : "callf_retf_fib",
"3" : "callf_max_code_sections"
},
"lllcversion" : "Version: 0.5.14-develop.2022.4.6+commit.401d5358.Linux.g++",
"solidity" : "Version: 0.8.18-develop.2023.1.16+commit.469d6d4d.Linux.g++",
"lllcversion" : "Error getting LLLC Version",
"solidity" : "Version: 0.8.25+commit.b61c2a91.Linux.g++",
"source" : "src/EIPTestsFiller/StateTests/stEOF/stEIP4750/CALLF_RETF_ExecutionFiller.yml",
"sourceHash" : "7d65a89d403b2bb71a883f7a4b360e9bef9d69deaeb03f6649f1e122592fdeae"
},
Expand All @@ -29,7 +29,7 @@
"post" : {
"Prague" : [
{
"hash" : "0xe9a9c86d911a888db2086154657571d1fb8ab5e5f2b5a09e7ce08e530ea580d1",
"hash" : "0x9fc5bf3086dd4b62dfd1a224a480b10369708d0b7e7e7670dfee685a5052c2e2",
"indexes" : {
"data" : 0,
"gas" : 0,
Expand All @@ -39,7 +39,7 @@
"txbytes" : "0xf874800a83e4e1c094b94f5374fce5edbc8e2a8697c15331677e6ebf0b809410000000000000000000000000000000000000011ba07f8fbe7cfadf3268f71508bd29e01ef28bb6d8c47b7811bc43f23c4133f05ae2a01bb7cea57faa8e0915f87f5af3a12e9f64f2eb3033536aafc8fc4ea6d45876aa"
},
{
"hash" : "0x39c55cc3ee65eaf186d7062ac57070c283619d54320b74a532b0c120ca950a37",
"hash" : "0x4d067f88787757441c2f3c83ad7ff4631944101db24200a7c909f7a522a73666",
"indexes" : {
"data" : 1,
"gas" : 0,
Expand All @@ -49,7 +49,7 @@
"txbytes" : "0xf899800a83e4e1c094b94f5374fce5edbc8e2a8697c15331677e6ebf0b80b8381000000000000000000000000000000000000002c766526700000000000000000000000000000000000000000000000000000000000000051ca067bd4a495286c18cc877c3db55abc0a36e958f08ebb14a61df77a4e2c9824c42a0576180f19e5b5e6146f6e239f2d5f5dff80abb223dbd3efca10cbd1215ce09dd"
},
{
"hash" : "0x69edd152db2b0775348ecac661d27ca7bda627ce6912505796553275c6f16bdc",
"hash" : "0x46bd4452898614194f494144ef39de5b631e9ee1b01ca06ad4abb6662f8538ce",
"indexes" : {
"data" : 2,
"gas" : 0,
Expand All @@ -59,7 +59,7 @@
"txbytes" : "0xf899800a83e4e1c094b94f5374fce5edbc8e2a8697c15331677e6ebf0b80b8381000000000000000000000000000000000000002c6c2ea17000000000000000000000000000000000000000000000000000000000000000f1ca08d09dba60c603d17ae87232ff4edf12adb67fc64fa932ae2dffe91e5c2aed371a05ffae9204f8f656af7a1b153af59077ad4da00bdc9cf0e4edae12bdba626c353"
},
{
"hash" : "0xbd7245415bd26a51339d40188c6bd411ec0f418acfde540b3b2f52e66198fdc7",
"hash" : "0x0ed3fc825d5996588d27cab2c96a1d5393bfbcd0b806938308e524e5d240618d",
"indexes" : {
"data" : 3,
"gas" : 0,
Expand Down Expand Up @@ -101,7 +101,7 @@
},
"0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x989680",
"code" : "0x36600080376020806014360360146000805160601c620186a0f1600055602051600155",
"code" : "0x365f80376020806014360360145f805160601c620186a0f15f5560205160015500",
"nonce" : "0x00",
"storage" : {
}
Expand Down
16 changes: 8 additions & 8 deletions EIPTests/StateTests/stEOF/stEIP5450/EOF1_CALLF_Execution.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"EOF1_CALLF_Execution" : {
"_info" : {
"comment" : "",
"filling-rpc-server" : "evmone-t8n 0.12.0-dev+commit.14ba7529",
"filling-tool-version" : "retesteth-0.3.2-cancun+commit.9d793abd.Linux.g++",
"generatedTestHash" : "f877832aa39bcfb6e29f61b01ac487bbc43340fbb3ebfdac17f6e4471f939103",
"filling-rpc-server" : "evmone-t8n 0.12.0-dev+commit.dabc0fb0",
"filling-tool-version" : "retesteth-0.3.2-cancun+commit.a7cdb586.Linux.g++",
"generatedTestHash" : "8317e456ee3aa94587a45366a9d1166a60b59dd3d3ad95e2a6a5cdf8e6e6e1a6",
"labels" : {
"0" : "function_reaching_max_stack_size_a",
"1" : "function_reaching_max_stack_size_b"
},
"lllcversion" : "Version: 0.5.14-develop.2022.4.6+commit.401d5358.Linux.g++",
"solidity" : "Version: 0.8.18-develop.2023.1.16+commit.469d6d4d.Linux.g++",
"lllcversion" : "Error getting LLLC Version",
"solidity" : "Version: 0.8.25+commit.b61c2a91.Linux.g++",
"source" : "src/EIPTestsFiller/StateTests/stEOF/stEIP5450/EOF1_CALLF_ExecutionFiller.yml",
"sourceHash" : "a90907206f41cee52be9de7774b8f28925923612c6f181e772a4f6579fcbecd0"
},
Expand All @@ -27,7 +27,7 @@
"post" : {
"Prague" : [
{
"hash" : "0x215af6c75c06fe5f03dbe090a8a5d14b9a9c48b61414fd0cd46a95c4b4ff75ef",
"hash" : "0xca79a4ff9fa66fa62375200d8977619dba4a4e9b499a31ca4200830beff0f407",
"indexes" : {
"data" : 0,
"gas" : 0,
Expand All @@ -37,7 +37,7 @@
"txbytes" : "0xf874800a830aae6094b94f5374fce5edbc8e2a8697c15331677e6ebf0b809410000000000000000000000000000000000000011ca0f3468a162da6e1853c6c309166644f2cb0aacc45db4ce27e158f24b3bbe259baa07588f62b1229e9637779d355a47df65b1f7acc7a0cd3e724e9df207f052dca9d"
},
{
"hash" : "0xedf3467527a1f54515832252a635e913e8a04320dd57a2fa8a01e545f44bc5ff",
"hash" : "0xf22795a735d6492a1cd7634a289d214cc82824b9404b63b9c35c43844f9a88d2",
"indexes" : {
"data" : 1,
"gas" : 0,
Expand Down Expand Up @@ -72,7 +72,7 @@
},
"0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x989680",
"code" : "0x368060008037600181602060146000805160601c620186a0f1600055805160f81c60015550",
"code" : "0x36805f8037600181602060145f805160601c620186a0f15f555160f81c60015500",
"nonce" : "0x00",
"storage" : {
}
Expand Down
401 changes: 199 additions & 202 deletions EOFTests/EIP3670/validInvalid.json

Large diffs are not rendered by default.

438 changes: 185 additions & 253 deletions EOFTests/EIP5450/validInvalid.json

Large diffs are not rendered by default.

35 changes: 9 additions & 26 deletions EOFTests/efExample/validInvalid.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"validInvalid" : {
"_info" : {
"comment" : "Test various examples to see if they are valid or invalid.\nImplements\n EOF1I0001 check that EOF1 with a bad magic number fails\n EOF1I0002 check that EOF1 with a bad version number fails\n EOF1I0003 check that EOF1 with a bad section order fails\n EOF1I0004 check that EOF1 missing a section fails\n EOF1I0005 check that EOF1 with a bad end of sections number fails\n EOF1I0006 check that EOF1 with too many or too few bytes fails\n EOF1I0007 check that EOF1 with a malformed code section fails\n EOF1I0008 check that EOF1 with an illegal opcode fails\n EOF1I0009 check that EOF1 with the wrong maxStackDepth fails\n EOF1I0010 check that return values are not allowed on section 0\n EOF1I0011 check that function calls to code sections that don't exist fail\n EOF1I0012 check that code sections that cause stack underflow fail\n EOF1I0013 check that we can't return more values than we declare\n EOF1I0014 check that code that looks deeper in the stack than the parameters fails\n EOF1I0015 check that code that uses removed opcodes fails\n EOF1I0016 check that code that uses new relative jumps to outside the section fails\n EOF1I0017 check that parameters are not allowed on section 0\n EOF1I0018 inconsistent number of code sections (between types and code)\n EOF1I0019 check that jumps into the middle on an opcode are not allowed\n EOF1I0020 check that you can't get to the same opcode with two different stack heights\n EOF1I0022 stack underflow caused by a function call\n EOF1I0023 sections with unreachable code fail\n EOF1I0024 sections that end with a non-terminator opcode fail\n EOF1I0025 data stack height of 1024 is invalid\n EOF1V0001 check that simple valid EOF1 deploys\n EOF1V0002 check that valid EOF1 with two code sections deploys\n EOF1V0003 check that valid EOF1 with four code sections deploys\n EOF1V0004 check that valid EOF1 can include 0xFE, the designated invalid opcode\n EOF1V0005 check that EOF1 with the right maxStackDepth deploys\n EOF1V0006 check that return values are allowed on code sections that aren't zero\n EOF1V0007 check that function calls to code sections that exist are allowed\n EOF1V0008 check that code that uses a new style relative jump (5C) succeeds\n EOF1V0009 check that parameters are allowed on code sections that aren't zero\n EOF1V0010 parameters are part of the max stack height\n EOF1V0011 check that code that uses a new style conditional jump (5D) succeeds\n EOF1V0012 return values on code sections affect maxStackHeight of the caller\n EOF1V0013 jump tables work\n EOF1V0014 sections that end with a legit terminating opcode are OK\n EOF1V0015 data stack height of 1023 is valid\n EOF1V0016 check that data section size can be less than the declared size\n",
"filling-rpc-server" : "evmone-t8n 0.12.0-dev+commit.14ba7529",
"filling-tool-version" : "retesteth-0.3.2-cancun+commit.9d793abd.Linux.g++",
"generatedTestHash" : "8be48064c85661c6125e29eba56ec2ea604ba480d22410eedb125978ed173d2e",
"lllcversion" : "Version: 0.5.14-develop.2022.4.6+commit.401d5358.Linux.g++",
"solidity" : "Version: 0.8.18-develop.2023.1.16+commit.469d6d4d.Linux.g++",
"filling-rpc-server" : "evmone-t8n 0.12.0-dev+commit.8202c81e",
"filling-tool-version" : "retesteth-0.3.2-cancun+commit.a7cdb586.Linux.g++",
"generatedTestHash" : "c62a0385dff27dfa283e037ddc2299ce1ecaa2932061306af3a7191c4dfa5f86",
"lllcversion" : "Error getting LLLC Version",
"solidity" : "Version: 0.8.25+commit.b61c2a91.Linux.g++",
"source" : "src/EOFTestsFiller/efExample/validInvalidFiller.yml",
"sourceHash" : "3e743bba1e9bffbfcc2bf398913470701329e100ed6a31bc155fb323f4910c7b"
"sourceHash" : "0eb24a7a7ffb551c5816d2986e04ef73171870f7facaafb8bb91da89bb3a20a3"
},
"vectors" : {
"validInvalid_0" : {
Expand Down Expand Up @@ -353,7 +353,7 @@
"code" : "0xef020101000402000100030400010000800001305000ef",
"results" : {
"Prague" : {
"exception" : "EOF_InvalidMagic",
"exception" : "EOF_InvalidPrefix",
"result" : false
}
}
Expand All @@ -362,7 +362,7 @@
"code" : "0xef000001000402000100030400010000800001305000ef",
"results" : {
"Prague" : {
"exception" : "EOF_InvalidVersion",
"exception" : "EOF_UnknownVersion",
"result" : false
}
}
Expand All @@ -371,7 +371,7 @@
"code" : "0xef000201000402000100030400010000800001305000ef",
"results" : {
"Prague" : {
"exception" : "EOF_InvalidVersion",
"exception" : "EOF_UnknownVersion",
"result" : false
}
}
Expand Down Expand Up @@ -429,23 +429,6 @@
}
}
},
"validInvalid_52" : {
"code" : "0xef0001010004020001000a040016000080000338600060003938601df3ef0001010004020001000304001d0000000001385000",
"results" : {
"Prague" : {
"result" : true
}
}
},
"validInvalid_53" : {
"code" : "0x610badfe",
"results" : {
"Prague" : {
"exception" : "EOF_InvalidMagic",
"result" : false
}
}
},
"validInvalid_6" : {
"code" : "0xef00010100040200010003040001ff00800001305000ef",
"results" : {
Expand Down
22 changes: 7 additions & 15 deletions EOFTests/efExample/ymlExample.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"ymlExample" : {
"_info" : {
"comment" : "EOF example test",
"filling-rpc-server" : "evmone-t8n 0.12.0-dev+commit.14ba7529",
"filling-tool-version" : "retesteth-0.3.2-cancun+commit.9d793abd.Linux.g++",
"generatedTestHash" : "acafd37d166881fa1a015acb1d6ff88f0f698e14a7db9098952065aaa90e78e5",
"lllcversion" : "Version: 0.5.14-develop.2022.4.6+commit.401d5358.Linux.g++",
"solidity" : "Version: 0.8.18-develop.2023.1.16+commit.469d6d4d.Linux.g++",
"filling-rpc-server" : "evmone-t8n 0.12.0-dev+commit.808cc18c.dirty",
"filling-tool-version" : "retesteth-0.3.2-cancun+commit.0abe77bb.Linux.g++",
"generatedTestHash" : "04e7659cd33c11d48c8421f7a3342d4840b288d21694f37e0b01c841857c60ef",
"lllcversion" : "Error getting LLLC Version",
"solidity" : "Version: 0.8.24+commit.e11b9ed9.Linux.g++",
"source" : "src/EOFTestsFiller/efExample/ymlExampleFiller.yml",
"sourceHash" : "3eb098795ee0f651ae94dab0674f1a6f2e9dd5d6210cf6719508d9f301b4b71d"
"sourceHash" : "324654e1783340f8279f7e7b7c8dbe2b71497c28e2a25eef16e4429266f62c02"
},
"vectors" : {
"ymlExample_0" : {
Expand All @@ -21,14 +21,6 @@
}
},
"ymlExample_1" : {
"code" : "0xef0001010004020001000a040016000080000338600060003938601df3ef0001010004020001000304001d0000800001385000",
"results" : {
"Prague" : {
"result" : true
}
}
},
"ymlExample_2" : {
"code" : "0xefffff",
"results" : {
"Prague" : {
Expand All @@ -37,7 +29,7 @@
}
}
},
"ymlExample_3" : {
"ymlExample_2" : {
"code" : "0x610badfe",
"results" : {
"Prague" : {
Expand Down
Loading