diff options
author | chriseth <c@ethdev.com> | 2015-10-21 22:43:31 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-10-27 07:49:27 +0800 |
commit | a957322fd7ff87460e5de3b1c5abcfb021acc1b2 (patch) | |
tree | f5511f27ea048754143753b4e7faa8b85a0b21bd /libsolidity/interface/CompilerStack.h | |
parent | 8fb49d85f9464bfa0d17ac77d2e19b3ba371c53c (diff) | |
download | dexon-solidity-a957322fd7ff87460e5de3b1c5abcfb021acc1b2.tar.gz dexon-solidity-a957322fd7ff87460e5de3b1c5abcfb021acc1b2.tar.zst dexon-solidity-a957322fd7ff87460e5de3b1c5abcfb021acc1b2.zip |
Preliminary why3 code output.
Diffstat (limited to 'libsolidity/interface/CompilerStack.h')
-rw-r--r-- | libsolidity/interface/CompilerStack.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libsolidity/interface/CompilerStack.h b/libsolidity/interface/CompilerStack.h index ac71da2e..0473d58b 100644 --- a/libsolidity/interface/CompilerStack.h +++ b/libsolidity/interface/CompilerStack.h @@ -108,6 +108,11 @@ public: /// Inserts the given addresses into the linker objects of all compiled contracts. void link(std::map<std::string, h160> const& _libraries); + /// Tries to translate all source files into a language suitable for formal analysis. + /// @returns false on error. + bool prepareFormalAnalysis(); + std::string const& formalTranslation() const { return m_formalTranslation; } + /// @returns the assembled object for a contract. eth::LinkerObject const& object(std::string const& _contractName = "") const; /// @returns the runtime object for the contract. @@ -167,7 +172,6 @@ public: /// @returns the list of errors that occured during parsing and type checking. ErrorList const& errors() const { return m_errors; } - private: /** * Information pertaining to one source unit, filled gradually during parsing and compilation. @@ -211,6 +215,7 @@ private: std::shared_ptr<GlobalContext> m_globalContext; std::vector<Source const*> m_sourceOrder; std::map<std::string const, Contract> m_contracts; + std::string m_formalTranslation; ErrorList m_errors; }; |