yul proto fuzzer: Make function call generation optional

This commit is contained in:
Bhargava Shastry 2019-11-18 12:12:30 +01:00
parent a335fed189
commit 8cbe1d4b1d
2 changed files with 3 additions and 1 deletions

View File

@ -1740,7 +1740,8 @@ void ProtoConverter::createFunctionDefAndCall(
!m_inForInitScope,
"Proto fuzzer: Trying to create function call inside for-init block"
);
createFunctionCall(funcName, _numInParams, _numOutParams);
if (_x.force_call())
createFunctionCall(funcName, _numInParams, _numOutParams);
}
void ProtoConverter::visit(FunctionDef const& _x)

View File

@ -355,6 +355,7 @@ message FunctionDef {
required uint32 num_input_params = 1;
required uint32 num_output_params = 2;
required Block block = 3;
required bool force_call = 4;
}
message PopStmt {