| 175 | } |
| 176 | |
| 177 | OptionalStatements ControlFlowSimplifier::reduceNoCaseSwitch(Switch& _switchStmt) const |
| 178 | { |
| 179 | yulAssert(_switchStmt.cases.empty(), "Expected no case!"); |
| 180 | std::optional<BuiltinHandle> discardFunctionHandle = |
| 181 | m_dialect.discardFunctionHandle(); |
| 182 | if (!discardFunctionHandle) |
| 183 | return {}; |
| 184 | |
| 185 | return make_vector<Statement>(makeDiscardCall( |
| 186 | debugDataOf(*_switchStmt.expression), |
| 187 | *discardFunctionHandle, |
| 188 | std::move(*_switchStmt.expression) |
| 189 | )); |
| 190 | } |
| 191 | |
| 192 | OptionalStatements ControlFlowSimplifier::reduceSingleCaseSwitch(Switch& _switchStmt) const |
| 193 | { |
nothing calls this directly
no test coverage detected