-
Notifications
You must be signed in to change notification settings - Fork 10
/
fig_flow_compare.dot
135 lines (104 loc) · 3.33 KB
/
fig_flow_compare.dot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
digraph {
node [fontsize = 9]
src [shape = box, label = "Original Sources"];
scos [shape = ellipse, label = "SCOS", color=blue];
units [shape = ellipse, label = "Units Of\nInterest", color=blue];
edge [fontsize = 9, arrowsize=0.7]
/*-------------------
Using Source traces
-------------------*/
{
/* processes */
node [shape = box];
node [color = green];
instrument [label = "Instrument Original Sources\n(gnatcov instrument)"];
build_instr [label = "Build from Instrumented Sources\n(gprbuild --src-subdirs ...)"];
regular_execution [label = "Regular Execution\n(instrumented executable)"];
node [color = blue];
srct_coverage [label = "Analyze/Consolidate\n(gnatcov coverage)"];
/* products or inputs */
node [shape = ellipse, color = green];
st1 [label = "strace1"];
stdots [label = "..."];
st2 [label = "strace2"];
node [shape = ellipse, color = blue];
srct_report [label = "Report"];
srct_checkpoint [label = "Checkpoint"];
}
/*-------------------
Using Binary traces
-------------------*/
{
/* processes */
node [shape = box];
node [color = red];
build_orig [label = "Build from Original Sources\n(gprbuild -cargs ...)"];
instr_execution [label = "Instrumented Execution\n(gnatcov run)"];
node [color = blue];
bint_coverage [label = "Analyze/Consolidate\n(gnatcov coverage)"];
/* products or inputs */
node [shape = ellipse, color = red];
bt1 [label = "btrace1"];
btdots [label = "..."];
bt2 [label = "btrace2"];
node [shape = ellipse, color = blue];
bint_report [label = "Report"];
bint_checkpoint [label = "Checkpoint"];
}
src;
src -> instrument;
src -> build_orig;
scos;
/*=================== Using Source traces ================*/
subgraph "cluster_src_traces" {
label = "Using Source Traces\n(Source coverage criteria only)";
fontsize = 10;
labeljust = l;
color = green;
instrument -> build_instr;
build_instr -> regular_execution;
{rank = same;
st1; stdots; st2;
}
regular_execution -> st1 [style = dotted];
regular_execution -> stdots [style = dotted];
regular_execution -> st2 [style = dotted];
st1 -> srct_coverage;
stdots -> srct_coverage;
st2 -> srct_coverage;
srct_coverage -> srct_report [style = dotted];
srct_coverage -> srct_checkpoint [style = dotted];
srct_checkpoint -> srct_coverage;
}
/*=================== Using Binary traces ================*/
subgraph "cluster_bin_traces" {
label = "Using Binary Traces\n(Source or Object Coverage Criteria)";
fontsize = 10;
labeljust = r;
color = red;
build_orig [rank=2];
build_orig -> instr_execution;
pad1 [style=invis];
build_orig:e -> pad1 [style=invis];
pad1 -> instr_execution:e [style=invis];
{rank = same;
bt1; btdots; bt2;
}
instr_execution -> bt1 [style = dotted];
instr_execution -> btdots [style = dotted];
instr_execution -> bt2 [style = dotted];
bt1 -> bint_coverage;
btdots -> bint_coverage;
bt2 -> bint_coverage;
bint_coverage -> bint_report [style = dotted];
bint_coverage -> bint_checkpoint [style = dotted];
bint_checkpoint -> bint_coverage;
}
instrument -> scos [style = invis];
build_orig -> scos [style = invis];
scos -> units [dir=both, arrowhead=curve, arrowtail=curve];
units -> instrument;
units -> instr_execution;
units:s -> bint_coverage;
units:s -> srct_coverage;
}