mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Inject SMTLIB2 queries and responses via standard-json-io.
This commit is contained in:
@@ -107,6 +107,8 @@ void CompilerStack::reset(bool _keepSources)
|
||||
m_stackState = Empty;
|
||||
m_sources.clear();
|
||||
}
|
||||
m_smtlib2Responses.clear();
|
||||
m_unhandledSMTLib2Queries.clear();
|
||||
m_libraries.clear();
|
||||
m_evmVersion = EVMVersion();
|
||||
m_optimize = false;
|
||||
@@ -283,9 +285,10 @@ bool CompilerStack::analyze()
|
||||
|
||||
if (noErrors)
|
||||
{
|
||||
SMTChecker smtChecker(m_errorReporter, m_smtQuery);
|
||||
SMTChecker smtChecker(m_errorReporter, m_smtlib2Responses);
|
||||
for (Source const* source: m_sourceOrder)
|
||||
smtChecker.analyze(*source->ast, source->scanner);
|
||||
m_unhandledSMTLib2Queries += smtChecker.unhandledQueries();
|
||||
}
|
||||
}
|
||||
catch(FatalError const&)
|
||||
|
||||
Reference in New Issue
Block a user