walpurgis/graphviz/functions/gen_subroutine.dot

26 lines
635 B
Plaintext
Raw Normal View History

2023-11-14 14:32:25 -07:00
digraph fn_gen_function {
labelloc="t";
graph [fontname = "cc wild words"];
node [fontname = "cc wild words"];
edge [fontname = "cc wild words"];
2023-11-14 16:54:02 -07:00
label="fn_gen_subroutine(SubRoutine)";
2023-11-14 14:32:25 -07:00
fontname=lovebeat;
rankdir=TB;
newrank=true;
2023-11-14 16:54:02 -07:00
a [label="push args into scope"];
b [label="new scope"];
c [label="gen_statement()" shape=diamond style=filled
2023-11-15 14:52:41 -07:00
fillcolor=lightsalmon];
2023-11-14 16:54:02 -07:00
d [label="fork on return"];
e [label="gen_return(GazType)" shape=diamond style=filled
2023-11-15 14:52:41 -07:00
fillcolor=lightsalmon];
2023-11-14 16:54:02 -07:00
f [label="return" style=filled fillcolor=lightskyblue1];
2023-11-14 14:32:25 -07:00
2023-11-14 16:54:02 -07:00
a -> b -> c -> d;
c -> c [dir=back];
d -> e -> f;
d -> f;
2023-11-14 14:32:25 -07:00
}