Merge pull request #6897 from ethereum/smt_check_pragma_earlier

[SMTChecker] Exit early if no pragma
This commit is contained in:
Leonardo 2019-06-05 10:26:25 +02:00 committed by GitHub
commit 3a3316393e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,8 +52,11 @@ SMTChecker::SMTChecker(ErrorReporter& _errorReporter, map<h256, string> const& _
void SMTChecker::analyze(SourceUnit const& _source, shared_ptr<Scanner> const& _scanner) void SMTChecker::analyze(SourceUnit const& _source, shared_ptr<Scanner> const& _scanner)
{ {
if (!_source.annotation().experimentalFeatures.count(ExperimentalFeature::SMTChecker))
return;
m_scanner = _scanner; m_scanner = _scanner;
if (_source.annotation().experimentalFeatures.count(ExperimentalFeature::SMTChecker))
_source.accept(*this); _source.accept(*this);
solAssert(m_interface.solvers() > 0, ""); solAssert(m_interface.solvers() > 0, "");