#include "flow.h"
#include "optimise.h"
#include <stdio.h>

static void writeEdge(int from, int to) {
    fprintf(stderr, "Edge from %d to %d\n", from, to);
}

static char* dump()
{
    int i, size;
//    size = getNodeCount(flow);
//    flow_applyToEdges(&writeEdge);
//    FILE* file = fopen("flowgraph.tex", "w");
//    flow_draw(flow, file);
//    fclose(file);
    return NULL;
}

optimiser dumpflow = {
    "Dumps Flowgraph",
    "Dumps listing of Flowgraph to stderr",
    0,  
    &dump
};