mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Side effects propagator.
This commit is contained in:
@@ -62,6 +62,21 @@ private:
|
||||
SideEffects m_sideEffects;
|
||||
};
|
||||
|
||||
/**
|
||||
* This class can be used to determine the side-effects of user-defined functions.
|
||||
*
|
||||
* It is given a dialect and a mapping that represents the direct calls from user-defined
|
||||
* functions to other user-defined functions and built-in functions.
|
||||
*/
|
||||
class SideEffectsPropagator
|
||||
{
|
||||
public:
|
||||
static std::map<YulString, SideEffects> sideEffects(
|
||||
Dialect const& _dialect,
|
||||
std::map<YulString, std::set<YulString>> const& _directCallGraph
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* Class that can be used to find out if certain code contains the MSize instruction.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user