@specs-feup/clava
Version:
A C/C++ source-to-source compiler written in Typescript
18 lines • 830 B
TypeScript
import cytoscape from "@specs-feup/lara/api/libs/cytoscape-3.26.0.js";
import { Statement } from "../../../Joinpoints.js";
import CfgEdgeType from "./CfgEdgeType.js";
import CfgNodeType from "./CfgNodeType.js";
export default class CfgUtils {
/**
* @param $stmt - The statement join point
* @returns True if the statement is considered a leader
*/
static isLeader($stmt: Statement): boolean;
/**
* Returns the type of graph node based on the type of the leader statement. If this statement is not a leader, returns undefined
* @param $stmt - The statement join point
*/
static getNodeType($stmt: Statement): CfgNodeType | undefined;
static getTarget(node: cytoscape.NodeSingular, edgeType: CfgEdgeType): cytoscape.NodeSingular | undefined;
}
//# sourceMappingURL=CfgUtils.d.ts.map