Merge pull request #7452 from ethereum/smt_fix_function_name

[SMTChecker] Fix SMT name for function identifiers
This commit is contained in:
chriseth 2019-09-24 15:55:14 +02:00 committed by GitHub
commit 387cb620e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -621,8 +621,8 @@ void SMTEncoder::visitFunctionIdentifier(Identifier const& _identifier)
auto const& fType = dynamic_cast<FunctionType const&>(*_identifier.annotation().type);
if (fType.returnParameterTypes().size() == 1)
{
defineGlobalVariable(fType.richIdentifier(), _identifier);
m_context.createExpression(_identifier, m_context.globalSymbol(fType.richIdentifier()));
defineGlobalVariable(fType.identifier(), _identifier);
m_context.createExpression(_identifier, m_context.globalSymbol(fType.identifier()));
}
}