• Convert the control flow graph to a mermaid string.

    Parameters

    • cfg: ControlFlowInformation

      The control flow graph to convert.

    • normalizedAst: NormalizedAst

      The normalized AST to use for the vertex content.

    • prefix: string = 'flowchart BT\n'

      The prefix to use for the mermaid string.

    • simplify: boolean = false

      Whether to simplify the control flow graph (especially in the context of basic blocks).

    Returns string