aboutsummaryrefslogtreecommitdiffstats
path: root/solc
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-06-26 15:20:23 +0800
committerGitHub <noreply@github.com>2017-06-26 15:20:23 +0800
commitc328ab411b63fe182125e976eb05b4449fdd892d (patch)
treeb4ee57b09e0c39144f14e6763fc04f655c7ecb8f /solc
parentf879489291b78a7872c13d3235e1d345883880b4 (diff)
parent555dc4f46fae9da72aaff70059686aa34172910b (diff)
downloaddexon-solidity-c328ab411b63fe182125e976eb05b4449fdd892d.tar.gz
dexon-solidity-c328ab411b63fe182125e976eb05b4449fdd892d.tar.zst
dexon-solidity-c328ab411b63fe182125e976eb05b4449fdd892d.zip
Merge pull request #2442 from ethereum/remove-why3
Remove Why3 generator
Diffstat (limited to 'solc')
-rw-r--r--solc/CommandLineInterface.cpp19
1 files changed, 2 insertions, 17 deletions
diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp
index 0dbedd3c..d0134113 100644
--- a/solc/CommandLineInterface.cpp
+++ b/solc/CommandLineInterface.cpp
@@ -37,7 +37,6 @@
#include <libsolidity/interface/SourceReferenceFormatter.h>
#include <libsolidity/interface/GasEstimator.h>
#include <libsolidity/interface/AssemblyStack.h>
-#include <libsolidity/formal/Why3Translator.h>
#include <libevmasm/Instruction.h>
#include <libevmasm/GasMeter.h>
@@ -393,17 +392,6 @@ void CommandLineInterface::handleGasEstimation(string const& _contract)
}
}
-void CommandLineInterface::handleFormal()
-{
- if (!m_args.count(g_argFormal))
- return;
-
- if (m_args.count(g_argOutputDir))
- createFile("solidity.mlw", m_compiler->formalTranslation());
- else
- cout << "Formal version:" << endl << m_compiler->formalTranslation() << endl;
-}
-
void CommandLineInterface::readInputFilesAndConfigureRemappings()
{
bool addStdin = false;
@@ -790,10 +778,6 @@ bool CommandLineInterface::processInput()
unsigned runs = m_args[g_argOptimizeRuns].as<unsigned>();
bool successful = m_compiler->compile(optimize, runs, m_libraries);
- if (successful && m_args.count(g_argFormal))
- if (!m_compiler->prepareFormalAnalysis())
- successful = false;
-
for (auto const& error: m_compiler->errors())
SourceReferenceFormatter::printExceptionInformation(
cerr,
@@ -1185,7 +1169,8 @@ void CommandLineInterface::outputCompilationResults()
handleNatspec(DocumentationType::NatspecUser, contract);
} // end of contracts iteration
- handleFormal();
+ if (m_args.count(g_argFormal))
+ cerr << "Support for the Why3 output was removed." << endl;
}
}