added missing files
This commit is contained in:
parent
80acb5243e
commit
cf1594fbd4
6 changed files with 165 additions and 0 deletions
22
img/nested-unconditional-cfg.dot
Normal file
22
img/nested-unconditional-cfg.dot
Normal file
|
@ -0,0 +1,22 @@
|
|||
digraph cfg {
|
||||
start -> while [label = T];
|
||||
while -> "if (Y)" [label = "T"];
|
||||
while -> D [label = "F"];
|
||||
D -> end;
|
||||
"if (Y)" -> "if (Z)" [label=T];
|
||||
"if (Y)" -> C [label=F];
|
||||
"if (Z)" -> A [label=T];
|
||||
"if (Z)" -> B [label=F];
|
||||
//node [color="red"];
|
||||
A -> break1;
|
||||
B -> break2;
|
||||
break1 -> D [label = T];
|
||||
break2 -> D [label = T];
|
||||
while [label="while (X)"];
|
||||
break1 [label = "break"];
|
||||
break2 [label = "break"];
|
||||
break1 -> B [style=dashed, label = F];
|
||||
break2 -> C [style=dashed, label = F];
|
||||
C -> while;
|
||||
start -> end [label = F, style = dashed];
|
||||
}
|
BIN
img/nested-unconditional-cfg.pdf
Normal file
BIN
img/nested-unconditional-cfg.pdf
Normal file
Binary file not shown.
23
img/nested-unconditional-pdg.dot
Normal file
23
img/nested-unconditional-pdg.dot
Normal file
|
@ -0,0 +1,23 @@
|
|||
digraph pdf {
|
||||
entry -> {while; D};
|
||||
entry [style = filled];
|
||||
while [label = "while (X)", style = filled];
|
||||
while -> {"if (Y)" C};
|
||||
C [style = "bold,filled"];
|
||||
"if (Y)" -> C [label = 2];
|
||||
"if (Y)" [style = filled];
|
||||
"if (Y)" -> {"if (Z)" B break2};
|
||||
"if (Z)" -> {A break1};
|
||||
"if (Z)" [style = filled, color = lightblue];
|
||||
"if (Z)" -> {B break2} [label = 1];
|
||||
break1 -> {B break2} [label = 1];
|
||||
break2 -> {C while} [label = 2];
|
||||
{rank=same; A break1 B break2}
|
||||
break1 [label = "break 1", style = filled, color = lightblue];
|
||||
break2 [label = "break 2", style = filled];
|
||||
{rank=same; "if (Z)" C}
|
||||
{rank=same; while D}
|
||||
{edge [style=invis];
|
||||
A -> break1 -> B -> break2;
|
||||
}
|
||||
}
|
BIN
img/nested-unconditional-pdg.pdf
Normal file
BIN
img/nested-unconditional-pdg.pdf
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue