mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Make expr->next edges constrained.
It turns out expression trees are (mostly?) valid DAGs, so all edges being constrained works, though the graphs get a little tall (but easier to read).
This commit is contained in:
parent
79519bc357
commit
0fc8aa54e1
1 changed files with 3 additions and 3 deletions
|
@ -205,7 +205,7 @@ print_label (dstring_t *dstr, expr_t *e, int level, int id, expr_t *next)
|
|||
if (e->next)
|
||||
next = e->next;
|
||||
if (next)
|
||||
dasprintf (dstr, "%*se_%p -> e_%p [constraint=false,style=dashed];\n",
|
||||
dasprintf (dstr, "%*se_%p -> e_%p [constraint=true,style=dashed];\n",
|
||||
indent, "", e, next);
|
||||
dasprintf (dstr, "%*se_%p [label=\"%s\\n%d\"];\n", indent, "", e,
|
||||
e->e.label.name, e->line);
|
||||
|
@ -219,7 +219,7 @@ print_labelref (dstring_t *dstr, expr_t *e, int level, int id, expr_t *next)
|
|||
if (e->next)
|
||||
next = e->next;
|
||||
if (next)
|
||||
dasprintf (dstr, "%*se_%p -> e_%p [constraint=false,style=dashed];\n",
|
||||
dasprintf (dstr, "%*se_%p -> e_%p [constraint=true,style=dashed];\n",
|
||||
indent, "", e, e->next);
|
||||
dasprintf (dstr, "%*se_%p [label=\"&%s\\n%d\"];\n", indent, "", e,
|
||||
e->e.label.name, e->line);
|
||||
|
@ -307,7 +307,7 @@ print_subexpr (dstring_t *dstr, expr_t *e, int level, int id, expr_t *next)
|
|||
if (e->next)
|
||||
next = e->next;
|
||||
if (next)
|
||||
dasprintf (dstr, "%*se_%p -> e_%p [constraint=false,"
|
||||
dasprintf (dstr, "%*se_%p -> e_%p [constraint=true,"
|
||||
"style=dashed];\n", indent, "", e, next);
|
||||
} else {
|
||||
_print_expr (dstr, e->e.expr.e1, level, id, next);
|
||||
|
|
Loading…
Reference in a new issue