mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Yul interpreter: Smaller execution timeout for tests and additional test cases
This commit is contained in:
parent
3862ceb528
commit
52c1b75f72
@ -91,20 +91,14 @@ DEFINE_PROTO_FUZZER(Program const& _input)
|
|||||||
|
|
||||||
ostringstream os1;
|
ostringstream os1;
|
||||||
ostringstream os2;
|
ostringstream os2;
|
||||||
yulFuzzerUtil::TerminationReason termReason = yulFuzzerUtil::interpret(
|
yulFuzzerUtil::interpret(
|
||||||
os1,
|
os1,
|
||||||
stack.parserResult()->code,
|
stack.parserResult()->code,
|
||||||
EVMDialect::strictAssemblyForEVMObjects(version)
|
EVMDialect::strictAssemblyForEVMObjects(version)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (
|
|
||||||
termReason == yulFuzzerUtil::TerminationReason::StepLimitReached ||
|
|
||||||
termReason == yulFuzzerUtil::TerminationReason::TraceLimitReached
|
|
||||||
)
|
|
||||||
return;
|
|
||||||
|
|
||||||
stack.optimize();
|
stack.optimize();
|
||||||
termReason = yulFuzzerUtil::interpret(
|
yulFuzzerUtil::TerminationReason termReason = yulFuzzerUtil::interpret(
|
||||||
os2,
|
os2,
|
||||||
stack.parserResult()->code,
|
stack.parserResult()->code,
|
||||||
EVMDialect::strictAssemblyForEVMObjects(version)
|
EVMDialect::strictAssemblyForEVMObjects(version)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user