@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
17 lines (16 loc) • 835 B
TypeScript
import type { ControlFlowInformation } from '../../util/cfg/cfg';
import type { NormalizedAst } from '../../r-bridge/lang-4.x/ast/model/processing/decorate';
import type { KnownParser } from '../../r-bridge/parser';
import type { DataflowInformation } from '../../dataflow/info';
export declare function getCfg(parser: KnownParser, code: string): Promise<{
info: ControlFlowInformation;
ast: NormalizedAst;
dataflow: DataflowInformation;
}>;
export declare function printCfg(cfg: ControlFlowInformation, ast: NormalizedAst, prefix?: string): string;
export interface PrintCfgOptions {
readonly showCode?: boolean;
readonly openCode?: boolean;
readonly prefix?: string;
}
export declare function printCFGCode(parser: KnownParser, code: string, { showCode, openCode, prefix }?: PrintCfgOptions): Promise<string>;