[SMTChecker] Fix super and virtual

This commit is contained in:
Leonardo Alt
2021-01-28 18:51:29 +01:00
parent d753c1a047
commit 545305a31f
18 changed files with 430 additions and 59 deletions
+3 -5
View File
@@ -60,11 +60,9 @@ void VariableUsage::endVisit(IndexAccess const& _indexAccess)
void VariableUsage::endVisit(FunctionCall const& _funCall)
{
if (m_inlineFunctionCalls(_funCall, m_currentContract))
if (
auto [funDef, contextContract] = SMTEncoder::functionCallToDefinition(_funCall, m_currentContract);
funDef
)
auto scopeContract = m_currentFunction->annotation().contract;
if (m_inlineFunctionCalls(_funCall, scopeContract, m_currentContract))
if (auto funDef = SMTEncoder::functionCallToDefinition(_funCall, scopeContract, m_currentContract))
if (find(m_callStack.begin(), m_callStack.end(), funDef) == m_callStack.end())
funDef->accept(*this);
}