MCPcopy Create free account
hub / github.com/argotorg/solidity / reportStackTooDeep

Method reportStackTooDeep

libyul/backends/evm/StackLayoutGenerator.cpp:67–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67std::map<YulName, std::vector<StackLayoutGenerator::StackTooDeep>> StackLayoutGenerator::reportStackTooDeep(
68 CFG const& _cfg,
69 EVMDialect const& _evmDialect
70)
71{
72 std::map<YulName, std::vector<StackLayoutGenerator::StackTooDeep>> stackTooDeepErrors;
73 stackTooDeepErrors[YulName{}] = reportStackTooDeep(_cfg, YulName{}, _evmDialect);
74 for (auto const& function: _cfg.functions)
75 if (auto errors = reportStackTooDeep(_cfg, function->name, _evmDialect); !errors.empty())
76 stackTooDeepErrors[function->name] = std::move(errors);
77 return stackTooDeepErrors;
78}
79
80std::vector<StackLayoutGenerator::StackTooDeep> StackLayoutGenerator::reportStackTooDeep(
81 CFG const& _cfg,

Callers

nothing calls this directly

Calls 7

mapTupleFunction · 0.85
findStackTooDeepFunction · 0.85
processEntryPointMethod · 0.80
atMethod · 0.80
emptyMethod · 0.45
runMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected