Merge pull request #14269 from blishko/smtchecker-fix-analysis-external-calls

[SMTChecker] Remember verification targets from trusted external calls
This commit is contained in:
Leo
2023-05-30 13:45:37 +02:00
committed by GitHub
4 changed files with 31 additions and 5 deletions
+6
View File
@@ -1000,6 +1000,12 @@ void CHC::externalFunctionCallToTrustedCode(FunctionCall const& _funCall)
if (!function)
return;
// Remember the external call in the call graph to properly detect verification targets for the current function
if (m_currentFunction && !m_currentFunction->isConstructor())
m_callGraph[m_currentFunction].insert(function);
else
m_callGraph[m_currentContract].insert(function);
// External call creates a new transaction.
auto originalTx = state().tx();
Expression const* value = valueOption(callOptions);