Files
revng-revng/lib/RestructureCFG/RemoveDeadCode.h
Andrea Gussoni 6af6c8ffa8 RemoveDeadCode: dead code removal beautify
We introduce a "dead code" optimization like pass on the AST.

The goal is to simplify away, in a `SequenceNode`, everything that
follows a node with sports a `nofallthrough behavior.
2024-05-07 14:17:05 +02:00

14 lines
268 B
C++

#pragma once
//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
#include "FallThroughScopeAnalysis.h"
// Forward declarations
class ASTNode;
class ASTTree;
extern ASTNode *removeDeadCode(const model::Binary &Model, ASTTree &AST);