+
+ ir_snprintf(cmd_buf, sizeof(cmd_buf), BLOCK_PREFIX("%d:"),
+ get_irn_node_nr(block));
+
+ /* emit list of pred blocks in comment */
+ cmntsize = sizeof(cmnt_buf);
+ res = snprintf(predstring, cmntsize, "/* preds: ");
+ cmntsize -= res;
+ predstring += res;
+
+ arity = get_irn_arity(block);
+ for(i = 0; i < arity; ++i) {
+ ir_node *predblock = get_Block_cfgpred_block(block, i);
+ res = snprintf(predstring, cmntsize, " %ld", get_irn_node_nr(predblock));
+ cmntsize -= res;
+ predstring += res;
+ if(cmntsize <= 3)
+ break;
+ }
+ if(cmntsize < 3) {
+ predstring = cmnt_buf + sizeof(cmnt_buf) - 3;
+ cmntsize = 3;
+ }
+ snprintf(predstring, cmntsize, "*/");
+ fprintf(F, "%-43s %-60s\n", cmd_buf, cmnt_buf);