+#if 1 // Testcase, TODO: REMOVE
+#include "llvm/CFG.h"
+#include "llvm/Assembly/Writer.h"
+#include "llvm/Method.h"
+static bool DoPrintM(Method *M) {
+ df_iterator I = df_begin(M->getBasicBlocks().front(), false);
+ df_iterator E = df_end(M->getBasicBlocks().front());
+ unsigned i = 0;
+ for (; I != E; ++I, ++i) {
+ cerr << "Basic Block Visited #" << i << *I;
+ }
+ return false;
+}
+
+static bool DoPrint(Module *C) {
+ return ApplyOptToAllMethods(C, DoPrintM);
+}
+#endif
+