Unify function call resolve function used in Analysis & Yul CodeGen

This commit is contained in:
Mathias Baumann
2021-06-07 15:23:32 +02:00
parent 1f8f1a3db9
commit 6a0313c456
5 changed files with 60 additions and 101 deletions
@@ -45,15 +45,6 @@ private:
Unknown,
};
/// Simple attempt at resolving a function call
/// Does not aim to be able to resolve all calls, only used for variable
/// assignment tracking and revert behavior.
/// @param _functionCall the function call to analyse
/// @param _mostDerivedContract most derived contract
/// @returns function definition to which the call resolved or nullptr if no
/// definition was found.
FunctionDefinition const* resolveCall(FunctionCall const& _functionCall, ContractDefinition const* _mostDerivedContract);
/// Identify revert states of all function flows
void findRevertStates();