@eagleoutice/flowr-dev
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
16 lines (15 loc) • 740 B
TypeScript
import type { DataflowGraph } from '../../dataflow/graph/graph';
import type { ControlFlowGraph } from '../../control-flow/control-flow-graph';
/** Returns the size of the given df graph in bytes (without sharing in-memory) */
export declare function getSizeOfDfGraph(df: DataflowGraph): number;
/**
* Calculates the size of the control flow graph in bytes, counting its vertices and edges like
* {@link getSizeOfDfGraph} does for the dataflow graph.
*/
export declare function getSizeOfCfGraph(cfg: ControlFlowGraph): number;
/**
* Calculates the size of an array in bytes.
* @param array - The array to calculate the size of.
* @returns The size of the array in bytes.
*/
export declare function safeSizeOf<T>(array: T[]): number;