mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] refactoring of resetting storage variables
This commit is contained in:
parent
f1013427a7
commit
d99256aae7
@ -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;
|
||||
|
@ -123,7 +123,6 @@ private:
|
||||
Expression const& _expression
|
||||
) override;
|
||||
|
||||
void resetStorageReferences();
|
||||
void reset();
|
||||
|
||||
std::pair<std::vector<smtutil::Expression>, std::vector<std::string>> modelExpressions();
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user