@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
15 lines (14 loc) • 894 B
TypeScript
import type { NormalizedAst } from '../../r-bridge/lang-4.x/ast/model/processing/decorate';
import type { ControlFlowInformation } from '../../control-flow/control-flow-graph';
/**
* Convert the control flow graph to a mermaid string.
* @param cfg - The control flow graph to convert.
* @param normalizedAst - The normalized AST to use for the vertex content.
* @param prefix - The prefix to use for the mermaid string.
* @param simplify - Whether to simplify the control flow graph (especially in the context of basic blocks).
*/
export declare function cfgToMermaid(cfg: ControlFlowInformation, normalizedAst: NormalizedAst, prefix?: string, simplify?: boolean): string;
/**
* Use mermaid to visualize the normalized AST.
*/
export declare function cfgToMermaidUrl(cfg: ControlFlowInformation, normalizedAst: NormalizedAst, prefix?: string): string;