Coverage Report

Created: 2026-07-13 07:08

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/solidity/libyul/optimiser/BlockFlattener.h
Line
Count
Source
1
/*
2
  This file is part of solidity.
3
4
  solidity is free software: you can redistribute it and/or modify
5
  it under the terms of the GNU General Public License as published by
6
  the Free Software Foundation, either version 3 of the License, or
7
  (at your option) any later version.
8
9
  solidity is distributed in the hope that it will be useful,
10
  but WITHOUT ANY WARRANTY; without even the implied warranty of
11
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
  GNU General Public License for more details.
13
14
  You should have received a copy of the GNU General Public License
15
  along with solidity.  If not, see <http://www.gnu.org/licenses/>.
16
*/
17
// SPDX-License-Identifier: GPL-3.0
18
#pragma once
19
20
#include <libyul/optimiser/ASTWalker.h>
21
#include <libyul/optimiser/OptimiserStep.h>
22
23
namespace solidity::yul
24
{
25
26
class BlockFlattener: public ASTModifier
27
{
28
public:
29
  static constexpr char const* name{"BlockFlattener"};
30
  static void run(OptimiserStepContext&, Block& _ast);
31
32
  using ASTModifier::operator();
33
  void operator()(Block& _block) override;
34
35
private:
36
1.11M
  BlockFlattener() = default;
37
};
38
39
}