FAUST compiler  0.9.9.6b8
Functions
sigToGraph.hh File Reference
#include "signals.hh"
#include <string>
#include <iostream>
#include <fstream>
Include dependency graph for sigToGraph.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void sigToGraph (Tree sig, ofstream &fout)
 Draw a list of signals L as a directed graph using graphviz's dot language.

Function Documentation

void sigToGraph ( Tree  L,
ofstream &  fout 
)

Draw a list of signals L as a directed graph using graphviz's dot language.

Definition at line 50 of file sigToGraph.cpp.

References edgeattr(), getCertifiedSigType(), hd(), isList(), recdraw(), and tl().

Referenced by ScalarCompiler::prepare().

{
    set<Tree>   alreadyDrawn;

    fout << "strict digraph loopgraph {\n"
         << "    rankdir=LR; node [fontsize=10];"
         << endl;
    int out = 0;
    while (isList(L)) {
        recdraw(hd(L), alreadyDrawn, fout);

        fout << "OUTPUT_" << out << "[color=\"red2\" style=\"filled\" fillcolor=\"pink\"];" << endl;
        fout << 'S' << hd(L) << " -> " << "OUTPUT_" << out++ << "[" << edgeattr(getCertifiedSigType(hd(L))) << "];" << endl;
        L = tl(L);
    }

    fout << "}" << endl;
}

Here is the call graph for this function:

Here is the caller graph for this function: