| 73 | } |
| 74 | |
| 75 | bool YulStack::parseAndAnalyze(std::string const& _sourceName, std::string const& _source) |
| 76 | { |
| 77 | m_errors.clear(); |
| 78 | yulAssert(m_stackState == Empty); |
| 79 | |
| 80 | if (!parse(_sourceName, _source)) |
| 81 | return false; |
| 82 | |
| 83 | yulAssert(m_stackState == Parsed); |
| 84 | yulAssert(m_parserResult, ""); |
| 85 | yulAssert(m_parserResult->hasCode()); |
| 86 | |
| 87 | return analyzeParsed(); |
| 88 | } |
| 89 | |
| 90 | void YulStack::optimize() |
| 91 | { |
no test coverage detected