mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[Proto fuzzer] Add function calls, and multi variable declaration/assignment statements
This commit is contained in:
@@ -37,12 +37,10 @@ using namespace langutil;
|
||||
using namespace dev;
|
||||
using namespace yul::test;
|
||||
|
||||
DEFINE_PROTO_FUZZER(Function const& _input)
|
||||
DEFINE_PROTO_FUZZER(Program const& _input)
|
||||
{
|
||||
ProtoConverter converter;
|
||||
string yul_source = converter.functionToString(_input);
|
||||
if (yul_source.size() > 600)
|
||||
return;
|
||||
string yul_source = converter.programToString(_input);
|
||||
|
||||
if (const char* dump_path = getenv("PROTO_FUZZER_DUMP_PATH"))
|
||||
{
|
||||
@@ -52,6 +50,9 @@ DEFINE_PROTO_FUZZER(Function const& _input)
|
||||
of.write(yul_source.data(), yul_source.size());
|
||||
}
|
||||
|
||||
if (yul_source.size() > 1200)
|
||||
return;
|
||||
|
||||
// AssemblyStack entry point
|
||||
AssemblyStack stack(
|
||||
langutil::EVMVersion(),
|
||||
|
||||
Reference in New Issue
Block a user