From 092e5829d868f5b9ce50d5605ce19ca505ec930f Mon Sep 17 00:00:00 2001 From: Yoichi Hirai Date: Fri, 7 Oct 2016 15:32:47 +0200 Subject: formal: ignore pragmas during Why3 code generation Fixes #1177 --- libsolidity/formal/Why3Translator.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libsolidity/formal/Why3Translator.cpp') 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); -- cgit v1.2.3