Merge pull request #10974 from ethereum/disable-reasoning-simplifier-fuzzing

Optimiser fuzzer: Disable  reasoning based simplifier runs.
This commit is contained in:
Bhargava Shastry 2021-02-18 11:55:19 +01:00 committed by GitHub
commit 5c6633f975
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -390,10 +390,16 @@ string YulOptimizerTestCommon::randomOptimiserStep(unsigned _seed)
if (count == idx)
{
string optimiserStep = step.first;
// Do not fuzz mainFunction or wordSizeTransform
// Do not fuzz mainFunction and wordSizeTransform
// because they do not preserve yul code semantics.
if (optimiserStep == "mainFunction" || optimiserStep == "wordSizeTransform")
// "Fullsuite" is fuzzed roughly three times more frequently than
// Do not fuzz reasoning based simplifier because
// it can sometimes drain memory.
if (
optimiserStep == "mainFunction" ||
optimiserStep == "wordSizeTransform" ||
optimiserStep == "reasoningBasedSimplifier"
)
// "Fullsuite" is fuzzed roughly four times more frequently than
// other steps because of the filtering in place above.
return "fullSuite";
else