[SMTChecker] refactoring of resetting storage variables

This commit is contained in:
Martin Blicha 2021-02-03 11:42:20 +01:00
parent f1013427a7
commit d99256aae7
3 changed files with 2 additions and 10 deletions

View File

@ -561,8 +561,7 @@ void BMC::internalOrExternalFunctionCall(FunctionCall const& _funCall)
else
{
m_externalFunctionCallHappened = true;
resetStateVariables();
resetStorageReferences();
resetStorageVariables();
}
}
@ -624,11 +623,6 @@ pair<smtutil::Expression, smtutil::Expression> BMC::arithmeticOperation(
return values;
}
void BMC::resetStorageReferences()
{
m_context.resetVariables([&](VariableDeclaration const& _variable) { return _variable.hasReferenceOrMappingType(); });
}
void BMC::reset()
{
m_externalFunctionCallHappened = false;

View File

@ -123,7 +123,6 @@ private:
Expression const& _expression
) override;
void resetStorageReferences();
void reset();
std::pair<std::vector<smtutil::Expression>, std::vector<std::string>> modelExpressions();

View File

@ -880,8 +880,7 @@ void CHC::resetContractAnalysis()
void CHC::eraseKnowledge()
{
resetStateVariables();
m_context.resetVariables([&](VariableDeclaration const& _variable) { return _variable.hasReferenceOrMappingType(); });
resetStorageVariables();
}
void CHC::clearIndices(ContractDefinition const* _contract, FunctionDefinition const* _function)