aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-07-06 17:05:05 +0800
committerchriseth <chris@ethereum.org>2017-08-23 20:24:04 +0800
commit1ece7bf4433a37feb449b7f3b4f820a1f5740eaf (patch)
tree6d43d1107e4bf602d24234be9b424f94f74e47a3 /libsolidity/interface
parent3b07c4d38e40c52ee8a4d16e56e2afa1a0f27905 (diff)
downloaddexon-solidity-1ece7bf4433a37feb449b7f3b4f820a1f5740eaf.tar.gz
dexon-solidity-1ece7bf4433a37feb449b7f3b4f820a1f5740eaf.tar.zst
dexon-solidity-1ece7bf4433a37feb449b7f3b4f820a1f5740eaf.zip
z3 conditions
Diffstat (limited to 'libsolidity/interface')
-rw-r--r--libsolidity/interface/CompilerStack.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp
index 412d2fd3..4283cd99 100644
--- a/libsolidity/interface/CompilerStack.cpp
+++ b/libsolidity/interface/CompilerStack.cpp
@@ -37,6 +37,7 @@
#include <libsolidity/analysis/PostTypeChecker.h>
#include <libsolidity/analysis/SyntaxChecker.h>
#include <libsolidity/codegen/Compiler.h>
+#include <libsolidity/formal/SMTChecker.h>
#include <libsolidity/interface/ABI.h>
#include <libsolidity/interface/Natspec.h>
#include <libsolidity/interface/GasEstimator.h>
@@ -238,6 +239,13 @@ bool CompilerStack::analyze()
if (noErrors)
{
+ SMTChecker smtChecker(m_errorReporter);
+ for (Source const* source: m_sourceOrder)
+ smtChecker.analyze(*source->ast);
+ }
+
+ if (noErrors)
+ {
m_stackState = AnalysisSuccessful;
return true;
}