+ int i;
+ poly_bb_p pbb;
+
+ fprintf (file, "# SCoP (generated by GCC/Graphite\n");
+ if (verbosity > 0)
+ fprintf (file, "# CLooG output language\n");
+ fprintf (file, "c\n");
+
+ print_scop_context (file, scop, verbosity);
+ print_scop_params (file, scop, verbosity);
+
+ if (verbosity > 0)
+ fprintf (file, "# Number of statements\n");
+
+ fprintf (file, "%d\n", VEC_length (poly_bb_p, SCOP_BBS (scop)));
+
+ for (i = 0; VEC_iterate (poly_bb_p, SCOP_BBS (scop), i, pbb); i++)
+ {
+ if (verbosity > 1)
+ fprintf (file, "# pbb_%d (\n", pbb_index (pbb));
+
+ print_pbb_domain (file, pbb, verbosity);
+ fprintf (file, "0 0 0");
+
+ if (verbosity > 0)
+ fprintf (file, "# For future CLooG options.\n");
+ else
+ fprintf (file, "\n");
+
+ if (verbosity > 1)
+ fprintf (file, "#)\n");
+ }
+
+ fprintf (file, "0");
+ if (verbosity > 0)
+ fprintf (file, "# Don't set the iterator names.\n");
+ else
+ fprintf (file, "\n");
+
+ if (verbosity > 0)
+ fprintf (file, "# Number of scattering functions\n");
+
+ fprintf (file, "%d\n", VEC_length (poly_bb_p, SCOP_BBS (scop)));
+ unify_scattering_dimensions (scop);
+
+ for (i = 0; VEC_iterate (poly_bb_p, SCOP_BBS (scop), i, pbb); i++)
+ {
+ if (!PBB_TRANSFORMED (pbb)
+ || !(PBB_TRANSFORMED_SCATTERING (pbb)
+ || PBB_ORIGINAL_SCATTERING (pbb)))
+ continue;
+
+ if (verbosity > 1)
+ fprintf (file, "# pbb_%d (\n", pbb_index (pbb));
+
+ print_scattering_function_1 (file, pbb, verbosity);
+
+ if (verbosity > 1)
+ fprintf (file, "#)\n");
+ }
+
+ fprintf (file, "0");
+ if (verbosity > 0)
+ fprintf (file, "# Don't set the scattering dimension names.\n");
+ else
+ fprintf (file, "\n");
+
+ fprintf (file, "#)\n");