mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
yul proto fuzzer: Make function call generation optional
This commit is contained in:
parent
a335fed189
commit
8cbe1d4b1d
@ -1740,7 +1740,8 @@ void ProtoConverter::createFunctionDefAndCall(
|
|||||||
!m_inForInitScope,
|
!m_inForInitScope,
|
||||||
"Proto fuzzer: Trying to create function call inside for-init block"
|
"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)
|
void ProtoConverter::visit(FunctionDef const& _x)
|
||||||
|
@ -355,6 +355,7 @@ message FunctionDef {
|
|||||||
required uint32 num_input_params = 1;
|
required uint32 num_input_params = 1;
|
||||||
required uint32 num_output_params = 2;
|
required uint32 num_output_params = 2;
|
||||||
required Block block = 3;
|
required Block block = 3;
|
||||||
|
required bool force_call = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message PopStmt {
|
message PopStmt {
|
||||||
|
Loading…
Reference in New Issue
Block a user