Use experimental feature pragma for SMT checker.

This commit is contained in:
chriseth
2017-08-23 17:37:35 +02:00
parent 75f09f2a84
commit c93f0434cd
2 changed files with 4 additions and 6 deletions
+1 -6
View File
@@ -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();