| 65 | } |
| 66 | |
| 67 | std::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 | |
| 80 | std::vector<StackLayoutGenerator::StackTooDeep> StackLayoutGenerator::reportStackTooDeep( |
| 81 | CFG const& _cfg, |
nothing calls this directly
no test coverage detected