| 853 | } |
| 854 | |
| 855 | YulStack CompilerStack::loadGeneratedIR(std::string const& _ir) const |
| 856 | { |
| 857 | YulStack stack( |
| 858 | m_evmVersion, |
| 859 | m_eofVersion, |
| 860 | m_optimiserSettings, |
| 861 | m_debugInfoSelection, |
| 862 | this, // _soliditySourceProvider |
| 863 | m_objectOptimizer |
| 864 | ); |
| 865 | bool yulAnalysisSuccessful = stack.parseAndAnalyze("", _ir); |
| 866 | solAssert( |
| 867 | yulAnalysisSuccessful, |
| 868 | _ir + "\n\n" |
| 869 | "Invalid IR generated:\n" + |
| 870 | SourceReferenceFormatter::formatErrorInformation( |
| 871 | stack.errors(), |
| 872 | stack, // _charStreamProvider |
| 873 | false, // _colored |
| 874 | true // _withErrorIds |
| 875 | ) + "\n" |
| 876 | ); |
| 877 | |
| 878 | return stack; |
| 879 | } |
| 880 | |
| 881 | std::vector<std::string> CompilerStack::contractNames() const |
| 882 | { |
nothing calls this directly
no test coverage detected