[qfcc] Show var use in flow vars

This commit is contained in:
Bill Currie 2023-05-19 17:48:47 +09:00
parent 95dd63cd68
commit 74e15fc582

View file

@ -204,19 +204,19 @@ print_flow_vars (dstring_t *dstr, flowgraph_t *graph, int level)
dasprintf (dstr, "%*sfv_%p [shape=none,label=<\n", indent, "", graph); dasprintf (dstr, "%*sfv_%p [shape=none,label=<\n", indent, "", graph);
dasprintf (dstr, "%*s<table border=\"0\" cellborder=\"1\" " dasprintf (dstr, "%*s<table border=\"0\" cellborder=\"1\" "
"cellspacing=\"0\">\n", indent + 2, ""); "cellspacing=\"0\">\n", indent + 2, "");
dasprintf (dstr, "%*s<tr><td colspan=\"3\">flow vars</td></tr>\n", dasprintf (dstr, "%*s<tr><td colspan=\"5\">flow vars</td></tr>\n",
indent + 4, ""); indent + 4, "");
dasprintf (dstr, "%*s<tr><td>#</td><td>name</td>" dasprintf (dstr, "%*s<tr><td>#</td><td>name</td>"
"<td>addr</td><td>define</td></tr>\n", "<td>addr</td><td>define</td><td>use</td></tr>\n",
indent + 4, ""); indent + 4, "");
for (i = 0; i < graph->func->num_vars; i++) { for (i = 0; i < graph->func->num_vars; i++) {
var = graph->func->vars[i]; var = graph->func->vars[i];
dasprintf (dstr, "%*s<tr><td>%d</td><td>%s</td>" dasprintf (dstr, "%*s<tr><td>%d</td><td>%s</td><td>%d</td><td>%s</td>",
"<td>%d</td><td>%s</td></tr>\n",
indent + 4, "", indent + 4, "",
var->number, html_string(operand_string (var->op)), var->number, html_string(operand_string (var->op)),
var->flowaddr, var->flowaddr,
set_as_string (var->define)); set_as_string (var->define));
dasprintf (dstr, "<td>%s</td></tr>\n", set_as_string (var->use));
} }
dasprintf (dstr, "%*s</table>>];\n", indent + 2, ""); dasprintf (dstr, "%*s</table>>];\n", indent + 2, "");
} }