Increase upper bound for number of interpreted steps for optimized code

This commit is contained in:
Bhargava Shastry
2019-04-10 12:57:54 +02:00
parent 9eaaf42c4c
commit 484c14af81
4 changed files with 37 additions and 8 deletions
+8 -2
View File
@@ -74,7 +74,10 @@ DEFINE_PROTO_FUZZER(Function const& _input)
ostringstream os2;
try
{
yulFuzzerUtil::interpret(os1, stack.parserResult()->code);
yulFuzzerUtil::interpret(
os1,
stack.parserResult()->code
);
}
catch (yul::test::StepLimitReached const&)
{
@@ -87,7 +90,10 @@ DEFINE_PROTO_FUZZER(Function const& _input)
stack.optimize();
try
{
yulFuzzerUtil::interpret(os2, stack.parserResult()->code);
yulFuzzerUtil::interpret(os2,
stack.parserResult()->code,
(yul::test::yul_fuzzer::yulFuzzerUtil::maxSteps * 1.5)
);
}
catch (yul::test::InterpreterTerminatedGeneric const&)
{