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

Function getLocalTag

libevmasm/Inliner.cpp:69–77  ·  view source on GitHub ↗

@returns the tag id, if @a _item is a PushTag or Tag into the current subassembly, std::nullopt otherwise.

Source from the content-addressed store, hash-verified

67}
68/// @returns the tag id, if @a _item is a PushTag or Tag into the current subassembly, std::nullopt otherwise.
69std::optional<size_t> getLocalTag(AssemblyItem const& _item)
70{
71 if (_item.type() != PushTag && _item.type() != Tag)
72 return std::nullopt;
73 auto [subId, tag] = _item.splitForeignPushTag();
74 if (!subId.empty())
75 return std::nullopt;
76 return tag;
77}
78}
79
80bool Inliner::isInlineCandidate(size_t _tag, ranges::span<AssemblyItem const> _items) const

Callers 3

isInlineCandidateMethod · 0.85
optimiseMethod · 0.85

Calls 3

splitForeignPushTagMethod · 0.80
typeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected