BasicBlock
Inherit from ControlFlowNode
Primary key: id: int
schema BasicBlock extends ControlFlowNode {
@primary id: int
}
BasicBlock::getRelativePath
/**
* Get the relative path of this control flow node.
*/
- Parameter
self
:BasicBlock
- Return
string
pub fn getRelativePath(self: BasicBlock) -> string;
BasicBlock::getFile
/**
* Get the file of this control flow node.
*/
- Parameter
self
:BasicBlock
- Return
File
pub fn getFile(self: BasicBlock) -> File;
BasicBlock::getLocation
/**
* Get the location of this control flow node.
*/
- Parameter
self
:BasicBlock
- Return
Location
pub fn getLocation(self: BasicBlock) -> Location;
BasicBlock::isSyntheticNode
- Parameter
self
:BasicBlock
- Return
bool
pub fn isSyntheticNode(self: BasicBlock) -> bool;
BasicBlock::isExitBB
/**
* Determine whether this basic block is an exit bb.
*/
- Parameter
self
:BasicBlock
- Return
bool
pub fn isExitBB(self: BasicBlock) -> bool;
BasicBlock::getLength
/**
* Get the length of this basic block.
*/
- Parameter
self
:BasicBlock
- Return
int
pub fn getLength(self: BasicBlock) -> int;
BasicBlock::getABBSuccessor
/**
* Gets an immediate successor of this basic block.
*/
- Parameter
self
:BasicBlock
- Return
*BasicBlock
pub fn getABBSuccessor(self: BasicBlock) -> *BasicBlock;
BasicBlock::getASuccessorRecursive
/**
* Gets the successor of this node, and query successors recursively
*/
- Parameter
self
:BasicBlock
- Return
*ControlFlowNode
pub fn getASuccessorRecursive(self: BasicBlock) -> *ControlFlowNode;
BasicBlock::getANode
/**
* Get a node in this basic block.
*/
- Parameter
self
:BasicBlock
- Return
*ControlFlowNode
pub fn getANode(self: BasicBlock) -> *ControlFlowNode;
BasicBlock::getFirstNode
/**
* Get the first node in this basic block.
*/
- Parameter
self
:BasicBlock
- Return
ControlFlowNode
pub fn getFirstNode(self: BasicBlock) -> ControlFlowNode;
BasicBlock::getASuccessor
/**
* Get an immediate successor of this node.
*/
- Parameter
self
:BasicBlock
- Return
*ControlFlowNode
pub fn getASuccessor(self: BasicBlock) -> *ControlFlowNode;
BasicBlock::__all__
Data constraint method.
- Parameter
db
:JavascriptDB
- Return
*BasicBlock
pub fn __all__(db: JavascriptDB) -> *BasicBlock;
BasicBlock::getBBSuccessorCount
/**
* Gets the count of bb successor of this bb.
*/
- Parameter
self
:BasicBlock
- Return
int
pub fn getBBSuccessorCount(self: BasicBlock) -> int;
BasicBlock::getKindName
/**
* Get the kind name of node.
* If node is ast node, just return ast node kind name; otherwise
* return node name as CfgEntryNode or CfgExitNode.
*/
- Parameter
self
:BasicBlock
- Return
string
pub fn getKindName(self: BasicBlock) -> string;
BasicBlock::isExitNode
- Parameter
self
:BasicBlock
- Return
bool
pub fn isExitNode(self: BasicBlock) -> bool;
BasicBlock::getEnclosingFunction
/**
* Get the enclosing function of node.
* CfgEntryNode or CfgExitNode return belongs to function.
*/
- Parameter
self
:BasicBlock
- Return
FunctionLikeDeclaration
pub fn getEnclosingFunction(self: BasicBlock) -> FunctionLikeDeclaration;
BasicBlock::getNode
/**
* Get the node in this basic block with the given index.
*/
- Parameter
self
:BasicBlock
- Parameter
index
:int
- Return
ControlFlowNode
pub fn getNode(self: BasicBlock, index: int) -> ControlFlowNode;
BasicBlock::getABBPredecessor
/**
* Gets an immediate predecessor of this basic block.
*/
- Parameter
self
:BasicBlock
- Return
*BasicBlock
pub fn getABBPredecessor(self: BasicBlock) -> *BasicBlock;
BasicBlock::getBBPredecessorCount
/**
* Gets the count of bb predecessor of this bb.
*/
- Parameter
self
:BasicBlock
- Return
int
pub fn getBBPredecessorCount(self: BasicBlock) -> int;
BasicBlock::getPredecessorCount
/**
* Get the count of immediate predecessor nodes/
*/
- Parameter
self
:BasicBlock
- Return
int
pub fn getPredecessorCount(self: BasicBlock) -> int;
BasicBlock::getLastNode
/**
* Get the last node in this basic block.
*/
- Parameter
self
:BasicBlock
- Return
ControlFlowNode
pub fn getLastNode(self: BasicBlock) -> ControlFlowNode;
BasicBlock::getSuccessorCount
/**
* Get the count of immediate successor nodes.
*/
- Parameter
self
:BasicBlock
- Return
int
pub fn getSuccessorCount(self: BasicBlock) -> int;
BasicBlock::isAstNode
- Parameter
self
:BasicBlock
- Return
bool
pub fn isAstNode(self: BasicBlock) -> bool;
BasicBlock::getBasicBlock
/**
* Get the basic block that contains this node.
*/
- Parameter
self
:BasicBlock
- Return
BasicBlock
pub fn getBasicBlock(self: BasicBlock) -> BasicBlock;
BasicBlock::getAPredecessor
/**
* Get an immediate predecessor of this node.
*/
- Parameter
self
:BasicBlock
- Return
*ControlFlowNode
pub fn getAPredecessor(self: BasicBlock) -> *ControlFlowNode;
BasicBlock::isEntryBB
/**
* Determine whether this basic block is an entry bb.
*/
- Parameter
self
:BasicBlock
- Return
bool
pub fn isEntryBB(self: BasicBlock) -> bool;
BasicBlock::getText
/**
* Get the text of this control flow node.
*/
- Parameter
self
:BasicBlock
- Return
string
pub fn getText(self: BasicBlock) -> string;
BasicBlock::isEntryNode
- Parameter
self
:BasicBlock
- Return
bool
pub fn isEntryNode(self: BasicBlock) -> bool;
BasicBlock::getASuccessorWithCompletion
/**
* Get an immediate successor of this node with the given
* type of Completion.
*/
- Parameter
self
:BasicBlock
- Parameter
c
:Completion
- Return
*ControlFlowNode
pub fn getASuccessorWithCompletion(self: BasicBlock, c: Completion) -> *ControlFlowNode;