diff options
Diffstat (limited to 'chapter02/docs/02-pre-peephole-ex1.gv')
| -rw-r--r-- | chapter02/docs/02-pre-peephole-ex1.gv | 53 |
1 files changed, 27 insertions, 26 deletions
diff --git a/chapter02/docs/02-pre-peephole-ex1.gv b/chapter02/docs/02-pre-peephole-ex1.gv index d5a16616..c2eab457 100644 --- a/chapter02/docs/02-pre-peephole-ex1.gv +++ b/chapter02/docs/02-pre-peephole-ex1.gv @@ -1,27 +1,28 @@ -digraph chapter02 -{ - Start1 [shape=box, label="Start"]; - Con12 [ label="Con1"]; - Start1 -> Con12 [style=dotted]; - Con23 [ label="Con2"]; - Start1 -> Con23 [style=dotted]; - Con34 [ label="Con3"]; - Start1 -> Con34 [style=dotted]; - Mul5 [ label="Mul"]; - Con23 -> Mul5; - Con34 -> Mul5; - Con56 [ label="Con5"]; - Start1 -> Con56 [style=dotted]; - Minus7 [ label="Minus"]; - Con56 -> Minus7; - Add8 [ label="Add"]; - Mul5 -> Add8; - Minus7 -> Add8; - Add9 [ label="Add"]; - Con12 -> Add9; - Add8 -> Add9; - Return10 [shape=box, label="Return"]; - Add9 -> Return10; - edge [color=red]; - Start1 -> Return10; +digraph chapter02 { + rankdir=BT; + subgraph cluster_Nodes { + Start1 [ shape=box style=filled fillcolor=yellow label="Start" ]; + Con12 [ label="Con1" ]; + Con23 [ label="Con2" ]; + Con34 [ label="Con3" ]; + Mul5 [ label="Mul" ]; + Con56 [ label="Con5" ]; + Minus7 [ label="Minus" ]; + Add8 [ label="Add" ]; + Add9 [ label="Add" ]; + Return10 [ shape=box style=filled fillcolor=yellow label="Return" ]; + } + Con12 -> Start1 [style=dotted]; + Con23 -> Start1 [style=dotted]; + Con34 -> Start1 [style=dotted]; + Mul5 -> Con23; + Mul5 -> Con34; + Con56 -> Start1 [style=dotted]; + Minus7 -> Con56; + Add8 -> Mul5; + Add8 -> Minus7; + Add9 -> Con12; + Add9 -> Add8; + Return10 -> Start1 [color=red]; + Return10 -> Add9; }
\ No newline at end of file |
