diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2016-10-07 21:32:47 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2016-10-11 06:01:29 +0800 |
commit | 092e5829d868f5b9ce50d5605ce19ca505ec930f (patch) | |
tree | a35cd371d6c03baec43e4a88058976d2d7e24e87 /libsolidity | |
parent | d3f410d8a89aaa042ff264d7a0ea79184e01abab (diff) | |
download | dexon-solidity-092e5829d868f5b9ce50d5605ce19ca505ec930f.tar dexon-solidity-092e5829d868f5b9ce50d5605ce19ca505ec930f.tar.gz dexon-solidity-092e5829d868f5b9ce50d5605ce19ca505ec930f.tar.bz2 dexon-solidity-092e5829d868f5b9ce50d5605ce19ca505ec930f.tar.lz dexon-solidity-092e5829d868f5b9ce50d5605ce19ca505ec930f.tar.xz dexon-solidity-092e5829d868f5b9ce50d5605ce19ca505ec930f.tar.zst dexon-solidity-092e5829d868f5b9ce50d5605ce19ca505ec930f.zip |
formal: ignore pragmas during Why3 code generation
Fixes #1177
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/formal/Why3Translator.cpp | 5 | ||||
-rw-r--r-- | libsolidity/formal/Why3Translator.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libsolidity/formal/Why3Translator.cpp b/libsolidity/formal/Why3Translator.cpp index f3831b40..8b50600a 100644 --- a/libsolidity/formal/Why3Translator.cpp +++ b/libsolidity/formal/Why3Translator.cpp @@ -757,6 +757,11 @@ bool Why3Translator::visit(Literal const& _literal) return false; } +bool Why3Translator::visit(PragmaDirective const&) +{ + return false; +} + bool Why3Translator::isStateVariable(VariableDeclaration const* _var) const { return contains(m_currentContract.stateVariables, _var); diff --git a/libsolidity/formal/Why3Translator.h b/libsolidity/formal/Why3Translator.h index 22bfff89..4fdac385 100644 --- a/libsolidity/formal/Why3Translator.h +++ b/libsolidity/formal/Why3Translator.h @@ -94,6 +94,7 @@ private: virtual bool visit(IndexAccess const& _node) override; virtual bool visit(Identifier const& _node) override; virtual bool visit(Literal const& _node) override; + virtual bool visit(PragmaDirective const& _node) override; virtual bool visitNode(ASTNode const& _node) override { |