aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/formal/SMTChecker.cpp
diff options
context:
space:
mode:
authorLeonardo Alt <leo@ethereum.org>2018-08-14 18:34:53 +0800
committerLeonardo Alt <leo@ethereum.org>2018-11-23 16:43:49 +0800
commitdee0c4ded8636f2e8d157df79745ce907fa47c75 (patch)
tree49aa2ecd3ab70de12d93fb1043ac7fa1f3860ab1 /libsolidity/formal/SMTChecker.cpp
parentf3c2309c736ffcdb84fc133106b05d1be1eda95a (diff)
downloaddexon-solidity-dee0c4ded8636f2e8d157df79745ce907fa47c75.tar
dexon-solidity-dee0c4ded8636f2e8d157df79745ce907fa47c75.tar.gz
dexon-solidity-dee0c4ded8636f2e8d157df79745ce907fa47c75.tar.bz2
dexon-solidity-dee0c4ded8636f2e8d157df79745ce907fa47c75.tar.lz
dexon-solidity-dee0c4ded8636f2e8d157df79745ce907fa47c75.tar.xz
dexon-solidity-dee0c4ded8636f2e8d157df79745ce907fa47c75.tar.zst
dexon-solidity-dee0c4ded8636f2e8d157df79745ce907fa47c75.zip
Error message stays in the SMTChecker
Diffstat (limited to 'libsolidity/formal/SMTChecker.cpp')
-rw-r--r--libsolidity/formal/SMTChecker.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/libsolidity/formal/SMTChecker.cpp b/libsolidity/formal/SMTChecker.cpp
index 0af171a7..5b7807f7 100644
--- a/libsolidity/formal/SMTChecker.cpp
+++ b/libsolidity/formal/SMTChecker.cpp
@@ -36,6 +36,15 @@ SMTChecker::SMTChecker(ErrorReporter& _errorReporter, map<h256, string> const& _
m_interface(make_shared<smt::SMTPortfolio>(_smtlib2Responses)),
m_errorReporter(_errorReporter)
{
+#if defined (HAVE_Z3) || defined (HAVE_CVC4)
+ if (!_smtlib2Responses.empty())
+ m_errorReporter.warning(
+ "SMT-LIB2 query responses were given in the auxiliary input, "
+ "but this Solidity binary uses an SMT solver (Z3/CVC4) directly."
+ "These responses will be ignored."
+ "Consider disabling Z3/CVC4 at compilation time in order to use SMT-LIB2 responses."
+ );
+#endif
}
void SMTChecker::analyze(SourceUnit const& _source, shared_ptr<Scanner> const& _scanner)