added missing files

This commit is contained in:
Carlos Galindo 2019-12-04 15:53:32 +00:00
parent 80acb5243e
commit cf1594fbd4
6 changed files with 165 additions and 0 deletions

View 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];
}

Binary file not shown.

View 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;
}
}

Binary file not shown.