mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #6897 from ethereum/smt_check_pragma_earlier
[SMTChecker] Exit early if no pragma
This commit is contained in:
commit
3a3316393e
@ -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, "");
|
||||||
|
Loading…
Reference in New Issue
Block a user