-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do Control Flow Analysis on StmtASTNodes instead of BasicBlocks
- Loading branch information
Showing
11 changed files
with
623 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#pragma region License | ||
/* | ||
* This file is part of the Boomerang Decompiler. | ||
* | ||
* See the file "LICENSE.TERMS" for information on usage and | ||
* redistribution of this file, and for a DISCLAIMER OF ALL | ||
* WARRANTIES. | ||
*/ | ||
#pragma endregion License | ||
#include "ASTNode.h" | ||
|
||
|
||
ASTNode::ASTNode() | ||
{ | ||
} | ||
|
||
|
||
ASTNode::~ASTNode() | ||
{ | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#pragma region License | ||
/* | ||
* This file is part of the Boomerang Decompiler. | ||
* | ||
* See the file "LICENSE.TERMS" for information on usage and | ||
* redistribution of this file, and for a DISCLAIMER OF ALL | ||
* WARRANTIES. | ||
*/ | ||
#pragma endregion License | ||
#pragma once | ||
|
||
|
||
class BasicBlock; | ||
class OStream; | ||
|
||
|
||
/** | ||
* Base class for all nodes in the Abstract Syntax Tree. | ||
*/ | ||
class ASTNode | ||
{ | ||
public: | ||
ASTNode(); | ||
ASTNode(const ASTNode &other) = delete; | ||
ASTNode(ASTNode &&other) = default; | ||
|
||
virtual ~ASTNode(); | ||
|
||
ASTNode &operator=(const ASTNode &other) = delete; | ||
ASTNode &operator=(ASTNode &&other) = default; | ||
|
||
public: | ||
virtual bool isStmt() const { return false; } | ||
|
||
virtual void printAST(OStream &os) const = 0; | ||
}; |
Oops, something went wrong.