MCPcopy Create free account
hub / github.com/argotorg/solidity / visitFunctionIdentifier

Method visitFunctionIdentifier

libsolidity/formal/SMTEncoder.cpp:1264–1272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1262}
1263
1264void SMTEncoder::visitFunctionIdentifier(Identifier const& _identifier)
1265{
1266 auto const& fType = dynamic_cast<FunctionType const&>(*_identifier.annotation().type);
1267 if (replaceUserTypes(fType.returnParameterTypes()).size() == 1)
1268 {
1269 defineGlobalVariable(fType.identifier(), _identifier);
1270 m_context.createExpression(_identifier, m_context.globalSymbol(fType.identifier()));
1271 }
1272}
1273
1274void SMTEncoder::visitStructConstructorCall(FunctionCall const& _funCall)
1275{

Callers

nothing calls this directly

Calls 4

identifierMethod · 0.80
globalSymbolMethod · 0.80
sizeMethod · 0.45
createExpressionMethod · 0.45

Tested by

no test coverage detected