| 60 | /// @returns an estimation of the code size in bytes needed for the AssemblyItems in @a _itemRange. |
| 61 | template<typename RangeType> |
| 62 | uint64_t codeSize(RangeType const& _itemRange, langutil::EVMVersion _evmVersion) |
| 63 | { |
| 64 | return ranges::accumulate(_itemRange | ranges::views::transform( |
| 65 | [&](auto const& _item) { return _item.bytesRequired(2, _evmVersion, Precision::Approximate); } |
| 66 | ), 0u); |
| 67 | } |
| 68 | /// @returns the tag id, if @a _item is a PushTag or Tag into the current subassembly, std::nullopt otherwise. |
| 69 | std::optional<size_t> getLocalTag(AssemblyItem const& _item) |
| 70 | { |
no test coverage detected