Start working on the control flow graphs post
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
15
content/blog/06_spa_agda_cfg/if-cfg.dot
Normal file
15
content/blog/06_spa_agda_cfg/if-cfg.dot
Normal file
@@ -0,0 +1,15 @@
|
||||
digraph G {
|
||||
graph[dpi=300 fontsize=14 fontname="Courier New"];
|
||||
node[shape=rectangle style="filled" fillcolor="#fafafa" penwidth=0.5 color="#aaaaaa"];
|
||||
edge[arrowsize=0.3 color="#444444"]
|
||||
|
||||
node_begin [label="x = ...;\lx\l"]
|
||||
node_then [label="x = 1\l"]
|
||||
node_else [label="x = 0\l"]
|
||||
node_end [label="y = x\l"]
|
||||
|
||||
node_begin -> node_then
|
||||
node_begin -> node_else
|
||||
node_then -> node_end
|
||||
node_else -> node_end
|
||||
}
|
||||
Reference in New Issue
Block a user