mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #7452 from ethereum/smt_fix_function_name
[SMTChecker] Fix SMT name for function identifiers
This commit is contained in:
commit
387cb620e9
@ -621,8 +621,8 @@ void SMTEncoder::visitFunctionIdentifier(Identifier const& _identifier)
|
|||||||
auto const& fType = dynamic_cast<FunctionType const&>(*_identifier.annotation().type);
|
auto const& fType = dynamic_cast<FunctionType const&>(*_identifier.annotation().type);
|
||||||
if (fType.returnParameterTypes().size() == 1)
|
if (fType.returnParameterTypes().size() == 1)
|
||||||
{
|
{
|
||||||
defineGlobalVariable(fType.richIdentifier(), _identifier);
|
defineGlobalVariable(fType.identifier(), _identifier);
|
||||||
m_context.createExpression(_identifier, m_context.globalSymbol(fType.richIdentifier()));
|
m_context.createExpression(_identifier, m_context.globalSymbol(fType.identifier()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user