aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/formal
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-08-12 00:54:56 +0800
committerchriseth <chris@ethereum.org>2017-08-23 23:37:35 +0800
commitc93f0434cd2dc8542d9adf9dc7d9256fd54d65de (patch)
treedf3bcd767affb7a3ae10a9a5fc190fed05223d36 /libsolidity/formal
parent75f09f2a84e556ca48b7bae00b459c77a0fa09fe (diff)
downloaddexon-solidity-c93f0434cd2dc8542d9adf9dc7d9256fd54d65de.tar.gz
dexon-solidity-c93f0434cd2dc8542d9adf9dc7d9256fd54d65de.tar.zst
dexon-solidity-c93f0434cd2dc8542d9adf9dc7d9256fd54d65de.zip
Use experimental feature pragma for SMT checker.
Diffstat (limited to 'libsolidity/formal')
-rw-r--r--libsolidity/formal/SMTChecker.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/libsolidity/formal/SMTChecker.cpp b/libsolidity/formal/SMTChecker.cpp
index e1fd2bfd..092ecdb2 100644
--- a/libsolidity/formal/SMTChecker.cpp
+++ b/libsolidity/formal/SMTChecker.cpp
@@ -44,12 +44,7 @@ SMTChecker::SMTChecker(ErrorReporter& _errorReporter, ReadCallback::Callback con
void SMTChecker::analyze(SourceUnit const& _source)
{
- bool pragmaFound = false;
- for (auto const& node: _source.nodes())
- if (auto const* pragma = dynamic_cast<PragmaDirective const*>(node.get()))
- if (pragma->literals()[0] == "checkAssertions")
- pragmaFound = true;
- if (pragmaFound)
+ if (_source.annotation().experimentalFeatures.count(ExperimentalFeature::SMTChecker))
{
m_interface->reset();
m_currentSequenceCounter.clear();