ANTAREX API

Clava API

LARA API

LARA Common Language API

(.js)
laraImport("clava.graphs.cfg.CfgUtils");

(.lara)
import clava.graphs.cfg.CfgUtils;

CfgUtils

CfgUtils

CfgUtils

Static Members

getNodeType

getNodeType($stmt)

Returns the type of graph node based on the type of the leader statement. If this statement is not a leader, returns undefined

Parameters

$stmt: unknown

getTarget

getTarget(node, edgeType)

Parameters

node: unknown
edgeType: unknown

isLeader

isLeader($stmt)

Parameters

$stmt: unknown

Returns

boolean - true if the statement is considered a leader